?? passwd.asp
字號:
<!--#include file="conn.asp"-->
<script language=javascript>
function CheckForm() {
if (document.form1.passw.value!=document.form1.passw1.value)
{
alert("兩次輸入新密碼不同,請重新輸入!");
return false;
}
}
</script>
<style type="text/css">
<!--
.STYLE2 {font-size: 18px}
.STYLE3 {
font-size: 18px;
font-weight: bold;
color: #FFFFFF;
}
a:link {
color: #003366;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #003366;
}
a:hover {
text-decoration: none;
color: #003366;
}
a:active {
text-decoration: none;
color: #003366;
}
body {
background-color: #ced7f7;
margin-left: 0px;
margin-right: 0px;
}
.STYLE5 {
font-size: 12px;
color: #000055;
}
-->
</style>
<BODY leftmargin="0" topmargin="0">
<table width="100%" height="35" border="0" background="../image/top.gif" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><div align="center"><span class="STYLE3">修改密碼</span></div></td>
</tr>
</table>
<div align="center">
<p> </p>
<p>
<%user=session("user")
exec="select *from che where name='"&user&"'"
set rs=server.createobject("adodb.recordset")
rs.open exec,conn,1,3
if request("action")="set" then
passold=request.Form("passold")
if passold=rs("password") then
rs("password")=request.Form("passw")
rs.update
response.Write "密碼修改成功!"
rs.Close
Set rs=Nothing
Conn.Close
Set Conn=Nothing
else
response.Write "密碼輸入錯誤!"%>
<input type="button" name="Submit" value="請重新輸入" onClick="location.href='passwd.asp'"> <%
end if
else
response.Write "用戶名:"
response.write user
%>
</p>
</div>
<form name="form1" method="post" action="passwd.asp?action=set" onSubmit="return CheckForm()">
<p align="center">輸入原密碼:
<input name="passold" type="text" size="18">
</p>
<p align="center">輸入新密碼:
<input name="passw" type="password" size="18">
</p>
<p align="center">確認新密碼:
<input name="passw1" type="password" size="18">
</p>
<p align="center">
<label>
<input type="submit" name="Submit" value="提交">
</label>
<label>
<input type="reset" name="Submit2" value="重置">
</label>
</p>
</form>
<p align="center">
<%end if%>
</p>
<p> </p>
<table width="100%" height="18" border="0" background="../image/bottom.gif" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="bottom"><div align="center"><span class="STYLE5">版權所有 杰爾康</span><br />
</div></td>
</tr>
</table>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -