📄 post_print.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/SyntaxHighlighter.css"></link>
<link type="text/css" rel="stylesheet" href="${_resPath}/lib/ubb.css"></link>
<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/post.js"></script>
<script type="text/javascript" src="${_contextPath}/ef/js/ubb.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){
resizePostImg(obj,"0.7");
}
//-->
</script>
</head>
<body style="background:white;"><!-- post_print.ftl -->
<#assign forum_id = topicInfo.forum_id/>
<#assign topic_id = topicInfo.post_id/>
<#assign isManager = _GroupUtil.hasManaAuth(forum_id,_EFUser)/>
<div id="wrap" style="background:white;">
<div id="postPrint" class="postPrint">
<table class="outline">
<tr class="hd1">
<td class="td1">${_ConfigUtil.getConfigInfo("BASEINFO_FORUM_NAME")}</td>
<td class="td2">${topicInfo.post_title?html} [<a href="javascript:window.print()">打印</a>]</td>
</tr>
<tr>
<td colspan="2" class="content">
<hr class="hr2">
<#list post_list as post>
<#assign post_user = _EFUserUtil.getEFUser(post.user_id)>
<#assign isFirst = (post.post_floor == "1")/>
<#assign isPostBanned = _Constants.POST_BANNED_YES == post.post_banned?number />
<#assign isUserBanned = _EFUserUtil.isBanned(post_user.groupId?number) />
<#assign showPostInfo = isManager || (!isPostBanned && !isUserBanned)>
<#if showPostInfo ><#comment> 正常显示帖子</#comment>
<#if isFirst>
<div class="div1"><span class="title1">${post.post_title?default("")?html}</span></div>
<div class="div1"><span class="title">作者:${post_user.nickName?html} 时间:${_DateUtil.getDateTimeStr(_EFUser, post.post_time?number)}</span></div>
<#else>
<div><span class="title">${post.post_floor} 楼 ${post_user.nickName?html} ${_DateUtil.getDateTimeStr(_EFUser, post.post_time?number)}</span></div>
</#if>
<div class="postContent">
<#if post.post_title?exists>
${post.post_title?default("")?html}<br>
</#if>
${post.post_content?default("")}
</div>
<#elseif isUserBanned>
<br>
<div class="postContent">${_PostUtil.getUserBannedContent()}</div>
<#elseif isPostBanned>
<br>
<div class="postContent">${_PostUtil.getBannedContent()}</div>
</#if>
<hr noshade class="hr1">
</#list>
</td>
</tr>
<tr class="bt1">
<td class="td1"><a href="${_server}/index.fhtml">${_ConfigUtil.getConfigInfo("BASEINFO_FORUM_NAME")}</a></td>
<td class="td2 number">Powered by <a href="http://forum.ospod.com">OSPod.Forum ${_Version.VERSION}</a></td>
</tr>
</table>
</div><#comment> end postPrint </#comment>
</div><#comment>end wrap</#comment>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -