<!--#include file="pysjzx_conn.asp"-->
<!--#include file="../webconfig.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")),"'","")
set rs=Server.CreateObject("Adodb.Recordset")
sql="select * from [pysjzx_user] where username='"&username&"' "
rs.open sql,conn,1,1
If rs.eof Then
%>
<script language="javascript">
alert("这个用户还没有注册呢，请注册！");window.close();
response.End
</script>
<%
End If
%>
<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>
<script language="javascript">
<!--
function form1_onsubmit() {
if (document.form1.answer.value=="")
	{
	  alert("请输入您的问题答案。")
	  document.form1.answer.focus()
	  return false
	 }
}
// --></script>
</head>
<!--#include file=webhead.asp -->
<body oncontextmenu="self.event.returnValue=false" style="text-align: center">
<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" border="0" width="70%">
    <form method="POST" name="form1" language="javascript" onsubmit="return form1_onsubmit()" action="getpassword3.asp?username=<%=username%>">
      <tr> 
        <td align="center"> 
          <table border="0" cellpadding="0" width="100%" cellspacing="0" >
                <%if rs("question")<>"" then%>
                <tr> 
                  <td width="100%" align="center"> 
                    　</td>
                </tr>
                <tr> 
                  <td width="100%" align="center"> 
                    <p><strong>请回答下列问题</strong></td>
                </tr>
                <tr> 
                  <td width="100%" height="22" align="center"> 
                    <p>问题：<font color="red"><%
                 
                    if rs("question") = 1 then
                    	response.write "我最爱的人的名字？"
                    	end if
                    	if rs("question") = 2 then
                    	response.write "我最喜欢的物品的名称？"
                    	end if
                    	if rs("question") = 3 then
                    	response.write "我最爱的电影名称？"
                    	end if
                    	if rs("question") = 4 then
                    	response.write "中学的校名？"
                    	end if
                    	if rs("question") = 5 then
                    	response.write "我最喜欢的歌曲？"
                    	end if
                    	if rs("question") = 6 then
                    	response.write "我最喜欢的食物？"
                    	end if
                    	if rs("question") = 7 then
                    	response.write "我的初恋日期？"
                    	end if
                    	if rs("question") = 8 then
                    	response.write "我妈妈的生日？"
                    	end if
                    %></font> 
                      <%     
						conn.close     
						set conn=nothing     
					 %>
                  </td>
                </tr>
                <tr> 
                  <td width="100%" align="center"> 
                    <p>答案：<input type="text" name="answer" size="12" class="form" class=wenbenkuang>
                      <br><br>
                       <input name="imageField" type="submit" value="下一步" class=go-wenbenkuang onFocus="this.blur()">
                    <p> 如果您忘记了答案，请与管理员联系！
					 <br><a href="javascript:window.close()" class="1">关闭窗口</a> 
                  </td>
                </tr>
                <%end if%>
              </table></td>
      </tr>
    </table>
</form>　</td>
		</tr>
	</table>
</div>
</body>
<!--#include file=webfoot.asp-->
</html> 
