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

<!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/admincss/skin.css" rel="stylesheet" type="text/css" />
</head>
<body>
 <form id="form1" runat="server" defaultfocus ="tbAddField" defaultbutton ="btAddProject">
<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="pl"  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><table  class="tablebiaoti" border="0" cellpadding="0" cellspacing="0" >
          <tr>
            <td><div class ="biaotileft ">考勤统计项目管理</div></td>
          </tr>
        </table> </td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td>

        <div style ="margin-top:15px">
            <asp:Panel ID="plAdd" runat="server">                  <b>添加字段：</b><asp:TextBox ID="tbAddField" runat="server" Width ="200px"></asp:TextBox>
                <asp:Button ID="btAddProject" runat="server" Text="添加" 
                    ValidationGroup="AddField" onclick="btAddProject_Click" />   
                    <asp:Label ID="lbAddMessage" runat="server" ForeColor="Red"></asp:Label>                                  
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="tbAddField" Display="Dynamic" 
                    ErrorMessage="名称不能为空。" ValidationGroup="AddField"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="tbAddField" Display="Dynamic" 
                    ErrorMessage="请输入2-15个字符。" 
                    ValidationExpression="^[^%&gt;&lt;&amp;=\s]{2,15}$" 
                    ValidationGroup="AddField"></asp:RegularExpressionValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator8" runat="server" 
                    ControlToValidate="tbAddField" Display="Dynamic" ErrorMessage="请用汉字或字母开头。" 
                    ValidationExpression="^(?!\d)[a-zA-Z0-9\u4e00-\u9fa5]+$" 
                    ValidationGroup="AddField"></asp:RegularExpressionValidator>
                
            </asp:Panel>
              <asp:Panel ID="plEdit" runat="server" Visible="False">                    <b>修改字段：</b>将<asp:Label 
                    ID="lbEditFieldid" runat="server" Visible="False"></asp:Label>
                <asp:Label ID="lbEditOldField" runat="server" ForeColor="Red"></asp:Label>
                字段名称修改为：<asp:TextBox ID="tbEditNewField" runat="server" Width="200px"></asp:TextBox>
                <asp:Button ID="btEditField" runat="server" Text="修改" 
                                                    ValidationGroup="EditField" 
                    onclick="btEditProject_Click" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="tbEditNewField" Display="Dynamic" ErrorMessage="名称不能为空。" 
                    ValidationGroup="EditField"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                    ControlToValidate="tbEditNewField" Display="Dynamic" ErrorMessage="请不要超过25个字符。" 
                    ValidationExpression="^[^\s]{1,25}$" ValidationGroup="EditField"></asp:RegularExpressionValidator>
            </asp:Panel>
                </div>
        <asp:GridView ID="GridView1" runat="server" 
            onrowdatabound="GridView1_RowDataBound" Width="500px" 
                BorderWidth="1px" CssClass="gv" 
                cellspacing="1" AutoGenerateColumns="False" 
                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="序号" HeaderText="序号" ReadOnly="True"   >
                    <ControlStyle CssClass="hidden" />
                    <FooterStyle CssClass="hidden" />
                    <HeaderStyle CssClass="hidden" />
                    <ItemStyle CssClass="hidden" />
                </asp:BoundField>

                <asp:BoundField DataField="字段名称" HeaderText="字段名称" ReadOnly="True" />

                <asp:CommandField HeaderText="修改" SelectText="修改" ShowSelectButton="True" />
            </Columns>
            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
        </asp:GridView> 
                <div>

            <asp:Button ID="btDelAll" runat="server" onclick="btDelAll_Click" Text="批量删除" />
                                </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 " ></td>
    <td  class ="buttom_bg_right " ></td>
  </tr>
</table>
    </div>
    </form>
</body>
</html>
