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

📄 viewthread.jsp

📁 论坛软件系统亦称电子公告板(BBS)系统
💻 JSP
📖 第 1 页 / 共 3 页
字号:
								</c:otherwise>
							</c:choose>
							</c:if>
						</c:otherwise>
						</c:choose>
						<c:if test="${settings.tagstatus==1&&post.usermap.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>
						<c:if test="${ratelogs[post.usermap.pid]!=null&&post.usermap.rate!=0}">
							<fieldset>
								<legend><a href="misc.jsp?action=viewratings&tid=${post.usermap.tid}&pid=${post.usermap.pid}" title="查看评分记录">本帖最近评分记录</a></legend>
								<ul>
									<c:forEach items="${ratelogs[post.usermap.pid]}" var="ratelog">
									<li><cite><a href="space.jsp?uid=${ratelog.uid}" target="_blank">${ratelog.username}</a></cite>${extcredits[ratelog.extcredits-1]} <strong>${ratelog.score>0?"+":""}${ratelog.score}</strong><em>${ratelog.reason}</em> <jrun:showTime timeInt="${ratelog.dateline}" type="${dateformat} ${timeformat}" timeoffset="${timeoffset}"/></li>
									</c:forEach>
								</ul>
							</fieldset>
						</c:if>
						</div>
						<c:if test="${isshowsignatures && post.signatures!=''}"><div class="signatures" style="maxHeightIE: ${settings.maxsigrows}px;">${post.signatures}</div></c:if>
						</div>
					</td>
				</tr>
				<tr>
					<td class="postauthor">
						<div class="popupmenu_popup userinfopanel" id="userinfo${in.count}_menu" style="display: none;">
							<c:if test="${post.usermap.qq!='' || post.usermap.icq!='' || post.usermap.msn!=''|| post.usermap.yahoo!='' || post.usermap.taobao!=''}">
								<div class="imicons">
									<c:if test="${post.usermap.msn!=''}"><a href="javascript:;" onclick="msnoperate('add', '${post.usermap.msn}')" title="添加 ${post.usermap.username} 为MSN好友"><img src="${styles.IMGDIR}/msnadd.gif" alt="添加 ${post.usermap.username} 为MSN好友" /></a></c:if>
									<c:if test="${post.usermap.msn!=''}"><a href="javascript:;" onclick="msnoperate('chat', '${post.usermap.msn}')" title="通过MSN和 ${post.usermap.username}交谈"><img src="${styles.IMGDIR}/msnchat.gif" alt="通过MSN和 ${post.usermap.username} 交谈" /></a></c:if>
									<c:if test="${post.usermap.qq!=''}"><a href="http://wpa.qq.com/msgrd?V=1&Uin=${post.usermap.qq}&Site=Jsprun~&Menu=yes" target="_blank"><img src="${styles.IMGDIR}/qq.gif" alt="QQ" /></a></c:if>
									<c:if test="${post.usermap.icq!=''}"><a href="http://wwp.icq.com/scripts/search.dll?to=${post.usermap.icq}" target="_blank"><img src="${styles.IMGDIR}/icq.gif" alt="ICQ" /></a></c:if>
									<c:if test="${post.usermap.yahoo!=''}"><a href="http://edit.yahoo.com/config/send_webmesg?.target=${post.usermap.yahoo}&.src=pg" target="_blank"><img src="${styles.IMGDIR}/yahoo.gif" alt="Yahoo!" /> </a></c:if>
									<c:if test="${post.usermap.taobao!=''}"><script type="text/javascript">document.write('<a target="_blank" href="http://amos1.taobao.com/msg.ww?v=2&uid='+encodeURIComponent('${post.usermap.taobao}')+'&s=2"><img src="${styles.IMGDIR}/taobao.gif" alt="阿里旺旺" /></a>');</script></c:if>
								</div>
							</c:if>
							<dl><c:forEach items="${post.custominfo.menu}" var="cus">${cus}</c:forEach></dl>
							<c:if test="${post.usermap.site!=''}"><p><a href="${post.usermap.site}" target="_blank">查看个人网站</a></p></c:if>
							<p><a href="space.jsp?action=viewpro&uid=${post.usermap.uid}" target="_blank">查看详细资料</a></p>
							<c:if test="${usergroups.allowedituser==1}"><p><c:choose><c:when test="${jsprun_adminid==1}"><a href="admincp.jsp?action=members&uids=${post.usermap.uid}&searchsubmit=yes&frames=yes&seasubmit=yes" target="_blank">编辑用户</a></c:when><c:otherwise><a href="admincp.jsp?action=editmember&uid=${post.usermap.uid}&searchsubmit=yes&frames=yes" target="_blank">编辑用户</a></c:otherwise></c:choose></p></c:if>
							<c:if test="${usergroups.allowbanuser==1}"><p><a href="admincp.jsp?action=banmember&uid=${post.usermap.uid}&submitname=yes&frames=yes" target="_blank">禁止用户</a></p></c:if>
						</div>
					</td>
					<td class="postcontent">
						<div class="postactions" style="height: 100%">
							<c:if test="${usergroups.allowdelpost>0 &&modertar}"><c:choose><c:when test="${post.usermap.first==1 && thread.digest==-1}"><input type="checkbox" disabled="disabled" /></c:when><c:otherwise><input type="checkbox" name="topiclist[]" value="${post.usermap.pid}" /></c:otherwise></c:choose></c:if>
							<p>
								<c:if test="${((modertar && usergroups.alloweditpost==1 &&  (post.usermap.adminid==null || post.usermap.adminid<=0 ||jsprun_adminid<=post.usermap.adminid))||jsprun_uid==post.usermap.uid) && (thread.digest>=0 || post.usermap.first!=1)}"><a href="post.jsp?action=edit&fid=${post.usermap.fid}&tid=${post.usermap.tid}&pid=${post.usermap.pid}&page=${currentPage}&extra=page%3D1">编辑</a></c:if>
								<c:if test="${allowpostreply}"><a href="post.jsp?action=reply&fid=${post.usermap.fid}&tid=${post.usermap.tid}&repquote=${post.usermap.pid}&extra=page%3D1&page=1">引用</a></c:if>
								<c:if test="${jsprun_uid!=0 && settings.magicstatus==1 && usergroups.allowmagics>0}"><a href="magic.jsp?action=user&pid=${post.usermap.pid}" target="_blank">道具</a></c:if>
								<c:if test="${settings.reportpost>0 && jsprun_uid!=0}"><a href="misc.jsp?action=report&fid=${post.usermap.fid}&tid=${post.usermap.tid}&pid=${post.usermap.pid}&page=1" id="ajax_report_${post.usermap.pid}" onclick="ajaxmenu(event, this.id, 9000000, null, 0)">报告</a></c:if>
								<c:if test="${usergroups.raterange!='' && post.usermap!=null}"><a href="misc.jsp?action=rate&tid=${post.usermap.tid}&pid=${post.usermap.pid}&page=${currentPage}" id="ajax_rate_${post.usermap.pid}" onclick="ajaxmenu(event, this.id, 9000000, null, 0)">评分</a></c:if>
								<c:if test="${modertar && (post.usermap.rate!=0 || ratetimes>0)}"><a href="misc.jsp?action=removerate&tid=${thread.tid}&pid=${post.usermap.pid}&page=${currentPage}">撤销评分</a></c:if>
								<c:if test="${allowpostreply}"><a href="###" onclick="fastreply('回复 # 的帖子', 'postnum_${post.usermap.pid}')">回复</a></c:if>
								<c:if test="${usergroups.allowdelpost>0 && modertar}">
									<c:choose>
										<c:when test="${thread.digest>=0 && usergroups.allowdelpost>0 && post.usermap.first==1}"><a href="topicadmin.jsp?operation=delete&fid=${thread.fid}&moderates=${thread.tid}&sid=${sid}&filter=${pageInfo_filter}&orderby=${pageInfo_orderby}&ascdesc=${pageInfo_ascdesc}&threadpage=${pageInfo_threadpage}">删除</a></c:when>
										<c:otherwise><a href="topicadmin.jsp?operation=delpost&fid=${thread.fid}&moderates=${thread.tid}&page=${currentPage}&filter=${pageInfo_filter}&orderby=${pageInfo_orderby}&ascdesc=${pageInfo_ascdesc}&threadpage=${pageInfo_threadpage}&topiclist[]=${post.usermap.pid}">删除</a></c:otherwise>
									</c:choose>
								</c:if>
								<c:if test="${usergroups.allowbanpost==1 && modertar}"><a href="topicadmin.jsp?operation=banpost&fid=${thread.fid}&moderates=${thread.tid}&page=${currentPage}&filter=${pageInfo_filter}&orderby=${pageInfo_orderby}&ascdesc=${pageInfo_ascdesc}&threadpage=${pageInfo_threadpage}&topiclist[]=${post.usermap.pid}">屏蔽</a></c:if>
								<strong onclick="scroll(0,0)" title="顶部">TOP</strong>
							</p>
							<div id="ad_thread1_${in.index}"></div>
						</div>
					</td>
				</tr>
			</table></div>
		<c:if test="${post.usermap.first>0&&thread.replies>0}"><div id="ad_interthread"></div></c:if>
	</c:forEach>
</form>
<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==null}"><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>
<c:if test="${allowposttrade||allowpostpoll||allowpostreward||allowpostactivity||allowpostdebate||allowpostvideo||forumfield.threadtypes!=''||jsprun_uid==0}">
<ul class="popupmenu_popup newspecialmenu" id="newspecial_menu" style="display: none">
	<c:if test="${thread.allowspecialonly<=0}"><li><a href="post.jsp?action=newthread&fid=${thread.fid}&page=${currentPage}">发新话题</a></li></c:if>
	<c:if test="${allowpostpoll||jsprun_uid==0}"><li class="poll"><a href="post.jsp?action=newthread&fid=${thread.fid}&page=${currentPage}&special=1">发布投票</a></li></c:if>
	<c:if test="${allowposttrade||jsprun_uid==0}"><li class="trade"><a href="post.jsp?action=newthread&fid=${thread.fid}&page=${currentPage}&special=2">发布商品</a></li></c:if>
	<c:if test="${allowpostreward||jsprun_uid==0}"><li class="reward"><a href="post.jsp?action=newthread&fid=${thread.fid}&page=${currentPage}&special=3">发布悬赏</a></li></c:if>
	<c:if test="${allowpostactivity||jsprun_uid==0}"><li class="activity"><a href="post.jsp?action=newthread&fid=${thread.fid}&page=${currentPage}&special=4">发布活动</a></li></c:if>
	<c:if test="${allowpostdebate||jsprun_uid==0}"><li class="debate"><a href="post.jsp?action=newthread&fid=${thread.fid}&page=${currentPage}&special=5">发布辩论</a></li></c:if>
	<c:if test="${allowpostvideo||jsprun_uid==0}"><li class="video"><a href="post.jsp?action=newthread&fid=${thread.fid}&page=${currentPage}&special=6">发布视频</a></li></c:if>
	<c:if test="${threadtypes!=null&&thread.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=${thread.fid}&page=${currentPage}&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=${thread.fid}&page=${currentPage}&modelid=${model.key}">${model.value.name}</a></li></c:forEach>
	</c:if>
</ul>
</c:if>
<script src="include/javascript/post.js" type="text/javascript"></script>
<c:if 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;
	}
	if(!fetchCheckbox('parseurloff')) {
		theform.message.value = parseurl(theform.message.value, 'bbcode');
	}
	theform.replysubmit.disabled = true;
	return true;
}
</script>
<form method="post" id="postform" 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="fastreplay" value="yes" />
	<input type="hidden" name="page" value="${lpp}" />
	<div id="quickpost" class="box">
		<span class="headactions"><a href="member.jsp?action=credits&view=forum_reply&fid=${thread.fid}" target="_blank">查看积分策略说明</a> </span>
		<h4>快速回复主题</h4>
		<div class="postoptions">
			<h5>选项</h5>
			<p><label><input class="checkbox" type="checkbox" name="parseurloff" id="parseurloff" value="1" /> 禁用 URL 识别</label></p>
			<p><label><input class="checkbox" type="checkbox" name="smileyoff" id="smileyoff" value="1" /> 禁用 <a href="faq.jsp?action=message&id=32" target="_blank">表情</a></label></p>
			<p><label><input class="checkbox" type="checkbox" name="bbcodeoff" id="bbcodeoff" value="1" /> 禁用 <a href="faq.jsp?action=message&id=18" target="_blank">JspRun!代码</a></label></p>
			<c:if test="${usergroups.allowanonymous==1}"><p><label><input class="checkbox" type="checkbox" name="isanonymous" value="1" /> 使用匿名发帖</label></p></c:if>
			<p><label><input class="checkbox" type="checkbox" name="usesig" value="1" /> 使用个人签名</label></p>
			<p><label><input class="checkbox" type="checkbox" name="emailnotify" value="1" />接收新回复邮件通知</label></p>
		</div>
		<div class="postform">
			<h5 style="width:580px;"><label>标题&nbsp;&nbsp;</label><input type="text" name="subject" value="" tabindex="1" id="subject"></h5>
			<p>
				<jsp:include flush="true" page="seditor.jsp"/>
				<div><textarea rows="7" cols="80" class="autosave" name="message" id="fastpostmessage" onKeyDown="ctlent(event);" tabindex="2" style="width:597px;"></textarea></div>
			</p>
			<c:if test="${usergroups.allowpostattach>0}"><p><div>
				<table class="box" cellspacing="0" cellpadding="0" style="width:600px;">
					<thead><tr><c:if test="${usergroups.allowsetattachperm>0}"><td class="nums">阅读权限</td></c:if><td>&nbsp;描述</td><td>上传附件</td></tr></thead>
					<tbody id="attachbodyhidden" style="display:none"><tr>
						<c:if test="${usergroups.allowsetattachperm>0}"><td class="nums"><input type="text" name="attachperm[]" value="0" size="1" /></td></c:if>
						<td>&nbsp;<input type="text" name="attachdesc[]" size="15" /></td>
						<td><input type="file" name="attach" /> <span id="localfile[]"></span> <input type="hidden" name="localid[]" /></td>
					</tr></tbody>
					<tbody id="attachbody"></tbody>
					<tr><td colspan="3" style="border-bottom: none;">文件尺寸: <strong><c:choose><c:when test="${usergroups.maxattachsize>0}">小于 ${usergroups.maxattachsize/1000} kb </c:when><c:otherwise>大小不限制</c:otherwise></c:choose><c:if test=""></c:if></strong>&nbsp;&nbsp;<c:if test="${usergroups.attachextensions!=''}">可用扩展名: <strong>${usergroups.attachextensions}</strong><br /></c:if></td></tr>
				</table>
			</div></p></c:if>
			<p class="btns"><button type="submit" name="replysubmit" id="postsubmit" value="replysubmit" tabindex="3">发表回复</button> [完成后可按 Ctrl+Enter 发布]&nbsp; <a href="###" id="previewpost" onclick="$('postform').action=$('postform').action + '&previewpost=yes&subject='+$('subject').value+'&message='+$('fastpostmessage').value;$('postform').submit();">预览帖子</a>&nbsp; <a href="###" id="restoredata" title="恢复上次自动保存的数据" onclick="loadData()">恢复数据</a>&nbsp; <a href="###" onclick="$('postform').reset()">清空内容</a></p>
		</div>
		<script type="text/javascript">
			var textobj = $('message');
			window.onbeforeunload = function () {saveData(textobj.value)};
			if(is_ie >= 5 || is_moz >= 2) {
				lang['post_autosave_none'] = "没有可以恢复的数据!";
				lang['post_autosave_confirm'] = "此操作将覆盖当前帖子内容,确定要恢复数据吗?";
			} else {
				$('restoredata').style.display = 'none';
			}
		</script>
	</div>
</form>
</c:if>
<script type="text/javascript">
function modaction(action) {
	if(!action) {
		return;

⌨️ 快捷键说明

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