<%@ Page Language="C#" MasterPageFile="~/ListMasterPage.master" AutoEventWireup="true" CodeFile="NewLogView.aspx.cs" Inherits="NewLogView" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" AllowPaging="True" CellPadding="4" ForeColor="#333333" GridLines="None" PageSize="12" Width="485px">
        <Columns>
            <asp:HyperLinkField DataNavigateUrlFields="log_id" DataNavigateUrlFormatString="~/LogDetail.aspx?log_id={0}"
                DataTextField="log_title" HeaderText="日志名称" />
            <asp:BoundField DataField="pub_date" HeaderText="发表时间" SortExpression="pub_date" />
            <asp:BoundField DataField="click_count" HeaderText="点击量" SortExpression="click_count" />
        </Columns>
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <EditRowStyle BackColor="#999999" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:DesertEagleConnectionString2 %>"
        SelectCommand="SELECT [log_id], [log_title], [pub_date], [is_hide], [click_count] FROM [DE_logs] WHERE ([is_hide] = @is_hide) ORDER BY [pub_date] DESC">
        <SelectParameters>
            <asp:Parameter DefaultValue="False" Name="is_hide" Type="Boolean" />
        </SelectParameters>
    </asp:SqlDataSource>
</asp:Content>

