<%@ page title="" language="C#" masterpagefile="~/lovecenter/LoveCenterMaster.master" autoeventwireup="true" inherits="lovecenter_Thread, App_Web_ubyenibr" enableEventValidation="false" %>

<%@ Register src="../inc/ParamPageNavigator.ascx" tagname="ParamPageNavigator" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="rightbody">
        <div class="menutit">
            我的帖子
        </div>
        <div class="bodycotent">
            <div class="menutab">
                <div class="menuitem">
                    <a  class="chk">我的帖子</a>
                </div>
                <div class="menusub">
                    <a href="thread.aspx" <%= act == 0 ? "class='b'" : "" %>>我的主贴</a> | 
                    <a href="thread.aspx?act=1" <%= act == 1 ? "class='b'" : "" %>>我的回复</a> | 
                    <a href="thread.aspx?act=2" <%= act == 2 ? "class='b'" : "" %>>我的精华</a>
                </div>
            </div>
            <div class="body">
                <div class="descr">共有<%= recordcount %>个帖子</div>
                <div class="list">
                    <asp:Repeater ID="rptMain" runat="server">
                    <HeaderTemplate>
                    <table width="100%">
                        <tr class="tit">
                            <td>主题</td>
                            <td width="100">日期</td>
                            <td width="100">最后回复</td>
                        </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr>
                            <td><a target="_blank" href="<%= ConfigurationManager.AppSettings["url_forum"] %>showtopic-<%# DataBinder.Eval(Container.DataItem, "tid")%>.aspx"><%# DataBinder.Eval(Container.DataItem, "title")%></a></td>
                            <td width="100"><%# DataBinder.Eval(Container.DataItem, "postdatetime","{0:d}")%></td>
                            <td width="100"><%# DataBinder.Eval(Container.DataItem, "lastposter")%></td>
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                    </table>
                    </FooterTemplate>
                    </asp:Repeater>
                    <% if(rptMain.Items.Count==0){ %>
                    <div class="nodata">暂无内容</div>
                    <%} %>
                </div>
                <div class="right mg_top">
                    <uc1:ParamPageNavigator ID="ParamPageNavigator1" runat="server" />
                </div>
            </div>
        </div>
    </div>
</asp:Content>

