📄 stattopic.ftl
字号:
<#include "lib/report.tpl"/>
<#import "lib/html.tpl" as html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=${_encoding?default("GBK")}" />
<#assign navtitle = "主题排行 - 论坛统计 - ">
<#include "/common/title.ftl">
<#include "/common/meta.ftl">
<link href="${_resPath}/lib/base.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${_contextPath}/ef/js/prototype.js"></script>
<script type="text/javascript" src="${_contextPath}/ef/js/base.js"></script>
<script type="text/javascript" src="${_contextPath}/ef/js/eforumad.js"></script>
</head>
<body><!-- stattopic.ftl -->
<div id="wrap">
<#include "header.ftl"/>
<div id="content">
<div class="commonNavLine">
<#assign onlyForumMenu = true/>
<#assign nextForumNavStr = "主题帖排行榜"/>
<#include "forum_nav.ftl"/>
</div><#comment>end commonNavLine </#comment>
<#assign currentChoice="TopicStat">
<#include "statleft.ftl"/>
<#assign maxNum = 20>
<#assign maxSize = 26>
<#assign topicView = _StatUtil.getTopicByViewnum(maxNum)/>
<#assign topicReply = _StatUtil.getTopicByReplynum(maxNum)/>
<div id="statTopic" class="statContent">
<div id="statTopicViewNum" class="statBox">
<div class="commonBox">
<table class="commonTable">
<tr class="hd1">
<td class="td1">浏览排行榜</td>
</tr>
<tr class="content">
<td>
<ol>
<#list 0..(maxNum - 1) as i>
<li>
<#if topicReply.size() > i>
<a href="${_UrlUtil.encodeURL("/"+_PostUtil.getTopicURL(topicView[i].post_id))}" title="${topicView[i].post_title?html}" target="_blank">
<div class="statValue number">${topicView[i].post_viewnum}</div><span class="statTitle">${_StringUtil.cutString(topicView[i].post_title,maxSize,"...")?html}</span>
</a>
<#else>
</#if>
</li>
</#list>
</ol>
</td>
<tr>
</table>
</div><#comment> end statTopicViewNum</#comment>
</div>
<div id="statTopicReplyNum" class="statBox">
<div class="commonBox">
<table class="commonTable">
<tr class="hd1">
<td class="td1">回复排行榜</td>
</tr>
<tr class="content">
<td>
<ol>
<#list 0..(maxNum - 1) as i>
<li>
<#if topicReply.size() > i>
<a href="${_UrlUtil.encodeURL("/"+_PostUtil.getTopicURL(topicReply[i].post_id))}" title="${topicReply[i].post_title?html}" target="_blank">
<div class="statValue number">${topicReply[i].post_replynum}</div><span class="statTitle">${_StringUtil.cutString(topicReply[i].post_title,maxSize,"...")?html}</span>
</a>
<#else>
</#if>
</li>
</#list>
</ol>
</td>
</tr>
</table>
</div><#comment> end statTopicReplyNum</#comment>
</div>
</div><#comment> end statTopic </#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 + -