📄 index.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="Connections/conn.asp" -->
<!--#include file="md5.asp" -->
<%
' *** Validate request to log in to this site.
MM_LoginAction = Request.ServerVariables("URL")
If Request.QueryString<>"" Then MM_LoginAction = MM_LoginAction + "?" + Server.HTMLEncode(Request.QueryString)
MM_valUsername=CStr(Request.Form("username"))
If MM_valUsername <> "" Then
MM_fldUserAuthorization=""
MM_redirectLoginSuccess="allguset.asp"
MM_redirectLoginFailed="index.asp"
MM_flag="ADODB.Recordset"
set MM_rsUser = Server.CreateObject(MM_flag)
MM_rsUser.ActiveConnection = MM_conn_STRING
MM_rsUser.Source = "SELECT adminname, adminpws"
If MM_fldUserAuthorization <> "" Then MM_rsUser.Source = MM_rsUser.Source & "," & MM_fldUserAuthorization
MM_rsUser.Source = MM_rsUser.Source & " FROM admin WHERE adminname='" & Replace(MM_valUsername,"'","''") &"' AND adminpws='" & MD5(Replace(Request.Form("userpws"),"'","''")) & "'"
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
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新婚来贺名单管理系统</title>
<style type="text/css">
<!--
body,td,th {
font-size: 9pt;
color: #000000;
}
body {
background-image: url(images/bg.gif);
}
a {
font-size: 9pt;
color: #000000;
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #000000;
}
a:hover {
text-decoration: underline;
color: #FFFF00;
}
a:active {
text-decoration: none;
color: #FF0000;
}
.style3 {
font-size: 18pt;
font-family: "隶书";
font-weight: bold;
color: #FFFF00;
}
-->
</style></head>
<body>
<div align="center" class="style1">
<p class="style3">新婚来贺名单管理系统</p>
</div>
<p align="center"><a href="index.asp"><img src="images/LOGO.gif" width="178" height="98" border="0"></a></p>
<table width="168" border="0" align="center" cellpadding="0" cellspacing="0">
<form name="form1" method="POST" action="<%=MM_LoginAction%>">
<tr>
<td width="50">用户名:</td>
<td align="center"><input name="username" type="text" id="username" size="15"></td>
</tr>
<tr>
<td>密 码:</td>
<td align="center"><input name="userpws" type="password" id="userpws" size="15"></td>
</tr>
<tr>
<td> </td>
<td align="center"><input name="Login" type="submit" id="Login" value="登陆"> </td>
</tr></form>
</table>
<!--#include file="Copyright.htm" -->
</body>
</html>
<%
Mrs.Close()
Set Mrs = Nothing
%>
<%
allqdRS.Close()
Set allqdRS = Nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -