📄 index.asp
字号:
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Connections/conn.asp" -->
<%
' *** 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="admin/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>WelcomeTo 轻燕工作室中学人事管理系统-封面</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
</script>
<link rel="stylesheet" href="files/cssresult.css" type="text/css">
<style type="text/css">
<!--
.small { font-size: 13px; color: #FFFF00; font-family: "宋体"}
-->
</style>
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="admin/bg.jpg">
<table width="777" border="0" cellspacing="0" cellpadding="0" height="100%" align="center">
<tr>
<td align="center" valign="top" bgcolor="#FF8144">
<div align="center">
<table width="777" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td><img src="admin/index/index_r1_c1.gif" width="777" height="187" align="middle" usemap="#Map" border="0"></td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="right">
<tr>
<td width="27%"><img src="admin/index/index_r2_c1.gif" width="211" height="269" align="middle"></td>
<td width="44%" bg="admin/index/index_r2_c2.gif" background="admin/index/index_r2_c2.gif">
<div align="left">
<form name="form1" method="post" action="<%=MM_LoginAction%>">
<table width="80%" border="0" cellspacing="5" cellpadding="5">
<tr>
<td><img src="admin/index/yonghuming.gif" width="86" height="25"></td>
<td>
<input type="text" name="uname" size="15">
</td>
</tr>
<tr>
<td><img src="admin/index/mima.gif" width="87" height="25"></td>
<td>
<input type="password" name="upassword" size="15">
</td>
</tr>
<tr>
<td colspan="2">
<div align="center">
<input type="submit" name="Submit" value="登录">
</div>
</td>
</tr>
</table>
</form>
</div>
</td>
<td width="29%"><img src="admin/index/index_r2_c3.gif" width="223" height="269" align="middle"></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
<map name="Map">
<area shape="rect" coords="698,9,754,37" href="help.htm#zhanghao" target="_blank">
<area shape="rect" coords="681,134,771,169" href="admin/admuserlogin.asp" target="_self">
</map>
欢迎你,来自<script src="http://www.checkips.com/ip.asp"></script>的朋友!<script src="http://www.21dx.com/count/count.asp?view=asp"></script>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -