<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="register.aspx.cs" Inherits="personal_register" %>

<!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">

<script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>

    <title>用户注册</title>
 <style >
 
     .style1
     {
         color: #FFFFFF;
     }
     .style2
     {
         font-size: x-large;
     }
 
     .style7
     {
         font-family: 楷体;
     }
 
     .style8
     {
         width: 546px;
         height: 757px;
     }
     .style9
     {
         height: 36px;
         text-align: left;
         width: 45px;
     }
 
     .style10
     {
         height: 36px;
         text-align: right;
         width: 97px;
     }
     .style11
     {
         text-align: right;
     }
     .style12
     {
         height: 36px;
         Width:297px;
         text-align: left;
     }
     .style13
     {
         text-align: left;
         width: 297px;
     }
 
     .style14
     {
         width: 45px;
         text-align: left;
     }
 
     .style15
     {
         text-align: right;
         width: 97px;
     }
 
 </style>


<SCRIPT type="text/javascript">

function yjdh(strsfzh) {
if (strsfzh.length > 0)
{  document.getElementById("<%=Label23.ClientID%>").innerHTML="*" ;
return true;
}
else
document.getElementById("<%=Label23.ClientID%>").innerHTML="应急电话不能为空！" ;
return false;
}


function ybrgx(strsfzh) {
if (strsfzh.length > 0)
{  document.getElementById("<%=Label24.ClientID%>").innerHTML="*" ;
return true;
}
else
document.getElementById("<%=Label24.ClientID%>").innerHTML="不能为空！" ;
return false;
}


function yjlxr(strsfzh) {
if (strsfzh.length > 0)
{  document.getElementById("<%=Label25.ClientID%>").innerHTML="*" ;
return true;
}
else
document.getElementById("<%=Label25.ClientID%>").innerHTML="应急联系人不能为空！" ;
return false;
}


function grqq(strsfzh) {
if (strsfzh.length > 0)
{  document.getElementById("<%=Label26.ClientID%>").innerHTML="*" ;
return true;
}
else
document.getElementById("<%=Label26.ClientID%>").innerHTML="个人QQ不能为空！" ;
return false;
}


function gremail(strEmail) {
if (strEmail.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1)
{
document.getElementById("<%=Label27.ClientID%>").innerHTML="*" ;
return true;
}
else

document.getElementById("<%=Label27.ClientID%>").innerHTML="个人邮箱格式不正确！" ;
return;
}

function gzqq(strsfzh) {
if (strsfzh.length > 0)
{  document.getElementById("<%=Label28.ClientID%>").innerHTML="*" ;
return true;
}
else
document.getElementById("<%=Label28.ClientID%>").innerHTML="工作QQ不能为空！" ;
return false;
}


function lxdz(strsfzh) {
if (strsfzh.length > 0)
{  document.getElementById("<%=Label30.ClientID%>").innerHTML="*" ;
return true;
}
else
document.getElementById("<%=Label30.ClientID%>").innerHTML="！" ;
return false;
}

function jtdz(strsfzh) {
if (strsfzh.length > 0)
{  document.getElementById("<%=Label31.ClientID%>").innerHTML="*" ;
return true;
}
else
document.getElementById("<%=Label31.ClientID%>").innerHTML="！" ;
return false;
}


function jtdh(strsfzh) {
if (strsfzh.length > 0)
{  
return true;
}
else
return false;
}


function sfzh(strsfzh) {
if (strsfzh.length > 14)
{  document.getElementById("<%=Label34.ClientID%>").innerHTML="*" ;
return true;
}
else
document.getElementById("<%=Label34.ClientID%>").innerHTML="身份证号输入错误！" ;
return false;
}

function lxdh(strsfzh) {
if (strsfzh.length > 0)
{  document.getElementById("<%=Label33.ClientID%>").innerHTML="*" ;
return true;
}
else
document.getElementById("<%=Label33.ClientID%>").innerHTML="联系电话不能为空！" ;
return false;
}



function isEmail(strEmail) {
if (strEmail.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1)
{
document.getElementById("<%=Label29.ClientID%>").innerHTML="*" ;
return true;
}
else

document.getElementById("<%=Label29.ClientID%>").innerHTML="邮箱格式不正确！" ;
return;
}

function username(strname) {
if (strname.length > 0)
{ 
return true;
}
else

return false;
}

function username1(strname) {
if (strname.length > 0)
{  document.getElementById("<%=Label38.ClientID%>").innerHTML="*" ;
return true;
}
else
document.getElementById("<%=Label38.ClientID%>").innerHTML="真实姓名不允许为空！" ;
return false;
}


function userpass(strname) {
if (strname.length > 5)
{  document.getElementById("<%=Label36.ClientID%>").innerHTML="*" ;
return true;
}
else
document.getElementById("<%=Label36.ClientID%>").innerHTML="密码不能小于六位！" ;
}


</SCRIPT>


</head>
<body style="border:0">
    <form id="form1" runat="server">
        <div>

                 <div style="background-image:url(../App_Themes/image/01.png); width:100%;height:280px; top:0px; left:0px; right:0px">
                 <br />
                 <br />
                   &nbsp;&nbsp;&nbsp;<asp:Image ID="Image1" runat="server" 
                         ImageUrl="~/App_Themes/image/03.png" Height="192px" Width="235px" />
                   
                        <div style="right:20px;height: 44px; width:100%; text-align: right;">
                        <a style="text-align:right"><span class="style1"><span class="style2">
                            <span><asp:Image ID="Image2" runat="server" ImageUrl="~/App_Themes/image/_06.jpg" />
                         &nbsp;&nbsp; &nbsp<a href="Staffmanagemen.aspx" style="text-decoration:none"> 用户</a>
                         
                        &nbsp;&nbsp;&nbsp;
                          <asp:Image ID="Image3" runat="server" ImageUrl="~/App_Themes/image/_06.jpg" />
                          &nbsp;&nbsp;&nbsp; 登录&nbsp;&nbsp;&nbsp;
                          <asp:Image ID="Image4" runat="server" ImageUrl="~/App_Themes/image/_06.jpg" />
                           &nbsp;&nbsp;&nbsp;&nbsp;返回&nbsp;&nbsp;
                          <asp:Image ID="Image5" runat="server" ImageUrl="~/App_Themes/image/_06.jpg" />
                            </span>&nbsp;&nbsp;&nbsp;
                          </span></span>
                          </a> 
                     </div>
                     
                     </div>
                
          
        </div>
        <br />
       <div style="line-height:28px">
                <center>
                    <asp:Label ID="Label1" runat="server" Text="用户注册" 
                        style="font-size: xx-large; font-family: 楷体; font-weight: 700;"></asp:Label><br />
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Label ID="Label39" runat="server" 
                        style="font-size: 11pt; font-family: 楷体_GB2312; color: #FF0000" Text="注：带*为必填项"></asp:Label>
                    <br />
                   <table class="style8" >
                        <tr>
                            <td class="style10">
                 <asp:Label ID="Label2" runat="server" Text="编号：" 
                                    style="font-family: 楷体; text-align: right;"></asp:Label>
                            </td>
                            <td class="style12">
                 <asp:TextBox ID="TextNumber" runat="server" ></asp:TextBox>
                            </td>
                            <td class="style9">
                            </td>
                        </tr>
                        <tr>
                            <td class="style15">
                 <asp:Label ID="Label3" runat="server" Text="职位：" style="font-family: 楷体; text-align: right;"></asp:Label>
                            </td>
                            <td class="style13">
                    <asp:DropDownList ID="DropDownList1" runat="server" style="margin-left: 0px" Width="101px" 
                                    onselectedindexchanged="DropDownList1_SelectedIndexChanged1"    AutoPostBack="True" 
                                    >
                                      <asp:ListItem Value="0">请选择</asp:ListItem>
       
                    </asp:DropDownList>
                    <asp:DropDownList ID="DropDownList2" runat="server" Width="111px">
                     <asp:ListItem Value="0">请选择</asp:ListItem>
                    </asp:DropDownList>
                            </td>
                            <td class="style14">
                                &nbsp;</td>
                        </tr>
                        
                        <tr>
                            <td class="style15">
                    <asp:Label ID="Label5" runat="server" style="font-family: 楷体" Text="用户名："></asp:Label>
                            </td>
                            <td class="style13">
                    <asp:TextBox ID="TextLoginName" runat="server" Width="147px" onblur=username(this.value)></asp:TextBox>
                                &nbsp;&nbsp;&nbsp;<asp:Label ID="Label37" runat="server" Text="*" 
                                    style="color: #FF0000; font-size: small;" Visible="False"></asp:Label>
                                <asp:Button ID="btn" runat="server" Height="20px" Text="检  测" Width="72px" 
                                    onclick="btn_Click" BackColor="#CCCCCC" />
                            </td>
                            <td class="style14">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td class="style15">
                    <asp:Label ID="Label6" runat="server" style="font-family: 楷体" Text="密码："></asp:Label>
                            </td>
                            <td class="style13">
                    <asp:TextBox ID="TextPwd" runat="server" TextMode="Password" Width="148px" onblur=userpass(this.value)></asp:TextBox>
                                &nbsp;&nbsp;
                                <asp:Label ID="Label36" runat="server" Text="*" 
                                    style="color: #FF0000; font-size: small;"></asp:Label>
                            </td>
                            <td class="style14">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td class="style15">
                    <asp:Label ID="Label7" runat="server" style="font-family: 楷体" Text="确认密码："></asp:Label>
                            </td>
                            <td class="style13">
                    <asp:TextBox ID="TextPwd1" runat="server" TextMode="Password" Width="148px"></asp:TextBox>
                                &nbsp;&nbsp;
                                <asp:Label ID="Label35" runat="server" Text="*" 
                                    style="color: #FF0000; font-size: small;"></asp:Label>
                            </td>
                            <td class="style14">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td class="style15">
                    <asp:Label ID="Label21" runat="server" style="font-family: 楷体" Text="性别："></asp:Label>
                            </td>
                            <td class="style13">
                    <asp:RadioButton ID="RadioButton1" runat="server" Text="男" GroupName="Sex" Checked=true />
                    <asp:RadioButton ID="RadioButton2" runat="server" Text="女" GroupName="Sex" />
                            </td>
                            <td class="style14">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td class="style15">
                    <asp:Label ID="Label22" runat="server" style="font-family: 楷体" Text="出生日期："></asp:Label>
                            </td>
                            <td class="style13">
                                <asp:TextBox ID="TextBox20" runat="server" onfocus="WdatePicker()" ></asp:TextBox>
                                &nbsp;
                                <asp:Label ID="Label40" runat="server" Text="*" style="color: #FF0000; font-size: small;" 
                                ></asp:Label>
                                </td>
                            <td class="style14">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td class="style15">
                    <asp:Label ID="Label4" runat="server" style="font-family: 楷体" Text="真实姓名："></asp:Label>
                            </td>
                            <td class="style13">
                    <asp:TextBox ID="TextPersonnelName" runat="server" 
                                    onblur=username1(this.value)></asp:TextBox>
                                &nbsp;
                                <asp:Label ID="Label38" runat="server" Text="*" style="color: #FF0000; font-size: small;" 
                                ></asp:Label>
                            </td>
                            <td class="style14">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td class="style15">
                                <asp:Label ID="Label8" runat="server" style="font-family: 楷体" Text="身份证号："></asp:Label>
                            </td>
                            <td class="style13">
                    <asp:TextBox ID="TextIdCardNum" runat="server"   onblur=sfzh(this.value)></asp:TextBox>
                                &nbsp;&nbsp;<asp:Label ID="Label34" runat="server" Text="*" 
                                    style="color: #FF0000; font-size: small;"></asp:Label>
                            </td>
                            <td class="style14">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td class="style15">
                                <asp:Label ID="Label9" runat="server" style="font-family: 楷体" Text="联系电话："></asp:Label>
                            </td>
                            <td class="style13">
                    <asp:TextBox ID="TextCallPhone" runat="server" onblur=lxdh(this.value)></asp:TextBox>
                                &nbsp;
                                <asp:Label ID="Label33" runat="server" Text="*" 
                                    style="color: #FF0000; font-size: small;"></asp:Label>
                            </td>
                            <td class="style14">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td class="style15">
                                <asp:Label ID="Label10" runat="server" style="font-family: 楷体" Text="家庭电话："></asp:Label>
                            </td>
                            <td class="style13">
                    <asp:TextBox ID="TextPhone" runat="server" onblur=jtdh(this.value)></asp:TextBox>
                                &nbsp;&nbsp;<asp:Label ID="Label32"  Visible =false runat="server" Text="*" 
                                    style="color: #FF0000; font-size: small;"></asp:Label>
                            </td>
                            <td class="style14">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td class="style15">
                    <asp:Label ID="Label11" runat="server" style="font-family: 楷体" Text="家庭地址："></asp:Label>
                            </td>
                            <td class="style13">
                    <asp:TextBox ID="TextFamilyAddress" runat="server" Width="350px" Height="20px" onblur=jtdz(this.value)></asp:TextBox>
                            </td>
                            <td class="style14">
                                <asp:Label ID="Label31" runat="server" Text="*" 
                                    style="color: #FF0000; font-size: small;"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="style15">
                    <asp:Label ID="Label19" runat="server" style="font-family: 楷体" Text="联系地址："></asp:Label>
                            </td>
                            <td class="style13">
                    <asp:TextBox ID="TextBox19" runat="server" Width="350px" Height="20px" onblur=lxdz(this.value)></asp:TextBox>
                            </td>
                            <td class="style14">
                                <asp:Label ID="Label30" runat="server" Text="*" 
                                    style="color: #FF0000; font-size: small;"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="style15">
                                <asp:Label ID="Label12" runat="server" style="font-family: 楷体" Text="工作Email："></asp:Label>
                            </td>
                            <td class="style13">
                    <asp:TextBox ID="TextEmail" runat="server" onblur=isEmail(this.value) ></asp:TextBox>
                                &nbsp;
                                <asp:Label ID="Label29" runat="server" Text="*" 
                                    style="color: #FF0000; font-size: small;"></asp:Label>
                            </td>
                            <td class="style14">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td class="style15">
                    <asp:Label ID="Label13" runat="server" style="font-family: 楷体" Text="工作QQ："></asp:Label>
                            </td>
                            <td class="style13">
                    <asp:TextBox ID="TextBox13" runat="server" onblur=gzqq(this.value)></asp:TextBox>
                                &nbsp;
                                <asp:Label ID="Label28" runat="server" Text="*" 
                                    style="color: #FF0000; font-size: small;"></asp:Label>
                            </td>
                            <td class="style14">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td class="style15">
                                <asp:Label ID="Label14" runat="server" style="font-family: 楷体" Text="个人Emainl："></asp:Label>
                            </td>
                            <td class="style13">
                    <asp:TextBox ID="TextBox14" runat="server" onblur=gremail(this.value)></asp:TextBox>
                                &nbsp;
                                <asp:Label ID="Label27" runat="server" Text="*" 
                                    style="color: #FF0000; font-size: small;"></asp:Label>
                            </td>
                            <td class="style14">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td class="style15">
                    <asp:Label ID="Label15" runat="server" style="font-family: 楷体" Text="个人QQ："></asp:Label>
                            </td>
                            <td class="style13">
                    <asp:TextBox ID="TextBox15" runat="server" onblur=grqq(this.value)></asp:TextBox>
                                &nbsp;
                                <asp:Label ID="Label26" runat="server" Text="*" 
                                    style="color: #FF0000; font-size: small;"></asp:Label>
                            </td>
                            <td class="style14">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td class="style15">
                                <asp:Label ID="Label16" runat="server" style="font-family: 楷体" Text="应急联系人："></asp:Label>
                            </td>
                            <td class="style13">
                    <asp:TextBox ID="TextUrgetRelationName" runat="server" onblur=yjlxr(this.value)></asp:TextBox>
                                &nbsp;&nbsp;<asp:Label ID="Label25" runat="server" Text="*" 
                                    style="color: #FF0000; font-size: small;"></asp:Label>
                            </td>
                            <td class="style14">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td class="style15">
                                <asp:Label ID="Label17" runat="server" style="font-family: 楷体" Text="与本人关系："></asp:Label>
                            </td>
                            <td class="style13">
                    <asp:TextBox ID="TextUrgetRelationRelation" runat="server" onblur=ybrgx(this.value)></asp:TextBox>
                                &nbsp;
                                <asp:Label ID="Label24" runat="server" Text="*" 
                                    style="color: #FF0000; font-size: small;"></asp:Label>
                            </td>
                            <td class="style14">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td class="style15">
                    <asp:Label ID="Label18" runat="server" style="font-family: 楷体" Text="应急电话："></asp:Label>
                            </td>
                            <td class="style13">
                    <asp:TextBox ID="TextUrgetRelationPhone" runat="server" onblur=yjdh(this.value)></asp:TextBox>
                                &nbsp;
                                <asp:Label ID="Label23" runat="server" Text="*" 
                                    style="color: #FF0000; font-size: small;"></asp:Label>
                            </td>
                            <td class="style14">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td class="style11" colspan="3">
                    <asp:Button ID="Button1" runat="server" Text="提  交" Width="72px" onclick="Button1_Click" 
                                    BackColor="#CCCCCC" />
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="Button2" runat="server" Text="重  置" Width="72px" onclick="Button2_Click" 
                                    BackColor="#CCCCCC" />
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="Button3" runat="server" Text="关 闭" 
                        Width="72px" onclick="Button3_Click" BackColor="#CCCCCC" />
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            </td>
                        </tr>
                    </table>
            </center> 
            </div>
<div style="background-image:url('../App_Themes/image/_14.jpg'); width:100%; height:52px; text-align:center">
<br />
   <asp:Label ID="Label20" runat="server" 
        style="color: #FFFFFF; font-family: 宋体; text-align: center; font-size: 15pt" 
        Text="版权：完美网络有限公司"></asp:Label>

</div>
    </form>
</body>
</html>
