<%@ Page Title="" Language="C#" MasterPageFile="~/HeadFoot.master" AutoEventWireup="true" CodeFile="register1.aspx.cs" Inherits="register" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<script type="text/javascript">
    $(document).ready(
        function() {
            $("#div_stu,#div_oth").hide();
            $('#ctl00_ContentPlaceHolder1_ddl_Identity').change(function() {
                if (this.value == '教师') {
                    $("#div_stu,#div_oth").hide();
                    $("#ctl00_ContentPlaceHolder1_txt_Grade,#ctl00_ContentPlaceHolder1_txt_Number,#ctl00_ContentPlaceHolder1_txt_Teacher,#ctl00_ContentPlaceHolder1_txt_Remark").removeClass("required");
                }
                else if (this.value == '本科生' || this.value == '研究生') {
                    $("#div_stu").show();
                    $("#ctl00_ContentPlaceHolder1_txt_Grade,#ctl00_ContentPlaceHolder1_txt_Number,#ctl00_ContentPlaceHolder1_txt_Teacher").addClass("required");
                    $("#div_oth").hide();
                    $("#ctl00_ContentPlaceHolder1_txt_Remark").removeClass("required");
                }
                else if (this.value == '其他') {
                    $("#div_oth").show();
                    $("#ctl00_ContentPlaceHolder1_txt_Remark").addClass("required");
                    $("#div_stu").hide();
                    $("#ctl00_ContentPlaceHolder1_txt_Grade,#ctl00_ContentPlaceHolder1_txt_Number,#ctl00_ContentPlaceHolder1_txt_Teacher").removeClass("required");
                }
            });
        }
    );
</script>
</asp:Content>



<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<div class="main">
    <div class="ny_banner">
        <param value="flash/other.swf" name="movie"/>
        <param value="high" name="quality"/>
        <param value="transparent" name="wmode"/>
        <embed wmode="transparent" height="164" width="1002" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" src="images/other.swf"/> 
    </div>
   <!-- 内页右侧 -->
   <div class="ny_bd">
   <div class="ny_tit">
   <h2>用户注册</h2></div>
   
   <div class="regedit">
            <ul>
              <li><label class="a12"><span class="red">*</span>用 户 名：</label>
                  <asp:TextBox ID="txt_Account" runat="server" class="reg_inp required" MaxLength="20"></asp:TextBox>
                长度在6~18之间，字母、数字、组合均可</li>
              <li><label class="a12"><span class="red">*</span>密　　码：</label>
                <asp:TextBox ID="txt_Pwd1" runat="server" class="reg_inp required" MaxLength="20" TextMode="Password"></asp:TextBox>
                长度在6~18之间，字母、数字、组合均可</li>
              <li><label class="a12"><span class="red">*</span>确认密码：</label>
                <asp:TextBox ID="txt_Pwd2" runat="server" class="reg_inp required" MaxLength="20" TextMode="Password"></asp:TextBox>
              </li>
              <li><label class="a12"><span class="red">*</span>真实姓名：</label>
                <asp:TextBox ID="txt_Name" runat="server" class="reg_inp required" MaxLength="20"></asp:TextBox>
              </li>
              <li><label class="a12"><span class="red">*</span>性　　别：</label>
                <asp:RadioButton ID="rb_Men" runat="server" GroupName="radio" Checked="true" /><span style="color:Black; margin-left:5px; margin-right:20px;">男</span>
                <asp:RadioButton ID="rb_Women" runat="server" GroupName="radio" /><span style="color:Black; margin-left:5px;">女</span>
              </li>
              <li><label class="a12"><span class="red">*</span>身　　份：</label>
                <asp:DropDownList ID="ddl_Identity" runat="server" class="reg_sel Password" >
                <asp:ListItem>教师</asp:ListItem>
                <asp:ListItem>本科生</asp:ListItem>
                <asp:ListItem>研究生</asp:ListItem>
                <asp:ListItem>其他</asp:ListItem>
                </asp:DropDownList>
              </li>
              <div id="div_stu">
              <li><label class="a12"><span class="red">*</span>年　　级：</label>
                <asp:TextBox ID="txt_Grade" runat="server" class="reg_inp" MaxLength="20"></asp:TextBox>
              </li>
              <li><label class="a12"><span class="red">*</span>学　　号：</label>
                <asp:TextBox ID="txt_Number" runat="server" class="reg_inp" MaxLength="20"></asp:TextBox>
              </li>
              <li><label class="a12"><span class="red">*</span>指导老师：</label>
                <asp:TextBox ID="txt_Teacher" runat="server" class="reg_inp" MaxLength="20"></asp:TextBox>
              </li>
              </div>
              <div id="div_oth">
              <li><label class="a12"><span class="red">*</span>备　　注：</label>
                <asp:TextBox ID="txt_Remark" runat="server" class="reg_inp" MaxLength="20"></asp:TextBox>
              </li>
              </div>
              <li>请在注册前仔细查看<a href="javascript:void(0);" class="blue">《浙江理工大学心理学实验教学中心用户注册协议》</a>。</li>
              <li style="padding-left:130px;"><asp:ImageButton ID="imgbtn_ok" runat="server" ImageUrl="~/images/reg_3.gif" width="157" height="26" onclick="imgbtn_ok_Click" /> </li>
            </ul>
            <div class="reg_xieyi">
                <asp:Literal ID="lit_xieyi" runat="server"></asp:Literal>
                <!--article content:end-->
            </div>
          </div>


    </div>
    <div class="clear"></div>
  </div>

</asp:Content>

