?? 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 + -