📄 post_arguelist.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"></link>
<link type="text/css" rel="stylesheet" href="${_resPath}/lib/ubb.css"></link>
<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.4;
if(obj.parentNode.name=="point"){
n=0.4;
}else if(obj.parentNode.name=="comment"){
n=0.33;
}
resizePostImg(obj,n);
}
//-->
</script>
</head>
<#assign forum_id = topicInfo.forum_id/>
<#assign topic_id = topicInfo.post_id/>
<#assign post_type = topicInfo.post_type/>
<#assign isManager = _GroupUtil.hasManaAuth(forum_id,_EFUser)/>
<#assign isGuest = false>
<body><!-- post_arguelist.ftl -->
<div id="wrap">
<#include "header.ftl"/>
<div id="content">
<input type="hidden" value="${_Constants.POST_TYPE_ARGUE}" id="post_type">
<input type="hidden" value="${_Constants.POST_TYPE_ARGUE}" id="argue_type">
<div class="commonNavLine">
<#assign nextForumNavStr="<a class=\"forumName\" href=\"${_UrlUtil.encodeURL(\"/\"+_PostUtil.getTopicURL(topic_id))}\">${topicInfo.post_title?html}</a>"/>
<#include "forum_nav.ftl"/>
<div style="float:right;">
<#include "fontsize_inc.ftl"/>
</div>
</div><#comment>end commonNavLine </#comment>
<div class="clean"></div>
<form method="post" action="${_UrlUtil.encodeURL("/topicMan.do")}" name="topicManageForm" id="topicManageForm">
<input type="hidden" name="_fn" value="ManView">
<input type="hidden" name="forum_id" value="${forum_id}">
<input type="hidden" name="all_topic_selected" value=",${topic_id}">
<input type="hidden" name="manageType">
</form>
<form method="post" action="${_UrlUtil.encodeURL("/postArgue.do")}" name="postArgueForm" id="postArgueForm">
<input type="hidden" name="_fn" value="">
<input type="hidden" name="topic_id" value="${topic_id}">
<input type="hidden" name="argue_type">
<input type="hidden" name="post_type" value="${_Constants.POST_TYPE_ARGUE}">
<input type="hidden" name="post_id">
<input type="hidden" name="post_parent" value="${topic_id}">
</form>
<form method="post" id="ef_subscription_form" name="ef_subscription_form" action="${_UrlUtil.encodeURL("/topic.do")}">
<input type="hidden" name="_fn" value="Subscription">
<input type="hidden" name="topic_id" value="${topic_id}">
<input type="hidden" name="type" >
</form>
<#include "post_arguelist_inc.ftl"/>
<div id="arguePositive">
<div id="positiveInfo">
<div class="argueSideLogo">
<img src="${_resPath}/img/argue_positive.png"/>
</div>
<div class="argueSideTitle" style="font-size:${fontSize}px;">
${argueMap.argue_squareviewpoint?html}
</div>
<div class="argueSideAddPoint">
<input type="button" class="middleButton" value="发表观点" onclick="commitAquarePoint(this)">
<input type="button" class="middleButton" value="支持正方" onclick="doArgueVote('${_Constants.POST_ARGUE_TYPE_SQUARE}')">
</div>
<div class="argueSideOption">
<span><a href="${_UrlUtil.encodeURL("/squarepoint-"+topic_id+"-1.fhtml")}" title="查看正方所有观点" class="opLink">所有正方观点</a></span>
</div>
</div><#comment> end positiveInfo </#comment>
<div id="positiveList" class="argueList">
<#list argue_square_list as argue>
<#assign isPostBanned = _Constants.POST_BANNED_YES == argue.post_banned?number />
<#assign pointUser = _EFUserUtil.getEFUser(argue.user_id)/>
<#assign isUserBanned = _EFUserUtil.isBanned(pointUser.groupId) />
<#assign isGuest = _EFUserUtil.isGuest(pointUser)>
<div class="arguePoint">
<div class="pointTimeAndUser">
<#if isGuest>
${pointUser.nickName?html} <span class="time">${_PostUtil.getGuestIP(argue,isManager)}</span>
<#else>
<a href="${_UrlUtil.encodeURL("/"+_EFUserUtil.getBlogURL(pointUser.id))}" target="_blank">${pointUser.nickName?html}</a>
</#if>
<span class="time">${_DateUtil.getDateTimeStr(_EFUser,argue.post_time?number)}</span>
</div>
<div class="pointOption">
<#if !(argue.argue_diguser?exists)><a href="javascript:doArgueDig('${argue.post_id}','${argue.argue_type}')" title="支持此观点" class="opLink">支持</a><#else>支持</#if>:<span class="number">${argue.argue_dignum}</span> <a href="${_UrlUtil.encodeURL("/postArgue.do?_fn=Comment&post_parent="+argue.post_id+"&post_type="+_Constants.POST_TYPE_ARGUE)}" title="评论此观点" class="opLink">评论</a>:<span class="number">${argue.argue_commentnum}</span>
</div>
<div class="pointHeadPic">
<#if isGuest>
<img src="${_contextPath}/${pointUser.headPic}" title="${pointUser.nickName?default("")}">
<#else>
<a href="${_UrlUtil.encodeURL("/"+_EFUserUtil.getBlogURL(pointUser.id))}" target="_blank"><img src="${_contextPath}/${pointUser.headPic}" title="${pointUser.nickName?default("")}"></a>
</#if>
</div>
<div class="pointContent">
<div class="pointTitle" title="${argue.post_title?default("支持正方观点")?html}" style="font-size:${fontSize}px;">${argue.post_title?default("支持正方观点")?html}
</div>
<div class="pointValue" style="font-size:${fontSize}px;">
<#if isPostBanned>
${_PostUtil.getBannedContent()}
<#elseif isUserBanned>
${_PostUtil.getUserBannedContent()}
<#else>
${argue.post_content?default("")}
</#if>
</div>
<div class="pointMask">
<#if isManager && !isUserBanned>
<#if !isPostBanned>
<a href="javascript:banPost('${argue.post_id}')"
class="opLink">屏蔽观点</a>
<#else>
<a href="javascript:banPost('${argue.post_id}')" class="opLink"
>解除屏蔽</a>
</#if>
</#if>
</div>
<#if argue.argue_comment.size() !=0>
<#list argue.argue_comment 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="pointComment">
<div class="commentLogo">
<img src="${_resPath}/img/comments.png"/>
</div><#comment> end commentsLogo </#comment>
<div class="commentHeadPic">
<#if isGuest>
<img src="${_contextPath}/${commentUser.headPic}" title="${commentUser.nickName?default("")}">
<#else>
<a href="${_UrlUtil.encodeURL("/"+_EFUserUtil.getBlogURL(commentUser.id))}" target="_blank"><img src="${_contextPath}/${commentUser.headPic}" title="${commentUser.nickName?default("")}"></a>
</#if>
</div>
<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>
</div>
<#comment>网友内容循环</#comment>
</#list>
<#if argue.show_more_content>
<div class="moreComment">
<a href="${_UrlUtil.encodeURL("/point-"+argue.post_id+".fhtml")}" title="查看此观点的所有评论">>>更多评论</a>
</div>
</#if>
</#if>
</div>
</div><#comment> end arguePoint </#comment>
</#list>
</div><#comment> end positiveList </#comment>
<div class="morePoint">
<a href="${_UrlUtil.encodeURL("/squarepoint-"+topic_id+"-1.fhtml")}" title="查看正方所有观点" class="opLink">>>更多观点</a>
</div>
</div><#comment> end arguePositive </#comment>
<div id="argueSeparator">
</div>
<div id="argueOpose">
<div id="oposeInfo">
<div class="argueSideLogo">
<img src="${_resPath}/img/argue_opose.png"/>
</div>
<div class="argueSideTitle" style="font-size:${fontSize}px;">
${argueMap.argue_oposeviewpoint?html}
</div>
<div class="argueSideAddPoint">
<input type="button" class="middleButton" value="发表观点" onclick="commitOposePoint(this)">
<input type="button" class="middleButton" value="支持反方" onclick="doArgueVote('${_Constants.POST_ARGUE_TYPE_OPOSE}')">
</div>
<div class="argueSideOption">
<span><a href="${_UrlUtil.encodeURL("/oposepoint-"+topic_id+"-1.fhtml")}" title="查看反方所有观点" class="opLink">所有反方观点</a></span>
</div>
</div><#comment> end oposeInfo </#comment>
<div id="positiveList" class="argueList">
<#list argue_opose_list as argue>
<#assign isPostBanned = _Constants.POST_BANNED_YES == argue.post_banned?number />
<#assign pointUser = _EFUserUtil.getEFUser(argue.user_id)/>
<#assign isUserBanned = _EFUserUtil.isBanned(pointUser.groupId) />
<#assign isGuest = _EFUserUtil.isGuest(pointUser)>
<div class="arguePoint">
<div class="pointTimeAndUser">
<#if isGuest>
${pointUser.nickName?html} <span class="time">${_PostUtil.getGuestIP(argue,isManager)}</span>
<#else>
<a href="${_UrlUtil.encodeURL("/"+_EFUserUtil.getBlogURL(pointUser.id))}" target="_blank">${pointUser.nickName?html}</a>
</#if>
<span class="time">${_DateUtil.getDateTimeStr(_EFUser,argue.post_time?number)}</span>
</div>
<div class="pointOption">
<#if !(argue.argue_diguser?exists)><a href="javascript:doArgueDig('${argue.post_id}','${argue.argue_type}')" title="支持此观点" class="opLink">支持</a><#else>支持</#if>:<span class="number">${argue.argue_dignum}</span> <a href="${_UrlUtil.encodeURL("/postArgue.do?_fn=Comment&post_parent="+argue.post_id+"&post_type="+_Constants.POST_TYPE_ARGUE)}" title="评论此观点" class="opLink">评论</a>:<span class="number">${argue.argue_commentnum}</span>
</div>
<div class="pointHeadPic">
<#if isGuest>
<img src="${_contextPath}/${pointUser.headPic}" title="${pointUser.nickName?default("")}">
<#else>
<a href="${_UrlUtil.encodeURL("/"+_EFUserUtil.getBlogURL(pointUser.id))}" target="_blank"><img src="${_contextPath}/${pointUser.headPic}" title="${pointUser.nickName?default("")}"></a>
</#if>
</div>
<div class="pointContent">
<div class="pointTitle" title="${argue.post_title?default("支持反方观点")?html}" style="font-size:${fontSize}px;">${argue.post_title?default("支持反方观点")?html}
</div>
<div class="pointValue" style="font-size:${fontSize}px;">
<#if isPostBanned>
${_PostUtil.getBannedContent()}
<#elseif isUserBanned>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -