📄 managercheck.jsp~3~
字号:
<%@ page contentType="text/html; charset=GBK" %>
<html>
<head>
<title>核对密码</title>
<style type="text/css">
<!--
.style1 {
font-family: "方正康体简体";
font-size: 24px;
color: #0000FF;
}
.style2 {font-size: large}
-->
</style>
</head>
<script language="JavaScript">
function RgTest(){
if(document.form.managerName.value==""){
window.alert("请输入管理员帐号:");
document.form.managerName.focus();
return false;
}
if(!((document.form.managerName.value.charCodeAt(i)>=48&&document.form.managerName.value.charCodeAt(i)<=57||
document.form.managerName.value.charCodeAt(i)>=65&&document.form.managerName.value.charCodeAt(i)<=90||
document.form.managerName.value.charCodeAt(i)>=97&&document.form.managerName.value.charCodeAt(i)<=122))){
window.alert("管理员帐号不能是汉字:");
document.form.managerName.focus();
return false;
}
if(document.form.managerPassWord.value==""){
window.alert("请输入管理员密码:");
document.form.managerPassWord.focus();
return false;
}
if(!((document.form.managerPassWord.value.charCodeAt(i)>=48&&document.form.managerPassWord.value.charCodeAt(i)<=57||
document.form.managerPassWord.value.charCodeAt(i)>=65&&document.form.managerPassWord.value.charCodeAt(i)<=90||
document.form.managerPassWord.value.charCodeAt(i)>=97&&document.form.managerPassWord.value.charCodeAt(i)<=122))){
window.alert("管理员密码不能是汉字:");
document.form.managerPassWord.focus();
return false;
}
return true;
}
</script>
<body bgcolor="#ffffc0">
<div align="center" class="style1">
<p>管理员登陆</p>
<p> </p>
<form name="form" method="post" action="../managerCheckAction.do" onSubmit="return RgTest()">
<table width="287" height="77" border="2" cellpadding="3" cellspacing="3">
<tr>
<td width="90" height="32"><span class="style2">帐号:</span></td>
<td width="168"><input type="text" name="managerName"></td>
</tr>
<tr>
<td height="32"><span class="style2">密码:</span></td>
<td><input type="text" name="managerPassWord"></td>
</tr>
</table>
<input type="submit" name="Submit2" value="提交">
<input type="reset" name="Submit" value="重置">
</form>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -