<!--#include file="../inc/safe.asp"-->
<!--#include file="../conn/conn.asp"-->
<%
if Not ChkPost then response.redirect ("chklogin.asp?login=4")
Response.Expires = 0
Response.AddHeader "Pragma", "no-cache"
Response.AddHeader "cache-control", "no-store"
%>
<!--#include file="head1.asp"-->

<Br><Br>
<TABLE width=750 border=0 align="center" cellPadding=0 cellSpacing=0>
  <TBODY>
  <TR>
    <TD vAlign=top width="1%"><IMG height=166 
      src="images/join_pic1.gif" width=154 align=absMiddle></TD>
    <TD 
    style="BORDER-RIGHT: #bbd6f1 1px solid; BORDER-TOP: #bbd6f1 1px solid; BORDER-LEFT: #bbd6f1 1px solid; BORDER-BOTTOM: #bbd6f1 1px solid" 
    vAlign=top align=middle width="100%" bgColor=#ffffdd>
<%	
user=Replace_Text(request("user"))
question=Replace_Text(request("question"))

answer=Replace_Text(request.form("answer"))
qymc=Replace_Text(request.form("qymc"))
phonecountry=Replace_Text(request.form("phonecountry"))
phonearea=Replace_Text(request.form("phonearea"))
phonenumber=Replace_Text(request.form("phonenumber"))
phone=phonecountry&"&nbsp;"&phonearea&"&nbsp;"&phonenumber
country1=Replace_Text(request.form("country1"))
country2=Replace_Text(request.form("country2"))
if country1="中国" then
country=country1
sf=Replace_Text(request.form("province"))
city=Replace_Text(request.form("city"))
sql="select user,answer,qymc,phone,country,sf,city,email from corporation where [user]='"&user&"' and (answer='"&answer&"' or qymc='"&qymc&"' or phone='"&phone&"' or (country='"&country&"' and sf='"&sf&"' and city='"&city&"'))"
else
country=country2
sql="select answer,qymc,phone,country,email from corporation where [user]='"&user&"' and (answer='"&answer&"' or qymc='"&qymc&"' or phone='"&phone&"' or country='"&country&"')"
end if
'response.write sql
Set rs= Server.CreateObject("ADODB.Recordset") 
rs.open sql,conn,1,1
if rs.eof or rs.bof then
%>
      <table width="100%" border="0" cellspacing="0" cellpadding="6">
            <tr> 
              <td align="center" bgcolor="EBF4FF" class="L"><font color="#CC3300">身份确认</font></td>
            </tr>
            <tr> 
              <td align="center" class="LL"> <br>
                  <font color="#CC3300"><b>对不起，您提交的信息均不正确！</b></font><br>
                <br>请重新填写信息，再提交一次： <br>
                <br>
				<FORM action="getanswer2.asp?user=<%=user%>&question=<%=question%>" name="Form1" method=post>
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr> 
                    <td bgcolor="F0ECBF"> <table width="100%" border="0" cellspacing="1" cellpadding="4">
                        <tr> 
			 
                          <td width="30%" align="right" bgcolor="#FFFFFF" class="M"><%=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>
<%else
'执行发邮件程序
%>
<table width="100%" border="0" cellspacing="0" cellpadding="6">
            <tr> 
              <td align="center" bgcolor="EBF4FF" class="L"><font color="#CC3300">身份确认完毕</font></td>
            </tr>
            <tr> 
              <td align="center" class="LL"> <br>
                  我们已经确认您的身份，并给您的邮箱<font color="#CC3300"><%=rs("email")%></font>发送了一封邮件；<br>
                <Br>请查收邮件，根据邮件内容重设密码，恢复帐号使用功能。 <br>
                <br>
              </td>
            </tr>
          </table>
		  <%end if
		  conn.close
		  set conn=nothing%>		
		</TD></TR></TBODY></TABLE>
<Br><Br>
<!--#include file="../inc/end.asp"-->