📄 changepass.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="Inc/Dataconn.asp" -->
<!--#include file="Inc/Funcs.asp" -->
<!--#include file="Inc/md5.asp" -->
<%
if request.form("Action")="ChangePass" then
UserName=session("UserName")
if UserName="" then
call eMessage("请先登录!")
end if
UserPass=request.form("UserPass")
if UserPass="" then
call eMessage("请输入原始密码!")
end if
NewPass=request.form("NewPass")
if NewPass="" then
call eMessage("请输入新密码!")
end if
NewPassA=request.form("NewPassA")
if NewPass<>NewPassA then
call eMessage("两次输入的密码不符!")
end if
rs.open "select * from Admin where UserName='"&md5(UserName)&"'",conn,1,1
if rs("UserPass")<>md5(UserPass)then
call emessage("原始密码不正确!")
end if
rs.close
conn.execute "Update Admin set UserPass='"&Md5(NewPass)&"' where UserName='"&md5(UserName)&"'"
call message("密码修改成功!")
end if
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>超市商品信息管理系统-修改密码</title>
<style type="text/css">
<!--
.STYLE1 { font-size: 24px;
color: #000000;
font-weight: bold;
}
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.STYLE2 {
color: #FFFFFF;
font-weight: bold;
}
body,td,th {
font-size: 12px;
}
-->
</style>
<link href="Inc/css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table width="610" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="35" align="center" background="Images/tbtitle1.jpg"><span class="STYLE1">修改管理密码</span></td>
</tr>
</table>
<br>
<table width="250" border="0" cellpadding="0" cellspacing="1" bgcolor="#999999">
<form action="ChangePass.asp" method="post" name="form1">
<tr>
<td height="25" align="center" background="Images/tbtitle.jpg"><span class="Txt">修改管理密码</span></td>
</tr>
<tr>
<td height="20" bgcolor="#FFFFFF"> 原始密码:
<label>
<input name="UserPass" type="password" class="InputStyle" id="UserPass" />
</label></td>
</tr>
<tr>
<td height="20" bgcolor="#FFFFFF"> 新密 码:
<label>
<input name="NewPass" type="password" class="InputStyle" id="NewPass" />
</label></td>
</tr>
<tr>
<td height="20" bgcolor="#FFFFFF"> 验 证:
<label>
<input name="NewPassA" type="password" class="InputStyle" id="NewPassA" />
</label></td>
</tr>
<tr>
<td height="20" align="center" bgcolor="#FFFFFF"><label>
<input name="Action" type="hidden" id="Action" value="ChangePass" />
<input name="Submit" type="submit" class="Button1" value=" 提 交 " />
</label>
<label>
<input name="Submit2" type="reset" class="Button1" value=" 重 置 " />
</label></td>
</tr>
</form>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -