<!--#include file=conn.asp -->
<!--#include file=webconfig.asp -->
<%
username=request.form("username")
set rs=Server.CreateObject("Adodb.Recordset")
sql="select * from [shop_user] where username='"&username&"' "
rs.open sql,conn,1,1
If rs.eof Then
%>
<script language="javascript">
alert("这个用户还没有注册呢，请到首页注册吧！")
location.href="javascript:history.back()"
</script>
<%
End If
%>
<html>
<head>
<title>取回密码 | 回答问题</title>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css.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>

<body bgcolor="#FFFFFF" topmargin="11" leftmargin="0" oncontextmenu="self.event.returnValue=false">

<div align="center"><br><br>
  <form method="POST" name="form1" language="javascript" onsubmit="return form1_onsubmit()" action="getpwd3.asp?username=<%=username%>">
    <TABLE width=500 border=0 cellPadding=0 cellSpacing=1 bgcolor="#CCCCCC">
      <TBODY>
        <TR> 
          <TD height=25 colSpan=2 bgcolor="#FFFFFF"><FONT 
                  color=#ff6600><B>&nbsp;&nbsp;<img src="images/o.gif" width="15" height="15"> 
            <strong>回答问题</strong></B></FONT></TD>
        </TR>
        <TR> 
          <TD align=left vAlign=top bgcolor="#FFFFFF"> <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr> 
                <td align="center"> <table width="100%" border="0" cellspacing="0" cellpadding="0" height="5">
                    <tr> 
                      <td height="10"></td>
                    </tr>
                  </table>
                  <table border="0" cellpadding="0" width="99%" cellspacing="0" height="1" style="border-collapse: collapse" bordercolor="#111111">
                    <%if rs("quesion")<>"" then%>
                    <tr> 
                      <td width="100%" height="22"> <p>第二步：请回答下列问题。 </td>
                    </tr>
                    <tr> 
                      <td width="100%" height="22"> <p>问题：<%=rs("quesion")%> 
                          <%     
conn.close     
set conn=nothing     
%>
                      </td>
                    </tr>
                    <tr> 
                      <td width="100%" height="1"> <p>答案： 
                          <input type="text" name="answer" size="12" class="wenbenkuang"  >
                          <input name="Submit" type="submit" class="go-wenbenkuang" value="下一步">
                        <p> 您在个人资料中设置的提示问题为空，所以不能找回密码！如果您真的忘记了密码，请与<a href="mailto:<%=webemail%>">管理员</a>联系！ 
                          <a href="javascript:window.close()" class="1">关闭窗口</a> 
                      </td>
                    </tr>
                    <%end if%>
                  </table>
                  <table width="100%" border="0" cellspacing="0" cellpadding="0" height="5">
                    <tr> 
                      <td height="10"></td>
                    </tr>
                  </table></td>
              </tr>
            </table> </TD>
        </TR>
      </TBODY>
    </TABLE>
  </form>
</div>
</body>
</html>