📄 point_comments_list.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 = topicInfo.post_title?html + " - " + forum_name?default("") + " - ">
<#include "/common/title.ftl">
<#include "/common/meta.ftl">
<link type="text/css" rel="stylesheet" href="${_resPath}/lib/base.css" />
<link type="text/css" rel="stylesheet" href="${_resPath}/lib/postArgueList.css" />
<link type="text/css" rel="stylesheet" href="${_resPath}/lib/SyntaxHighlighter.css">
<script type="text/javascript">
var _contextPath='${_contextPath}';
</script>
<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/ubb.js"></script>
<script class="javascript" src="${_contextPath}/ef/js/post.js"></script>
<script class="javascript" src="${_contextPath}/ef/js/shCore.js"></script>
<script class="javascript" src="${_contextPath}/ef/js/shBrushCSharp.js"></script>
<script class="javascript" src="${_contextPath}/ef/js/shBrushPhp.js"></script>
<script class="javascript" src="${_contextPath}/ef/js/shBrushJScript.js"></script>
<script class="javascript" src="${_contextPath}/ef/js/shBrushJava.js"></script>
<script class="javascript" src="${_contextPath}/ef/js/shBrushVb.js"></script>
<script class="javascript" src="${_contextPath}/ef/js/shBrushSql.js"></script>
<script class="javascript" src="${_contextPath}/ef/js/shBrushXml.js"></script>
<script class="javascript" src="${_contextPath}/ef/js/shBrushDelphi.js"></script>
<script class="javascript" src="${_contextPath}/ef/js/shBrushPython.js"></script>
<script class="javascript" src="${_contextPath}/ef/js/shBrushRuby.js"></script>
<script class="javascript" src="${_contextPath}/ef/js/shBrushCss.js"></script>
<script class="javascript" src="${_contextPath}/ef/js/shBrushCpp.js"></script>
<script type="text/javascript" src="${_contextPath}/ef/js/eforumad.js"></script>
<script language="javascript">
<!--
//限制帖子列表页面的图片宽度
function loadPostImg(obj){
var n=0.7;
resizePostImg(obj,n);
}
//分页
function gotoPage(pNo){
window.location= "${_UrlUtil.encodeURL("/point-${post_id}-\"+pNo+\".fhtml")}";
}
//-->
</script>
</head>
<#assign topic_id = topicInfo.post_id/>
<#assign forum_id = topicInfo.forum_id/>
<#assign post_type = topicInfo.post_type/>
<#assign isManager = _GroupUtil.hasManaAuth(forum_id,_EFUser)/>
<#assign pagination=Context["POINT_PAGE"]?default(_EmptyObject.pagination()) />
<body><!-- point_comments_list.ftl -->
<div id="wrap">
<#include "header.ftl"/>
<div id="content">
<div class="commonNavLine">
<#assign nextForumNavStr="<a class=\"forumName\" href=\"${_UrlUtil.encodeURL(\"/\"+_PostUtil.getTopicURL(topicInfo.post_id))}\">${topicInfo.post_title?html}</a><img src=\"${_resPath}/img/arrowhead.gif\" /><span class=\"forumName\">查看评论</span>">
<#include "forum_nav.ftl"/>
<div style="float:right;">
<#include "fontsize_inc.ftl"/>
</div>
</div><#comment>end commonNavLine </#comment>
<div class="clean"></div>
<div id="arguePointInfo" class="commonBox">
<table class="commonTable">
<tr class="hd1">
<td class="td1">观点信息</td>
</td>
</tr>
<tr>
<td>
<table>
<tr>
<td style="width:80px;">
<#assign pointUser = _EFUserUtil.getEFUser(postInfo.user_id)/>
<#assign isGuest = _EFUserUtil.isGuest(pointUser)>
<div class="pointHeadPic">
<#if isGuest>
<img src="${_contextPath}/${pointUser.headPic}" title="${pointUser.nickName?default("")}">
<#else>
<a href="${_UrlUtil.encodeURL("/"+_EFUserUtil.getBlogURL(postInfo.user_id))}" target="_blank"><img src="${_contextPath}/${pointUser.headPic}" title="${pointUser.nickName?default("")}"></a>
</#if>
</div><#comment> end headPic </#comment>
</td>
<td>
<div class="pointTimeAndUser">
<#if isGuest>
${pointUser.nickName?default("")?html} <span class="time">${_PostUtil.getGuestIP(postInfo,isManager)}</span>
<#else>
<a href="${_UrlUtil.encodeURL("/"+_EFUserUtil.getBlogURL(postInfo.user_id))}" target="_blank">${pointUser.nickName?default("")}</a>
</#if>
<span class="time">${_DateUtil.getDateTimeStr(_EFUser,postInfo.post_time?number)}</span>
</div>
<div class="pointComments">评论数: <span class="number">${postInfo.argue_commentnum}</span></div>
<div class="pointSupports">支持数: <span class="number">${postInfo.argue_dignum}</span></div>
<div class="pointContent" style="font-size:${fontSize}px;">
<#assign isPostBanned = _Constants.POST_BANNED_YES == postInfo.post_banned?number />
<#assign isUserBanned = _EFUserUtil.isBanned(pointUser.groupId?number) />
<#if isPostBanned>
${_PostUtil.getBannedContent()}
<#elseif isUserBanned>
${_PostUtil.getUserBannedContent()}
<#else>
${postInfo.post_content?default(" ")}
</#if>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div><#comment>end pointComment</#comment>
<#comment>评论列表 start</#comment>
<div id="argueCommentsList" class="commonBox">
<table class="commonTable">
<tr class="hd1">
<td class="td1">所有评论</td>
</tr>
<tr>
<td>
<#list comment_list as comment>
<#assign isPostBanned = _Constants.POST_BANNED_YES == comment.post_banned?number />
<#assign commentUser = _EFUserUtil.getEFUser(comment.user_id)/>
<#assign isUserBanned = _EFUserUtil.isBanned(commentUser.groupId) />
<#assign isGuest = _EFUserUtil.isGuest(commentUser)>
<div class="argueComment">
<table>
<tr>
<td style="width:40px;vertical-align:top;">
<div class="commentHeadPic">
<#if isGuest>
<img src="${_contextPath}/${commentUser.headPic}" title="${commentUser.nickName?default("")}">
<#else>
<a href="${_UrlUtil.encodeURL("/"+_EFUserUtil.getBlogURL(comment.user_id))}" target="_blank"><img src="${_contextPath}/${commentUser.headPic}" title="${commentUser.nickName?default("")}"></a>
</#if>
</div>
</td>
<td>
<div class="commentTimeAndUser">
<#if isGuest>
${commentUser.nickName?html} <span class="time">${_PostUtil.getGuestIP(comment,isManager)}</span>
<#else>
<a href="${_UrlUtil.encodeURL("/"+_EFUserUtil.getBlogURL(comment.user_id))}" target="_blank">${commentUser.nickName?html}</a>
</#if>
<span class="time">${_DateUtil.getDateTimeStr(_EFUser,comment.post_time?number)}</span>
</div>
<div class="commentContent" style="font-size:${fontSize}px;">
<#if isPostBanned>*${_PostUtil.getBannedContent()}
<#elseif isUserBanned>${_PostUtil.getUserBannedContent()}
<#else>${comment.post_content?default("")}
</#if>
</div>
<#if isManager && !isUserBanned>
<div class="commentMask">
<#if !isPostBanned>
<a href="javascript:banPost('${comment.post_id}')" class="opLink">屏蔽评论</a>
<#else>
<a href="javascript:banPost('${comment.post_id}')">解除屏蔽</a>
</#if>
</div>
</#if>
</td>
</tr>
</table>
</div>
</#list>
</td>
</tr>
</table>
</div><#comment> end argueCommentsList </#comment>
<div id="pageNavigationDiv">
<@html.doPagination pagination=pagination isUrl=true urlHead="/point-"+post_id+"-" urlTail=".fhtml" />
</div>
</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 + -