📄 modi_pass.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="chk.asp"-->
<!--#include file="db_conn.asp"-->
<!--#include file="../my_libs/my_request.asp"-->
<!--#include file="../my_libs/my_lib.asp"-->
<!--#include file="../my_libs/md5.asp"-->
<%
action=my_request("action",0)
if action="save" then
old_password=my_request("old_password",0)
new_password=my_request("new_password",0)
new_password2=my_request("new_password2",0)
if old_password="" or new_password="" or new_password2="" then
response.write"<SCRIPT language=JavaScript>alert('信息不完整!');"
response.write"javascript:history.go(-1)</SCRIPT>"
response.end
end if
if new_password<>new_password2 then
response.write"<SCRIPT language=JavaScript>alert('两次新密码输入不一致!');"
response.write"javascript:history.go(-1)</SCRIPT>"
response.end
end if
id=session("zm_id")
set rs=server.createobject("adodb.recordset")
sql="select zm_adminpass from ssort_manage where id="&id
rs.open sql,conn,1,3
password=rs("zm_adminpass")
if password<>md5(old_password) then
response.write"<SCRIPT language=JavaScript>alert('原密码输入有错误!');"
response.write"javascript:history.go(-1)</SCRIPT>"
response.end
else
rs.close
set rs=nothing
conn.close
set conn=nothing
Response.write "<script>alert(""sorry,在线演示不提供密码修改"");location.href=""admin_welcome.asp"";</script>"
Response.end
end if
end if
%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1</title>
<link rel="stylesheet" type="text/css" href="style_admin.css" />
</head>
<body>
<table border="1" width="100%" id="table1">
<form action="modi_pass.asp" method="post">
<tr>
<td colspan="2" class="top_td">修改密码</td>
</tr>
<tr>
<td width="39%" align="right" class="left_td">原密码:</td>
<td width="59%"><input type="password" name="old_password" size="20"></td>
</tr>
<tr>
<td width="39%" align="right" class="left_td">新密码:</td>
<td width="59%"><input type="password" name="new_password" size="20"></td>
</tr>
<tr>
<td width="39%" align="right" class="left_td">确认新密码:</td>
<td width="59%"><input type="password" name="new_password2" size="20">
<input name="action" type="hidden" value="save"></td>
</tr>
<tr>
<td colspan="2" align=center><input type="submit" value="提交" name="B1">
<input type="reset" value="重置" name="B2"></td>
</tr>
</form>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -