<%@ Page Language="C#" ValidateRequest="false" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="Admin_ForumView.aspx.cs" Inherits="LoveWeb.Admin.Admin_ForumView" %>

<%@ Register assembly="FredCK.FCKeditorV2" namespace="FredCK.FCKeditorV2" tagprefix="FCKeditorV2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <title>帖子管理页面</title>
    <h1>管理员对帖子的编辑、修改、删除</h1>
     <div style="height:100%;" >
     
      
                <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" 
                    DataSourceID="objView" Height="271px"  CellPadding="3" 
                    BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" 
                    BorderWidth="1px" AutoGenerateDeleteButton="True" 
                    GridLines="Horizontal" DataKeyNames="Invitationid" CssClass="zitidaxiao">
                    <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
                    <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
                    <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
                    <Fields>
                        <asp:BoundField DataField="Invitationid" HeaderText="帖子编号" 
                            SortExpression="Invitationid" ReadOnly="True" />
                        <asp:BoundField DataField="Invi_title" HeaderText="帖子标题" 
                            SortExpression="Invi_title" />
                        <asp:BoundField DataField="Invi_contents" HeaderText="帖子内容" 
                            SortExpression="Invi_contents" />
                        <asp:BoundField DataField="Invi_time" HeaderText="发帖时间" 
                            SortExpression="Invi_time" />
                        <asp:BoundField DataField="Username" HeaderText="发帖人" 
                            SortExpression="Username" />
                        <asp:CommandField ShowEditButton="True" />
                    </Fields>
                    <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
                    <EditRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
                    <AlternatingRowStyle BackColor="#F7F7F7" />
                </asp:DetailsView>
                <asp:ObjectDataSource ID="objView" runat="server" 
                    SelectMethod="GetAllInvi" TypeName="LoveBLL.InvitationManager" 
                    DataObjectTypeName="Models.Invitation" DeleteMethod="DelInve" InsertMethod="AddInvi" 
                    UpdateMethod="UpdateInvi">
                </asp:ObjectDataSource>
        
            
                <asp:DetailsView ID="DetailsView2" runat="server" AutoGenerateRows="False" 
                    DataSourceID="ObjectDataSource1" Height="271px"  CellPadding="3" 
                    BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" 
                    BorderWidth="1px" AllowPaging="True" AutoGenerateDeleteButton="True" 
                    GridLines="Horizontal" DataKeyNames="Revi_id" CssClass="zitidaxiao">
                    <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
                    <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
                    <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
                    <Fields>
                        <asp:BoundField DataField="Revi_id" HeaderText="回复编号" 
                            SortExpression="Revi_id" ReadOnly="True" />
                        <asp:BoundField DataField="Invitationid" HeaderText="帖子编号" 
                            SortExpression="Invitationid" ReadOnly="True" />
                        <asp:BoundField DataField="Revi_contents" HeaderText="回复内容" 
                            SortExpression="Revi_contents" />
                        <asp:BoundField DataField="Submit_date" HeaderText="回复时间" 
                            SortExpression="Submit_date" />
                        <asp:BoundField DataField="Invi_title" HeaderText="帖子标题" 
                            SortExpression="Invi_title" />
                        <asp:BoundField DataField="Username" HeaderText="回复者" 
                            SortExpression="Username" />
                    </Fields>
                    <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
                    <EditRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
                    <AlternatingRowStyle BackColor="#F7F7F7" />
                </asp:DetailsView>
                <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                    SelectMethod="GetReviewByInviId" TypeName="LoveBLL.ReviewManager" 
                    DataObjectTypeName="Models.Reviews" DeleteMethod="DelRevi">
                    <SelectParameters>
                        <asp:QueryStringParameter Name="invitationid" QueryStringField="id" 
                            Type="Int32" />
                    </SelectParameters>
                </asp:ObjectDataSource>
                <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="返回" />
                <br />
                <br />
    </div>
</asp:Content>
