<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NewsManage.aspx.cs" Inherits="LZBS.Web.Admin.NewsManage" %>

<!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>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:GridView ID="gvNews" runat="server" CellPadding="4" ForeColor="#333333" 
            GridLines="None" AutoGenerateColumns="False" DataKeyNames="NewsID" 
            Width="900px" onrowdeleting="gvNews_RowDeleting" AllowPaging="True" 
            onpageindexchanging="gvNews_PageIndexChanging">
            <PagerSettings FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" 
                PreviousPageText="上一样" />
            <RowStyle BackColor="#EFF3FB" />
            <Columns>
                <asp:BoundField DataField="Title" HeaderText="标题" SortExpression="Title" />
                <asp:BoundField DataField="TypeName" HeaderText="类别" 
                    SortExpression="TypeName" />
                <asp:BoundField DataField="Numbers" HeaderText="访问量" SortExpression="Numbers" />
                <asp:BoundField DataField="PublishTime" HeaderText="发布时间" 
                    SortExpression="PublishTime" />
                <asp:HyperLinkField DataNavigateUrlFields="NewsID" 
                    DataNavigateUrlFormatString="NewsEdit.aspx?NewsID={0}" HeaderText="编辑" 
                    Text="编辑" />
                <asp:HyperLinkField DataNavigateUrlFields="NewsID" 
                    DataNavigateUrlFormatString="~/NewsInfo.aspx?NewsID={0}" HeaderText="查看详细" 
                    Target="_blank" Text="查看" />
                <asp:CommandField HeaderText="删除" ShowDeleteButton="True" ShowHeader="True" />
            </Columns>
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <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>
        <br />
        
    </div>
    </form>
</body>
</html>
