<%@ page title="" language="C#" masterpagefile="~/lovecenter/LoveCenterMaster.master" autoeventwireup="true" inherits="lovecenter_Asks, 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">
            <%= PageTitle %>列表
        </div>
        <div class="bodycotent">
            <div class="menutab">
                <div class="menuitem">
                    <a <%= Request["act"] != "mypost" ? "class='chk'" : "" %> href="asks.aspx">我的提问</a>
                    <a <%= Request["act"] != null ? "class='chk'" : "" %> href="asks.aspx?act=mypost">我的回答</a>
                </div>
                <div class="menusub search">
                    <asp:Panel ID="Panel1" runat="server" DefaultButton="btnSearch">
                    <table border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td valign="middle" height="30">请输入关键字搜索：<asp:TextBox ID="txtKeywords" runat="server" Width="200"></asp:TextBox>&nbsp; 
                            </td>
                            <td>
                            <asp:LinkButton ID="btnSearch" runat="server" Text="搜索" CssClass="genbtn" OnClick="btnSearch_Click" Width="80"/></td>
                        </tr>
                    </table>
                    </asp:Panel>
                </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>
                            <td width="100">最后回复</td>
                        </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr bgcolor="<%# Container.ItemIndex % 2 == 0 ? "#ffffff" : "#e8f4fc" %>">
			                <td><a target="_blank" href="<%# Utils.GetAskItemLinkUrl(DataBinder.Eval(Container.DataItem, "subcateid"),DataBinder.Eval(Container.DataItem, "topcid")) %>"><%# DataBinder.Eval(Container.DataItem, "subject")%></a></td>
                            <td><%# DataBinder.Eval(Container.DataItem, "asks")%>/<%# DataBinder.Eval(Container.DataItem, "hots")%></td>
                            <td><%# Convert.ToBoolean(DataBinder.Eval(Container.DataItem, "isdone")) ? "<img src='/images/chked.gif' />" : "<img src='/images/ques2.gif' />"%></td>
                            <td><%# Utils.DateStringFromNow(DataBinder.Eval(Container.DataItem, "lastaskdate"))%></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>

