<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BBS_View.aspx.cs" Inherits="TotCms.Web.Office.BBS.BBS_View" %>

<!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>
     <link href="../style/global.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    
    <table width="100%">
        <tr>
            <td></td>
            <td>
                <div>
                    <table>
                        <tr>
                            <td>
                                <img src="images/free1.jpg" />
                            </td>
                            <td>
                                <a href="BBS_List.aspx">论坛摘要</a>
                            </td>
                            <td>
                                <a href="Manage.aspx">论坛一览</a>
                            </td>
                            <td class="topic">
                                <a href="BBS_Add.aspx">发新话题</a>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
            <td></td>
        </tr>
        <tr>
            <td style="width:10%"></td>
            <td style="width:80%">
                <div>
        <table style="width:100%;" border="0" cellpadding="0" cellspacing="1" class="border">
            <tr class="suphead">
                <td>
                    <asp:Label ID="lbTitle" runat="server"></asp:Label>
                </td>
            </tr>
        </table>
        <asp:ListView ID="lvBBS" runat="server" ItemPlaceholderID="items" DataKeyNames="id">
            <LayoutTemplate>
                <table cellpadding="0" cellspacing="1" border="0" width="100%" class="border">                   
                  <%--  <tr>
                        <td>
                            作者:<%#Eval("UserName")%>&nbsp;&nbsp;&nbsp;
                            日期:<%#Eval("PubDate")%></td>
                    </tr>
                    <tr>
                        <td>
                            <%#Eval("Content")%>
                        </td>
                    </tr> 
                    <tr>
                        <td>
                            <a href="BBS_Add.aspx?id=<%#Eval("Content")%>">回复</a>
                        </td>
                    </tr>                     --%>
                    <asp:PlaceHolder runat="server" ID="items"></asp:PlaceHolder>
                </table>
            </LayoutTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        作者:<%#Eval("UserName")%>&nbsp;&nbsp;&nbsp;
                        日期:<%#Eval("PubDate")%></td>
                </tr>            
                <tr>
                    <td>
                        <div><%#Eval("Content")%></div>
                    </td>
                </tr>
                <tr>
                    <td align="center">
                        <a href="BBS_Add.aspx?id=<%#Eval("id")%>" style="color:Fuchsia">回复</a>
                    </td>
                </tr>
                <tr>
                    <td><hr /></td>
                </tr>
            </ItemTemplate>
        </asp:ListView>
    </div>
            </td>
            <td style="width:10%"></td>
        </tr>
    </table>

    
    <div class="hidden">
        <asp:TextBox ID="TopicId" runat="server"></asp:TextBox>
        <asp:TextBox ID="ClassId" runat="server"></asp:TextBox>
    </div>
    </form>
</body>
</html>
