📄 managelogin.asp
字号:
<!--#include file="../include/connstr.asp"-->
<!--#include file="../include/md5.asp"-->
<!--#include file="../include/DefFunction.asp"-->
<%
if request("CurAction")="CheckPwd" then
set rs=conn.execute("select * from tManageUser where LoginID='"&request("T_LoginID")&"' and PassWord='"&md5(request("T_PassWord"))&"'")
if not(rs.eof and rs.bof) then
if rs("StateFlag")="0" then '帐号被锁
response.write "<script>alert('您的帐号已被管理员锁定,有疑问请联系!');history.back();</script>"
response.End()
end if
response.Cookies("AdminUser")=request("T_LoginID")
response.Cookies("AdminPopFlag")=rs("PopFlag")
response.Cookies("T_LoginID")=request("T_LoginID")
response.Cookies("T_LoginID").expires=date()+7
conn.execute("update tManageUser set LastlyDate='"&now()&"' where LoginID='"&request("T_LoginID")&"'")
response.redirect "AdminManage.asp"
else
response.write "<script>alert('没有此帐户或密码错误,不在工作时间范围内,请与管理员联系!');history.back();</script>"
response.end
end if
end if
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>企业网站后台管理_诚一阀门</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="Images/AdminCss.css" rel="stylesheet" type="text/css">
</head>
<body background="Images/bg.gif" leftmargin="0" topmargin="0">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="middle"><table width="768" height="449" border="1" align="center" cellpadding="0" cellspacing="0" background="Images/LoginBg.jpg">
<tr>
<td valign="top"><table width="100%" height="440" border="0" cellpadding="0" cellspacing="0">
<form name="form1" method="post" action="" onSubmit="return check_data()">
<tr>
<td width="72%" rowspan="4"> </td>
<td height="346" colspan="2" align="center"> </td>
</tr>
<tr>
<td width="10%" height="27" align="center"><font color="#333333">管理帐号:</font></td>
<td width="18%"><input name="T_LoginID" type="text" id="T_LoginID" size="15" value="<%=request.Cookies("T_LoginID")%>" OnMouseOver="this.focus()" onFocus="this.select()"></td>
</tr>
<tr>
<td height="27" align="center"><font color="#333333">管理密码:</font></td>
<td><input name="T_PassWord" type="password" id="T_PassWord" size="15" OnMouseOver="this.focus()" onFocus="this.select()" ></td>
</tr>
<tr>
<td height="40" align="center"><input name="CurAction" type="hidden" id="CurAction" value="CheckPwd"></td>
<td><input type="submit" name="Submit" value="进入管理"> </td>
</tr>
</form>
</table> </td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
<script language="JavaScript">
function check_data(){
if(document.form1.T_LoginID.value==""){
alert("对不起,您没有输入帐号,请输入!")
document.form1.T_LoginID.focus();
return(false)
}
if(document.form1.T_PassWord.value==""){
alert("对不起,您没有输入密码,请输入!")
document.form1.T_PassWord.focus()
return(false)
}
}
if(document.form1.T_LoginID.value==""){
document.form1.T_LoginID.focus()
}else{
document.form1.T_PassWord.focus()
}
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -