📄 loginfail.asp
字号:
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="../Connections/conn.asp" -->
<%
Dim Rs__MMColParam
Rs__MMColParam = "1"
if (Session("MM_username") <> "") then Rs__MMColParam = Session("MM_username")
%>
<%
set Rs = Server.CreateObject("ADODB.Recordset")
Rs.ActiveConnection = MM_conn_STRING
Rs.Source = "SELECT uname, uxinming FROM yonghu WHERE uname = '" + Replace(Rs__MMColParam, "'", "''") + "'"
Rs.CursorType = 0
Rs.CursorLocation = 2
Rs.LockType = 3
Rs.Open()
Rs_numRows = 0
%>
<%
' *** Validate request to log in to this site.
MM_LoginAction = Request.ServerVariables("URL")
If Request.QueryString<>"" Then MM_LoginAction = MM_LoginAction + "?" + Request.QueryString
MM_valUsername=CStr(Request.Form("uname"))
If MM_valUsername <> "" Then
MM_fldUserAuthorization="uaccesslevel"
MM_redirectLoginSuccess="../index1.asp"
MM_redirectLoginFailed="loginfail.asp"
MM_flag="ADODB.Recordset"
set MM_rsUser = Server.CreateObject(MM_flag)
MM_rsUser.ActiveConnection = MM_conn_STRING
MM_rsUser.Source = "SELECT uname, upassword"
If MM_fldUserAuthorization <> "" Then MM_rsUser.Source = MM_rsUser.Source & "," & MM_fldUserAuthorization
MM_rsUser.Source = MM_rsUser.Source & " FROM yonghu WHERE uname='" & MM_valUsername &"' AND upassword='" & CStr(Request.Form("upassword")) & "'"
MM_rsUser.CursorType = 0
MM_rsUser.CursorLocation = 2
MM_rsUser.LockType = 3
MM_rsUser.Open
If Not MM_rsUser.EOF Or Not MM_rsUser.BOF Then
' username and password match - this is a valid user
Session("MM_Username") = MM_valUsername
If (MM_fldUserAuthorization <> "") Then
Session("MM_UserAuthorization") = CStr(MM_rsUser.Fields.Item(MM_fldUserAuthorization).Value)
Else
Session("MM_UserAuthorization") = ""
End If
if CStr(Request.QueryString("accessdenied")) <> "" And true Then
MM_redirectLoginSuccess = Request.QueryString("accessdenied")
End If
MM_rsUser.Close
Response.Redirect(MM_redirectLoginSuccess)
End If
MM_rsUser.Close
Response.Redirect(MM_redirectLoginFailed)
End If
%>
<html>
<head>
<title>轻燕工作室中学人事管理系统-登录失败</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../files/cssresult.css" type="text/css">
</head>
<body bgcolor="#66CC66" text="#000000" leftmargin="0" topmargin="0">
<div align="center">
<table width="777" border="0" cellspacing="0" cellpadding="0" height="396">
<tr>
<td height="12" bgcolor="#66CC00">
<div align="center"><b><font color="#FF0000"><b><font color="#FF0000"><b><font color="#FF0000"><b><font color="#FF0000"><b><font color="#FF0000"><b><font color="#FF0000"><b><font color="#0000FF"></font></b></font></b></font></b></font></b></font><font color="#FF0000"><b><font color="#FF0000"><b><font color="#FF0000"><b><font color="#FF0000"><b><font color="#0000FF"><span class="cssresult">
</span></font></b></font></b></font></b></font></b></font></b></font></b></font></b>
<table width="777" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b><font color="#FF0000"><b><font color="#FF0000"><b><font color="#FF0000"><b><font color="#FF0000"><b><font color="#FF0000"><b><font color="#FF0000"><b><font color="#0000FF"><span class="cssresult"><img src="top.gif" width="777" height="106" usemap="#Map" border="0" align="middle"></span></font></b></font></b></font></b></font></b></font></b></font></b></font></b><b><font color="#FF0000"><b><font color="#FF0000"><b><font color="#FF0000"><b><font color="#FF0000"><b><font color="#FF0000"><b><font color="#FF0000"><b><font color="#0000FF"><span class="cssresult">
<map name="Map">
<area shape="rect" coords="7,79,59,104" href="../index1.asp" target="_self">
<area shape="rect" coords="62,79,113,106" href="../search.asp" target="_self">
<area shape="rect" coords="116,78,208,103" href="../add.asp" target="_self">
<area shape="rect" coords="307,77,359,103" href="admuserlogin.asp" target="_self">
<area shape="rect" coords="697,75,749,103" href="loginout.asp" target="_self">
<area shape="rect" coords="640,75,693,103" href="../index.asp" target="_self">
<area shape="rect" coords="212,78,303,103" href="../view.asp" target="_self">
<area shape="rect" coords="687,11,761,38" href="../help.htm">
</map>
<br>
</span></font></b></font></b></font></b></font></b></font></b></font></b></font></b></td>
</tr>
</table>
<b><font color="#FF0000"><b><font color="#FF0000"><b><font color="#FF0000"><b><font color="#FF0000"><b><font color="#FF0000"><b><font color="#FF0000"><b><font color="#0000FF"><span class="cssresult">
</span></font></b></font></b></font></b></font></b></font><font color="#0000FF"></font></b></font></b></font><font color="#FF0000"><b><font color="#FF0000"><b><font color="#0000FF"><span class="cssresult">
</span></font></b></font></b></font></b></div>
</td>
</tr>
<tr>
<td bgcolor="#FFFFCC" height="185">
<div align="center"><font size="4" class="cssindexda"><b><span class="cssresult"><font color="#FF0000"><br>
sorry!<font color="#0000FF"> </font>登录失败,请输入正确的用户名和密码重新登录!</font></span></b></font>
</div>
<form name="login" method="post" action="<%=MM_LoginAction%>">
<table width="47%" border="0" cellspacing="10" cellpadding="0" align="center" height="118">
<tr>
<td class="cssresult"><font color="#FF0000">用户名:</font></td>
<td>
<input type="text" name="uname">
</td>
</tr>
<tr>
<td class="cssresult"><font color="#FF0000">密 码:</font></td>
<td>
<input type="password" name="upassword">
</td>
</tr>
<tr>
<td colspan="2">
<div align="center">
<input type="submit" name="Submit" value="登录">
<span class="cssresult"> <b><a href="register.asp" target="_self">注册为新用户</a></b></span></div>
</td>
</tr>
</table>
</form>
</td>
</tr>
<tr>
<td height="7" bgcolor="#66CC66">
<div align="left"><font color="#FFFFFF" size="2"><span class="cssresult"><br>
<font color="#000000"> 本系统由轻燕工作室制作。是为满足中学的实际需要,由阳甫清根据具体情况开发并维护的.其中只列出一些最常用的教工信息项目,若有需要,可以增删和修改.由于时间和技术上的局限,所以本人事系统在正式投入使用之前,和其它软件一样,还需从各种角度进行详细的软件测试工作,发现问题请联系13507959978.Email:fqoy@163.com
QQ:16731175</font></span></font></div>
</td>
</tr>
</table>
</div>
</body>
</html>
<%
Rs.Close()
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -