📄 studentmima.asp
字号:
<%
if session("sNumber")="" then
response.write "<script>alert('对不起,您没有登陆,请先登陆后在访问。');document.location.href='index.asp';</script>"
response.end
end if
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>密码修改</title>
<link rel="stylesheet" href="admin/style.css">
<script language="javascript">
function sMima()
{
if(document.frm.oldPwd.value=="")
{
window.alert("请输入旧密码!");
document.frm.oldPwd.focus();
}
else if(document.frm.newPwd.value=="")
{
window.alert("请输入新密码!");
document.frm.newPwd.focus();
}
else if(document.frm.Pwd.value=="")
{
window.alert("请输入确认密码!");
document.frm.Pwd.focus();
}
else if(document.frm.newPwd.value!=document.frm.Pwd.value)
{
window.alert("请输入新密码和确认密码值不相同!");
document.frm.newPwd.focus();
}
else
{
document.frm.action="checkPwd.asp";
document.frm.submit();
}
}
</script>
</head>
<body>
<!--#include file="top.asp"-->
<div align="center">
<form name="frm" method="post" action="">
<table border="1" width="400" bordercolorlight="#000000" cellspacing="0" cellpadding="4" bordercolordark="#FFFFFF">
<tr>
<td colspan="2" align="center">密码修改</td>
</tr>
<tr>
<td width="30%" align="right" w>旧密码:</td>
<td width="70%" align="left"><input name="oldPwd" type="password" maxlength="16">(16位以内)</td>
</tr>
<tr>
<td width="30%" align="right">新密码:</td>
<td width="70%" align="left"><input type="password" name="newPwd" maxlength="16">(16位以内)</td>
</tr>
<tr>
<td width="30%" align="right">确认密码:</td>
<td width="70%" align="left"><input type="password" name="Pwd" maxlength="16"></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="button" name="Submit" value="提交" onclick=sMima()></td>
</tr>
</table>
</form>
</div>
<!--#include file="down.asp"-->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -