<!--#include file="../Include/Class_Conn.asp" -->
<!--#include file="../Include/Class_Main.asp" -->
<!--#include file="../Include/Class_Pass.asp" -->
<% 
Dim Username,Password,Schid,Question,Answer,Email,Properity
Username = Replace_text(Request.Form("username")) '//用户名
Password = Replace_text(Request.Form("password")) '//密码
Randomize timer
znum = cint(8999*Rnd+1000)
Schid = "VR"&gen_key(10)&znum                     '//会员ID
Question = Replace_text(Request.Form("question")) '//问题提示
Answer = Replace_text(Request.Form("answer"))     '//提示答案
Email = Replace_text(Request.Form("mailbox"))       '//电子邮件
Properity = Replace_text(Request.Form("properity")) '//院校类型
Cityid = Replace_text(Request.Form("Cityid"))

Dim Agree
'//检验用户是否同意用户协议
Agree = Replace_text(request.form("agree"))
If Agree = "" Then
  Response.write "<script >alert('"&Cls_WebName&" 提示：\n\n对不起，您没有同意用户服务协议,请重新注册...');history.back(-1);</script>"
  Response.end
End if

Set Rs = Server.createobject("ADODB.recordset")
Rs.open "Select username,Email,Schid From [pH_School_Base] Where username='"&username&"' or Email='"&Email&"' or Schid='"&Schid&"'",conn,1,1
if not rs.eof or not rs.bof then
	if  rs("username")=username or rs("Schid")=Schid then
        CloseRs
        
		response.write "<script >alert('"&Cls_WebName&" 提示：\n\n对不起，你的帐号已经使用了,请重新选择帐号并继续注册...');history.back(-1);</script>"
		response.end
    end if
    if rs("Email") = Email then
        CloseRs
        
		response.write "<script >alert('"&Cls_WebName&" 提示：\n\n对不起，系统中有同名的邮箱,请重新选择邮箱并继续注册...');history.back(-1);</script>"
	  response.end
    end if

end if 
CloseRs


 %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../Css/Style.css" type=text/css rel=stylesheet>
<title><%= Cls_WebName %> -- 院校会员注册</title>
</head>
<script language="JavaScript" src="../js/School_Register2.js"></script>
<body>
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td bgcolor="#FFFFFF">
      <!--#include file="../Header/School_User.asp" -->
      <table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td><table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr> 
                <td width="50%" height="75" valign="bottom"><img src="../Images/reg_31.gif" width="280" height="67"></td>
                <td width="50%" valign="bottom"><img src="../Images/reg2_3.gif" width="380" height="54"></td>
              </tr>
            </table></td>
        </tr>
        <tr> 
          <td><table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr> 
                <td><hr size="1" color="#f1b5a1"></td>
              </tr>
            </table></td>
        </tr>
        <tr> 
          <td><table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr> 
                <td height="25"><FONT color=#cc0000><STRONG 
            class=font14b>第二步 详细资料</STRONG></FONT>（说明：带“<FONT 
            color=#ff0000>*</FONT>”号的为必填项）</td>
              </tr>
            </table>
            <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
              <form action="Register_Ok.asp" name="reg" method="POST" onSubmit="return check_reg();">
                <tr> 
                  <td align="center"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#f1b5a1">
                      <tr> 
                        <td valign="top" bgcolor="#FFFFFF"> <TABLE cellSpacing=0 cellPadding=0 width=99% align=center 
            border=0>
                            <TBODY>
                              <TR> 
                                <TD class=font-14 height=3></TD>
                              </TR>
                              <TR> 
                                <TD class=font-14 bgColor=#ff7800 height=21> <FONT style="MARGIN-TOP: 2px; MARGIN-LEFT: 10px" color=#ffffff><strong>基本资料</strong></FONT></TD>
                              </TR>
                              <TR> 
                                <TD bgColor=#e2e2e2 height=2></TD>
                              </TR>
                            </TBODY>
                          </TABLE>
                          <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr> 
                              <td width="17%" height="30" align="right"><STRONG><FONT 
                  color=#ff6600>*</FONT></STRONG> 院校名称：</td>
                              <td height="30"> <input name="schoolname" type="text" id="schoolname" size="50" maxlength="50" style="width:200px;">
                                如：北京大学</td>
                            </tr>
                            <tr> 
                              <td height="30" align="right" bgcolor="#fff7f0"><STRONG><FONT 
                  color=#ff6600>*</FONT></STRONG> 成立年份：</td>
                              <td height="30" bgcolor="#fff7f0"> <input name="set_year" type="text" size="4" maxlength="4">
                                年</td>
                            </tr>
                            <tr> 
                              <td height="30" align="right"><STRONG><FONT 
                  color=#ff6600>*</FONT></STRONG> 现有资产：</td>
                              <td height="30"> <input name="reg_currency" type="text" size="25" maxlength="25" style="width:100px;">
                                万元 
                                <select name="currencytype" id="currencytype" style="width:80px;">
                                  <option value="1">人民币</option>
                                  <option value="2">美元</option>
                                  <option value="3">欧元</option>
                                  <option value="4">英镑</option>
                                  <option value="5">港币</option>
                                  <option value="6">台币</option>
                                </select> </td>
                            </tr>
                            <tr> 
                              <td height="30" align="right" bgcolor="#fff7f0"><STRONG><FONT 
                  color=#ff6600>*</FONT></STRONG> 教职工人数：</td>
                              <td height="30" bgcolor="#fff7f0"> <select name="workers" id="workers" style="width:100px;">
                                  <OPTION value=9>10人以下</OPTION>
                                  <OPTION value=49>10～50人</OPTION>
                                  <OPTION value=199>50～200人</OPTION>
                                  <OPTION value=499>200～500人</OPTION>
                                  <OPTION value=999>500～1000人</OPTION>
                                  <OPTION value=1000>1000人以上</OPTION>
                                </select></td>
                            </tr>
                            <tr> 
                              <td height="30" align="right"><STRONG><FONT 
                  color=#ff6600>*</FONT></STRONG> 所在地区：</td>
                              <td height="30"> 
                                <!--#include file="../Include/Class_Locus.asp" -->
                              </td>
                            </tr>
                            <tr bgcolor="#fff7f0"> 
                              <td height="30" align="right"><STRONG><FONT 
                  color=#ff6600>*</FONT></STRONG> 院校简介：</td>
                              <td height="30"> 
                                <table width="99%" border="0" cellspacing="0" cellpadding="0">
                                  <tr> 
                                    <td width="70%"><textarea name="school_memo" cols="50" rows="8" id="school_memo"></textarea></td>
                                    <td><font color="#50463d">最大字符数5000,请尽可能详细填写资料，以确保贵院校资料顺利通过本网审核！包括：院校基本资料+招生和就业情况等</font></td>
                                  </tr>
                                </table></td>
                            </tr>
                          </table>
                          <TABLE cellSpacing=0 cellPadding=0 width=99% align=center 
            border=0>
                            <TBODY>
                              <TR> 
                                <TD class=font-14 height=3></TD>
                              </TR>
                              <TR> 
                                <TD class=font-14 bgColor=#ff7800 height=21> <FONT style="MARGIN-TOP: 2px; MARGIN-LEFT: 10px" color=#ffffff><strong>联系方式</strong></FONT></TD>
                              </TR>
                              <TR> 
                                <TD bgColor=#e2e2e2 height=2></TD>
                              </TR>
                            </TBODY>
                          </TABLE>
                          <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr> 
                              <td width="17%" height="30" align="right"><STRONG><FONT 
                  color=#ff6600>*</FONT></STRONG> 联系人：</td>
                              <td height="30"> <input name="contactperson" type="text" size="30" maxlength="30" style="width:120px;"> 
                                <font color="#50463d">请输入正确联系人，以方便可以及时联系，如：王小姐或张先生</font></td>
                            </tr>
                            <tr> 
                              <td width="17%" height="30" align="right" bgcolor="#fff7f0"><STRONG><FONT 
                  color=#ff6600>*</FONT></STRONG> 联系电话：</td>
                              <td height="30" bgcolor="#fff7f0"><input name="phone" type="text" id="phone" style="width:120px;" size="30" maxlength="30"> 
                                <font color="#50463d"> [固定电话号码，如：010-82615888] 
                                </font> </td>
                            </tr>
                            <tr> 
                              <td height="30" align="right">传真号码：</td>
                              <td height="30"><input name="fax" type="text" id="fax" style="width:120px;" size="30" maxlength="30"> 
                              </td>
                            </tr>
                            <tr> 
                              <td height="30" align="right" bgcolor="#fff7f0"><STRONG><FONT 
                  color=#ff6600>*</FONT></STRONG> 电子邮件：</td>
                              <td height="30" bgcolor="#fff7f0"> <input name="email" type="text" id="email"  style="width:200px;" value="<%= Email %>" size="50"> 
                              </td>
                            </tr>
                            <tr> 
                              <td height="30" align="right">网站地址：</td>
                              <td height="30"> <input name="webhome" type="text" size="50" style="width:200px;" value="http://"></td>
                            </tr>
                            <tr> 
                              <td height="30" align="right" bgcolor="#fff7f0"><STRONG><FONT 
                  color=#ff6600>*</FONT></STRONG> 邮政编码：</td>
                              <td height="30" bgcolor="#fff7f0"> <input name="zipcode" type="text" size="6" maxlength="6" style="width:120px;"> 
                              </td>
                            </tr>
                            <tr> 
                              <td height="30" align="right"><STRONG><FONT 
                  color=#ff6600>*</FONT></STRONG> 通讯地址：</td>
                              <td height="30"> <input name="address" type="text" size="100" style="width:260px;">
                                如：北京市海淀区成府路××号 </td>
                            </tr>
                          </table></td>
                      </tr>
                    </table></td>
                </tr>
                <tr> 
                  <td height="40" align="center"> <input type="hidden" name="username" value="<%= username %>"> 
                    <input type="hidden" name="password" value="<%= password %>"> 
                    <input type="hidden" name="Schid" value="<%= Schid %>"> 
					<input type="hidden" name="cityid" value="<%= Cityid %>"> 
					<input type="hidden" name="question" value="<%= question %>"> 
                    <input type="hidden" name="answer" value="<%= answer %>"> 
                    <input type="hidden" name="properity" value="<%= properity %>"> 
                    <input type="submit" name="Submit" value=" 完 成 注 册 " style="height:30px;"> 
                  </td>
                </tr>
              </form>
            </table></td>
        </tr>
        <tr> 
          <td>
            <!--#include file="../Include/Footer.asp" -->
          </td>
        </tr>
      </table></td>
  </tr>
</table>
</body>
</html>
