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

<!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>OA标题页</title>
    <link href="../../css/admincss/skin.css" rel="stylesheet" type="text/css" />
    </head>
<body>
 <form id="form1" runat="server" defaultfocus ="tbProject"  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 :31px"  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 " >

<!--  一组内容模块开始   --> 
    <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>
        <asp:GridView ID="GridView1" runat="server" 
            onrowdeleting="GridView1_RowDeleting" 
            onrowdatabound="GridView1_RowDataBound" 
                BorderWidth="1px" CssClass="gv" Width="50%" cellspacing="1" 
                AutoGenerateColumns="False" 
                onselectedindexchanging="GridView1_SelectedIndexChanging">
            <RowStyle BorderWidth="1px" CssClass="gvrow" />
            <Columns>
                <asp:BoundField DataField="project" HeaderText="模块名称" ReadOnly="True" />
                <asp:BoundField DataField="view0" HeaderText="显示数据为0项目" ReadOnly="True" />
                <asp:BoundField DataField="managers" HeaderText="管理员列表" ReadOnly="True" />
                <asp:CommandField HeaderText="修改" SelectText="修改" ShowSelectButton="True" />
                <asp:CommandField HeaderText="删除" ShowDeleteButton="True" />
            </Columns>
            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
        </asp:GridView>
       <table class ="table "  border = "1"  cellpadding ="0" cellspacing ="0"  style ="width :50% ; margin-top :10px; margin-bottom :10px"><tr>
<td style ="height :40px;width :120px; " class ="tabletd_right "><asp:Label ID="lbProject" runat="server" Text="添加模块"></asp:Label></td>
                     <td class ="tabletd_left "> 
                         
                <asp:TextBox ID="tbProject" runat="server" Width ="200px" ></asp:TextBox>
                         <asp:Label ID="lbOldproject" runat="server" Visible="False"></asp:Label>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="tbProject" Display="Dynamic" 
                    ErrorMessage="名称不能为空。" ValidationGroup="Project" ForeColor="Red"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator8" runat="server" 
                    ControlToValidate="tbProject" Display="Dynamic" 
                    ErrorMessage="请输入不超过25个字母、数字或汉字。" ValidationExpression="^[a-zA-Z0-9\u4e00-\u9fa5]{0,25}$" 
                                                    ValidationGroup="Project" ForeColor="Red"></asp:RegularExpressionValidator>

                </td>



                     </tr>
                     <tr><td style ="height :40px;Width :120px;" class ="tabletd_right ">显示数据为0项目</td>
                     <td class ="tabletd_left "><asp:CheckBox ID="cbView0" runat="server" /></td></tr>
                     <tr><td style ="height :40px;Width :120px;" class ="tabletd_right ">工资管理员</td>
                     <td>    <asp:CheckBoxList ID="cblManagers" runat="server" RepeatColumns="8" 
                        RepeatDirection="Horizontal"></asp:CheckBoxList><asp:Label ID="lbWu" runat="server"></asp:Label></td></tr>
                                    </table>
                
                <asp:Button ID="btAddProject" runat="server" Text="添加" 
                    ValidationGroup="Project" onclick="btAddProject_Click" />
                                    <asp:Button ID="btDelProject" runat="server" Text="删除" 
                    onclick="btDelProject_Click" ValidationGroup="Project" Visible="False" />
                    <asp:Button ID="btEditProject" runat="server" Text="修改" 
                                                    ValidationGroup="Project" 
                    onclick="btEditProject_Click" Visible="False" />

        </td>
      </tr>
    </table>
<!-- 一组内容模块结束 -->
   
    </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>
