<%@ page language="C#" autoeventwireup="true" inherits="Passport_UserReg, HoWaveVGO" enableeventvalidation="false" debug="true" %>
<!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 id="Head1" runat="server">
    <title>会员注册</title>
    <link href="Css/PassportStyleSheet.css" rel="stylesheet" type="text/css" />
     <script src="Js/passport.js" type="text/javascript"></script>  
</head>
<body style="margin-top:5px;">    

     <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true"/>  
        <div id="Reg_form"> 
          <table class="reg_table"  cellpadding="0" cellspacing="0" border="0">
         
             <tr>
                 <th><span>*</span>通行证用户名：</th>
                 <td><asp:TextBox ID="UserName" runat="server" CssClass="reg_textbox"  MaxLength="50"/></td>
                 <td><span id="reg_UserName" class="reg_tips_onclick"><asp:literal ID="RegNameLength" runat="server" />个字符(<asp:Literal ID="RegNameFormat" runat="server" />)，注册之后用户名不能修改。</span>
                    
                 </td>
             </tr>
             <tr>
                 <th><span>*</span>通行证密码：</th>
                 <td><asp:TextBox ID="UserPassword" runat="server" CssClass="reg_textbox" TextMode="Password" MaxLength="16"/>
  
                 </td>
                 <td><div id="reg_UserPassword" class="reg_tips_onclick"> 密码长度至少由6个字符组成，密码强度：
                    <asp:Panel ID="ShowPasswordCheck" runat="server">
                          <ajaxToolkit:PasswordStrength ID="PasswordStrength2" runat="server" TargetControlID="UserPassword"  
                                       StrengthIndicatorType="BarIndicator"
                                       BarBorderCssClass="BarBorder"
                                       BarIndicatorCssClass="BarIndicatorStyle"
                                       TextCssClass="TextIndicator_TextBox1" 
                                       PreferredPasswordLength="16" 
                                       PrefixText="Strength"
                                       HelpStatusLabelID="TextBox1_HelpLabel"
                                       MinimumNumericCharacters="1"
                                       MinimumSymbolCharacters="1"
                                       RequiresUpperAndLowerCaseCharacters="true" /> 
                       </asp:Panel></div>
                    
                 </td>
             </tr>
             <tr>
                 <th>请再输入一次密码：</th>
                 <td><asp:TextBox ID="RePassword" runat="server" CssClass="reg_textbox" TextMode="Password"/></td>
                 <td><div id="reg_RePassword" class="reg_tips_onclick">请再输入一遍您上面输入的密码。 </div>
                    
                 </td>
             </tr>
             <tr>
                 <th><span>*</span>接收邮件地址：</th>
                 <td><asp:TextBox ID="UserEmail" runat="server" CssClass="reg_textbox"/></td>
                 <td><div id="reg_UserEmail" class="reg_tips_onclick">当你忘记密码时用于将密码发回你所填写的邮件另外还将用于注册验证</div>
                     
                 </td>
             </tr>
             <tr>
                 <th><span>*</span>密码提示问题：</th>
                 <td><asp:DropDownList ID="UserQuestion" runat="server" CssClass="reg_textsel" >
                             <asp:ListItem Text="请选择" Value=""  Selected="True" />
                            <asp:ListItem>我最好的朋友是谁？</asp:ListItem>
                            <asp:ListItem>我最喜爱的颜色？</asp:ListItem>
                            <asp:ListItem>我最喜爱的影星？</asp:ListItem>
                            <asp:ListItem>我的宠物名字？</asp:ListItem>
                            <asp:ListItem>我最喜爱的食物？</asp:ListItem>
                            <asp:ListItem>我最大的爱好？</asp:ListItem>
                            <asp:ListItem>我最喜欢的卡通人物名字？</asp:ListItem>
                            <asp:ListItem>我母亲/父亲的生日？</asp:ListItem>
                            <asp:ListItem>我最喜欢的运动队全称？</asp:ListItem>
                            <asp:ListItem>我最欣赏的一位名人的名字？</asp:ListItem>
                            <asp:ListItem>我的座右铭是？</asp:ListItem>
                            <asp:ListItem>我最喜欢的一句影视台词？</asp:ListItem>
                            <asp:ListItem>我中学校名全称是什么？</asp:ListItem>
                         </asp:DropDownList></td>
                 <td><div id="reg_UserQuestion" class="reg_tips_onclick">请选择问题</div></td>
             </tr>
             <tr>
                 <th><span>*</span>密码提示答案：</th>
                 <td><asp:TextBox ID="UserAnswer" runat="server" CssClass="reg_textbox"/></td>
                 <td><div id="reg_UserAnswer" class="reg_tips_onclick">6个字符、数字或3个汉字以上（包括6个）。</div></td>
             </tr>
             <asp:PlaceHolder ID="RegProtected" runat="server" Visible="false">
               <tr>
                 <td colspan="3">
                        <div class="reg_row">
                           <div class="reg_div_left">注册回答问题：</div>
                           <div class="reg_div_right">
                              <div style="float:left;"><asp:Literal ID="RegCheckQuestion" runat="server" /></div>                  
                           </div>   
                        </div>
                        <div class="reg_row">
                           <div class="reg_div_left">注册回答答案：</div>
                           <div class="reg_div_right">
                              <div style="float:left;"><asp:TextBox ID="ReqCheckAnswer" runat="server" /></div>                  
                           </div>   
                        </div>
                 </td>               
              </tr>
             </asp:PlaceHolder>
                
             <tr>
                 <th>性别：</th>
                 <td><asp:RadioButtonList ID="UserSex" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                           <asp:ListItem Text="男" Value="0" Selected="True" />
                           <asp:ListItem Text="女" Value="1" />
                         </asp:RadioButtonList></td>
                 <td></td>
             </tr>
             <tr id="EnableRegCheckCode" runat="server">
                 <th><span>*</span>校验码：</th>
                 <td>
                     <div style="float:left"><asp:TextBox ID="CheckCode" runat="server" Width="100px"  MaxLength="5"/></div>
                     <div id="ImgCheckCode" style="float:left"></div>
                 </td>
                 <td class="reg_tips">
                     <div id="Y_CheckCode"><a id="hlRefreshCheckcode" class="ColorMetalBlue" href="javascript:refreshCode();">看不到图片？点击这里。</a></div>
                     <div id="W_CheckCode"> <asp:RequiredFieldValidator ID="ValCode" runat="server" ErrorMessage="请输入验证码" ControlToValidate="CheckCode"/></div>
                 </td>
             </tr>         
         </table>  
         <!--注册认证方式-->
         <div id="reg_identiy"></div>       
         <!--注册选填项，后台控制--->
         <div style="width:100%; padding-top:10px;">
             <input type="checkbox" value="1"  onclick="readagreement();" id="read_agreement"/>阅读注册服务协议
         </div>       
         <div  align="center">
             <asp:Literal ID="wait" runat="server" />
        </div>
        <div  style="text-align:center; padding:10px 0">
          <asp:Button ID="RegSubmitButton" runat="server" Text="同意以下条款，提交注册信息" OnClick="Button1_Click"   />
       </div>
     
      <!--注册协议区-->
      <div id="reg_agreement" style="display:none;" >
         <div class="regtitle_style">
            <label>阅读<asp:literal ID="reg_title" runat="server" />服务协议</label>
         </div>
         <div id="content">
             <asp:Label ID="reg_content" runat="server" CssClass="regcontent" EnableViewState="false"  Height="200px" />
         </div>
      </div>  
    </div>
   
            
      <asp:HiddenField ID="H_MinName" runat="server" />
      <asp:HiddenField ID="H_MaxName" runat="server" />
      <asp:HiddenField ID="H_RegIPType" runat="server" />
      <asp:HiddenField ID="H_RegMinute" runat="server" />
      <asp:HiddenField ID="H_RegAnserCheck" runat="server" />
      <asp:HiddenField ID="H_ComeUrl" runat="server" />
      <asp:HiddenField ID="HiddenField7" runat="server" />
      <asp:HiddenField ID="HiddenField8" runat="server" />        
   
      <br /> 
       <asp:RequiredFieldValidator ID="UserNameReq" runat="server" ErrorMessage="<span class='ErrStyle'>会员名不能为空</span>" ControlToValidate="UserName" Display="None" />   
       <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="NReqE" CloseImageUrl="Images/dialog/dialogCloseF.gif" 
            TargetControlID="UserNameReq" 
            HighlightCssClass="validatorStyle" 
               />
       <asp:RequiredFieldValidator ID="UserPasswordReq" runat="server" ErrorMessage="<span class='ErrStyle'>密码不能为空</span>" ControlToValidate="UserPassword" Display="None"/>
       <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="PReqE" CloseImageUrl="Images/dialog/dialogCloseF.gif" 
            TargetControlID="UserPasswordReq" 
            HighlightCssClass="validatorStyle" 
               /> 
       <asp:RequiredFieldValidator ID="UserPasswordRepass" runat="server" ErrorMessage="<span class='ErrStyle'>重复密码不能为空</span>" ControlToValidate="RePassword" Display="None"/>
       <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender1" CloseImageUrl="Images/dialog/dialogCloseF.gif" 
            TargetControlID="UserPasswordRepass" 
            HighlightCssClass="validatorStyle" 
               />
       <asp:CompareValidator ID="RePasswordReq" runat="server" ErrorMessage="<span class='ErrStyle'>两次输入密码不正确</span>" ControlToValidate="RePassword" ControlToCompare="UserPassword"  Display="None"  /> 
       <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender2" CloseImageUrl="Images/dialog/dialogCloseF.gif" 
            TargetControlID="RePasswordReq" 
            HighlightCssClass="validatorStyle" 
               />
                    
       <asp:RequiredFieldValidator ID="EmialRQ" runat="server" ErrorMessage="<span class='ErrStyle'>邮箱不能为空</span>" ControlToValidate="UserEmail" Display="None"/>
       <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="EQReqE" CloseImageUrl="Images/dialog/dialogCloseF.gif" 
            TargetControlID="EmialRQ" 
            HighlightCssClass="validatorStyle" 
               />         
       <asp:RegularExpressionValidator ID="EmailReq"  ControlToValidate="UserEmail" runat="server" ErrorMessage="<span class='ErrStyle'>输入邮箱格式不正确</span>" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Display="None"/>
       <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="EReqE" CloseImageUrl="Images/dialog/dialogCloseF.gif" 
            TargetControlID="EmailReq" 
            HighlightCssClass="validatorStyle" 
               />
             
       <asp:RequiredFieldValidator ID="Rfv_answer" runat="server" ErrorMessage="<span class='ErrStyle'>请输入答案</span>" ControlToValidate="UserAnswer" Display="none"/>
        <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="QReqE" CloseImageUrl="Images/dialog/dialogCloseF.gif" 
            TargetControlID="Rfv_answer" 
            HighlightCssClass="validatorStyle" 
               /> 
      
       
    </form>
   
</body>
</html>
