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

<%@ Register Src="../Controls/FormPaging.ascx" TagName="FormPaging" TagPrefix="uc1" %>

<!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="../Admin/skin/css.css" rel="stylesheet" type="text/css" />
    <link href="/images/css/inbox.css"rel="stylesheet" type="text/css" />
    <script language=javascript>
    function Check(che)
    {
        var gv=document.getElementById("GridView1");
        for(var i=0;i<gv.rows.length;i++)
        {
            gv.rows[i].cells[0].getElementsByTagName("input")[0].checked=che.checked;
        }
    }
    
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table style="width: 90%" class="Ibx_gTable_Con">
            <tr>
                <td>
                    公告管理&gt;<asp:HyperLink ID="HyperLink1" runat="server" ForeColor="Red" NavigateUrl="~/Admin/sys_affiche_add.aspx">增加新公告</asp:HyperLink></td>
            </tr>
            <tr>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="100%" OnRowDeleting="GridView1_RowDeleting" OnRowEditing="GridView1_RowEditing" DataKeyNames="aff_id" CellPadding="4" ForeColor="#333333" GridLines="None">
                        <Columns>
                            <asp:TemplateField HeaderText="全选">
                                <HeaderTemplate>
                                    <asp:CheckBox ID="CheckBox1" onclick=Check(this) runat="server" Text="全选/反选" />
                                </HeaderTemplate>
                                <ItemStyle HorizontalAlign="Center" />
                                <ItemTemplate>
                                    <asp:CheckBox ID="CheckBox2" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="aff_title" HeaderText="公告标题" >
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="aff_user" HeaderText="发布人" >
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="aff_btime" HeaderText="发布时间" >
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="删除" ShowHeader="False">
                                <ItemStyle HorizontalAlign="Center" />
                                <ItemTemplate>
                                    <asp:LinkButton ID="LinkButton1" OnClientClick="return confirm('确认删除该公告吗?')" runat="server" CausesValidation="False" CommandName="Delete"
                                        Text="删除"></asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:CommandField HeaderText="编辑" ShowEditButton="True" >
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:CommandField>
                        </Columns>
                        <EditRowStyle HorizontalAlign="Center" BackColor="#2461BF" />
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <RowStyle BackColor="#EFF3FB" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td align="left">
                    <asp:Button ID="Button1" OnClientClick="return confirm('确认删除所选公告吗?')" runat="server" Text="删除所选" OnClick="Button1_Click" /></td>
            </tr>
            <tr>
                <td align=center>
                    <uc1:FormPaging ID="FormPaging1" runat="server" />
                </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
