📄 forumdisplay.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="header.jsp" />
<div id="foruminfo">
<div id="headsearch">
<c:if test="${settings.google_status==1&&google_searchbox>0}"><script type="text/javascript" src="forumdata/cache/google_var.js"></script><script type="text/javascript" src="include/javascript/google.js"></script></c:if>
<c:if test="${settings.baidu_status==1&&baidu_searchbox>0}"><script type="text/javascript" src="forumdata/cache/baidu_var.js"></script><script type="text/javascript" src="include/javascript/baidu.js"></script></c:if>
<p>
<c:if test="${forum.rules!=''}"><span id="rules_link" style="${collapse['rules_link']}"><a href="###" onclick="$('rules_link').style.display = 'none';toggle_collapse('rules', 1);<c:if test="${recommendlist!=null}">$('recommendlist').className = 'rules';</c:if>">本版规则</a> |</span></c:if>
<c:if test="${recommendlist!=null}"><span id="recommendlist_link" style="${collapse['recommendlist_link']}"><a href="###" onclick="$('recommendlist_link').style.display = 'none';toggle_collapse('recommendlist', 1)">版主推荐</a> |</span></c:if>
<a href="my.jsp?item=favorites&fid=${fid}" id="ajax_favorite" onclick="ajaxmenu(event, this.id)">收藏本版</a> | <a href="my.jsp?item=threads&srchfid=${fid}">我的话题</a>
<c:if test="${usergroups.allowmodpost>0&&forum.modnewposts>0}">| <a href="admincp.jsp?action=modthreads&frames=yes" target="_blank">审核新主题</a></c:if>
<c:if test="${forum.modnewposts== 2}">| <a href="admincp.jsp?action=modreplies&frames=yes" target="_blank">审核新回复</a></c:if>
<c:if test="${usergroups.admingid==1&&forum.recyclebin>0}">| <a href="admincp.jsp?action=recyclebin&frames=yes" target="_blank">回收站</a></c:if>
<c:if test="${settings.rssstatus>0}"><a href="rss.jsp?fid=${fid}&auth=${rssauth }" target="_blank"><img src="images/common/xml.gif" border="0"class="absmiddle" alt="RSS 订阅全部版块" /></a></c:if>
</p></div>
<div id="nav"><p><a id="forumlist" href="${settings.indexname}" ${settings.forumjump==1&&settings.jsmenu_1>0?"class='dropmenu' onmouseover='showMenu(this.id)'":""}>${settings.bbname}</a> ${navigation}</p><c:if test="${forum.description!=''}"><p>版块介绍: ${forum.description}</p></c:if><p>版主: ${moderatedby!=""?(moderatedby):"*空缺中*"}</p></div>
</div>
<c:if test="${forum.rules!=''||recommendlist!=null}">
<table summary="Rules and Recommend" class="portalbox" cellpadding="0" cellspacing="1"><tr>
<c:if test="${forum.rules!=''}"><td id="rules" style="${collapse['rules']}">
<span class="headactions recommendrules"><img id="rules_img" src="${styles.IMGDIR}/collapsed_no.gif" title="收起/展开" alt="收起/展开" onclick="$('rules_link').style.display = '';toggle_collapse('rules', 1);<c:if test="${recommendlist!=null}">$('recommendlist').className = '';</c:if>" /></span>
<h3>本版规则</h3> ${forum.rules}
</td></c:if>
<c:if test="${recommendlist!=null}"><td id="recommendlist" ${forum.rules!=''&&(empty collapse['rules'])?"class='rules'":""} style="${forum.rules!=''?'width: 50%;':''}${collapse['recommendlist']}">
<span class="headactions recommendrules"><img id="recommendlist_img" src="${styles.IMGDIR}/collapsed_no.gif" title="收起/展开" alt="收起/展开" onclick="$('recommendlist_link').style.display ='';toggle_collapse('recommendlist', 1);" /></span><h3> 版主推荐 <c:if test="${ismoderator&&modrecommend.sort!=1}"><em>[<a href="admincp.jsp?action=forumrecommend&fid=${fid}&frames=yes" target="_blank">管理</a>]</em></c:if></h3><ul><c:forEach items="${recommendlist}" var="thread"> <li> <cite><c:choose><c:when test="${spaceurlurl}"><a href="space-uid-${thread.authorid}.html" target="_blank">${thread.author}</a></c:when><c:otherwise><a href="space.jsp?uid=${thread.authorid}" target="_blank">${thread.author}</a></c:otherwise></c:choose>: </cite><c:choose><c:when test="${viewthreadurl}"><a href="thread-${thread.tid}-1-1.html" target="_blank">${thread.subject}</a></c:when><c:otherwise><a href="viewthread.jsp?tid=${thread.tid}" target="_blank">${thread.subject}</a></c:otherwise></c:choose></li></c:forEach></ul>
</td></c:if>
</tr></table>
</c:if>
<c:if test="${pmlists!=null}"><div class="maintable" id="pmprompt"><jsp:include flush="true" page="pmprompt.jsp" /></div></c:if>
<c:if test="${subforums!=null}"><jsp:include flush="true" page="forumdisplay_subforum.jsp" /></c:if>
<div id="ad_text"></div>
<div class="pages_btns">
${multi.multipage}
<span class="pageback" <c:if test="${requestScope.visitedforums!=null}"> id="visitedforums" onmouseover="$('visitedforums').id = 'visitedforumstmp';this.id = 'visitedforums';showMenu(this.id)" </c:if>><a href="${settings.indexname}" title="返回首页">返回首页</a></span>
<c:if test="${allowpost||jsprun_uid==0}"><span class="postbtn" id="newspecial" onmouseover="$('newspecial').id = 'newspecialtmp';this.id = 'newspecial';showMenu(this.id)"><a href="post.jsp?action=newthread&fid=${fid}&extra=${extra}" title="发新话题"><img src="${styles.IMGDIR}/newtopic.gif" alt="发新话题" /></a></span></c:if>
</div>
<c:if test="${allowposttrade||allowpostpoll||allowpostreward||allowpostactivity||allowpostdebate||allowpostvideo||forum.threadtypes!=''||jsprun_uid==0}">
<ul class="popupmenu_popup newspecialmenu" id="newspecial_menu" style="display: none">
<c:if test="${forum.allowspecialonly<=0}"><li><a href="post.jsp?action=newthread&fid=${fid}&extra=${extra}">发新话题</a></li></c:if>
<c:if test="${allowpostpoll||jsprun_uid==0}"><li class="poll"><a href="post.jsp?action=newthread&fid=${fid}&extra=${extra}&special=1">发布投票</a></li></c:if>
<c:if test="${allowposttrade||jsprun_uid==0}"><li class="trade"><a href="post.jsp?action=newthread&fid=${fid}&extra=${extra}&special=2">发布商品</a></li></c:if>
<c:if test="${allowpostreward||jsprun_uid==0}"><li class="reward"><a href="post.jsp?action=newthread&fid=${fid}&extra=${extra}&special=3">发布悬赏</a></li></c:if>
<c:if test="${allowpostactivity||jsprun_uid==0}"><li class="activity"><a href="post.jsp?action=newthread&fid=${fid}&extra=${extra}&special=4">发布活动</a></li></c:if>
<c:if test="${allowpostdebate||jsprun_uid==0}"><li class="debate"><a href="post.jsp?action=newthread&fid=${fid}&extra=${extra}&special=5">发布辩论</a></li></c:if>
<c:if test="${allowpostvideo||jsprun_uid==0}"><li class="video"><a href="post.jsp?action=newthread&fid=${fid}&extra=${extra}&special=6">发布视频</a></li></c:if>
<c:if test="${threadtypes!=null&&forum.allowspecialonly<=0}">
<c:forEach items="${threadtypes.types}" var="threadtype"><c:if test="${threadtypes.special[threadtype.key]==1&&threadtypes.show[threadtype.key]==1}"><li class="popupmenu_option"><a href="post.jsp?action=newthread&fid=${fid}&extra=${extra}&typeid=${threadtype.key}">${threadtype.value}</a></li></c:if></c:forEach>
<c:forEach items="${typemodels}" var="model"><li class="popupmenu_option"><a href="post.jsp?action=newthread&fid=${fid}&extra=${extra}&modelid=${model.key}">${model.value.name}</a></li></c:forEach>
</c:if>
</ul>
</c:if>
<div id="headfilter"><ul class="tabs">
<li ${filter==null? "class='current'":""}><a href="forumdisplay.jsp?fid=${fid}">全部</a></li>
<li ${filter== 'digest'?"class='current'":""}><a href="forumdisplay.jsp?fid=${fid}&filter=digest">精华</a></li>
<c:if test="${showpoll}"><li ${filter== 'poll'?"class='current'":""}><a href="forumdisplay.jsp?fid=${fid}&filter=poll">投票</a></li></c:if>
<c:if test="${showtrade}"><li ${filter== 'trade'?"class='current'":""}><a href="forumdisplay.jsp?fid=${fid}&filter=trade">商品</a></li></c:if>
<c:if test="${showreward}"><li ${filter== 'reward'?"class='current'":""}><a href="forumdisplay.jsp?fid=${fid}&filter=reward">悬赏</a></li></c:if>
<c:if test="${showactivity}"><li ${filter== 'activity'?"class='current'":""}><a href="forumdisplay.jsp?fid=${fid}&filter=activity">活动</a></li></c:if>
<c:if test="${showdebate}"><li ${filter== 'debate'?"class='current'":""}><a href="forumdisplay.jsp?fid=${fid}&filter=debate">辩论</a></li></c:if>
<c:if test="${showvideo}"><li ${filter== 'video'?"class='current'":""}><a href="forumdisplay.jsp?fid=${fid}&filter=video">视频</a></li></c:if>
</ul></div>
<c:if test="${typeid!=null&&threadtypes.special[typeid]==1}"><div style="float: right; margin-top: -24px; margin-right: 10px;"><a href="search.jsp?srchtype=threadtype&typeid=${typeid}&srchfid=${fid}" target="_blank">搜索更多${threadtypes.types[typeid]}分类信息</a></div></c:if>
<div class="mainbox threadlist">
<c:if test="${threadtypes!=null&&threadtypes.listable==1}"><div class="headactions">
<c:forEach items="${threadtypes.flat}" var="threadtype"><c:choose><c:when test="${typeid!=threadtype.key}"><a href="forumdisplay.jsp?fid=${fid}&filter=type&typeid=${threadtype.key}">${threadtype.value}</a></c:when><c:otherwise><strong>${threadtype.value}</strong></c:otherwise></c:choose></c:forEach>
<c:if test="${threadtypes.selectbox!=null}">
<span id="threadtypesmenu" class="dropmenu" onmouseover="showMenu(this.id)">更多分类</span>
<div class="popupmenu_popup" id="threadtypesmenu_menu" style="display: none"><ul><c:forEach items="${threadtypes.selectbox}" var="threadtype"><li><c:choose><c:when test="${typeid!=threadtype.key}"><a href="forumdisplay.jsp?fid=${fid}&filter=type&typeid=${threadtype.key}&sid=${sid}">${threadtype.value}</a></c:when><c:otherwise><strong>${threadtype.value}</strong></c:otherwise></c:choose></li></c:forEach></ul></div>
</c:if>
</div></c:if>
<h1><c:choose><c:when test="${forumdisplayurl}"><a href="forum-${forum.fid}-1.html" class="bold">${forum.name}</a></c:when><c:otherwise><a href="forumdisplay.jsp?fid=${forum.fid}" class="bold">${forum.name}</a></c:otherwise></c:choose></h1>
<form method="post" name="moderate" action="topicadmin.jsp?action=moderate&fid=${forum.fid}">
<input type="hidden" name="fromWhere" value="forumdisplay" />
<input type="hidden" name="pageInfo" value="${url}&page=${page}"/>
<table summary="forum_${forum.fid}" id="forum_${forum.fid}" cellspacing="0" cellpadding="0">
<thead class="category"><tr><th colspan="3" class="caption">标题</th><td class="author">作者</td><td class="nums">回复/查看</td><td class="lastpost">最后发表</td></tr></thead>
<c:if test="${page==1&&announcement.id!=null}"><tr><td class="folder"><img src="${styles.IMGDIR}/ann_icon.gif" alt="announcement" /></td><td class="icon"> </td><th><b>公告: </b><c:choose><c:when test="${announcement.type==0}"><a href="announcement.jsp?id=${announcement.id}#${announcement.id}" target="_blank">${announcement.subject}</a></c:when><c:otherwise><a href="${announcement.message}" target="_blank">${announcement.subject}</a></c:otherwise></c:choose><td class="author"><cite><a href="space.jsp?action=viewpro&username=<jrun:encoding value="${announcement.author}"/>">${announcement.author}</a></cite><em>${announcement.starttime}</em></td><td class="nums">-</td><td class="lastpost">-</td></tr></c:if>
<c:choose><c:when test="${threadlists!=null}"><c:forEach items="${threadlists}" var="thread" varStatus="index"><c:if test="${separatepos==index.count}"></table><table summary="forum_${fid}" id="forum_${fid}" cellspacing="0" cellpadding="0"><thead class="separation"><tr><td> </td><td> </td><td colspan="4">版块主题</td></tr></thead></c:if>
<tr id="${thread.id}" ${thread.displaystyle}>
<td class="folder"><c:choose><c:when test="${viewthreadurl && isstaticurl}"><a href="thread-${thread.tid}-${extra}-1.html" title="新窗口打开" target="_blank"><img src="${styles.IMGDIR}/folder_${thread.folder}.gif" /></a></c:when><c:otherwise><a href="viewthread.jsp?tid=${thread.tid}&extra=${extra}" title="新窗口打开" target="_blank"><img src="${styles.IMGDIR}/folder_${thread.folder}.gif" /></a></c:otherwise></c:choose></td>
<td class="icon"><c:choose><c:when test="${thread.special==1}"><img src="${styles.IMGDIR}/pollsmall.gif" alt="投票" /></c:when><c:when test="${thread.special==2}"><img src="${styles.IMGDIR}/tradesmall.gif" alt="商品" /></c:when><c:when test="${thread.special==3}"><c:choose><c:when test="${thread.price>0}"><img src="${styles.IMGDIR}/rewardsmall.gif" alt="悬赏" /></c:when><c:when test="${thread.price<0}"><img src="${styles.IMGDIR}/rewardsmallend.gif" alt="悬赏已解决" /></c:when></c:choose></c:when><c:when test="${thread.special==4}"><img src="${styles.IMGDIR}/activitysmall.gif" alt="活动" /></c:when><c:when test="${thread.special==5}"><img src="${styles.IMGDIR}/debatesmall.gif" alt="辩论" /></c:when><c:when test="${thread.special==6}"><img src="${styles.IMGDIR}/videosmall.gif" alt="视频" /></c:when><c:otherwise><c:choose><c:when test="${icons[thread.iconid]!=null}"><img src="images/icons/${icons[thread.iconid]}" alt="Icon${thread.iconid}" class="icon" /></c:when><c:otherwise> </c:otherwise></c:choose></c:otherwise></c:choose></td>
<th class="${thread.folder}" <c:if test="${ismoderator}"> ondblclick="ajaxget('modcp.jsp?action=editsubject&tid=${thread.tid}&fid=${fid}', 'thread_${thread.tid}', 'specialposts');doane(event);"</c:if>>
<label><c:choose><c:when test="${thread.rate>0}"><img src="${styles.IMGDIR}/agree.gif"/></c:when><c:when test="${thread.rate<0}"><img src="${styles.IMGDIR}/disagree.gif"/></c:when></c:choose><c:if test="${thread.displayorder==1||thread.displayorder==2||thread.displayorder==3}"><img src="${styles.IMGDIR}/pin_${thread.displayorder}.gif" alt="${threadsticky[3-(thread.displayorder)]}" /></c:if><c:if test="${thread.digest > 0}"><img src="${styles.IMGDIR}/digest_${thread.digest}.gif" alt="精华 ${thread.digest}" /></c:if></label>
<c:if test="${ismoderator}"><c:choose><c:when test="${thread.fid==fid&&thread.digest>=0}"><input class="checkbox" type="checkbox" name="moderates" value="${thread.tid}" /></c:when><c:otherwise><input class="checkbox" type="checkbox" disabled="disabled" /></c:otherwise></c:choose></c:if>
<c:if test="${thread.moved>0}"><c:choose><c:when test="${ismoderator}"><a href="topicadmin.jsp?operation=deleteMirrorImage&moderates=${thread.moved}&fid=${forum.fid}&fromWhere=${forumdisplayadd}&threadpage=${page}">移动:</a></c:when><c:otherwise>移动:</c:otherwise></c:choose></c:if>
${thread.type} <span id="thread_${thread.tid}"><c:choose><c:when test="${viewthreadurl && isstaticurl}"><a href="thread-${thread.tid}-${extra}-1.html"${thread.highlight}>${thread.subject}</a></c:when><c:otherwise><a href="viewthread.jsp?tid=${thread.tid}&extra=${extra}"${thread.highlight}>${thread.subject}</a></c:otherwise></c:choose></span>
<c:if test="${thread.readperm>0}"> - [阅读权限 <span class="bold">${thread.readperm}</span>]</c:if> <c:choose><c:when test="${thread.price>0}">${thread.special == 3?"- [悬赏 ":"- [售价 "}${extcredits[creditstrans].title} <span class="bold">${thread.price}</span> ${extcredits[creditstrans].unit}]</c:when><c:when test="${thread.special==3&&thread.price<0}">- [已解决]</c:when></c:choose> <c:if test="${thread.attachment>0}"><img src="images/attachicons/common.gif" alt="附件" class="attach" /></c:if> <c:if test="${!empty thread.multipage}"><span class="threadpages">${thread.multipage}</span></c:if> <c:if test="${thread.new==1}"><a href="redirect.jsp?tid=${thread.tid}&goto=newpost#newpost" class="new">New</a></c:if>
</th>
<td class="author"><cite><c:choose><c:when test="${thread.authorid>0&&thread.author!=''}"><a href="space.jsp?action=viewpro&uid=${thread.authorid}">${thread.author}</a></c:when><c:otherwise><c:choose><c:when test="${ismoderator}"><a href="space.jsp?action=viewpro&uid=${thread.authorid}">匿名</a></c:when><c:otherwise>匿名</c:otherwise></c:choose></c:otherwise></c:choose></cite><em>${thread.dateline}</em></td><td class="nums"><strong>${thread.replies}</strong> / <em>${thread.views}</em></td><td class="lastpost"><em><a href="redirect.jsp?tid=${thread.tid}&goto=lastpost#lastpost">${thread.lastpost}</a></em><cite>by <c:choose><c:when test="${thread.lastposter!=''}"><a href="space.jsp?action=viewpro&username=<jrun:encoding value="${thread.lastposter}"/>">${thread.lastposter}</a></c:when><c:otherwise>匿名</c:otherwise></c:choose></cite></td>
</tr></c:forEach></c:when>
<c:otherwise><tbody><tr><th colspan="6">本版块或指定的范围内尚无主题。</th></tr></tbody></c:otherwise>
</c:choose>
</table>
<c:if test="${ismoderator&&threadlists!=null}"><div class="footoperation">
<input type="hidden" name="operation" />
<label><input class="checkbox" type="checkbox" name="chkall" onclick="checkall(this.form, 'moderate')" /> 全选</label>
<c:if test="${usergroups.allowdelpost>0}"><button onclick="modthreads('delete')">删除主题</button></c:if> <button onclick="modthreads('move')">移动主题</button> <button onclick="modthreads('highlight')">高亮显示</button> <c:if test="${forum.threadtypes!=null&&forum.threadtypes!=''}"> <button onclick="modthreads('type')">主题分类</button></c:if> <button onclick="modthreads('close')">关闭/打开主题</button> <button onclick="modthreads('bump')">提升/下沉主题</button><c:if test="${usergroups.allowstickthread>0}"> <button onclick="modthreads('stick')">置顶/解除置顶</button></c:if> <button onclick="modthreads('digest')">加入/解除精华</button><c:if test="${settings.supe_status>0&&supe_pushsetting.status==2}"> <button onclick="modthreads('supe_push')">推送/解除推送</button></c:if><c:if test="${modrecommend.open>0&&modrecommend.sort!=1}"> <button type="button" onclick="modthreads('recommend')">推荐主题</button></c:if>
<script type="text/javascript">
function modthreads(operation) {
document.moderate.operation.value = operation;
document.moderate.submit();
}
</script>
</div></c:if>
</form>
</div>
<div class="pages_btns">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -