⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 viewthread.jsp

📁 论坛软件系统亦称电子公告板(BBS)系统
💻 JSP
📖 第 1 页 / 共 3 页
字号:
<%@ 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" />
<script src="include/javascript/viewthread.js" type="text/javascript"></script>
<script type="text/javascript">zoomstatus = parseInt(${settings.zoomstatus});</script>
<div id="foruminfo">
	<div id="nav"><a id="forumlist" href="${settings.indexname}" ${settings.forumjump=='1'&&settings.jsmenu_1>0?"class='dropmenu' onmouseover='showMenu(this.id)'":""}>${settings.bbname}</a> ${navigation} &raquo; ${subject}</div>
	<c:if test="${(settings.google_status==1&&google_searchbox>0)||(settings.baidu_status==1&&baidu_searchbox>0)}">
		<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>
		</div>
	</c:if>
</div>
<div id="ad_text"></div>
<!-- 短消息 -->
<c:if test="${pmlists!=null}"><div class="maintable" id="pmprompt"><jsp:include flush="true" page="pmprompt.jsp" /></div></c:if>
<div id="append_parent"></div><div id="ajaxwaitid"></div>
<div class="pages_btns">
	<div class="threadflow"><a href="redirect.jsp?fid=${thread.fid}&tid=${thread.tid}&goto=nextoldset" title="上一主题"> &lsaquo;&lsaquo;上一主题 </a> | <a href="redirect.jsp?fid=${thread.fid}&tid=${thread.tid}&goto=nextnewset" title="下一主题"> 下一主题&rsaquo;&rsaquo;</a></div>
	${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="${backtrack}" title="返回列表">返回列表</a></span>
	<c:if test="${allowpostreply}"><span class="replybtn"><a href="post.jsp?action=reply&fid=${thread.fid}&tid=${thread.tid}&extra=page%3D1&page=${lpp}"><img src="${styles.IMGDIR}/reply.gif" border="0" alt="" /> </a> </span></c:if>
	<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=${thread.fid}&page=${currentPage}" title="发新话题"><img src="${styles.IMGDIR}/newtopic.gif" alt="发新话题" /></a></span></c:if>
</div>
<form method="post" name="modactions">
	<input type="hidden" name="formhash" value="b29e1c42" />
	<div class="mainbox viewthread">
		<span class="headactions">
			<c:if test="${jsprun_uid!=0}">
				<a>您是第${thread.views+1}位阅读者</a>
				<c:if test="${thread.authorid==jsprun_uid || modertar}">
					<c:choose>
						<c:when test="${thread.blog==1}"><a href="misc.jsp?action=blog&tid=${thread.tid}" id="ajax_blog" onclick="ajaxmenu(event, this.id, 2000, 'changestatus', 0)">从文集移除</a></c:when>
						<c:when test="${usergroups.allowuseblog==1 && thread.allowshare==1 && thread.authorid==jsprun_uid}"><a href="misc.jsp?action=blog&tid=${thread.tid}" id="ajax_blog" onclick="ajaxmenu(event, this.id, 2000, 'changestatus', 0)">加入文集</a></c:when>
					</c:choose>
					<script type="text/javascript">
						function changestatus(obj) {
							obj.innerHTML = obj.innerHTML == '从文集移除' ? '加入文集' : '从文集移除';
						}
					</script>
				</c:if>
				<a href="my.jsp?item=favorites&tid=${thread.tid}" id="ajax_favorite" onclick="ajaxmenu(event, this.id, 3000, 0)">收藏</a>
				<a href="my.jsp?item=subscriptions&subadd=${thread.tid}" id="ajax_subscription" onclick="ajaxmenu(event, this.id, 3000, null, 0)">订阅</a>
				<a href="misc.jsp?action=emailfriend&tid=${thread.tid}" id="emailfriend" onclick="ajaxmenu(event, this.id, 9000000, null, 0)">推荐</a>
			</c:if>
			<a href="viewthread.jsp?action=printable&tid=${thread.tid}" target="_blank" class="notabs">打印</a>
		</span>
		<h1>${thread.subject}</h1>
		<ins>
			<c:if test="${thread.price>0}"><a href="misc.jsp?action=viewpayments&tid=${thread.tid}">浏览需支付 ${creditstrans.title} <strong>${thread.price}</strong> ${creditstrans.unit}</a></c:if>
			<c:if test="${threadmod!=null}"><a href="misc.jsp?action=viewthreadmod&tid=${thread.tid}" title="主题操作记录" target="_blank">本主题由 ${threadmod.username} 于 <jrun:showTime timeInt="${threadmod.dateline}" type="${dateformat} ${timeformat}" timeoffset="${timeoffset}" />&nbsp;${threadmod.action}</a></c:if>
			<c:if test="${thread.blog==1 && settings.spacestatus==1}"><a href="space.jsp?action=myblogs&uid=${thread.authorid}" target="_blank">本主题被作者加入到个人文集中</a></c:if>
			<c:if test="${thread.readperm>0}">所需阅读权限 ${thread.readperm}</c:if>
		</ins>
		<c:forEach items="${postlist}" var="post" varStatus="in">
			<c:if test="${in.count>1}"><div class="mainbox viewthread"></c:if>
			<table id="pid${post.usermap.pid}" summary="pid${post.usermap.pid}" cellspacing="0" cellpadding="0">
				<tr>
					<td class="postauthor">
						${post.newpostanchor}${post.lastpostanchor}
						<cite>
						<c:if test="${usergroups.allowviewip==1 && (thread.digest>=0 || post.usermap.first==0)}"><label><a href="topicadmin.jsp?action=getip&fid=${post.usermap.fid}&tid=${post.usermap.tid}&pid=${post.usermap.pid}" id="ajax_getip_${post.usermap.pid}" onclick="ajaxmenu(event, this.id, 10000, null, 0);doane(event);" title="查看 IP">IP</a></label></c:if> 
						<c:choose>
							<c:when test="${post.usermap.username!=null && post.usermap.anonymous!=1}"><c:choose><c:when test="${spaceurlurl}"><a href="space-uid-${post.usermap.uid}.html" target="_blank" id="userinfo${in.count}" class="dropmenu" onmouseover="showMenu(this.id)">${post.usermap.username}</a></c:when><c:otherwise><a href="space.jsp?uid=${post.usermap.uid}" target="_blank" id="userinfo${in.count}" class="dropmenu" onmouseover="showMenu(this.id)">${post.usermap.username}</a></c:otherwise></c:choose>
								</cite>
								<c:if test="${post.usermap.nickname!='' && usergroups.allownickname>0}"><p>${post.usermap.nickname}</p></c:if>
						<c:if test="${post.avatars!=null}"><div class="avatar"><img class="avatar" src="${post.avatars}" alt="" <c:if test="${post.usermap.avatarwidth!='0'&& post.usermap.avatarwidth!=''}">width="${post.usermap.avatarwidth}" height="${post.usermap.avatarheight}"</c:if>><c:if test="${!empty post.usermap.groupavatar}"><br /><img src="${post.usermap.groupavatar}" border="0" alt="" /></c:if></div></c:if>
						<p><em><font color="${post.color}">${post.honor}</font></em></p>
						<p><jrun:showstars num="${post.stars}" starthreshold="${settings.starthreshold}" imgdir="${styles.IMGDIR}"/></p>
						<c:if test="${post.usermap.customstatus!='' && usergroups.allowcstatus>0}"><p class="customstatus">${post.usermap.customstatus}</p></c:if>
						<dl class="profile"><c:forEach items="${post.custominfo.left}" var="cus">${cus}</c:forEach></dl>	
						<p><c:forEach items="${post.medalslist}" var="medals"><img src="images/common/${medals.image}" title="${medals.name}" /></c:forEach></p>
						<ul>
								<c:if test="${settings.spacestatus==1}"><li class="space"><c:choose><c:when test="${post.usermap.spacename!=''}"><c:choose><c:when test="${spaceurlurl}"><a href="space-uid-${post.usermap.uid}.html" target="_blank" title="${post.usermap.spacename}"></c:when><c:otherwise><a href="space.jsp?uid=${post.usermap.uid}" target="_blank" title="${post.usermap.spacename}"></c:otherwise></c:choose></c:when><c:otherwise><c:choose><c:when test="${spaceurlurl}"><a href="space-uid-${post.usermap.uid}.html" target="_blank" title="${post.usermap.username}的个人空间"></c:when><c:otherwise><a href="space.jsp?uid=${post.usermap.uid}" target="_blank" title="${post.usermap.username}的个人空间"></c:otherwise></c:choose></c:otherwise></c:choose> 个人空间</a></li></c:if>
								<li class="pm"><a href="pm.jsp?action=send&uid=${post.usermap.uid}&pid=${post.usermap.pid}" target="_blank" id="ajax_uid_${post.usermap.pid}" onclick="ajaxmenu(event, this.id, 9000000, null, 0)">发短消息</a></li>
								<li class="buddy"><a href="my.jsp?item=buddylist&newbuddyid=${post.usermap.uid}&buddysubmit=yes" target="_blank" id="ajax_buddy_${post.usermap.pid}" onclick="ajaxmenu(event, this.id, null, 0)">加为好友</a></li>
								<c:if test="${settings.vtonlinestatus!=0 && post.usermap.authorid!=0}">
									<c:choose>
										<c:when test="${(settings.vtonlinestatus==1 && nowtime-post.usermap.lastactivity<=10800 && post.usermap.invisible==0) || (post.onlineauthors==1)}"><li class="online">当前在线</li></c:when>
										<c:otherwise><li class="offline">当前离线</li></c:otherwise>
									</c:choose>
								</c:if>
						</ul>
						</c:when>
							<c:otherwise>
								<c:choose>
									<c:when test="${post.usermap.authorid==0}"><a href="javascript:;">游客 <em>${post.usermap.useip}</em></a> 未注册</cite>未注册 </c:when>
									<c:when test="${post.usermap.anonymous>0}"><c:choose><c:when test="${jsprun_groupid<=3}"><a href="space.jsp?uid=${post.usermap.authorid}" target="_blank">该用户匿名发帖</cite></a>该用户匿名发帖</c:when><c:otherwise>该用户匿名发帖</cite>该用户匿名发帖</c:otherwise></c:choose></c:when>
									<c:otherwise>${post.usermap.author}该用户已被删除</cite>${post.usermap.author}该用户已被删除 </c:otherwise>
								</c:choose>
							</c:otherwise>
						</c:choose>
					</td>
					<td class="postcontent" <c:if test="${modertar && usergroups.alloweditpost==1 &&  (post.usermap.adminid==null||post.usermap.adminid<=0 ||jsprun_adminid<=post.usermap.adminid) && (thread.digest>=0 || post.usermap.first!=1)}">ondblclick="ajaxget('modcp.jsp?action=editmessage&pid=${post.usermap.pid}&tid=${post.usermap.tid}&rand='+Math.random(), 'postmessage_${post.usermap.pid}')"</c:if>>
						<div class="postinfo">
							<strong title="复制帖子链接到剪贴板" id="postnum_${post.usermap.pid}" onclick="setcopy('${boardurl}viewthread.jsp?tid=${post.usermap.tid}&page=${currentPage}#pid${post.usermap.pid}', '帖子链接已经复制到剪贴板')">
							<c:choose>
								<c:when test="${currentPage>1}"> ${empty postcustom[in.index+lpp*(currentPage-1)] ? lpp*(currentPage-1)+in.count : postcustom[in.index+lpp*(currentPage-1)]}${empty postcustom[in.index+(currentPage-1)*lpp] ? settings.postno : ""}</c:when>
								<c:otherwise>${empty postcustom[in.index] ? in.count : postcustom[in.index]} ${empty postcustom[in.index] ? settings.postno : ""}</c:otherwise>
							</c:choose></strong>
							<em onclick="$('postmessage_${post.usermap.pid}').className='t_bigfont'">大</em>
							<em onclick="$('postmessage_${post.usermap.pid}').className='t_msgfont'">中</em>
							<em	onclick="$('postmessage_${post.usermap.pid}').className='t_smallfont'">小</em>
							<c:if test="${thread.price>=0 || post.usermap.first==1}">发表于 <jrun:showTime timeInt="${post.usermap.dateline}" type="${dateformat} ${timeformat}" timeoffset="${timeoffset}"/>&nbsp;</c:if>
							<c:if test="${post.usermap.authorid!=0 && post.usermap.anonymous<1}">
								<c:choose>
									<c:when test="${param.authorid==null}"><a href="viewthread.jsp?tid=${post.usermap.tid}&page=${currentPage}&authorid=${post.usermap.uid}">只看该作者</a></c:when>
									<c:otherwise><a href="viewthread.jsp?tid=${post.usermap.tid}&page=${currentPage}">显示全部帖子</a></c:otherwise>
								</c:choose>
							</c:if>
						</div>
						<div id="ad_thread2_${in.index}"></div>
						<div class="postmessage defaultpost">
							<c:choose>
								<c:when test="${post.usermap.rate>0}"><span class="postratings"><a href="misc.jsp?action=viewratings&tid=${post.usermap.tid}&pid=${post.usermap.pid}" title="评分 ${post.usermap.rate}"> <c:forEach begin="1" end="${post.ratings}" step="1"><img src="${styles.IMGDIR}/agree.gif" border="0" alt=""/></c:forEach></a></span></c:when>
								<c:when test="${post.usermap.rate<0}"><span class="postratings"><a href="misc.jsp?action=viewratings&tid=${post.usermap.tid}&pid=${post.usermap.pid}" title="评分 ${post.usermap.rate}"> <c:forEach begin="1" end="${post.ratings}" step="1"><img src="${styles.IMGDIR}/disagree.gif" border="0" alt=""/></c:forEach></a></span></c:when>
							</c:choose>
							<div id="ad_thread3_${in.index}"></div><div id="ad_thread4_${in.index}"></div>
							<c:if test="${post.usermap.subject!=''}"><h2>${post.usermap.subject}</h2></c:if>
							<c:if test="${typetemplate=='' && (!empty optionlist) && post.usermap.first==1 && post.usermap.status==0}">
							<div class="box typeoption">
								<h4>分类信息 - ${threadtypes.types[typeid]}</h4>
								<table summary="分类信息" cellpadding="0" cellspacing="0">
								<c:forEach items="${optionlist}" var="option"><tr><th>${option.title}</th><td>${!empty option.value?option.value:"-"}</td></tr></c:forEach>
								</table>
							</div>
							</c:if>
							<c:choose>
								<c:when test="${post.usermap.authorid!=0 && jsprun_adminid!=1 && settings.bannedmessages!=0 && (post.usermap.username==null || post.usermap.groupid==4 || post.usermap.groupid==5)}"><div class="notice" style="width: 500px">提示: <em>作者被禁止或删除 内容自动屏蔽</em></div></c:when>
								<c:when test="${jsprun_adminid!=1 && post.usermap.status==1}"><div class="notice" style="width: 500px">提示: <em>该帖被管理员或版主屏蔽</em></div></c:when>
								<c:otherwise>
								<c:choose>
									<c:when test="${post.usermap.authorid!=0 && settings.bannedmessages!=0 && (post.usermap.username==null || post.usermap.groupid==4 || post.usermap.groupid==5)}"><div class="notice" style="width: 500px">提示: <em>作者被禁止或删除 内容自动屏蔽,只有管理员可见</em></div></c:when>
									<c:when test="${post.usermap.status==1}"><div class="notice" style="width: 500px">提示: <em>该帖被管理员或版主屏蔽,只有管理员可见</em></div></c:when>
								</c:choose>
								<c:if test="${post.usermap.first==1 && typetemplate!=''}">${typetemplate}</c:if>
								<div id="postmessage_${post.usermap.pid}" class="t_msgfont">${post.usermap.message}</div>
							<c:if test="${post.attaurl!=null && post.usermap.attachment>0}">
							<c:choose>
								<c:when test="${!allowgetattach}"><div class="notice" style="width: 500px">附件: <em>您所在的用户组无法下载或查看附件</em></div></c:when>
								<c:otherwise>
									<div class="box postattachlist">
										<h4>附件</h4>
										<c:forEach items="${post.attaurl}" var="attas">
											<c:forEach items="${attas}" var="atta">
											<dl class="t_attachlist">
												<dt><img src="images/attachicons/${attatype[atta.key.filetype]}" border="0" class="absmiddle" alt="" /> <a href="attachment.jsp?aid=${atta.key.aid}">${atta.key.filename}</a> <em>(<jrun:showFileSize size="${atta.key.filesize}" />)</em></dt>
												<dd>
													<p><jrun:showTime timeInt="${atta.key.dateline}" type="${dateformat} ${timeformat}" timeoffset="${timeoffset}"/><c:if test="${settings.attachrefcheck==0 || atta.value==''}">,下载次数: ${atta.key.downloads}</c:if><c:if test="${atta.key.readperm>0}">,阅读权限:${atta.key.readperm}</c:if><c:if test="${atta.key.price>0}">,售价:${atta.key.price}&nbsp;[<a href="misc.jsp?action=viewattachpayments&aid=${atta.key.aid}" target="_blank">记录</a>]&nbsp;<c:if test="${atta.key.isprice==5}">[<a href="misc.jsp?action=attachpay&aid=${atta.key.aid}" target="_blank">购买</a>]</c:if></c:if><c:if test="${atta.key.description!=''}"><br>${atta.key.description}</c:if></p>
													<c:if test="${showimag && settings.attachimgpost==1 && showatta!='false'}">
													<c:if test="${atta.value!='' && (readaccess >= atta.key.readperm || post.usermap.authorid==jsprun_uid)}">
													<c:set scope="page" var="isatta" value="yes"></c:set>
													<c:choose>
														<c:when test="${settings.attachrefcheck==0}"><p><a href="#zoom"><img onclick="zoom(this, '${atta.key.attachment}')" src="${atta.value}" alt="${atta.key.filename}" /></a></p></c:when>
														<c:otherwise>
														<c:choose>
														<c:when test="${atta.key.thumb==1}"><p><a href="#zoom"><img onclick="zoom(this, 'attachment.jsp?aid=${atta.key.aid}')" src="attachment.jsp?aid=${atta.key.aid}&noupdate=yes" alt="${atta.key.filename}" /></a></p></c:when>
														<c:otherwise><p><img src="attachment.jsp?aid=${atta.key.aid}&noupdate=yes" border="0" onload="attachimg(this, 'load')" onmouseover="attachimg(this, 'mouseover')" onclick="zoom(this, 'attachment.jsp?aid=${atta.key.aid}')" alt="01.gif" /></p></c:otherwise>
														</c:choose>
														</c:otherwise>
													</c:choose>
													</c:if>
													</c:if>
												</dd>
											</dl>
											</c:forEach>
										</c:forEach>
									</div>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -