📄 default.asp
字号:
<!--#include file="../inc/Secure.asp"-->
<html>
<head>
<title>维护主页面</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="../CSS/main.css">
</head>
<BR><BR><BR><BR>
<%
Errmsg=trim(request("ErrorMessage"))
if Errmsg<>"" then
response.write "<p align=""center""><font color=#ff0000>"& ErrMsg &"</font></p>"
end if
quit=trim(request("quit"))
if quit="1" then
Session("LoginName") = ""
Session("LoginID") = ""
Session("LoginOK")= false
Errmsg="您已经退出了登录。"
response.write "<p align=""center""><font color=#ff0000>"& ErrMsg &"</font></p>"
end if
Change=trim(request("Change"))
if Change="1" then
Session("LoginName") = ""
Session("LoginID") = ""
Session("LoginOK")= false
Errmsg="请输入您要登录的用户名。"
response.write "<p align=""center""><font color=#ff0000>"& ErrMsg &"</font></p>"
end if
%>
<body>
<form name="loginform" method="post" action="Manage.asp">
<div align="center">
<table border=0 width="30%" cellspacing=1 cellpadding=3 bgcolor=#0047b0>
<tr>
<td colspan=2 align="center">
<b><font color=#ffffff>维护人员登录</font></b>
</td>
</tr>
<tr bgcolor=#ffffff><td>
<table border=0 width="100%" cellspacing=1 cellpadding=3>
<tr bgcolor=#FFFFFF>
<td width="30%">用户名:</td><td><input name=LoginName type=text size=15 maxlength=20></td>
</tr>
<tr bgcolor=#FFFFFF>
<td>密 码:</td><td><input name="Pwd" type="Password" size=15 maxlength=20></td>
</tr>
<tr bgcolor=#FFFFFF>
<td></td><td><input type="submit" value="登 录" onclick="return CheckData();">
<input type="reset" value="重 填"></td>
</tr>
</table>
</td></tr>
</table>
</div>
</form>
</body>
</html>
<script language=javascript>
function CheckData()
{
if(jtrim(document.loginform.LoginName.value)=="")
{
alert("请输入登录用户名。")
document.loginform.LoginName.focus();
return false;
}
if(jtrim(document.loginform.LoginName.value).length>100)
{
alert("登录用户名不能超过100个字。")
document.loginform.LoginName.focus();
return false;
}
return true;
}
</script>
<script language=javascript src="../inc/jtrim.js"></script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -