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

<%@ 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="vertical-align: middle; width: 755px; height: 138px;" cellpadding="0" cellspacing="0">
            <tr>
                <td style="vertical-align: top; width: 755px;">
                    <uc1:BBSHeader id="BBSHeader1" runat="server">
                    </uc1:BBSHeader></td></tr> 
                </table> 
        <table align="center" style="vertical-align: middle; width: 755px;" cellpadding="0" cellspacing="0">
            <tr>
                <td style="vertical-align: top; width: 176px; text-align: center; background-image: url(Image/左4.jpg); height: 363px;">
                    <br />
                    <uc2:BBSMenu ID="BBSMenu1" runat="server" />
                </td>
                <td style="width: 579px; text-align: center; font-size: 9pt; background-image: url(Image/背景.jpg); height: 363px; vertical-align: top;">
                   <asp:DataList ID="dlContent" runat="server" 
                        Width="554px" onselectedindexchanged="dlContent_SelectedIndexChanged">
                        <ItemTemplate>
                           <table cellpadding="0" cellspacing="0">
                                <tr>
                                <td style="background-image: url(Image/标头.jpg); width: 579px; text-align: left; height: 26px;">
                                 &nbsp;&nbsp;&nbsp;&nbsp;<a style="font-size: 9pt;text-decoration:none;" >
                                            <%# DataBinder.Eval(Container.DataItem, "ModuleName")%>
                                            </a>
                                        <asp:Label ID="Label1" runat="server" Font-Size="9pt" Text="——"></asp:Label><a href='RevertCard.aspx?CardID=<%# DataBinder.Eval(Container.DataItem,"CardID") %>'
                                            style="font-size: 9pt;text-decoration:none;"><%# DataBinder.Eval(Container.DataItem, "CardName")%></a>
                                </td>
                                </tr>
                              </table>
                                 <table cellpadding="0" cellspacing="0">
                                <tr>
                                    <td style="width: 76px;vertical-align: top; background-image: url(Image/内容左侧.jpg); text-align: center; height: 97px;">
                                        <asp:Label ID="Label3" runat="server" Font-Size="9pt" Text="用户" Width="76px"></asp:Label><br /><br />
                                        <a style="font-size: 9pt;text-decoration:none;" enableviewstate="false"><%# DataBinder.Eval(Container.DataItem, "User")%></a>
                                    </td>
                                    <td style="width: 478px; ">
                                        <table style="width: 478px" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td style="background-image: url(Image/3.jpg); width: 478px; height: 21px; text-align: left;">
                                                &nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label5" runat="server" Font-Size="9pt" Text="帖子内容：" Width="208px"></asp:Label></td>
                                            </tr>
                                        </table>
                                         <table style="width: 478px" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td style="background-image: url(Image/文本.jpg); width: 478px; height: 54px; vertical-align: top; text-align: left;">
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="labCardContent" runat="server" Height="54px" Text='<%# DataBinder.Eval(Container.DataItem,"CardContent") %>'
                                             Width="456px"></asp:Label></td>
                                            </tr>
                                        </table>
                                         <table style="width: 478px" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td style="background-image: url(Image/时间.jpg); width: 478px; height: 22px; text-align: right">
                                        <asp:Label ID="Label4" runat="server" Font-Size="9pt" Text="发表日期:"></asp:Label><asp:Label ID="labDate" runat="server" Font-Size="9pt" Height="15px" Text='<%# DataBinder.Eval(Container.DataItem,"CardDate") %>'
                                            Width="99px"></asp:Label>&nbsp;</td>
                                            </tr>
                                        </table>
                                        </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:DataList><br />
                    <br />
                    <br />
                    <table align="center" style=" width: 579px;" cellpadding="0" cellspacing="0">
            <tr>
                <td style="vertical-align: top; height: 1px; width: 579px; text-align: right;">
                    <asp:Label ID="Label7" runat="server" Text="当前页码为："></asp:Label>
                    [
                    <asp:Label ID="labPage" runat="server" Text="1" Width="12px"></asp:Label>
                    &nbsp;]
                    <asp:Label ID="Label6" runat="server" Text="总页码为："></asp:Label>
                    [
                    <asp:Label ID="labBackPage" runat="server"></asp:Label>
                    &nbsp;]<asp:LinkButton ID="lnkbtnOne" runat="server" Font-Underline="False" ForeColor="Red"
                        OnClick="lnkbtnOne_Click">第一页</asp:LinkButton>
                    <asp:LinkButton ID="lnkbtnUp" runat="server" Font-Underline="False" ForeColor="Red"
                        OnClick="lnkbtnUp_Click">上一页</asp:LinkButton>
                    <asp:LinkButton ID="lnkbtnNext" runat="server" Font-Underline="False" ForeColor="Red"
                        OnClick="lnkbtnNext_Click">下一页</asp:LinkButton>&nbsp;
                    <asp:LinkButton ID="lnkbtnBack" runat="server" Font-Underline="False" ForeColor="Red"
                        OnClick="lnkbtnBack_Click">最后一页</asp:LinkButton>
                    &nbsp;
                </td></tr> 
                </table> 
                </td>
            </tr>
        </table>
    <table align="center" style="vertical-align: middle; width: 755px;" cellpadding="0" cellspacing="0">
            <tr>
                <td style="vertical-align: top; height: 74px; width: 755px;">
                    <uc3:BBSFooter ID="BBSFooter1" runat="server" />
                </td></tr> 
                </table> 
    </div>
    </form>
</body>
</html>
