admin_chklogin.asp

来自「一套asp办公小软件」· ASP 代码 · 共 62 行

ASP
62
字号
<!--#include file="global.asp" -->
<%

   dim num
   a1="是"
  Set num = Server.CreateObject("ADODB.Recordset")
  sql="select * from yuang where yonghm='"+REQUEST("userNAME")+"' and mima='"+REQUEST("PASSWORD")+"'"
 num.open sql,conn,2,2
if  not num.eof then
        session("yonghm")=num("yuangmc")
        if num("quanx")="1" then
           sj1="系统管理员"
        else
           sj1="普通用户"
        end if
        session("quanx")=sj1
        session("name")=num("yonghm")
        session("bum")=num("bum")
        session("password")=num("mima")
 '       response.write(num("yuangmc"))
'response.end

        Response.Redirect "admin_index.asp"

end if        
%>
<% num.Close 
   set num=nothing
   conn.close%>

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<title>错误信息</title>
<META content="Microsoft FrontPage 4.0" name=GENERATOR>

</head>

<BODY>
<OBJECT id=num PROGID="ADODB.Recordset" RUNAT="Server"></OBJECT>
<OBJECT id=Conn PROGID="ADODB.Connection" RUNAT="Server"></OBJECT>

<p align="center"> </p>
<div align="center"><center>

<table border="3" width="45%" bordercolor="#800000">
  <tr>
    <td width="100%"><p align="center"><br>
    <IMG alt="erro.jpg (9219 bytes)" src ="images/erro.jpg" width="300" height="35" ></p>
    <p align="center"><font color="#800000"><strong><br>
    </strong></font><big><big><font color="#800000" face="隶书">您输入的帐号或密码不正确<br>
    或者您离开系统的时间过长,或者您不是系统管理员</font></big></big></p>
    <p align="center"><big><font color="#800080" face="隶书"><big><strong>
    <a target="_top" href="admin_login.asp">请重新登录</a></strong></big></font></big></p>
    <p align="center"><big><font color="#800080" face="隶书"><big><strong> </strong></big></font></big></p></td>
  </tr>
</table>
</center></div>
</BODY>
</html>

⌨️ 快捷键说明

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