skin-mythreadlist.ascx

来自「ASP.NET简洁论坛源代码 这是一个简单的论坛」· ASCX 代码 · 共 43 行

ASCX
43
字号
<%@ Control Language="C#" Inherits="NetFocus.Web.Applications.Forum.MyThreadList, NetFocus.Web.Applications.Forum" AutoEventWireup="true" %>
<%@ Import Namespace="NetFocus.Web.Applications.Forum" %>

<fieldset>
	<legend>我发表的帖子</legend>	
			
    <asp:Repeater id="list" runat="server">
        <HeaderTemplate>
            <table border="0" cellpadding="0" cellspacing="0" class="AdminTable">
	            <thead>
		            <tr>
			            <th class="TitleCol">标题</th>
			            <th class="IsRecommendedCol">是否推荐</th>
			            <th class="CountCol">回复总数</th>
		            </tr>
	            </thead>
	            <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
			    <td class="TitleCol">
                    <a target="_blank" href="<%# SiteUrls.Instance().GetThreadUrl(((Thread)Container.DataItem).EntityId) %>"><%# ((Thread)Container.DataItem).Subject %></a>
			    </td>
			    <td class="IsRecommendedCol">
                    <%# ((Thread)Container.DataItem).ThreadType == 1 ? "是" : "否" %>
			    </td>			    
			    <td class="CountCol">
                    <%# ((Thread)Container.DataItem).TotalPosts %>
			    </td>			    
		    </tr>
        </ItemTemplate>
        <FooterTemplate>
			    </tbody>
	        </table>
        </FooterTemplate>
    </asp:Repeater>
    <div class="PagingWrapper">
        <asp:Panel Runat="server" align="right" CssClass="CommonPagingArea">
            <nwap:CurrentPage Cssclass="columnText" id="currentPage" runat="server" />
            <nwap:Pager id="pager" runat="server" PageSize="50" />
        </asp:Panel>
    </div>
</fieldset>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?