📄 login.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<!--
表单:fomr1
用户名:uid
密码:pwd
提交到:CheckLogin.asp
-->
<%
if(ucase(request.QueryString("oper"))="exit") then
session.Abandon()
end if
%>
<title>在线考试系统--管理员登录</title>
<script language="JavaScript">
function checkForm()
{
if (document.form1.uid.value=="")
{alert("请输入用户名!");
document.form1.uid.focus();
return false;}
if (document.form1.pwd.value=="")
{alert("请输入密码!");
document.form1.pwd.focus();
return false;}
return true;
}
</script>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<h2 align=center><font color="#666666">在线考试系统--管理员登录</font></h2>
<form name="form1" method="post" action="CheckLogin.asp" onSubmit="javascript: return checkForm();">
<table width="335" border="1" align="center" cellpadding="2" cellspacing="2" bordercolor="#999999">
<tr>
<td width="69" rowspan="3" bgcolor="#F3F3F3"><IMG src="../pic/login.jpg" width="71" height="127">
</td>
<td width="69" height="43" align="center" bgcolor="#F3F3F3">用户名:</td>
<td width="169" align="center">
<!---onkeyup="value=value.replace(/[^\d]/g,'')" --->
<input name="uid" type="text" id="uid" size="20" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" onFocus="javascript:this.select();">
</td>
</tr>
<tr>
<td height="46" align="center" bgcolor="#F3F3F3">密码:</td>
<td align="center"> <input name="pwd" type="password" id="pwd" size="20">
</td>
</tr>
<tr align="center">
<td height="26" colspan="2">
<INPUT type="submit" name="Submit" value="确定" >
<INPUT type="submit" name="Submit2" value="重置"> </td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -