<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ManageCard.aspx.cs" Inherits="ManageCard" %>

<%@ Register Src="BBSHeader.ascx" TagName="BBSHeader" TagPrefix="uc1" %>
<%@ Register Src="BBSMenu.ascx" TagName="BBSMenu" TagPrefix="uc2" %>
<%@ Register Src="BBSFooter.ascx" TagName="BBSFooter" TagPrefix="uc3" %>
<!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>
    <table align="center" style="width: 755px; height: 138px;" cellpadding="0" cellspacing="0">
            <tr>
                <td style="width: 755px;vertical-align: top; height: 138px;">
                 <uc1:BBSHeader id="BBSHeader1" runat="server"></uc1:BBSHeader></td></tr> 
                </table> 
        <table align="center" style="width: 755px;height: 363px;" cellpadding="0" cellspacing="0">
            <tr>
                <td style="width: 176px;vertical-align: top; text-align: center; background-image: url(Image/菜单.jpg); height: 363px;">
                    &nbsp;&nbsp;<uc2:BBSMenu ID="BBSMenu1" runat="server" />
                </td>
                <td style="width: 579px; text-align: center; background-image: url(Image/背景.jpg); vertical-align: top; height: 363px;">
                    <br />
                    <br />
                    <asp:GridView ID="gvCardInfo" runat="server" AllowPaging="True" CellPadding="3"
                        GridLines="Horizontal"  Width="540px" BorderColor="#E7E7FF" BorderStyle="None" HorizontalAlign="Center" AutoGenerateColumns="False" Font-Size="9pt" OnPageIndexChanging="gvCardInfo_PageIndexChanging" PageSize="5" BackColor="White" BorderWidth="1px" OnRowDataBound="gvCardInfo_RowDataBound" OnRowDeleting="gvCardInfo_RowDeleting">
                        <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
                        <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
                        <Columns>
                            <asp:BoundField DataField="CardID" HeaderText="帖子ID">
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            </asp:BoundField>
                            <asp:BoundField DataField="User" HeaderText="发帖人" >
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            </asp:BoundField>
                            <asp:BoundField DataField="ModuleID" HeaderText="模块ID" >
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            </asp:BoundField>
                            <asp:BoundField DataField="CardName" HeaderText="帖子名称" >
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            </asp:BoundField>
                            <asp:BoundField DataField="CardContent" HeaderText="帖子内容" >
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            </asp:BoundField>
                            <asp:BoundField DataField="CardDate" HeaderText="发帖日期" >
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            </asp:BoundField>
                            <asp:CommandField HeaderText="删除" ShowDeleteButton="True" >
                                <ControlStyle Font-Underline="False" />
                            </asp:CommandField>
                        </Columns>
                         <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
                        <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
                        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
                        <AlternatingRowStyle BackColor="#F7F7F7" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
      <table align="center" style="width: 755px;height: 74px;" cellpadding="0" cellspacing="0">
            <tr>
                <td style="width: 755px;vertical-align: top; height: 74px;">
                  <uc3:BBSFooter ID="BBSFooter1" runat="server" />
                </td></tr> 
                </table> 
    </div>
    </form>
</body>
</html>
