📄 space_topic.jsp
字号:
<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:otherwise>
</c:choose>
<br style="clear: both">
<br />
<div class="author">
<c:choose>
<c:when test="${post.authorid!=0 && post.author!='' && post.anonymous<=0}">
<a href="space.jsp?uid=${post.authorid}" class="bold" title="${post.grouptitle} 积分: ${post.credits} 帖子: ${post.posts} 注册:<jrun:showTime timeInt="${post.regdate}" type="${dateformat}" timeoffset="${timeoffset}"/>">${post.author}</a>
<jrun:showstars num="${post.stars}" starthreshold="${settings.starthreshold}" imgdir="${styles.IMGDIR}"/>
</c:when>
<c:otherwise>
<c:choose>
<c:when test="${post.authorid==0}"><span class="bold">游客</span></c:when>
<c:when test="${post.authorid!=0 && post.author!='' && post.anonymous==1}"><span class="bold">匿名</span></c:when>
<c:otherwise><span class="bold">${post.author}</span><span class="smalltxt">该用户已被删除</span></c:otherwise>
</c:choose>
</c:otherwise>
</c:choose>
</div>
<div class="dateline"><jrun:showTime timeInt="${post.dateline}" type="${dateformat} ${timeformat}" timeoffset="${timeoffset}"/></div>
</div>
<br />
</c:forEach>
<!-- ***************下面显示分页内容************************* -->
<c:if test="${logpage.totalSize > 10}">
<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 />
</td>
</tr>
</table>
</c:if>
</div>
<c:choose>
<c:when test="${allowpostreply && settings.fastreply==1}">
<script type="text/javascript">
var postminchars = parseInt('10');
var postmaxchars = parseInt('10000');
var disablepostctrl = parseInt('1');
function validate(theform) {
if (theform.message.value == "" && theform.subject.value == "") {
alert("请完成标题或内容栏。");
theform.message.focus();
return false;
} else if (theform.subject.value.length > 80) {
alert("您的标题超过 80 个字符的限制。");
theform.subject.focus();
return false;
}
if (!disablepostctrl && ((postminchars != 0 && theform.message.value.length < postminchars) || (postmaxchars != 0 && theform.message.value.length > postmaxchars))) {
alert("您的帖子长度不符合要求。\n\n当前长度: "+theform.message.value.length+" 字节\n系统限制: "+postminchars+" 发送到 "+postmaxchars+" 字节");
return false;
}
theform.replysubmit.disabled = true;
return true;
}
var postSubmited = false;
function ctlent(event) {
if(postSubmited == false && (event.ctrlKey && event.keyCode == 13) || (event.altKey && event.keyCode == 83) && $('postsubmit')) {
postSubmited = true;
$('postsubmit').disabled = true;
$('postform').submit();
}
}
</script>
<form id="postform" method="post" name="input"
action="post.jsp?action=reply&fid=${thread.fid}&tid=${thread.tid}&replysubmit=yes"
onSubmit="return validate(this)" enctype="multipart/form-data">
<input type="hidden" name="isblog" value="yes">
<input type="hidden" name="page" value="${currentPage}">
<table id="module_postcomment" align="center" cellpadding="0" cellspacing="0" border="0">
<tr>
<td colspan="2" class="header"><div class="reply"><a target="_blank" href="post.jsp?action=reply&fid=${thread.fid}&tid=${thread.tid}">高级</a></div>发表评论</td>
</tr>
<tr>
<th>标题 (可选)</th>
<td><input class="input" type="text" name="subject" value="" tabindex="1"></td>
</tr>
<tr>
<th>
选项<br />
<input class="checkbox" type="checkbox" name="parseurloff" value="1">禁用 URL 识别<br />
<input class="checkbox" type="checkbox" name="smileyoff" value="1">禁用 表情<br />
<input class="checkbox" type="checkbox" name="bbcodeoff" value="1">禁用 JspRun!代码<br />
<input class="checkbox" type="checkbox" name="usesig" value="1">使用个人签名<br />
<input class="checkbox" type="checkbox" name="emailnotify" value="1">接收新回复邮件通知
</th>
<td>
<textarea rows="7" name="message" onKeyDown="ctlent(event);" tabindex="2"></textarea><br />
<input class="button" type="submit" name="replysubmit" id="postsubmit" value="发表评论" tabindex="3">
<input class="button" type="reset" name="topicsreset" value="清空内容" tabindex="4"> [完成后可按 Ctrl+Enter 发布]
</td>
</tr>
</table>
<div id="dd" style="display:none"><input type="file" name="files"></div>
</form>
</c:when>
<c:otherwise>
<table id="module_postcomment" align="center">
<tr><td colspan="2" class="header">发表评论</td></tr>
<tr><td>本文章已关闭或您没有权限发表评论。</td></tr>
</table>
</c:otherwise>
</c:choose>
<div align="right"><a target="_blank" href="viewthread.jsp?tid=${thread.tid}">查看完整版本</a></div>
</td>
</tr>
</table>
</div>
<jsp:include flush="true" page="space_footer.jsp" />
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -