<!--#include file="pysjzx_conn.asp"-->
<!--#include file="../webconfig.asp"-->
<!--#include file="../md5.asp"-->
<%
ServerName1=Cstr(Request.ServerVariables("HTTP_REFERER"))
ServerName2=Cstr(Request.ServerVariables("SERVER_NAME"))
If Mid(ServerName1,8,len(ServerName2))<>ServerName2 Then
    Response.Write "路径有误，禁止从网站外部提交表单！"
    response.end
End if
username=replace(trim(request("username")),"'","")
passwd=md5(trim(request.form("passwd")))
set rs=Server.CreateObject("Adodb.Recordset")
sql="select * from [pysjzx_user] where username='"&username&"'"
rs.open sql,conn,1,3
If rs.eof Then
%>
<script language="javascript">
alert("这个用户还没有注册呢，请注册！");window.close();
response.End
</script>
<%
else
rs("userpassword")=passwd
rs.update
end if
rs.close
set rs=nothing
conn.close   
set conn=nothing   
%>
<html>

<head>
<title><%=webname%>-取回密码</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta content="<%=keyword%>" name="keywords">
<meta content="<%=description%>" name="description">
<LINK href="../css/style.css" rel=stylesheet type=text/css>
</head>
<!--#include file=webhead.asp -->
<body oncontextmenu="self.event.returnValue=false">
<div align="center">
	<table border="1" width="780" style="border-collapse: collapse" bordercolor="#E4E4E4">
		<tr>
			<td width=200>　</td>
			<td align="center">
  <table cellpadding="0" cellspacing="0" width="320" style="border-collapse: collapse" border="0">
    <tr>
      <td valign="top" width="324"> 
        <div align="center">
<center>
            <table border="0" cellpadding="0" width="99%" cellspacing="0" height="49">
              <tr>
<td width="100%" height="1">
                  <p align="center">密码设置成功,请登录！
                </td>
</tr>
</table>
</center>
</div>
</td>
</tr>
<tr>
<td height="14" width="324">
<p align="center"></td>
</tr>
</table>

			</td>
		</tr>
	</table>
<!--#include file=webfoot.asp-->
</div>

</body>

</html> 