<%@ page language="VB" masterpagefile="~/Page.master" autoeventwireup="false" inherits="WebExam.Web.news_admin_mynews, App_Web_wetjxh0p" title="管理新闻" %>
<%@ MasterType VirtualPath="~/Page.master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentHead" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="mainCopy" runat="Server">
    <table cellpadding="0" cellspacing="0">
        <tr>
            <td>
                <h2 style="text-align: center; padding-top:0; margin-top:0; margin-bottom:0">
                    管理新闻</h2>
            </td>
        </tr>
        <tr>
            <td>
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4"
                    ForeColor="#333333" GridLines="None" DataKeyNames="id">
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <RowStyle BackColor="#EFF3FB" />
                    <Columns>
                        <asp:BoundField DataField="id" Visible="false" />
                        <asp:BoundField DataField="topic" HeaderText="标题" />
                        <asp:BoundField DataField="adm" HeaderText="发布者" />
                        <asp:BoundField DataField="updateTime" DataFormatString="{0:yyyy-MM-dd}" HeaderText="发布时间"
                ReadOnly="True"></asp:BoundField>
                        <asp:HyperLinkField Text="打开" DataNavigateUrlFields="path,defaultFile" 
                            DataNavigateUrlFormatString="{0}{1}" Target ="_blank"  />
                        <asp:HyperLinkField Text="编辑" DataNavigateUrlFields="id" 
                            DataNavigateUrlFormatString="addnews.aspx?id={0}&edit=1" />
                        <asp:CommandField ShowDeleteButton="True" />
                    </Columns>
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="#2461BF" />
                    <AlternatingRowStyle BackColor="White" />
                </asp:GridView>
                <pagers:PageNumbersPager ID="PageNumbersPager1" runat="server" />
            </td>
        </tr>
    </table>
</asp:Content>
