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

📄 forum_recommend_topics.ftl

📁 学生选课系统 赶快来下载啊啊好东西 呵呵啊啊 啊啊啊啊啊
💻 FTL
字号:
<#assign styleType = itemParaMap.style_type >
<#assign styleWidth = itemParaMap.style_width >
<#assign styleHeight = itemParaMap.style_height >
<#assign titleLength = itemParaMap.title_length?number >
<div id="${divID}" class="${FORUM_RECOMMEND_TOPICS} pageItemOrder ${styleType}" style="width:${styleWidth}px;height:${styleHeight}px;<#if isShow?? && isShow><#else>display:none;</#if>">
  <#assign topic_items = itemParaMap.topic_items/>
  <#assign data_num = itemParaMap.data_num?default("10")?number/>
  <#assign link_type = itemParaMap.link_type/>
  <#assign h2TitleHref = _UrlUtil.encodeURL("/topics-"+forumInfo.forum_id+"-1.fhtml")/>
  <#assign h2Title = forumInfo.forum_name/>
  <#include "h2_inc.ftl"/>
  <#assign forumTopicList = forumTopics[forumInfo.forum_id]/>
  <#assign forumRecommendTopicList = forumTopics[forumInfo.forum_id+".recommend"]/>
  <#assign forumRecommendTopicNum = 0>
  <#assign topTopicNum = 0>
  <#assign topicNum = 0>
  <div class="innerContent">
    <#assign adContentTop =  _AdsUtil.getForumAds("FORUM_RECOMMEND_TOPICS_TOP", forumInfo.forum_id,_tplStyle)>
    <#if adContentTop != "">
    <div class="ad ad_top">
    ${adContentTop}
    </div>
    </#if><#comment> end ads</#comment>
    <div class="clean"></div>
    <#if forumRecommendTopicList ?? && forumRecommendTopicList.size() &gt; 0>
    <#assign forumRecommendTopicNum = forumRecommendTopicList.size()>
    <#comment> 手工推荐区 </#comment>
      <#list forumRecommendTopicList as topTopic>
      <#if topTopic.istop=="0" && topTopicNum &lt; data_num?number>
        <#assign topTopicNum = topTopicNum + 1 />
        <dl class="topic">
        <#if topTopic.image ??>
          <dt onmouseover="this.className='hover'"  onmouseout="this.className=''"><a href="${topTopic.url}" title="${topTopic.post_title}" target="_blank" alt="${topTopic.post_title}"><img src="${_contextPath}${topTopic.image}"></a></dt>
          <dd class="short title"><a href="${topTopic.url}" style="${topTopic.post_highlight?default("")}" target="${link_type}">${topTopic.post_title}</a></dd>
          <#if topTopic.post_content ??>
          <dd class="short content">${topTopic.post_content}</dd>
          </#if>
        <#else>
          <dd class="long title"><a href="${topTopic.url}" style="${topTopic.post_highlight?default("")}" target="${link_type}">${topTopic.post_title}</a></dd>
          <#if topTopic.post_content ??>
          <dd class="long content">${topTopic.post_content}</dd>
          </#if>
        </#if>
        </dl>
      </#if>
      </#list>
    <ul class="topics">
      <#list forumRecommendTopicList as topic> 
      <#if topic.istop=="1" && topTopicNum + topicNum &lt; data_num?number>
      <#assign topicNum = topicNum + 1 />
      <li class="no${topicNum}">
        <b class="num">${topicNum}</b>
        <#if topic_items!="NONE">
        <div class="topicInfo">
          <#if topic_items == "user_id" && topic.user_id??>
          <a href="${_UrlUtil.encodeURL("/"+_EFUserUtil.getBlogURL(topic.user_id))}" target="${link_type}">${_EFUserUtil.getNickName(topic.user_id)}</a>
          <#elseif topic_items == "title_time">
            ${topic.title_time}
          </#if>                  
        </div>
        </#if>
        <span class="topicTitle">
          <#if topic.subject?default("") != "">
            <#if _ForumUtil.allowSubject(forumInfo.forum_id) && _ForumUtil.isYes(forumInfo.forum_id, _ForumConKey.FORUM_SUBJECT_POST_PREFIX)>
              <span class="subject">
              <#if  _ForumUtil.isYes(forumInfo.forum_id, _ForumConKey.FORUM_SUBJECT_ALLOW_VIEWBY)>
              [<a href="${_UrlUtil.encodeURL("/topics-" + forumInfo.forum_id + "-----" + topic.subject?url +"---0-0.fhtml")}" target="${link_type}">${topic.subject}</a>]
              <#else>
              [${topic.subject}]
              </#if>
              </span>
            </#if>
          </#if><a href="${topic.url}" style="${topic.post_highlight?default("")}" target="${link_type}">${topic.post_title}</a>
        </span>
      </li>
      </#if>
      </#list>
    <#else>
    <ul class="topics">
    </#if>
    <#comment> 自动获取区 </#comment>
    <#if forumTopicList ??>
    <#list forumTopicList as topic>
    <#if data_num?number &gt;= forumRecommendTopicNum + topic_index + 1>
    <li class="no${topic_index+forumRecommendTopicNum+1-topTopicNum}">
      <b class="num">${topic_index+forumRecommendTopicNum+1-topTopicNum}</b>
      <#if topic_items!="NONE">
      <div class="topicInfo">
        <#if topic_items == "user_id" && topic.user_id??>
        <#assign topic_items="user_id">
        <a href="${_UrlUtil.encodeURL("/"+_EFUserUtil.getBlogURL(topic[topic_items]))}" target="${link_type}">${_EFUserUtil.getNickName(topic[topic_items])}</a>
        <#elseif topic_items == "title_time">
          ${topic[topic_items]?default("")}
        </#if>
      </div>
      </#if>
      <span class="topicTitle">
        <#if topic.post_subject?default("") != "">
          <#if _ForumUtil.allowSubject(forumInfo.forum_id) && _ForumUtil.isYes(forumInfo.forum_id, _ForumConKey.FORUM_SUBJECT_POST_PREFIX)>
            <span class="subject">
            <#if  _ForumUtil.isYes(forumInfo.forum_id, _ForumConKey.FORUM_SUBJECT_ALLOW_VIEWBY)>
            [<a href="${_UrlUtil.encodeURL("/topics-" + forumInfo.forum_id + "-----" + topic.post_subject?url +"---0-0.fhtml")}" target="${link_type}">${topic.post_subject}</a>]
            <#else>
            [${topic.post_subject}]
            </#if>
            </span>
          </#if>
        </#if>
        <#assign post_title = _StringUtil.cutString( topic.post_title,titleLength, "" )/>
        <a href="${_UrlUtil.encodeURL("/"+_PostUtil.getTopicURL(topic.post_id))}" target="${link_type}" style="${topic.post_highlight?default("")}"> ${post_title?html}</a>
      </span>
      </li>
      </#if>
      </#list>
      </#if>
    </ul>
    <#assign adContentBottom =  _AdsUtil.getForumAds("FORUM_RECOMMEND_TOPICS_BOTTOM", forumInfo.forum_id,_tplStyle)>
    <#if adContentBottom != "">
    <div class="ad ad_bottom">
    ${adContentBottom}
    </div>
    </#if><#comment> end ads</#comment>
    <div class="clean"></div>
  </div>
  <div class="ft"><B class=lc></B><B class=rc></B></div>
  <div class="clean"></div>
</div>

⌨️ 快捷键说明

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