<% data_path="../" 'ACC连接数据库路径，对SQL无效 %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!--#include file="../conn/conn.asp"-->
<!--#include file="../inc/safe.asp"-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><%=webname%>_找回密码</title>
<link rel="stylesheet" href="<%=HOPE_InstallDir%>blue/blue.CSS" type="text/css" />
<%
if Not ChkPost then response.redirect ("chklogin.asp?login=4")
Response.Expires = 0
Response.AddHeader "Pragma", "no-cache"
Response.AddHeader "cache-control", "no-store"
%>
</head>
<!--#include file="../inc/head.asp"-->
<body>
<div class="juzhong">
 <table width="783" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<TABLE width=783 border=0 align="center" cellPadding=0 cellSpacing=0>
  <TBODY>
  <TR>
     <TD class=outborder vAlign=top align=middle width="100%">
<%	
dim user
user=Replace_Text(Request.Form("user"))
sql="select [user],question from Websen_corporation where flag=1 and  [user]='"&user&"'"
Set rs= Server.CreateObject("ADODB.Recordset") 
rs.open sql,conn,1,1
if rs.eof or rs.bof then
%>

<SCRIPT language=javascript>
//--检测登陆-->

	   function check() {

if (trim(document.Form1.user.value) =="")
{
alert("请填写您的登陆名！");
document.Form1.user.focus();
return false;
}
var filter=/^\s*[A-Za-z0-9]{6,20}\s*$/;
if (!filter.test(document.Form1.user.value)) { 
alert("登陆名填写不正确,请重新填写！可使用的字符为（A-Z a-z 0-9）长度不小于6个字符，不超过20个字符，注意不要使用空格。"); 
document.Form1.user.focus();
document.Form1.user.select();
return false; 
} 
		    
		 }

           function trim(inputString) {
	   
              if (typeof inputString != "string") { return inputString; }
              var retValue = inputString;
              var ch = retValue.substring(0, 1);
              while (ch == " ") { 
	          //检查字符串开始部分的空格
                  retValue = retValue.substring(1, retValue.length);
                  ch = retValue.substring(0, 1);
              }
              ch = retValue.substring(retValue.length-1, retValue.length);
              while (ch == " ") {
                 //检查字符串结束部分的空格
                 retValue = retValue.substring(0, retValue.length-1);
                 ch = retValue.substring(retValue.length-1, retValue.length);
              }
              while (retValue.indexOf("  ") != -1) { 
	         //将文字中间多个相连的空格变为一个空格
                 retValue = retValue.substring(0, retValue.indexOf("  ")) + retValue.substring(retValue.indexOf("  ")+1, retValue.length); 
              }
              return retValue;
           } 

//-->
</SCRIPT>


      <TABLE width="100%" border=1 cellPadding=6 cellSpacing=0 bordercolor="#F1F1F1">
        <TBODY>
        <TR>
          <TD class=L align=center bgColor=F1F1F1><span style="font-weight: bold"><FONT 
            color=#CC3300>身份确认</FONT></span></TD>
        </TR>
        <TR>
          <TD class=LL align=middle>
            <P>对不起，您的提交失败了！您提交的信息有如下错误：<br><P><FONT 
            color=#CC3300><b>用户不存在</b></FONT><BR>
            <FORM action="<%=HOPE_InstallDir%>login/getanswer1.asp" name="Form1" onSubmit="javascript:if(check()==false) return false;"
            method=post>
              请重新输入您的会员登录名： 
                  <INPUT 
            name=user maxlength="20">
                   <INPUT type=submit value="下一步" name=Submit> 
            </FORM>
                <STRONG>忘记您的登录名？<A 
            href="getmemberid.asp">请点击这里</A><BR>
                <BR>
            </STRONG></TD>
        </TR></TBODY></TABLE>
<%else%>
<table width="100%" border="1" cellpadding="6" cellspacing="0" bordercolor="#F1F1F1">
            <tr> 
              <td align="center" bgcolor="F1F1F1" class="L"><span style="font-weight: bold"><font color="#CC3300">身份确认</font></span></td>
            </tr>
            <tr> 
              <td align="center" class="LL"> <br>
                  为了保护您的帐号，我们需要进一步确认您的身份，以下内容是您注册时填写的信息。<br>
                <font color="#CC3300">您至少需要答对一项内容</font> <br>
                <br>
				<FORM action="getanswer2.asp?user=<%=rs("user")%>&question=<%=rs("question")%>" name="Form1" method=post>
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr> 
                    <td bgcolor="F1F1F1"> <table width="100%" border="0" cellspacing="1" cellpadding="4">
                        <tr> 
			 
                          <td width="30%" align="right" bgcolor="#FFFFFF" class="M"><%=rs("question")%></td>
                          <td width="70%" bgcolor="#FFFFFF"> <input name="answer" type="text" size="25" maxlength="50"> 
			  
                            <font color="0064AC"><span class="S">请回答您设置的密码提示问题</span></font></td>
                        </tr>
                        <tr> 
                          <td align="right" bgcolor="#FFFFFF" class="M">贵公司的名称是？</td>
                          <td bgcolor="#FFFFFF"><input name="qymc" type="text" size="25" maxlength="50"></td>
                        </tr>
                        <tr> 
                          <td align="right" bgcolor="#FFFFFF" class="M">贵公司的固定电话是？</td>
                          <td bgcolor="#FFFFFF"> <table width="100" border="0" cellspacing="0" cellpadding="0">
                              <tr> 
                                <td class="S">国家区号：</td>
                                <td class="S">城市区号：</td>
                                <td class="S">号码:</td>
                              </tr>
                              <tr> 
                                <td><input name="phonecountry" type="text" size="10" maxlength="6"></td>
                                <td><input name="phonearea" type="text" size="10" maxlength="20"></td>
                                <td><input name="phonenumber" type="text" size="10" maxlength="20"></td>
                              </tr>
                            </table></td>
                        </tr>
                        <tr> 
                          <td align="right" bgcolor="#FFFFFF" class="M">贵公司所在地是？</td>
                          <td bgcolor="#FFFFFF">

    <table id=div1 cellspacing=0 cellpadding=3 width="100%" 
                  border=0>
      <tbody> 
      <tr> 
        <td>
                                <SELECT style="WIDTH: 90px" 
            onchange=javascript:changeCountry1(this); name=country1>
                    </SELECT> <SELECT style="WIDTH: 60px" 
            onchange=changeProvince(this); name=province>
                      <OPTION value="" 
              selected>省份</OPTION>
                    </SELECT> <SELECT name=city>
                      <OPTION value="" 
              selected>地级城市</OPTION>
                    </SELECT>
					
	<SCRIPT language=javascript src="../js/area.js"    
      purpose="INITIALIZER"></SCRIPT>
	  <SCRIPT language=javascript>
<!--
    //设置国家1的缺省值
    for (var i=0;i<5;i++){
	    if (country1Form1.options[i].value == ''){
		    country1Form1.options[i].selected=true;
		}
	}

    for (var i=0;i<catArr1.length;i++) {
		catForm1.options[i+1]=new Option(catArr1[i].title,catArr1[i].id);
		//设置省选择框的选择值
		if(catForm1.options[i+1].value == ''){
	        	catForm1.options[i+1].selected=true;
	        }
	}
	changeProvince(catForm1);
	var len = boardForm1.options.length;
	for (var i=0;i<len;i++) {
		//设置城市选择框的选择值
		if(boardForm1.options[i].value == '') {
		    boardForm1.options[i].selected=true;
		}
	}

-->
</SCRIPT>
        </td>
      </tr>
      </tbody> 
    </table>
    
</td></tr></table></td>
</tr></table>
                <br>
                <INPUT type=submit value=下一步 >
                </form>
                <br>
              </td>
            </tr>
        </table>
		  <%end if
		  %>		
</TD></TR></TBODY></TABLE>
  <Br>
</div>
  <div class="nav_778">
   <!--#include file="../inc/end.asp"-->
   </div>
</body></html>
<%
conn.close
   set conn=nothing
%>