<!--#include file="conn.asp" -->
<!--#include file="inc/config.asp" -->
<!--#include file="inc/md5.asp" -->
<!--#include file="inc/mail_inc.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>

<% 
sername=Request.ServerVariables("SERVER_NAME")
scrname=Request.ServerVariables("SCRIPT_NAME")
httpurl="http://"&sername& Left(scrname,(len(scrname)-8))
if Trim(Request.QueryString("w"))="save" then
 sql="select * from user where userid='"&request("userid")&"' and email='"&request("email")&"'"
 rs.open sql,conn,1,1
 if rs.eof then
 msm="对不起。您的用户名不存在或是您注册时的邮箱不正确，请联系管理员取回"
 else
 pass=rs("password")&md5(Verification)
 
 Verification_url=  httpurl&"pass_Verification.asp?w=Verification&userid="&request("userid")&"&Verification="&pass
 Verification_url_1=httpurl&"pass_Verification.asp"

  html=" <p>您好：</p>"
  html=html&" <p> 　　要取回您的密码请登录到我们的网站："&Verification_url_1&"</p>"
  html=html&" <p> 　　 用 户 名 为："&request("userid")&"</p>"
  html=html&" <p> 　　 验 证 码 为："&pass&"</p>"
  html=html&" <p>您也可以直接点些链接：<a href="&Verification_url&" target='_blank'>"&Verification_url&"</a></p>"
  html=html&" <p>来重新设定您的密码.</p>"
  html=html&"<p>感谢您对"&page_name&"　的支持，有任何问题请联系我们客户服务人员。</p>"

call SendMail(Request("email"),"您的密码!!",html)
 
 msm="请查收您的邮箱，验证码以经成功的发送到您的邮箱里了"
 end if 
rs.close
end if


 %>
<body leftmargin="3" topmargin="2" bgcolor="#C0C0C0">
<!--#include file="head.asp" -->
<table width="777" 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="591" valign="top" bgcolor="#FFFFFF"><div align="center">
        <p>取回密码 </p>
        <p>　 </p>
        <form name="form2" method="post" action="pass.asp?w=save">
          <table width="50%" height="105" border="1" cellpadding="0" cellspacing="0" bordercolor="#F9F9F9">
            <tr> 
              <td height="17" colspan="2">&nbsp;</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="email" type="text" id="email" size="15"></td>
            </tr>
            <tr> 
              <td height="26">&nbsp;</td>
              <td><input type="submit" name="Submit2" value="取回密码"></td>
            </tr>
          </table>
        </form>
        <p><font color="#FF0000"><%= msm %>&nbsp; </font></p>
        <p>&nbsp;</p>
        <p><a href="pass_Verification.asp"><font color="#FF0000">输入验证码 &gt;&gt;</font></a></p>  
      </div></td>
  </tr>
  <tr> 
    <td bgcolor="#FFFFFF" width="179">&nbsp;</td>
    <td colspan="2" bgcolor="#FFFFFF" width="594">&nbsp;</td>
  </tr>
</table>
<!--#include file="top.asp" -->

</body>
</html>
























