<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>用户注册</title>
<link href="user.css" rel="stylesheet" type="text/css" />
<link href="style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" language="javascript" src="js/jquery.js"></script>
<script type="text/javascript" language="javascript" src="js/site.js"></script>
</head>
<!--#include file="inc/conn.asp"-->
<!--#include file="inc/Config.asp"-->
<body>
<!--#incl ude file="utop.asp"-->
<table width="1000" border="0" align="center" cellpadding="3" cellspacing="6" bgcolor="#178E4C">
  <tr>
    <td bgcolor="#FFFFFF" style="border:#CCCCCC solid 1px;">
	<form action="submit.asp" name="frm" method="post" onsubmit="return chkreg()">
	<input type="hidden" name="action" value="reg" />
	<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td style="border-bottom:#CCCCCC solid 1px;"> <img src="images/zxj_03.jpg" width="150" height="45" /></td>
      </tr>
      <tr>
        <td height="10" >&nbsp;</td>
      </tr>
      <tr>
        <td height="35" class="bigc">&nbsp;会员基本信息</td>
      </tr>
      <tr>
        <td height="35"><table width="95%" border="0" align="center" cellpadding="3" cellspacing="2">
          <tr>
            <td height="30" align="right">用户类型 * </td>
            <td>
			<%
			For i=0 TO UBOUND(UserClass)
				checked=""
				IF i=0 Then checked="checked"
				Response.Write "<input type='radio' name='VipGroup' value='"& UserClass(i,0) &"' "&checked&" /> " & UserClass(i,1)
			Next
			%>			</td>
          </tr>
          <tr>
            <td width="120" height="30" align="right">会员用户名 * </td>
            <td><input name="username" type="text" class="boxb" id="username" maxlength="50" /> 
            <span id="username_msg">会员用户名只能输入数字或字母,不少于6个字符!</span></td>
          </tr>
          <tr>
            <td height="30" align="right">登录密码 * </td>
            <td><input name="pwd" type="password" class="boxb" id="pwd" maxlength="50" /> 
            <span id="pwd_msg">密码不少于6个数字或字母!</span></td>
          </tr>
          <tr>
            <td height="30" align="right">再次输入密码 * </td>
            <td><input name="pwd2" type="password" class="boxb" id="pwd2" maxlength="50" /> 
            <span id="pwd_msg">密码不少于6个数字或字母!</span></td>
          </tr>
          <tr>
            <td height="30" align="right">电子邮箱 * </td>
            <td><input name="email" type="text" class="boxb" id="email" maxlength="50" /> 
            <span id="email_msg"></span></td>
          </tr>
          <tr>
            <td height="30" align="right">验证码 * </td>
            <td>
			<input name="ChkCode" id="ChkCode" type="text" class="boxb" style="width:50px" maxlength="4" />
            <img src="code.asp" onClick="this.src=this.src+'?'"> <span id="ChkCode_msg"></span>			</td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td height="35" class="bigc">&nbsp;个人信息</td>
      </tr>
      <tr>
        <td height="35"><table width="95%" border="0" align="center" cellpadding="3" cellspacing="2">
          <tr>
            <td width="120" height="30" align="right">真实姓名 * </td>
            <td><input name="realname" type="text" class="boxb" id="realname" maxlength="20" /> 
            <span id="realname_msg"></span></td>
          </tr>
          <tr>
            <td height="30" align="right">性别 * </td>
            <td><input type="radio" name="usersex" value="male" checked="checked" />
              男
                <input type="radio" name="usersex" value="female" /> 
                女</td>
          </tr>
          <tr>
            <td height="30" align="right">手机号码 * </td>
            <td><input name="mtel" type="text" class="boxb" id="mtel" maxlength="20" /> 
            <span id="mtel_msg"></span></td>
          </tr>
          <tr>
            <td height="30" align="right">QQ * </td>
            <td><input name="qq" type="text" class="boxb" id="qq" maxlength="15" /> 
            <span id="qq_msg"></span></td>
          </tr>
          <tr>
            <td height="30" align="right">现所在地 * </td>
            <td>
              <select name="province" style="width:100px" onchange="GetCity(this.options[this.selectedIndex].value)">
			    <%
				Call ConnectionDataBase()
				Sql="Select provinceID,province From T_Province"
				SetRs Rs,Sql,conn,1,1
				IF Not Rs.Eof Then
				provinceID=Rs("provinceID")
				Do While Not Rs.eof
				%>
                <option value="<%=Rs("ProvinceID")%>"><%=Rs("Province")%></option>
				<%
				Rs.movenext
				Loop
				End IF
				DisRs Rs
				%>
              </select>
              <select name="city" id="city" style="width:100px" onchange="GetArea(this.options[this.selectedIndex].value)">
                <%
				Sql="Select cityID,city From T_City Where father='"& provinceID &"'"
				SetRs Rs,Sql,conn,1,1
				IF Not Rs.Eof Then
				cityID=Rs("cityID")
				Do While Not Rs.eof
				%>
                <option value="<%=Rs("cityID")%>"><%=Rs("city")%></option>
				<%
				Rs.movenext
				Loop
				End IF
				DisRs Rs
				%>
              </select>
			  <select name="area" id="area" style="width:100px">
                <%
				Sql="Select areaID,area From T_Area Where father='"& cityID &"'"
				SetRs Rs,Sql,conn,1,1
				IF Not Rs.Eof Then
				Do While Not Rs.eof
				%>
                <option value="<%=Rs("areaID")%>"><%=Rs("area")%></option>
				<%
				Rs.movenext
				Loop
				End IF
				DisRs Rs
				Call CloseDatabase
				%>
              </select>            </td>
          </tr>
          
        </table></td>
      </tr>
      <tr>
        <td height="35"  class="bigc">密码问答（为找回密码时使用，请牢记）</td>
      </tr>
      <tr>
        <td height="35"><table width="95%" border="0" align="center" cellpadding="3" cellspacing="2">
          <tr>
            <td width="120" height="30" align="right">问题： * </td>
            <td><select name="question" id="question" style="width:100px" onchange="GetCity(this.options[this.selectedIndex].value)">
              <option value="a">给自己起个别名吧</option>
              <option value="b">我的名字是什么</option>
              <option value="c">我最喜欢的运动是什么</option>
                          </select></td>
          </tr>
          
          <tr>
            <td height="30" align="right">回答： * </td>
            <td><input name="answer" type="text" class="boxb" id="answer" maxlength="15" />
                <span id="answer_msg"></span></td>
          </tr>
          
        </table></td>
      </tr>
      
      <tr>
        <td height="35" align="center"><input type="image" src="images/zxj_07.jpg" width="261" height="47" /></td>
      </tr>
    </table>
	</form>
	</td>
    <td width="200" valign="top" bgcolor="#F1F1F1">&nbsp;</td>
  </tr>
</table>
</body>
</html>
