⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 login-2.asp

📁 asp在线订货系统、留言系统.zip
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT"%>
<%response.buffer=true%>
<!-- #include file=include/setup.inc -->
<!--
-------------雅客精彩信息综合网! http://www.yakefood.com !香港CGI-ASP软件网!!http://www.k66k.com/k666 !------------
-->
<html>
<head>
<meta HTTP-EQUIV="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="html/guest.css">
</head>
<body text=ffffff bgcolor=000000 leftmargin="20">
<%
pass=request("pass")
if pass="" and session("pass")="" then
%>
   <form method="POST" action="login.asp"><center>管理员登陆
      <table align="center">
        <tr> 
          <td><span class="p9">密码</span></td>
          <td align="center"> 
            <input name="pass" maxlength="200" class=smallinput>
          </td>
        </tr>
        <tr>
        <tr> 
          <td align="right"></td>
          <td colspan="2" align="center">
              <input type="submit" value="  提 交  " class="buttonface">
          </td>
        </tr>
        <tr> 
          <td align="right"></td>
          <td  colspan="2" align="center"> <span class="p9">
            【<a href="Goods.asp">返回订货单</a>】
            【<a href=<%=returnUrl%>>返回主页</a>】</span> </td>
        </tr>
      </table>
</div>
</form>
<%else%>
   <!-- #include file=database.asp -->
   <%
   if pass="" and session("pass")<>"" then pass=session("pass")
   set Rs=server.CreateObject("ADODB.Recordset")
   Rs.open "select top 1 * from manage",con,1,1
   if Rs.eof or Rs.bof then
      response.write "数据库错误,数据库中注管理员已经不存在,请添加记录后再操作!"
      Rs.close
      set Rs=nothing
      con.close
      set con=nothing
      response.end
   end if
   
   if rs("pass")<>pass then
      response.write "密码错误!请重新<a href=login.asp>登陆</a>!"
      session("pass")=""
      Rs.close
      set Rs=nothing
      con.close
      set con=nothing
      response.end
   end if
   
   session("pass")=pass
   response.clear
   Rs.close
   set Rs=nothing
   con.close
   set con=nothing
   response.redirect "manage.asp"
end if
%>
   
   
   


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -