<%@ page title="" language="C#" masterpagefile="~/lovecenter/LoveCenterMaster.master" autoeventwireup="true" inherits="lovecenter_Message, 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 href="?tab=0" <%= tab == 0 ? "class='chk'" : "" %>>好友消息</a>
                </div>
                <div class="menusub">
                    <%if (tab == 0)
                      { %>
                    <a href="?act=0" <%= act == 0 ? "class='b'" : "" %>>收件箱</a> | 
                    <a href="?act=1" <%= act == 1 ? "class='b'" : "" %>>发件箱</a> 
                    <%}
                      else
                      { %>
                    <a>最新消息</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 width="100"><%= act == 0 ? "发件人" : "收件人"%></td>
                            <td>主题</td>
                            <td width="100">日期</td>
                            <td width="100">状态</td>
                        </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr>
                            <% if (act == 0)
                               {%>
                            <td width="100"><%# DataBinder.Eval(Container.DataItem, "msgfrom")%></td>
                            <%}
                               else
                               {%>
                            <td width="100"><%# DataBinder.Eval(Container.DataItem, "msgto")%></td>
                            <%} %>
                            <td><a <%# Convert.ToBoolean(DataBinder.Eval(Container.DataItem, "new")) ? "class='b'" : "" %> target="_blank" href="<%= ConfigurationManager.AppSettings["url_forum"] %>usercpshowpm.aspx?pmid=<%# DataBinder.Eval(Container.DataItem, "pmid")%>"><%# DataBinder.Eval(Container.DataItem, "subject")%></a></td>
                            <td width="100"><%# DataBinder.Eval(Container.DataItem, "postdatetime", "{0:d}")%></td>
                            <td width="100"><%# Convert.ToBoolean(DataBinder.Eval(Container.DataItem, "new")) ? "未读" : "已读" %></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>

