⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 forumtagtopics.ftl

📁 学生选课系统 赶快来下载啊啊好东西 呵呵啊啊 啊啊啊啊啊
💻 FTL
📖 第 1 页 / 共 2 页
字号:
		</td>
	</tr>
</tbody>
</table>
</div><#comment> end tagSearch </#comment>
</#if>
</form>

<div id="forumTagSearchPopTag" class="commonNavBox">
<table class="outline">
	<tr class="hd">
		<td class="td1">
			版面流行标签
		</td>
		<td class="td2">
			<img src="${_resPath}/img/side_view_yes.gif" style="cursor:pointer;" onclick="expandContent('forumTagSearchPopTagTable');">
		</td>
	</tr>
<tbody id="forumTagSearchPopTagTable" class="content">
  <tr class="areaLine">
		<td class="area" colspan=2>
		<div class="tagCloud">
		<#assign tags = _TagUtil.getTopicListTags(forum_id,40) />
		<#list tags as tag>
			<span><a href="${_UrlUtil.encodeURL("/topic.do?_fn=TagTopicList&forum_id="+forum_id+"&tag_id="+tag.tag_id+"&tag_name="+tag.tag_name?url)}" style="${tag.tagAttribute}" target="_blank">${tag.tag_name}</a></span>
		</#list>
		</div>
		</td>
  </tr>
</tbody>
</table>
</div><#comment> end tagSearchPopTag </#comment>

</div><#comment> end commonLeft </#comment>

<div id="commonRight">

<div id="forumTagTopics" class="commonBox">

  <table class="tagTopics commonTable">
    <tr class="hd1">
      <td colspan="2">
        <#if forum_id ? exists>
          <#assign currentForum = _ForumUtil.getForumInfo(forum_id)/>
        版面 <span class="forumName">${currentForum.forum_name}</span> </#if>
        里与 <span class="tagName">${tag_name?default("")}</span> 相关的主题

      </td>
    </tr>
    <#if forumTagTopics.size() &gt; 0>
    <#list forumTagTopics as topic>
      <tr class="content">
        <#if topic_index == (forumTagTopics.size() - 1)>
          <td class="td00" rowspan="2">
        <#else>
          <td class="td0" rowspan="2">
        </#if>
          <#comment> 主题类型 </#comment>
          <#comment> 首先判断此主题的最新回复或者创建时间是否在24小时之内 </#comment>
          <#comment> 然后判断在cookie中是否记录此主题已经被访问 </#comment>
          <#if (topic.post_lasttime?default(topic.post_createtime)?number &gt; _DateUtil.adjustDays(_DateUtil.getCurDateTimeLong(), -1)) && visitedTopics.contains(topic.post_id) == false>
            <#if topic.post_type?default(_Constants.POST_TYPE_TOPIC)?number == _Constants.POST_TYPE_TOPIC>
            <img src="${_resPath}/img/posttype_0_new.gif" alt="普通贴" title="普通贴">
            <#elseif topic.post_type?default(_Constants.POST_TYPE_TOPIC)?number == _Constants.POST_TYPE_VOTE>
            <img src="${_resPath}/img/posttype_2_new.gif" alt="投票贴" title="投票贴">
            <#elseif topic.post_type?default(_Constants.POST_TYPE_TOPIC)?number == _Constants.POST_TYPE_REWARD>
            <img src="${_resPath}/img/posttype_3_new.gif" alt="悬赏贴" title="悬赏贴">
            <#elseif topic.post_type?default(_Constants.POST_TYPE_TOPIC)?number == _Constants.POST_TYPE_ARGUE>
            <img src="${_resPath}/img/posttype_4_new.gif" alt="辩论贴" title="辩论贴">
            <#elseif topic.post_type?default(_Constants.POST_TYPE_TOPIC)?number == _Constants.POST_TYPE_ACTIVITY>
            <img src="${_resPath}/img/posttype_5_new.gif" alt="活动贴" title="活动贴">
            <#elseif topic.post_type?default(_Constants.POST_TYPE_TOPIC)?number == _Constants.POST_TYPE_BULKPURCHASE>
            <img src="${_resPath}/img/posttype_6_new.gif" alt="团购贴" title="团购贴">
            <#elseif topic.post_type?default(_Constants.POST_TYPE_TOPIC)?number == _Constants.POST_TYPE_TRADE>
            <img src="${_resPath}/img/posttype_7_new.gif" alt="交易贴" title="交易贴">
            </#if>  
          <#else>
            <#if topic.post_type?default(_Constants.POST_TYPE_TOPIC)?number == _Constants.POST_TYPE_TOPIC>
            <img src="${_resPath}/img/posttype_0.gif" alt="普通贴" title="普通贴">
            <#elseif topic.post_type?default(_Constants.POST_TYPE_TOPIC)?number == _Constants.POST_TYPE_VOTE>
            <img src="${_resPath}/img/posttype_2.gif" alt="投票贴" title="投票贴">
            <#elseif topic.post_type?default(_Constants.POST_TYPE_TOPIC)?number == _Constants.POST_TYPE_REWARD>
            <img src="${_resPath}/img/posttype_3.gif" alt="悬赏贴" title="悬赏贴">
            <#elseif topic.post_type?default(_Constants.POST_TYPE_TOPIC)?number == _Constants.POST_TYPE_ARGUE>
            <img src="${_resPath}/img/posttype_4.gif" alt="辩论贴" title="辩论贴">
            <#elseif topic.post_type?default(_Constants.POST_TYPE_TOPIC)?number == _Constants.POST_TYPE_ACTIVITY>
            <img src="${_resPath}/img/posttype_5.gif" alt="活动贴" title="活动贴">
            <#elseif topic.post_type?default(_Constants.POST_TYPE_TOPIC)?number == _Constants.POST_TYPE_BULKPURCHASE>
            <img src="${_resPath}/img/posttype_6.gif" alt="团购贴" title="团购贴">
            <#elseif topic.post_type?default(_Constants.POST_TYPE_TOPIC)?number == _Constants.POST_TYPE_TRADE>
            <img src="${_resPath}/img/posttype_7.gif" alt="交易贴" title="交易贴">
            </#if>
          </#if>
        </td>
        <td class="td1">
          <div class="status">
            <#comment> 关闭状态</#comment>
            <#if topic.post_closed?default(_Constants.POST_ISCLOSED_NO)?number == _Constants.POST_ISCLOSED_YES>
            <img src="${_resPath}/img/locktopic.png" alt="锁定" title="锁定">
            </#if>
            <#comment> 精华</#comment>
            <#if topic.post_isbest?default(_Constants.STATUS_NO)?number == _Constants.STATUS_YES>
            <img src="${_resPath}/img/besttopic.png" alt="精华" title="精华">
            </#if>
            <#comment> 置顶 </#comment>
            <#if topic.post_istop?default(_Constants.TOPIC_TOP_NO)?number == _Constants.TOPIC_TOP_ALL>
            <img src="${_resPath}/img/toptopic_1.png" alt="全局置顶" title="全局置顶">
            <#elseif topic.post_istop?default(_Constants.TOPIC_TOP_NO)?number == _Constants.TOPIC_TOP_CLASS>
            <img src="${_resPath}/img/toptopic_2.png" alt="分类置顶" title="分类置顶">
            <#elseif topic.post_istop?default(_Constants.TOPIC_TOP_NO)?number == _Constants.TOPIC_TOP_FORUM>
            <img src="${_resPath}/img/toptopic_3.png" alt="版面置顶" title="版面置顶">
            </#if>
          </div>
          <div class="topicTitle">
          <a href="${_UrlUtil.encodeURL("/"+_PostUtil.getTopicURL(topic.post_id))}" title="${topic.post_title?html}" <#if topic.post_highlight?default("")!="">style="${topic.post_highlight}"</#if> target="_blank">${topic.post_title?html}</a>
          <#comment> 是否是金钱贴 </#comment>
          <#if (topic.post_money?default(0)?number) &gt; 0>
          [售价:<span class="font_hilite number">${topic.post_money?default(0)}</span>]
          </#if>
          <#comment> 是否悬赏贴 </#comment>
          <#if topic.post_type?default(_Constants.POST_TYPE_TOPIC)?number == _Constants.POST_TYPE_REWARD>
          <#comment> 获取悬赏贴的悬赏信息 </#comment>
          <#assign topicReward = _TopicUtil.getRewardTopic(topic.post_id)/>
          <#if topicReward ? exists>
          <#if topicReward.reward_postid ? exists>
          [已解决]
          <#else>
          [悬赏金额:<span class="font_hilite number">${topicReward.reward_amount?default(0)}</span>]
          </#if>
          </#if>
          </#if>
          <#comment> 是否需要权限 </#comment>
          <#if topic.post_prestige?default(0)?number != 0>
          [权限:<span class="font_hilite number">${topic.post_prestige?default(0)}</span>]
          </#if>
          <#comment> 当前心情 </#comment>
          <#if topic.post_face ? exists && topic.post_face?default("") != "">
            <img src="${topic.post_face?default("")}" style="vertical-align:middle;" alt="当前心情" title="当前心情">
          </#if>
          <#comment> 附件类型 </#comment>
          <#if topic.post_attachtype?default(_Constants.POST_ATTACHMENT_TYPE_NO)?number == _Constants.POST_ATTACHMENT_TYPE_OTHER>
          <img src="${_resPath}/img/attach.gif" alt="附件" title="附件">
          <#elseif topic.post_attachtype?default(_Constants.POST_ATTACHMENT_TYPE_NO)?number == _Constants.POST_ATTACHMENT_TYPE_PIC>
          <img src="${_resPath}/img/attach_pic.gif" alt="图片附件" title="图片附件">
          </#if>
          <#comment> 热门 </#comment>
          <#if topic.post_replynum?default(0)?number &gt;= _ConfigUtil.getConfigInfo("POST_HOT_FLOOR")?default(0)?number>
          <img src="${_resPath}/img/hottopic.gif" alt="热门" title="热门">
          </#if>
          <span class="number" title="回复数/浏览数">(${topic.post_replynum?default("0")}/${topic.post_viewnum?default("0")})</span>
          <#include "topiclist_pagination.ftl">
          </div>
        </td>
      </tr>
      <tr class="content">
        <#if topic_index == (forumTagTopics.size() - 1)>
          <td class="td4">
        <#else>
          <td class="td2">
        </#if>
          <div class="authorInfo">
            ${_DateUtil.miniHappenedTime(_EFUser,topic.post_createtime?number)} <span class="number">by</span> 
            <#comment> 获取用户信息 </#comment>
            <#if _EFUserUtil.isGuest(topic.user_id)>
              ${_EFUserUtil.getNickName(topic.user_id)}
            <#else>
              <#if _PostUtil.showHidden(topic)>
                匿名用户
              <#else>
                <a href="${_UrlUtil.encodeURL("/"+_EFUserUtil.getBlogURL(topic.user_id))}" title="${_EFUserUtil.getNickName(topic.user_id)}" target="_blank">${_EFUserUtil.getNickName(topic.user_id)}</a>
              </#if>
            </#if>
          </div>
          标签:
            <#list topic.post_tags as tag>
              <#if !tag.isEmpty()>
                <#if tag.tag_id == tag_id>
                  <a href="${_UrlUtil.encodeURL("/topic.do?_fn=TagTopicList&forum_id="+forum_id+"&tag_id="+tag.tag_id+"&tag_name="+tag.tag_name?url)}" class="lightColor" target="_blank">${tag.tag_name?html}</a>
                <#else>
                  <a href="${_UrlUtil.encodeURL("/topic.do?_fn=TagTopicList&forum_id="+forum_id+"&tag_id="+tag.tag_id+"&tag_name="+tag.tag_name?url)}" class="commonColor" target="_blank">${tag.tag_name?html}</a>
                </#if>
              </#if>
            </#list>
        </td>
      </tr>
    </#list>
    <#else>
      <#assign noDataInfo = "没有符合条件的关联主题"/>
      <#assign isTable = true/>
      <#assign colspanNum = 1/>
      <#include "nodatainfo_inc.ftl"/>
    </#if>
  </table>

</div><#comment> end forumTagTopics </#comment>

<div id="pageNavigationDiv">
  <#assign pagination=Context["PAGE_FORUM_TAG_TOPIC_LIST"]?default(_EmptyObject.pagination()) />
  <@html.doPagination pagination=pagination pageSizeConfig="topPageSizeMenu,20,40,80"/>
</div><#comment> end tagTopicsAction </#comment>

</div><#comment> end commonRight </#comment>

</div><#comment> end content </#comment>

<#include "footer.ftl"/>

</div><#comment>end wrap </#comment>
</body>
</html>

⌨️ 快捷键说明

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