discuss_discusssection.ascx

来自「倒奶CMS内容管理系统 v6.0 中文版 软件类别: .NET源码 / 全站系」· ASCX 代码 · 共 55 行

ASCX
55
字号
<%@ Control Language="C#" %>
<%@ Register TagPrefix="community" Namespace="ASPNET.StarterKit.Communities" Assembly="ASPNET.StarterKit.Communities" %>
<community:SectionTitle CssClass="ArticleSection_SectionTitle" runat="Server"/>
<br />
<community:PageHeader runat="Server" />
<div align="right">
<community:Notify Text="有新贴时通知我" runat="Server" />
</div>
<p>
<community:AddContent Text="发新贴" ImageUrl="~/Communities/Common/Images/Discuss/NewThread.gif" NavigateUrl="Discuss_AddPost.aspx" Runat="Server"/>
</p>
<community:ContentList id="ContentList" width="100%" runat="Server">
    <HeaderTemplate>
    <table width="100%" class="discussTable" cellspacing="1">
    <tr>
        <th colspan="2" nowrap="nowrap">主题</th>    
        <th nowrap="nowrap">发起人</th>
        <th nowrap="nowrap">回复</th>
        <th nowrap="nowrap">浏览</th>
        <th nowrap="nowrap">最后回复</th>
    </tr>
    </HeaderTemplate>
    
    <ItemTemplate>
    <tr>
        <td class="discussCell"><community:ItemDiscussIcon PopularCount="40" runat="Server"/></td>
        <td class="discussCell"><community:ItemTitleLink  runat="Server"/></td>
        <td class="discussCellHiLite"><community:ItemAuthor runat="Server"/></td>
        <td class="discussCellHiLite"><community:ItemCommentCount runat="Server"/></td>
        <td class="discussCellHiLite"><community:ItemViewCount runat="Server"/></td>
        <td class="discussCellHiLite" align="center">
            <community:ItemDiscussPinnedPost text="置顶贴" runat="Server" />
            <community:ItemDiscussDateCommented dateformatstring="{0:g}" DisplayTimeZone="true" runat="Server"/>
            <br />by <community:ItemDiscussLastCommentUsername runat="Server" />
        </td>
    </tr>
    </ItemTemplate>
    
    <FooterTemplate>
    </table>
    </FooterTemplate>
    
    <NoContentTemplate>
         现在还没有内容.
    </NoContentTemplate>
</community:ContentList>



<community:PageFooter runat="Server" />

<p>
<span class="Content"><community:DiscussEditContent AddText="发新贴" ModerateText="审批帖子" Runat="Server" /></span>
</p>

⌨️ 快捷键说明

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