📄 space_topic.jsp
字号:
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>
<%@ taglib uri="/WEB-INF/jrun-tag.tld" prefix="jrun"%>
<jsp:include flush="true" page="space_header.jsp" />
<script type="text/javascript" src="include/javascript/viewthread.js"></script>
<script type="text/javascript">zoomstatus = parseInt(1);</script>
<div class="outer">
<table class="main" border="0" cellspacing="0">
<tr>
<td id="main_layout1">
<div id="module_topic">
<table class="module" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="header">
<div class="title">
<c:if test="${thread.special==1}"><a target="_blank" href="viewthread.jsp?tid=${thread.tid}"><img src="${styles.IMGDIR}/pollsmall.gif" alt="投票" border="0" /></a></c:if>
<c:if test="${thread.special==2}"><a target="_blank" href="viewthread.jsp?tid=${thread.tid}"><img src="${styles.IMGDIR}/tradesmall.gif" alt="商品" border="0" /></a></c:if>
<c:if test="${thread.special==3}">
<c:choose>
<c:when test="${thread.price>0}"><a target="_blank" href="viewthread.jsp?tid=${thread.tid}"><img src="${styles.IMGDIR}/rewardsmall.gif" alt="悬赏" border="0" /></a></c:when>
<c:when test="${thread.price<=0}"><a target="_blank" href="viewthread.jsp?tid=${thread.tid}"><img src="${styles.IMGDIR}/rewardsmallend.gif" alt="悬赏已解决" border="0" /></a></c:when>
</c:choose>
</c:if>
<c:if test="${thread.special==4}"><a target="_blank" href="viewthread.jsp?tid=${thread.tid}"><img src="${styles.IMGDIR}/activitysmall.gif" alt="活动" border="0" /></a></c:if>
${thread.subject}
</div>
<div class="more">
<a href="viewthread.jsp?action=printable&tid=${thread.tid}" target="_blank">打印</a> |
<a href="misc.jsp?action=emailfriend&tid=${thread.tid}" target="_blank">推荐</a>
<c:choose>
<c:when test="${jsprun_uid==thread.authorid || modertar}">
| <a href="misc.jsp?action=blog&tid=${thread.tid}">从文集移除</a>
| <a href="post.jsp?action=edit&fid=${thread.fid}&tid=${thread.tid}&pid=${post.pid}" target="_blank">编辑帖子</a>
</c:when>
<c:otherwise>
| <a href="misc.jsp?action=rate&tid=${thread.tid}&pid=${post.pid}&isblog=yes" target="_blank">评分</a>
</c:otherwise>
</c:choose>
</div>
</td>
</tr>
<tr>
<td class="message">
<div class="dateline"><jrun:showTime timeInt="${thread.dateline}" type="${dateformat} ${timeformat}" timeoffset="${timeoffset}"/></div>
<br />
<div style="float: right"><c:if test="${post.rate>0}"><img src="${styles.IMGDIR}/agree.gif" border="0" alt="" /></c:if></div>
${post.message}
<c:if test="${!empty attamaps[post.pid] && post.attachment>0}">
<c:choose>
<c:when test="${!allowgetattach}"><div class="notice" style="width: 500px"> 附件: <em>您所在的用户组无法下载或查看附件</em> </div></c:when>
<c:otherwise>
<div class="attach msgbody">
<div class="msgheader">附件</div>
<div class="msgborder" style="padding: 0px; border-bottom: 0px;">
<c:forEach items="${attamaps[post.pid]}" var="atta">
<dl class="t_attachlist">
<dt>
<img src="images/attachicons/${attatype[atta.filetype]}" border="0" class="absmiddle" alt="" />
<a href="attachment.jsp?aid=${atta.aid}">${atta.filename}</a>
<em>(<jrun:showFileSize size="${atta.filesize}"/>)</em>
</dt>
<dd>
<p><jrun:showTime timeInt="${atta.dateline}" type="${dateformat} ${timeformat}" timeoffset="${timeoffset}"/><c:if test="${settings.attachrefcheck==0 && atta.isimage<1}">,下载次数: ${atta.downloads}</c:if><c:if test="${atta.readperm>0}">,阅读权限:${atta.readperm}</c:if><c:if test="${atta.price>0}">,售价:${atta.price} [<a href="misc.jsp?action=viewattachpayments&aid=${atta.aid}" target="_blank">记录</a>] <c:if test="${atta.isprice==5}">[<a href="misc.jsp?action=attachpay&aid=${atta.aid}" target="_blank">购买</a>]</c:if></c:if><c:if test="${atta.description!=''}"><br>${atta.description}</c:if></p>
<c:if test="${showimag && settings.attachimgpost==1 && showatta!='false'}">
<c:if test="${atta.isimage>0 && (readaccess >= atta.readperm || atta.authorid==jsprun_uid)}">
<c:choose>
<c:when test="${settings.attachrefcheck==0}"><p><a href="#zoom"><img onclick="zoom(this, '${atta.attachment}')" src="${atta.attachmentthumb}" alt="${atta.filename}" /></a> </p></c:when>
<c:otherwise>
<c:choose>
<c:when test="${atta.thumb==1}"><p><a href="#zoom"><img onclick="zoom(this, 'attachment.jsp?aid=${atta.aid}')" src="attachment.jsp?aid=${atta.aid}&noupdate=yes" alt="${atta.filename}" /></a></p></c:when>
<c:otherwise><p> <img src="attachment.jsp?aid=${atta.aid}&noupdate=yes" border="0" onload="attachimg(this, 'load')" onmouseover="attachimg(this, 'mouseover')" onclick="zoom(this, 'attachment.jsp?aid=${atta.aid}')" alt="01.gif" /> </p></c:otherwise>
</c:choose>
</c:otherwise>
</c:choose>
</c:if>
</c:if>
</dd>
</dl>
</c:forEach>
</div>
</div>
</c:otherwise>
</c:choose>
</c:if>
<c:if test="${post.first==1 && taglist!=null}">
<p class="posttags">
搜索更多相关主题的帖子:
<c:forEach items="${taglist}" var="tags">
<a href="tag.jsp?name=<jrun:encoding value="${tags.tagname}"/>" target="_blank">${tags.tagname}</a>
</c:forEach>
</p>
</c:if>
</td>
</tr>
</table>
</div>
<div id="module_topiccomment">
<c:if test="${!empty postlist}">
<table class="module" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="header"><div class="title">评论(${thread.replies})</div></td>
</tr>
<tr>
<td>
<!-- ***************下面显示分页内容************************* -->
<c:if test="${logpage.totalSize > lpp}">
<div class="p_bar">
<a class="p_total"> ${logpage.totalSize} </a>
<a class="p_pages"> ${logpage.currentPage}/${logpage.totalPage} </a>
<!-- 如果当前页不是第一页面,且大于10页时,且当前页大于4时则显示1 ... -->
<c:if test="${logpage.totalPage>10 && logpage.currentPage>=4}">
<a href="${url}&page=1"
class="p_pages">1 ...</a>
</c:if>
<!-- 如果当前页不是第一页面,则显示<< -->
<c:if test="${logpage.currentPage != logpage.prePage}">
<a href="${url}&page=${logpage.prePage}" class="p_redirect">‹‹</a>
</c:if>
<c:choose>
<c:when
test="${logpage.totalPage>10 && logpage.currentPage>=4 && logpage.totalPage-(logpage.currentPage-2)>=10}">
<!-- 显示滚动的页码信息 -->
<c:forEach var="num" begin="${logpage.currentPage-2}"
end="${(logpage.currentPage-2)+9}" step="1">
<c:choose>
<c:when test="${logpage.currentPage == num}">
<a class="p_curpage">${logpage.currentPage}</a>
</c:when>
<c:otherwise>
<a href="${url}&page=${num}" class="p_num">${num}</a>
</c:otherwise>
</c:choose>
</c:forEach>
</c:when>
<c:otherwise>
<c:choose>
<c:when
test="${logpage.totalPage>10 && logpage.currentPage>=4}">
<!-- 显示后半部分信息 -->
<c:forEach var="num" begin="${logpage.totalPage-9}"
end="${logpage.totalPage}" step="1">
<c:choose>
<c:when test="${logpage.currentPage == num}">
<a class="p_curpage">${logpage.currentPage}</a>
</c:when>
<c:otherwise>
<a href="${url}&page=${num}" class="p_num">${num}</a>
</c:otherwise>
</c:choose>
</c:forEach>
</c:when>
<c:otherwise>
<c:choose>
<c:when test="${logpage.totalPage>10}">
<!-- 显示前半部分值 -->
<c:forEach var="num" begin="1" end="10" step="1">
<c:choose>
<c:when test="${logpage.currentPage == num}">
<a class="p_curpage">${logpage.currentPage}</a>
</c:when>
<c:otherwise>
<a href="${url}&page=${num}" class="p_num">${num}</a>
</c:otherwise>
</c:choose>
</c:forEach>
</c:when>
<c:otherwise>
<!-- 如果不够10页则显示 -->
<c:forEach var="num" begin="1" end="${logpage.totalPage}"
step="1">
<c:choose>
<c:when test="${logpage.currentPage == num}">
<a class="p_curpage">${logpage.currentPage}</a>
</c:when>
<c:otherwise>
<a href="${url}&page=${num}" class="p_num">${num}</a>
</c:otherwise>
</c:choose>
</c:forEach>
</c:otherwise>
</c:choose>
</c:otherwise>
</c:choose>
</c:otherwise>
</c:choose>
<!-- 如果当前页不是最后页面,则显示 《 《-->
<c:if test="${logpage.currentPage != logpage.nextPage}">
<a
href="${url}&page=${logpage.nextPage}"
class="p_redirect">››</a>
</c:if>
<!-- 如果超过一定范围则显示... -->
<c:if test="${logpage.totalPage>10 && (logpage.totalPage-logpage.currentPage)>7}">
<a
href="${url}&page=${logpage.totalPage}"
class="p_pages">... ${logpage.totalPage}</a>
</c:if>
<!-- 如果页数大于10则显示此框-->
<c:if test="${logpage.totalPage>10}">
<kbd>
<input type="text" name="custompage" size="3"
onkeydown="if(event.keyCode==13) {window.location='${url}&page='+this.value; return false;}" />
</kbd>
</c:if>
</c:if>
<!-- ******************************分页结束********************************* -->
<br />
<c:forEach items="${postlist}" var="post">
<br />
<div class="message">
<c:if test="${!empty post.subject}">
<div class="comment_subject">${post.subject}</div>
</c:if>
<c:choose>
<c:when test="${jsprun_adminid!=1 && settings.bannedmessages!=0 && (post.author==null || post.groupid==4 || post.groupid==5)}">
<div class="notice" style="width: 500px">
提示: <em>作者被禁止或删除 内容自动屏蔽</em>
</div>
</c:when>
<c:when test="${jsprun_adminid!=1 && post.status==1}">
<div class="notice" style="width: 500px">
提示:
<em>该帖被管理员或版主屏蔽</em>
</div>
</c:when>
<c:otherwise>
<div id="postmessage_${post.pid}" class="t_msgfont">
${post.message}
</div>
<c:if test="${!empty attamaps[post.pid] && post.attachment>0}">
<c:choose>
<c:when test="${!allowgetattach}"><div class="notice" style="width: 500px"> 附件: <em>您所在的用户组无法下载或查看附件</em> </div></c:when>
<c:otherwise>
<div class="attach msgbody">
<div class="msgheader">附件</div>
<div class="msgborder" style="padding: 0px; border-bottom: 0px;">
<c:forEach items="${attamaps[post.pid]}" var="atta">
<dl class="t_attachlist">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -