<!--#include file="conn.asp" -->
<!--#include file="inc/config.asp" -->
<!--#include file="inc/mail_inc.asp" -->
<!--#include file="inc/md5.asp" -->
<!--#include file="inc/gl.asp" -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=page_title%> 取回密码。。。</title>
<link href="css.css" rel="stylesheet" type="text/css">
</head>

<% 
Verification_us=false
if Trim(Request.QueryString("w"))="Verification" then

Verification_userid=gl(Trim(Request("userid")))
Verification_pass=gl(Trim(Request("Verification")))
 
 sql="select * from user where userid='"&Verification_userid&"'" 
   rs.open sql,conn,2,3
  if not  rs.eof then
   if  rs("password")&md5(Verification)=Verification_pass then
       Verification_us=true
	   if Trim(Request.form("action"))="yes" then
	     if Trim(Request.Form("password1"))<> Trim(Request.Form("password2")) then
		   Response.Write("两次输入的密码不正确")
		   Response.end
		   end if
		  rs("password")=md5(Trim(Request.Form("password1"))) 
	      rs.update
		  msm="您的密码以成功更改成功."
	   end if
     else
     Response.Write "对不起。您的验证码不正确"
     Response.end
    end if 
  else
   Response.Write "对不起。您的验证码不正确"
   Response.end
 end if
rs.close
end if


 %>
<body leftmargin="3" topmargin="2" bgcolor="#C0C0C0">
<!--#include file="head.asp" -->
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td width="179" bgcolor="#FFFFFF"> 
      <div align="center">&nbsp; 
        <!--#include file="in.asp" -->
      </div></td>
    <td width="1" bgcolor="#FFFFFF"> </td>
    <td width="592" valign="top" bgcolor="#FFFFFF"><div align="center">
        <p>&nbsp;取回密码<% if not Verification_us then %></p>
        <p>&nbsp; </p>
        <form name="form2" method="post" action="pass_Verification.asp?w=Verification">
          <table width="50%" height="105" border="1" cellpadding="0" cellspacing="0" bordercolor="#F9F9F9">
            <tr> 
              <td height="17" colspan="2"><font color="#FF0000"><strong>请输入收到的验证码</strong></font></td>
            </tr>
            <tr> 
              <td width="28%">用户名：</td>
              <td width="72%"><input name="userid" type="text" id="userid" size="15"></td>
            </tr>
            <tr> 
              <td>验证码：</td>
              <td><input name="Verification" type="text" id="Verification" size="20"></td>
            </tr>
            <tr> 
              <td height="26">&nbsp;</td>
              <td><input type="submit" name="Submit2" value="取回密码"></td>
            </tr>
          </table>
        </form>
        <p>&nbsp;</p>
        <p align="left">&nbsp;<% else %></p>
        <form name="form3" method="post" action="pass_Verification.asp?w=Verification">
          <table width="59%" height="110" border="1" cellpadding="0" cellspacing="0" bordercolor="#F9F9F9">
            <tr> 
              <td colspan="2"><font color="#FF0000"><strong>密码重设</strong></font></td>
            </tr>
            <tr> 
              <td width="30%" height="22">用 户 名:</td>  
              <td width="70%"><%= Verification_userid %>
<input name="userid" type="hidden" id="userid" value="<%=Verification_userid%>">
                <input name="Verification" type="hidden" id="Verification" value="<%=Verification_pass%>">
                <input name="action" type="hidden" id="action" value="yes"></td>
            </tr>
            <tr> 
              <td height="25">密　　码:</td>
              <td><input name="password1" type="text" id="password1" size="12"></td>
            </tr>
            <tr> 
              <td height="25">重复密码:</td>
              <td><input name="password2" type="text" id="password2" size="12"></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td><input type="submit" name="Submit3" value="-修改-"></td>
            </tr>
          </table>
        </form>
        <p>&nbsp;<% end if %></p>
        <p><font color="#FF0000"><%= msm %>&nbsp; </font></p>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
      </div></td>
  </tr>
  <tr> 
    <td bgcolor="#FFFFFF" width="179">&nbsp;</td>
    <td colspan="2" bgcolor="#FFFFFF" width="595">&nbsp;</td>
  </tr>
</table>
<!--#include file="top.asp" -->

</body>
</html>
























