?? getpsw-3.asp
字號:
<!--#include file="conn.asp"-->
<!--#include file="md5.asp"-->
<HEAD><TITLE>學生取回密碼第三步</TITLE>
<META http-equiv=Content-Language content=zh-cn>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK href="images/style.css" type=text/css rel=stylesheet>
</HEAD>
<%
if request.cookies("userid")<>"" then
response.write "<script language='javascript'>"
response.write "alert('同學,您已經(jīng)登陸了,不能執(zhí)行此操作。');"
response.write "location.href='javascript:history.go(-1)';"
response.write "</script>"
response.end
end if
set rs=conn.execute("select * from [user] where UserId='"&request.form("userid")&"'")
if rs.eof and rs.bof then
response.write "<script language='javascript'>"
response.write "alert('出錯了,同學,您填寫的登陸學號不正確,或者沒有此學號。');"
response.write "location.href='javascript:history.go(-1)';"
response.write "</script>"
response.end
end if
if md5(request.form("UserAnswer"))<>rs("UserAnswer") then
session("gpw_error")=session("gpw_error")+1
response.write "<script language='javascript'>"
response.write "alert('出錯了,同學,回答不正確。\n\n已出錯:"&session("gpw_error")&"次');"
response.write "location.href='javascript:history.go(-1)';"
response.write "</script>"
response.end
end if
if request.form("save")="ok" then
if request.form("pw1")<> request.form("pw2") then
response.write "<script language='javascript'>"
response.write "alert('出錯了,同學,兩次輸入的密碼不相同。');"
response.write "location.href='javascript:history.go(-1)';"
response.write "</script>"
response.end
else
conn.execute ("update [user] set UserPassword='"&md5(request.form("pw1"))&"' where userid='"&request.form("userid")&"'")
response.write "<script language='javascript'>"
response.write "alert('恭喜你,同學,您已成功修改了新密碼,請牢牢記住您的新密碼。');"
response.write "location.href='index.asp';"
response.write "</script>"
response.end
end if
end if
%>
<script language="JavaScript">
function checkform2(){
if (document.getpsw.pw1.value.length ==0){
alert("出錯了,同學,填寫不完整,請檢查后重新提交。");
document.getpsw.pw1.focus();
return false;
}
if (document.getpsw.pw2.value.length ==0){
alert("出錯了,同學,填寫不完整,請檢查后重新提交。");
document.getpsw.pw2.focus();
return false;
}
if (document.getpsw.pw1.value.length !=document.getpsw.pw2.value.length){
alert("出錯了,同學,兩次輸入的密碼不相同。");
document.getpsw.pw1.focus();
return false;
}
if (document.getpsw.pw1.value.length <6){
alert("出錯了,同學,密碼不能少于6位,請檢查后重新提交。");
document.getpsw.pw1.focus();
return false;
}
return true;
}
</script>
<BODY bgColor=#2f66bf >
<DIV align=center>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#111111 cellSpacing=0
cellPadding=0 width=763 border=0>
<TBODY>
<TR>
<TD width="100%"><!--#include file="head.asp"--></TD></TR></TBODY></TABLE>
<TABLE dir=ltr cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD vAlign=top>
<DIV align=center>
<TABLE height=830 cellSpacing=0 cellPadding=0 width=763 border=0>
<TBODY>
<TR>
<TD width=763 background=images/head_13.jpg height=15></TD></TR>
<TR>
<TD vAlign=top align=middle width=763
background=images/head_14.jpg height=49>
<TABLE id=AutoNumber3 style="BORDER-COLLAPSE: collapse"
borderColor=#111111 cellSpacing=0 cellPadding=0 width=763
border=0><TBODY>
<TR>
<TD width=11 rowSpan=4> </TD>
<TD width=741></TD>
<TD width=11 rowSpan=4> </TD></TR>
<TR>
<TD width=741></TD></TR>
<TR>
<TD width=741> </TD></TR>
<TR>
<TD width=741></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD width=763 background=images/head_16.jpg height=11></TD></TR>
<TR>
<TD width=763 background=images/head_11.jpg height=726>
<DIV align=center>
<TABLE id=table8 height="101%" cellSpacing=0 cellPadding=0
width="100%" border=0>
<TBODY>
<TR>
<TD vAlign=top align=middle width=187>
<!-- #include file="left.asp" -->
</TD>
<TD vAlign=top>
<TABLE id=table9 height=30 cellSpacing=0 cellPadding=0
width=571 border=0>
<TBODY>
<TR>
<TD width=12 background=images/sousuo_1.jpg> </TD>
<TD width=115 background=images/sousuo_2.jpg>
<TABLE id=table12 height=18 cellSpacing=0 cellPadding=0
width="100%" border=0>
<TBODY>
<TR>
<TD vAlign=top><FONT color=#ffffff><SPAN
style="FONT-SIZE: 12px"> 學 生 搜
索</SPAN></FONT></TD></TR></TBODY></TABLE></TD>
<TD background=images/sousuo_2.jpg> </TD>
<TD vAlign=top width=133
background=images/sousuo_2.jpg>
<FORM style="MARGIN: 0px" name="form1" action="search.asp" method="post">
<TABLE cellSpacing=0 cellPadding=0 width=390 border=0>
<TBODY>
<TR>
<TD width=56></TD>
<TD vAlign=top width=144><SPAN lang=zh-cn>
<SELECT class=smallSel size=1 name="searchid">
<OPTION value="Userid" selected name="typeid">=按登陸學號=</OPTION>
<OPTION value="UserName" name="typeid">=按學生姓名=</OPTION>
<OPTION value="Sex" name="typeid">=按學生性別=</OPTION>
<OPTION value="Birthday" name="typeid">=按出生年月=</OPTION>
<OPTION value="Banji" name="typeid">=按學生班級=</OPTION>
</SELECT></SPAN>
</TD>
<TD vAlign=top width=113>
<input name="searchkey" type="text" onfocus="this.value=''" size="10" maxlength="10" value=關(guān)鍵字>
</TD>
<TD width=77><DIV align=center>
<INPUT type=image src="images/sousuo_4.jpg" border=0 name=Submit value="開始查找" onclick="return checkk();"></DIV></TD></TR></TBODY></TABLE></FORM></TD></TD>
<TD width=15
background=images/sousuo_5.jpg> </TD></TR></TBODY></TABLE>
<TABLE id=table15 height=131 cellSpacing=0 cellPadding=0
width=568 border=0>
<TBODY>
<TR>
<TD width=146 background=images/bjbg_1.jpg height=35>
<TABLE id=table16 height=20 cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD align=middle><FONT style="FONT-SIZE: 12px"
color=#ff0000>取回密碼第三步</FONT></TD></TR></TBODY>
</TABLE></TD>
<TD width=422 height=35><IMG height=35 src="images/bjbg_2.jpg" width=422 border=0></TD></TR>
<TR>
<TD align=middle width=568 background=images/bjbg_3.jpg colSpan=2>
<table id=table28 height=162 align="center" cellSpacing=0 cellPadding=0 width=557 height=135 border=0>
<tr><td> · 不要嘗試獲取其他同學的密碼,本系統(tǒng)有嚴格的檢測和監(jiān)視機制 <br>
· 請如實填寫以下資料,以便系統(tǒng)為您重設密碼
<form method="post" name="getpsw" action="getpsw-3.asp" onsubmit="return checkform2();">
<table border="0" width="80%" height="126" align="center">
<tr>
<td height="31" colspan=2><b><font color="#f47d0c">第三步:請重設新的密碼</font></b></td>
</tr>
<tr>
<td height="30" width="30%"> 1. 新的密碼:</td>
<td height="30"><input type="password" name="pw1" size="20" maxlength=16></td></tr>
</tr>
<tr>
<td height="30" width="30%"> 2. 重復一次:</td>
<td height="30"><input type="password" name="pw2" size="20" maxlength=16></td></tr>
<tr>
<td height="32" colspan=2> 3. 點擊“下一步”繼續(xù)</td>
</tr><tr><td height="100" align="center">
<input type=hidden name=save value="ok">
<input type=hidden name=UserAnswer value="<%=request.form("UserAnswer")%>">
<input type=hidden name=userid value="<%=request.form("userid")%>">
<input type="image" src="images/login/next.gif" alt="下一步">
<a href=index.asp><img border=0 src="images/login/exit.gif" title="離開"></a>
</td></tr>
</table></form>
</td></tr>
</TABLE>
<TR>
<TD width=568 colSpan=2 height=16><IMG height=16 src="images/bjbg_6.jpg" width=568 border=0></TD>
</TR>
</TABLE>
</TABLE></TD></TABLE>
<DIV align=center>
<CENTER>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#111111 height=76
cellSpacing=0 cellPadding=0 width=763 border=0>
<TBODY>
<TR>
<TD width=763 background=images/xiabg_3.jpg height=76>
<DIV align=center>
<TABLE id=table34 cellSpacing=0 cellPadding=0 width="98%" border=0>
<TBODY>
<TR>
<TD align=middle><FONT color=#051547><SPAN
style="FONT-SIZE: 12px">CopyRingt 2006
清水河源工作室</SPAN></FONT></TD>
</TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE></CENTER></DIV>
<DIV></DIV></BODY>
<%
conn.close
set conn=nothing
%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -