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

📄 stat_inc.ftl

📁 学生选课系统 赶快来下载啊啊好东西 呵呵啊啊 啊啊啊啊啊
💻 FTL
字号:
<div id="statInc" class="commonBox">
	<table class="statInc commonTable">
		<tr class="hd1">
    <#assign IndexPicsRotateAds =  _AdsUtil.getAds("Index_PicsRotate_classic",_tplStyle)>
    <#if IndexPicsRotateAds != "">
      <td style="width:30%">• 焦点</td>
			<td style="width:25%">• 30日热门</td>
			<td style="width:25%">• 最新主题</td>
      <td style="width:20%">• 最新回复</td>
    <#else>
			<td style="width:25%">• 30日热门</td>
			<td style="width:25%">• 最新主题</td>
      <td style="width:25%">• 最新回复</td>
      <td style="width:25%">• 论坛排行榜</td>
    </#if>
		</tr>
    <tr id="statIncBody">
    <#if IndexPicsRotateAds != "">
      <td>
        <div style="margin:5px 5px 0px 5px;overflow:hidden;">
        ${IndexPicsRotateAds}
        </div>
      </td>
      <td>
        <#assign topicList = _TopicUtil.getHotTopics30Days(_Constants.SELECT_OPTION_ALL, 10)/>
        <table class="statContent">
          <#list 0..9 as i>
          <tr class="statIncContent">
            <td class="statValue">
              <div>
              <#if topicList[i]?exists>
              <a href="${_UrlUtil.encodeURL("/"+_PostUtil.getTopicURL(topicList[i].post_id))}" target="_blank"  title="${topicList[i].post_title}"> ${_StringUtil.cutString(topicList[i].post_title, 30, "...")?html}</a>
              </#if>
              </div>
            </td>
          </tr>
          </#list>
        </table>
      </td>
      <td>
        <#assign topicList = _TopicUtil.getNewTopics(_Constants.SELECT_OPTION_ALL, 10)/>
        <table class="statContent">
          <#list 0..9 as i>
          <tr class="statIncContent">
            <td class="statValue">
              <div>
              <#if topicList[i]?exists>
              <a href="${_UrlUtil.encodeURL("/"+_PostUtil.getTopicURL(topicList[i].post_id))}" target="_blank"  title="${topicList[i].post_title}"> ${_StringUtil.cutString(topicList[i].post_title, 30, "...")?html}</a>
              </#if>
              </div>
            </td>
          </tr>
          </#list>
        </table>
      </td>
      <td>
        <#assign topicList = _TopicUtil.getNewPosts(_Constants.SELECT_OPTION_ALL, 10)/>
        <table class="statContent">
          <#list 0..9 as i>
          <tr class="statIncContent">
            <td class="statValue">
              <div>
              <#if topicList[i]?exists>
              <a href="${_UrlUtil.encodeURL("/"+_PostUtil.getLastPostURL(topicList[i].post_id?default("-1")))}" target="_blank"  title="${topicList[i].post_title}"> ${_StringUtil.cutString(topicList[i].post_title, 30, "...")?html}</a>
              </#if>
              </div>
            </td>
          </tr>
          </#list>
        </table>
      </td>
    <#else>
      <td>
        <#assign topicList = _TopicUtil.getHotTopics30Days(_Constants.SELECT_OPTION_ALL, 10)/>
        <table class="statContent">
          <#list 0..9 as i>
          <tr class="statIncContent">
            <td class="statValue">
              <div>
              <#if topicList[i]?exists>
              <a href="${_UrlUtil.encodeURL("/"+_PostUtil.getTopicURL(topicList[i].post_id))}" target="_blank"  title="${topicList[i].post_title}"> ${_StringUtil.cutString(topicList[i].post_title, 30, "...")?html}</a>
              </#if>
              </div>
            </td>
          </tr>
          </#list>
        </table>
      </td>
      <td>
        <#assign topicList = _TopicUtil.getNewTopics(_Constants.SELECT_OPTION_ALL, 10)/>
        <table class="statContent">
          <#list 0..9 as i>
          <tr class="statIncContent">
            <td class="statValue">
              <div>
              <#if topicList[i]?exists>
              <a href="${_UrlUtil.encodeURL("/"+_PostUtil.getTopicURL(topicList[i].post_id))}" target="_blank"  title="${topicList[i].post_title}"> ${_StringUtil.cutString(topicList[i].post_title, 30, "...")?html}</a>
              </#if>
              </div>
            </td>
          </tr>
          </#list>
        </table>
      </td>
      <td>
        <#assign topicList = _TopicUtil.getNewPosts(_Constants.SELECT_OPTION_ALL, 10)/>
        <table class="statContent">
          <#list 0..9 as i>
          <tr class="statIncContent">
            <td class="statValue">
              <div>
              <#if topicList[i]?exists>
              <a href="${_UrlUtil.encodeURL("/"+_PostUtil.getLastPostURL(topicList[i].post_id?default("-1")))}" target="_blank"  title="${topicList[i].post_title}"> ${_StringUtil.cutString(topicList[i].post_title, 30, "...")?html}</a>
              </#if>
              </div>
            </td>
          </tr>
          </#list>
        </table>
      </td>
      <td>
        <#assign posts = _StatUtil.getForumsByPost()/>
        <table class="statContent">
          <#list 0..9 as i>
          <tr class="statIncContent">
            <td class="statValue">
              <div>
              <#if posts[i]?exists>
          		<#assign forum_id = posts[i].forum_id>
          		<#assign forum_name = posts[i].forum_name>
              <a href="${_UrlUtil.encodeURL("/"+_TopicUtil.getTopicURL(forum_id))}" target="_blank">${forum_name}</a>&nbsp;&nbsp;&nbsp;<span class="number">(${posts[i].forum_posts})</span>
              </#if>
              </div>
            </td>
          </tr>
          </#list>
        </table>
      </td>
    </#if>
    </tr>
	</table>
</div><#comment> end forumStat</#comment>

⌨️ 快捷键说明

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