<%@ Page Language="C#" MasterPageFile="~/admins/Masteradmin.master" AutoEventWireup="true" CodeFile="BbsManager.aspx.cs" Inherits="admins_BbdManager" Title="星欣书城" %>
<%-- 在此处添加内容控件 --%>
<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
    <div style="width: 452px; height: 18px">
        <asp:Label ID="Label1" runat="server" ForeColor="Red" Text="用户评论管理：" Width="194px"></asp:Label></div>
    <div>
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True" DataSourceID="AccessDataSource1" Height="74px"
             PageSize="8" CellPadding="4" ForeColor="#333333" GridLines="None" AutoGenerateColumns="False" Width="500px" DataKeyNames="ID">
            <Columns>
                <asp:CommandField ShowSelectButton="True" />
                <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" ReadOnly="True"
                    SortExpression="ID" />
                <asp:BoundField DataField="bbsTime" HeaderText="评论时间" SortExpression="bbsTime" />
                <asp:BoundField DataField="bbsText" HeaderText="评论类容" SortExpression="bbsText" />
                <asp:BoundField DataField="book_ID" HeaderText="评论书本" SortExpression="book_ID" />
                <asp:CommandField ShowDeleteButton="True" />
            </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>
        &nbsp;
        <asp:AccessDataSource ID="AccessDataSource1" runat="server"
            SelectCommand="SELECT * FROM [book_bbs]" DataFile="~/App_Data/database.mdb" DeleteCommand="DELETE FROM [book_bbs] WHERE [ID] = ?" InsertCommand="INSERT INTO [book_bbs] ([ID], [bbsTime], [bbsText], [book_ID]) VALUES (?, ?, ?, ?)" UpdateCommand="UPDATE [book_bbs] SET [bbsTime] = ?, [bbsText] = ?, [book_ID] = ? WHERE [ID] = ?">
            <DeleteParameters>
                <asp:Parameter Name="ID" Type="Int32" />
            </DeleteParameters>
            <UpdateParameters>
                <asp:Parameter Name="bbsTime" Type="DateTime" />
                <asp:Parameter Name="bbsText" Type="String" />
                <asp:Parameter Name="book_ID" Type="Int32" />
                <asp:Parameter Name="ID" Type="Int32" />
            </UpdateParameters>
            <InsertParameters>
                <asp:Parameter Name="ID" Type="Int32" />
                <asp:Parameter Name="bbsTime" Type="DateTime" />
                <asp:Parameter Name="bbsText" Type="String" />
                <asp:Parameter Name="book_ID" Type="Int32" />
            </InsertParameters>
        </asp:AccessDataSource>
        &nbsp; &nbsp;
    </div>
</asp:Content>
