📄 newpassword.asp
字号:
<!--#include file ="connection.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>添加教师信息</title>
<style type="text/css">
<!--
.STYLE1 {
color: #FFFFFF;
font-size: 18px;
font-weight: bold;
}
-->
</style>
</head>
<body bgcolor="#FBC2AD">
<div align=center>
<%
user=session("user")
lb=session("lb")
if user=""or lb<>"admin" then
response.redirect"index.asp"
else
oldpsw=request.Form("oldpsw")
sqlstr="select * from 教务管理员 where adminid='" & user &"' and adminpwd='" & oldpsw &"'"
set rs=Server.CreateObject("ADODB.Recordset")
rs.open sqlstr,CN
if not rs.eof then
%>
<table width="144" height="84">
<tr>
<td> </td>
</tr>
</table>
<form action="newpasswordz.asp" method="post">
<table width="334" border="0" cellpadding="3" cellspacing="1" bordercolor="#000000" bgcolor="#000000" class="sft">
<tr>
<td height="30" bgcolor="#FF903C"><div align="center">新密码:</div></td>
<td height="30" bgcolor="#FFFFFF"><input name="newpsw1" type="password" id="newpsw1" style="border-style: dotted; border-width: 0; background-color: #FCB4BC" size="20"></td>
</tr>
<tr>
<td width="112" height="30" bgcolor="#FF903C"><div align="center">重复新密码:</div></td>
<td width="207" height="30" bgcolor="#FFFFFF"><input name="newpsw2" type="password" id="newpsw2" style="border-style: dotted; border-width: 0; background-color: #FCB4BC" size="20"></td>
</tr>
<tr>
<td height="20" colspan="2" bgcolor="#FFFFFF"><div align="center">
<div align="center">
<input type="submit" name="action" value="修改密码" style="border-style: dotted; border-width: 0; background-color: #FCB4BC">
</div>
</table>
</form>
<p class=sft>
</div>
<%
else
response.Redirect("xgpassword.asp")
end if
end if %>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -