<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="login_staff.aspx.cs" Inherits="Web.admin.login_staff" %>

<!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 runat="server">
    <title>无标题页</title>
    <link href="../css/admincss/skin.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            color: #FF0000;
        }
    </style>
    </head>
<body>
    <form id="form1" runat="server" defaultfocus ="tbStaff">
  <div>
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td class ="top_bg_left "></td>
    <td  class ="top_bg_center " >
    <table style ="width :100%; height :31"  border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
      
<!--这里写页标题 -->
        <td style ="height :31px"><div class="titlebt">员工管理</div></td>
      </tr>
    </table>
    </td> 
    <td class ="top_bg_right "></td>
  </tr>
  
  <tr>
    <td style ="background :url(../css/admincss/images/mail_leftbg.gif); vertical-align :middle " >&nbsp;</td>
    <td style ="background-color :#F7F8F9; vertical-align :top " >
 
        <asp:Panel ID="Panel3" runat="server">

<!--  一组内容模块开始   --> 
    <table class ="tablezong"  border="0"  cellpadding="0" cellspacing="0">
      <tr>
        <td style ="height :40px" >
        <table  class="tablebiaoti" border="0" cellpadding="0" cellspacing="0" >
          <tr>
            <td><div class ="biaotileft ">  员工查询</div>
            <div class ="biaotiright ">
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                                ControlToValidate="tbNum" Display="Dynamic" ErrorMessage="行数不能为空。" 
                                                ValidationGroup="RowNum" ForeColor="Red"></asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                                ControlToValidate="tbNum" Display="Dynamic" ErrorMessage="请输入大于0的整数。" 
                                                ValidationExpression="^\+?[1-9][0-9]*$" ValidationGroup="RowNum" 
                                                ForeColor="Red"></asp:RegularExpressionValidator>
                                            每页显示行数：<asp:TextBox ID="tbNum" runat="server" 
                    Width="44px" MaxLength="4">10</asp:TextBox>
                &nbsp;
                <asp:Button ID="btnQuery" runat="server" onclick="tijiao_Click" Text="确定" ToolTip="RowNum" 
                           ValidationGroup="RowNum" /></div> 
                                        </td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td>
        <div>
        
 <table border = "1" class ="table" cellpadding ="0" cellspacing ="0" >
            <tr>
                <td class ="tabletd_right " style ="width :100px">
                                        证件号/登录名/卡号/姓名：</td>
                <td class ="tabletd_left " style ="width :360px" >
                                            <asp:TextBox ID="tbStaff" runat="server" Width="182px"></asp:TextBox>
                                            <br />
                                            支持姓名模糊查询，为空则查询所有</td>
                <td class ="tabletd_right " style ="width :80px">
                    主管部门：</td>
                <td class ="tabletd_left " style ="width :140px">
                    <asp:DropDownList ID="ddlIndustry" runat="server" 
                        onselectedindexchanged="ddlIndustry_SelectedIndexChanged" 
                        AutoPostBack="True">
                    </asp:DropDownList>
                                            </td>
                                            <td class ="tabletd_right " style ="width :80px" >单位：</td>
                                            <td class ="tabletd_left " style ="width :140px">
                                                <asp:DropDownList ID="ddlDepartment" runat="server">
                                                </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class ="tabletd_right " >
                    权限：</td>
                <td class ="tabletd_left ">
                    <asp:DropDownList ID="ddlPost" runat="server">
                        <asp:ListItem 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:DropDownList>
                                            </td>
                <td class ="tabletd_right " style ="width :80px">
                    账号状态：</td>
                <td class ="tabletd_left " style ="width :140px">
                    <asp:DropDownList ID="ddlState" runat="server">
                            <asp:ListItem Selected="True">所有</asp:ListItem>
                            <asp:ListItem>正常</asp:ListItem>
                            <asp:ListItem>禁用</asp:ListItem>
                            <asp:ListItem>锁定</asp:ListItem>
                    </asp:DropDownList>
                                            </td >
                                            <td class ="tabletd_right " style ="width :80px">登录选择：</td>
                                            <td class ="tabletd_left " style ="width :140px">
                                                <asp:DropDownList ID="ddlLoginselect" runat="server">
                            <asp:ListItem Selected="True">所有</asp:ListItem>                     
                            <asp:ListItem>全部允许</asp:ListItem>
                            <asp:ListItem>仅证件号登录</asp:ListItem>
                            <asp:ListItem>仅登录名登录</asp:ListItem>
                                                </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class ="tabletd_center " colspan="6">
                    <asp:Button ID="tijiao" runat="server" 
                        onclick="tijiao_Click" Text="提交" ValidationGroup="RowNum" />
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="btReset" runat="server" onclick="btReset_Click" Text="重置" />
                </td>
            </tr>
            </table>       
        
        
        
        
        
        <asp:Label ID="lbRowscountview" runat="server" 
                ForeColor="Red"></asp:Label>
          <div style ="margin-bottom :6px; margin-top :6px"> 
              <asp:GridView ID="GridView1" 
                  runat="server" BorderWidth="1px" onrowdatabound="GridView1_RowDataBound" 
                Width="100%" CssClass="gv" cellspacing="1" AutoGenerateColumns="False" 
                  onrowcreated="GridView1_RowCreated" 
                  onselectedindexchanging="GridView1_SelectedIndexChanging">
                <RowStyle BorderWidth="1px" CssClass="gvrow" />
                <Columns>
                       <asp:TemplateField> 
               <HeaderTemplate>  <asp:CheckBox ID="CheckBox2" Text ="全选" runat="server" AutoPostBack="True" 
                OnCheckedChanged="CheckBox2_CheckedChanged"  />    </HeaderTemplate>        
               <ItemTemplate><asp:CheckBox ID="CheckBox1" runat="server" /></ItemTemplate>               
               </asp:TemplateField>
                <asp:BoundField DataField="id" HeaderText="序号" ReadOnly="True" />
                <asp:BoundField DataField="证件号" HeaderText="证件号" ReadOnly="True" />
                <asp:BoundField DataField="登录名" HeaderText="登录名" ReadOnly="True" />
                <asp:BoundField DataField="卡号" HeaderText="卡号" ReadOnly="True" />
                <asp:BoundField DataField="姓名" HeaderText="姓名" ReadOnly="True" />
                <asp:BoundField DataField="主管部门" HeaderText="主管部门" ReadOnly="True" />
                <asp:BoundField DataField="单位" HeaderText="单位" ReadOnly="True" />
                <asp:BoundField DataField="权限" HeaderText="权限" ReadOnly="True" />
                <asp:BoundField DataField="电话" HeaderText="电话" ReadOnly="True" />
                <asp:BoundField DataField="邮箱" HeaderText="邮箱" ReadOnly="True" />
                <asp:BoundField DataField="帐号状态" HeaderText="帐号状态" ReadOnly="True" />
                <asp:BoundField DataField="登录选择" HeaderText="登录选择" ReadOnly="True" />
                    <asp:CommandField HeaderText="修改" SelectText="修改" ShowSelectButton="True" />
                          </Columns>
                <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
            </asp:GridView></div> 
            </div>
        </td>
      </tr>
      <tr><td  >
          <table cellpadding="0" cellspacing="0" style ="width :100%">
              <tr>
                  <td style =" padding-left :5px; text-align :left  ">
                          <asp:Button ID="btDelAll" runat="server" onclick="btDelAll_Click" Text="批量删除" 
                              Visible="False" />
                  </td>
                  <td  id ="allowpage" runat ="server" style ="text-align :right ;  padding-right  :5px">
                      &nbsp;</td>
              </tr>
          </table>
              <table cellpadding="0" cellspacing="0" style ="width :100%" id="tbOutput" runat ="server" visible ="false"  >
                   <tr><td class =" td_leftnoborder  ">批量修改：将选中员工的<asp:DropDownList ID="ddlXiangmu" 
                           runat="server" AutoPostBack="True" 
                           onselectedindexchanged="ddlXiangmu_SelectedIndexChanged">
                              <asp:ListItem>权限</asp:ListItem>
                              <asp:ListItem>账号状态</asp:ListItem>
                               <asp:ListItem>登录选择</asp:ListItem>
                          </asp:DropDownList>
                          修改为<asp:DropDownList ID="ddlXiangmuneirong" runat="server">
                          </asp:DropDownList>
                          &nbsp;
                          <asp:Button ID="btEditAll" runat="server" Text="提交" 
                           onclick="btEditAll_Click" /></td><td class =" td_rightnoborder  ">                <asp:Button ID="btPrintView" runat="server" onclick="btPrintView_Click" 
                    Text="打印预览" />
                <asp:Button ID="btExcel" runat="server" Text="导出到EXCEL" 
                  onclick="btExcel_Click"  /></td></tr>
              </table>
          </td></tr>
    </table>
<!-- 一组内容模块结束 -->

    <!--  一组内容模块开始   --> 
   <table class ="tablezong"  border="0"  cellpadding="0" cellspacing="0">
      <tr>
        <td style ="height :40px" >
        <table class="tablebiaoti"  border="0" cellpadding="0" cellspacing="0" >
          <tr>
            <td ><div class ="biaotileft ">添加员工</div> </td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td style ="text-align :left " >
          <table border="1"  style=" width :700px" class ="table" cellpadding ="0" cellspacing ="0">
            <tr>
                <td  class ="tabletd_right ">
                    证件号：</td>
                <td class ="tabletd_left ">
                    <asp:TextBox ID="tbAddStaffId" runat="server" MaxLength="20" Width="130px"></asp:TextBox>
                    <span class="style1">（必填）</span><asp:RequiredFieldValidator 
                        ID="RequiredFieldValidator11" runat="server" 
                        ControlToValidate="tbAddStaffId" Display="Dynamic" ErrorMessage="证件号不能为空。" 
                        ValidationGroup="Add" ForeColor="Red"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator16" runat="server" 
                        ControlToValidate="tbAddStaffId" Display="Dynamic" ErrorMessage="请输入2-25个合法字符。" 
                        ValidationExpression="^[^%&gt;&lt;'&amp;*=!&quot;?]{2,25}" 
                        ValidationGroup="Add" ForeColor="Red"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td class ="tabletd_right ">
                    密码：</td>
                <td class ="tabletd_left ">
                    <asp:TextBox ID="tbAddPassword" runat="server" MaxLength="20" Width="130px"></asp:TextBox>
                    <span class="style1">（必填）</span><asp:RequiredFieldValidator 
                        ID="RequiredFieldValidator13" runat="server" 
                        ControlToValidate="tbAddPassword" Display="Dynamic" ErrorMessage="密码不能为空。" 
                        ValidationGroup="Add" ForeColor="Red"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator18" runat="server" 
                        ControlToValidate="tbAddPassword" Display="Dynamic" 
                        ErrorMessage="请输入6-20个合法字符。" 
                        ValidationExpression="^[^%&gt;&lt;'&amp;*=!&quot;?]{6,20}" 
                        ValidationGroup="Add" ForeColor="Red"></asp:RegularExpressionValidator>
                </td>
            </tr>
              <tr>
                  <td class="tabletd_right ">
                      姓名：</td>
                  <td class="tabletd_left ">
                      <asp:TextBox ID="tbAddStaffName" runat="server" MaxLength="20" Width="130px"></asp:TextBox>
                      <span class="style1">（必填）</span><asp:RequiredFieldValidator 
                          ID="RequiredFieldValidator14" runat="server" ControlToValidate="tbAddStaffName" 
                          Display="Dynamic" ErrorMessage="姓名不能为空。" ValidationGroup="Add" 
                          ForeColor="Red"></asp:RequiredFieldValidator>
                      <asp:RegularExpressionValidator ID="RegularExpressionValidator19" 
                          runat="server" ControlToValidate="tbAddStaffName" Display="Dynamic" 
                          ErrorMessage="请输入2-25个合法字符。" ForeColor="Red" 
                          ValidationExpression="^[^%&gt;&lt;'&amp;*=!&quot;?]{2,25}" 
                          ValidationGroup="Add"></asp:RegularExpressionValidator>
                  </td>
              </tr>
            <tr>
                <td class ="tabletd_right ">
                    主管部门：</td>
                <td class ="tabletd_left ">
                    <asp:DropDownList ID="ddlAddIndustry" runat="server" AutoPostBack="True" 
                        onselectedindexchanged="ddlAddIndustry_SelectedIndexChanged" 
                        ValidationGroup="AddSelect">
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator15" runat="server" 
                        ControlToValidate="ddlAddIndustry" Display="Dynamic" 
                        ErrorMessage="请添加主管部门。" ValidationGroup="Add" ForeColor="Red"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td  class ="tabletd_right ">
                    单位：</td>
                <td class ="tabletd_left ">
                    <asp:DropDownList ID="ddlAddDepartment" runat="server">
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator16" runat="server" 
                        ControlToValidate="ddlAddDepartment" Display="Dynamic" 
                        ErrorMessage="请先添加单位。" ValidationGroup="Add" ForeColor="Red"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class ="tabletd_right ">
                    权限：</td>
                <td class ="tabletd_left ">
                    <asp:DropDownList ID="ddlAddPost" runat="server">
                        <asp:ListItem>员工</asp:ListItem>
                        <asp:ListItem>单位查看</asp:ListItem>
                        <asp:ListItem>单位管理</asp:ListItem>
                        <asp:ListItem>主管部门查看</asp:ListItem>
                        <asp:ListItem>主管部门管理</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class ="tabletd_right ">
                    登录名：</td>
                <td class ="tabletd_left ">
                     <asp:TextBox ID="tbAddLoginName" runat="server" MaxLength="20" Width="130px"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator17" runat="server" 
                        ControlToValidate="tbAddLoginName" Display="Dynamic" 
                        ErrorMessage="请输入2-20个合法字符。" 
                        ValidationExpression="^[^%&gt;&lt;'&amp;*=!&quot;?]{2,20}" 
                        ValidationGroup="Add" ForeColor="Red"></asp:RegularExpressionValidator>
             </td>
            </tr>
              <tr>
                  <td class="tabletd_right ">
                      卡号：</td>
                  <td class="tabletd_left ">
                      <asp:TextBox ID="tbAddCardid" runat="server" MaxLength="50" Width="214px"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" 
                        runat="server" ControlToValidate="tbAddCardid" Display="Dynamic" 
                        ErrorMessage="请输入少于50个合法字符。" 
                        ValidationExpression="^[^%&gt;&lt;'&amp;*=!&quot;?]{0,50}" 
                        ValidationGroup="Add" ForeColor="Red"></asp:RegularExpressionValidator>
               </td>
              </tr>
              <tr>
                  <td class="tabletd_right ">
                      电话：</td>
                  <td class="tabletd_left ">
                      <asp:TextBox ID="tbAddTel" runat="server" MaxLength="20" Width="130px"></asp:TextBox>
                      <asp:RegularExpressionValidator ID="RegularExpressionValidator20" 
                          runat="server" ControlToValidate="tbAddTel" Display="Dynamic" 
                          ErrorMessage="请输入正确的电话号码。" ForeColor="Red" 
                          
                          ValidationExpression="(\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1}))$" 
                          ValidationGroup="Add"></asp:RegularExpressionValidator>
                  </td>
              </tr>
              <tr>
                  <td class="tabletd_right ">
                      邮箱：</td>
                  <td class="tabletd_left">
                      <asp:TextBox ID="tbAddEmail" runat="server" MaxLength="20" Width="130px"></asp:TextBox>
                      <asp:RegularExpressionValidator ID="RegularExpressionValidator21" 
                          runat="server" ControlToValidate="tbAddEmail" Display="Dynamic" 
                          ErrorMessage="请输入正确的邮箱。" 
                          ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*.[a-zA-Z0-9]{2,7}" 
                          ValidationGroup="Add" ForeColor="Red"></asp:RegularExpressionValidator>
                  </td>
              </tr>
              <tr>
                  <td class="tabletd_right">
                      &nbsp;</td>
                  <td class="tabletd_left ">
                      <asp:Button ID="btAdd" runat="server" onclick="btAdd_Click" Text="添加" 
                          ValidationGroup="Add" />
                  </td>
              </tr>
            </table>
           </td>
      </tr>
    </table>
<!-- 一组内容模块结束 -->
        </asp:Panel>   
        
<!--  一组内容模块开始   --> 
<asp:Panel ID="Panel2" runat="server" Visible="False">
            <table border="0"  class ="tablezong"  cellpadding="0" cellspacing="0">
      <tr>
        <td style ="height :40px">
        <table class="tablebiaoti"  border="0" cellpadding="0" cellspacing="0" >
          <tr>
            <td > <div class ="biaotileft ">修改员工</div> </td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td  ><div style ="text-align :left ">
            <table  style =" width :700px" border = "1" class ="table " cellpadding ="0" cellspacing ="0">
                <tr>
                    <td class ="tabletd_right " >
                        证件号：</td>
                    <td class ="tabletd_left ">
        <asp:TextBox ID="tbEditStaffId" runat="server" Width="130px" MaxLength="20"></asp:TextBox>
                        <asp:RequiredFieldValidator 
                            ID="RequiredFieldValidator4" runat="server" 
                              ControlToValidate="tbEditStaffId" Display="Dynamic" ErrorMessage="证件号不能为空。" 
                            ValidationGroup="Edit" ForeColor="Red"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator22" runat="server" 
                            ControlToValidate="tbEditStaffId" Display="Dynamic" 
                            ErrorMessage="请输入2-25个合法字符。" 
                            ValidationExpression="^[^%&gt;&lt;'&amp;*=!&quot;?]{2,25}" 
                            ValidationGroup="Edit" ForeColor="Red"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td  class ="tabletd_right ">
                        密码：</td>
                    <td class ="tabletd_left " style="color: #FF0000">
                        <asp:TextBox ID="tbEditPassword" runat="server" MaxLength="20" Width="130px"></asp:TextBox>
                        密码不修改请留空。<asp:RegularExpressionValidator ID="RegularExpressionValidator24" 
                            runat="server" ControlToValidate="tbEditPassword" Display="Dynamic" 
                            ErrorMessage="请输入6-20个合法字符。" 
                            ValidationExpression="^[^%&gt;&lt;'&amp;*=!&quot;?]{6,20}" 
                            ValidationGroup="Edit" ForeColor="Red"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td class="tabletd_right ">
                        姓名：</td>
                    <td class="tabletd_left ">
                        <asp:TextBox ID="tbEditStaffName" runat="server" MaxLength="20" Width="130px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" 
                            ControlToValidate="tbEditStaffName" Display="Dynamic" ErrorMessage="姓名不能为空。" 
                            ForeColor="Red" ValidationGroup="Edit"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator25" 
                            runat="server" ControlToValidate="tbEditStaffName" Display="Dynamic" 
                            ErrorMessage="请输入2-25个合法字符。" ForeColor="Red" 
                            ValidationExpression="^[^%&gt;&lt;'&amp;*=!&quot;?]{2,25}" 
                            ValidationGroup="Edit"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td class ="tabletd_right ">
                        主管部门：</td>
                    <td class ="tabletd_left ">
                        <asp:DropDownList ID="ddlEditIndustry" runat="server" AutoPostBack="True" 
                            onselectedindexchanged="ddlEditIndustry_SelectedIndexChanged" 
                            ValidationGroup="EditSelect">
                        </asp:DropDownList>
                        <asp:Label ID="lbEditIndustry" runat="server" ForeColor="Red"></asp:Label>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator18" runat="server" 
                            ControlToValidate="ddlEditIndustry" Display="Dynamic" 
                            ErrorMessage="请添加主管部门。" ValidationGroup="Edit" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class ="tabletd_right ">
                        单位：</td>
                    <td class ="tabletd_left ">
                        <asp:DropDownList ID="ddlEditDepartment" runat="server">
                        </asp:DropDownList>
                        <asp:Label ID="lbEditDepartment" runat="server" ForeColor="Red"></asp:Label>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator20" runat="server" 
                            ControlToValidate="ddlEditIndustry" Display="Dynamic" 
                            ErrorMessage="请先添加单位。" ValidationGroup="Edit" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class ="tabletd_right ">
                        权限：</td>
                    <td class ="tabletd_left">
                        <asp:DropDownList ID="ddlEditPost" runat="server">
                            <asp:ListItem>员工</asp:ListItem>
                            <asp:ListItem>单位查看</asp:ListItem>
                            <asp:ListItem>单位管理</asp:ListItem>
                            <asp:ListItem>主管部门查看</asp:ListItem>
                            <asp:ListItem>主管部门管理</asp:ListItem>
                        </asp:DropDownList>
                        <asp:Label ID="lbEditPost" runat="server" ForeColor="Red"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class ="tabletd_right ">
                        账号状态：</td>
                    <td class ="tabletd_left">
                        <asp:DropDownList ID="ddlEditZhuangtai" runat="server">
                            <asp:ListItem Selected="True">正常</asp:ListItem>
                            <asp:ListItem>禁用</asp:ListItem>
                            <asp:ListItem>锁定</asp:ListItem>
                        </asp:DropDownList>
                        <asp:Label ID="lbEditZhuangtai" runat="server" ForeColor="Red"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="tabletd_right ">
                        登录选择：</td>
                    <td class="tabletd_left">
                        <asp:DropDownList ID="ddlEditLoginSelect" runat="server">
                            <asp:ListItem Selected="True">全部允许</asp:ListItem>
                            <asp:ListItem>仅证件号登录</asp:ListItem>
                            <asp:ListItem>仅登录名登录</asp:ListItem>
                        </asp:DropDownList>
                        <asp:Label ID="lbEditLoginSelect" runat="server" ForeColor="Red"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="tabletd_right ">
                        登录名：</td>
                    <td class="tabletd_left">
                        <asp:TextBox ID="tbEditLoginName" runat="server" MaxLength="20" Width="130px"></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator23" 
                            runat="server" ControlToValidate="tbEditLoginName" Display="Dynamic" 
                            ErrorMessage="请输入2-20个合法字符。" ForeColor="Red" 
                            ValidationExpression="^[^%&gt;&lt;'&amp;*=!&quot;?]{2,20}" 
                            ValidationGroup="Edit"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td class="tabletd_right ">
                        卡号：</td>
                    <td class="tabletd_left">
                        <asp:TextBox ID="tbEditCardid" runat="server" MaxLength="50" Width="214px"></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator3" 
                            runat="server" ControlToValidate="tbEditCardid" Display="Dynamic" 
                            ErrorMessage="请输入少于50个合法字符。" ForeColor="Red" 
                            ValidationExpression="^[^%&gt;&lt;'&amp;*=!&quot;?]{0,50}" 
                            ValidationGroup="Edit"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td class="tabletd_right ">
                        电话：</td>
                    <td class="tabletd_left">
                        <asp:TextBox ID="tbEditTel" runat="server" MaxLength="20" Width="130px"></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator26" runat="server" 
                            ControlToValidate="tbEditTel" Display="Dynamic" ErrorMessage="请输入正确的电话号码。" 
                            ForeColor="Red" ValidationExpression="(\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1}))$" 
                            ValidationGroup="Edit"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td class ="tabletd_right">
                        邮箱：</td>
                    <td class ="tabletd_left">
                        <asp:TextBox ID="tbEditEmail" runat="server" MaxLength="20" Width="130px"></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator27" 
                            runat="server" ControlToValidate="tbEditEmail" Display="Dynamic" 
                            ErrorMessage="请输入正确的邮箱。" 
                            ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*.[a-zA-Z0-9]{2,7}" 
                            ValidationGroup="Edit" ForeColor="Red"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td class="tabletd_right ">
                        <asp:Label ID="lbEditId" runat="server" Visible="false"></asp:Label>
                    </td>
                    <td class="tabletd_left ">
                        <asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="提交修改" 
                            ValidationGroup="Edit" />
                    </td>
                </tr>
            </table>
 </div></td>
      </tr>
    </table>
            </asp:Panel>
<!-- 一组内容模块结束 --> 
   
    </td>
    <td  style =" background-image:url(../css/admincss/images/mail_rightbg.gif )" >
    </td>
  </tr>
  <tr>
    <td  class ="buttom_bg_left "></td>
    <td class ="buttom_bg_center " >&nbsp;</td>
    <td  class ="buttom_bg_right " ></td>
  </tr>
</table>
    </div>
    </form>
</body>
</html>
