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

📄 viewthread.jsp

📁 论坛软件系统亦称电子公告板(BBS)系统
💻 JSP
📖 第 1 页 / 共 3 页
字号:
	}
	if(in_array(action, ['delpost', 'banpost'])) {
		document.modactions.action = 'topicadmin.jsp?operation='+action+'&fid=${thread.fid}&moderates=${thread.tid}&page=${currentPage}&filter=${pageInfo_filter}&orderby=${pageInfo_orderby}&ascdesc=${pageInfo_ascdesc}&threadpage=${pageInfo_threadpage}';
		document.modactions.submit();
	} else if(in_array(action, ['delete', 'close','move','highlight','type','digest','stick','bump','recommend'])) {
		window.location=('topicadmin.jsp?operation='+ action +'&fid=${thread.fid}&moderates=${thread.tid}&sid=${sid}&filter=${pageInfo_filter}&orderby=${pageInfo_orderby}&ascdesc=${pageInfo_ascdesc}&threadpage=${pageInfo_threadpage}');
	}else{
		document.modactions.action = 'topicadmin.jsp?action='+ action +'&fid=${thread.fid}&moderates=${thread.tid}&page=${currentPage}&filter=${pageInfo_filter}&orderby=${pageInfo_orderby}&ascdesc=${pageInfo_ascdesc}&threadpage=${pageInfo_threadpage}';
		document.modactions.submit();
	}
}
var extensions = '${usergroups.attachextensions}';
</script>
<c:if test="${modertar || requestScope.visitedforums!=null ||(settings.forumjump==1 && settings.jsmenu_1==0)}">
<div id="footfilter" class="box">
	<c:if test="${modertar}">
	<form action="#">
		管理选项:
		<select name="action" id="action" onchange="modaction(this.options[this.selectedIndex].value)">
			<option value="" selected>管理选项</option>
			<c:if test="${usergroups.allowdelpost>0}">
				<option value="delpost">删除回帖</option>
				<c:if test="${thread.digest>=0 && usergroups.allowdelpost>0}"><option value="delete">删除主题</option></c:if>
			</c:if>
			<c:if test="${usergroups.allowbanpost==1}"><option value="banpost">屏蔽帖子</option></c:if>
			<c:if test="${thread.digest>=0}">
				<option value="close">关闭主题</option>
				<option value="move">移动主题</option>
				<option value="copy">复制主题</option>
				<option value="highlight">高亮显示</option>
				<option value="type">主题分类</option>
				<option value="digest">设置精华</option>
				<c:if test="${usergroups.allowstickthread>0}"><option value="stick">主题置顶</option></c:if>
				<c:if test="${thread.price>0 && usergroups.allowrefund}"><option value="refund">强制退款</option></c:if>
				<option value="split">分割主题</option>
				<option value="merge">合并主题</option>
				<option value="bump">提升主题</option>
				<option value="repair">修复主题</option>
				<c:if test="${modrecommendMap.open!=0 && modrecommendMap.sort!=1}" ><option value="recommend">推荐主题</option></c:if>
			</c:if>
		</select>
	</form>
	</c:if>
	<c:if test="${settings.forumjump==1&&settings.jsmenu_1==0}"><select onchange="if(this.options[this.selectedIndex].value != '') {window.location=('forumdisplay.jsp?fid='+this.options[this.selectedIndex].value+'&sid=${sid}')}"><option value="">版块跳转...</option>${forumselect}</select></c:if>
	<c:if test="${requestScope.visitedforums!=null}"><select onchange="if(this.options[this.selectedIndex].value != '') window.location=('forumdisplay.jsp?fid='+this.options[this.selectedIndex].value+'&sid=${sid}')"><option value="">最近访问的版块 ...</option><c:forEach items="${requestScope.visitedforums}" var="visitedforum"><c:if test="${visitedforum.key!=thread.fid}"><option value="${visitedforum.key}">${visitedforum.value}</option></c:if></c:forEach></select></c:if>
</div>
</c:if>
<script type="text/javascript">
var maxpage = ${multi.maxpage>0?(multi.maxpage):1};
if(maxpage > 1) {
	document.onkeyup = function(e){
		e = e ? e : window.event;
		var tagname = is_ie ? e.srcElement.tagName : e.target.tagName;
		if(tagname == 'INPUT' || tagname == 'TEXTAREA') return;
		actualCode = e.keyCode ? e.keyCode : e.charCode;
		if(${currentPage<multi.maxpage})
		{
			if(actualCode == 39) {
				window.location = 'viewthread.jsp?tid=${thread.tid}&extra=${extra}&page=${currentPage+1}';
			}
		}
		if(${currentPage>1})
		{
			if(actualCode == 37) {
				window.location = 'viewthread.jsp?tid=${thread.tid}&extra=${extra}&page=${currentPage-1}';
			}
		}
	}
}
</script>
<script src="include/javascript/msn.js" type="text/javascript"></script>
<c:if test="${allowpostreply && settings.fastreply==1 && usergroups.allowpostattach>0 }">
	<script type="text/javascript">
			lang['post_attachment_ext_notallowed']	= '对不起,不支持上传此类扩展名的附件。';
			lang['post_attachment_img_invalid']	= '无效的图片文件。';
			lang['post_attachment_deletelink']	= '删除';
			lang['post_attachment_insert']		= '点击这里将本附件插入帖子内容中当前光标的位置';
			lang['post_attachment_insertlink']	= '插入';
			var aid = 1;
	var attachexts = new Array();
	var attachwh = new Array();
	
	function delAttach(id) {
		$('attachbody').removeChild($('attach_' + id).parentNode.parentNode);
		$('attachbody').innerHTML == '' && addAttach();
		$('localimgpreview_' + id + '_menu') ? document.body.removeChild($('localimgpreview_' + id + '_menu')) : null;
	}
	
	function addAttach() {
		newnode = $('attachbodyhidden').firstChild.cloneNode(true);
		var id = aid;
		var tags;
		tags = newnode.getElementsByTagName('input');
		for(i in tags) {
			if(tags[i].name == 'attach') {
				tags[i].id = 'attach_' + id;
				tags[i].onchange = function() {insertAttach(id)};
				tags[i].unselectable = 'on';
				tags[i].name= 'attachfile'+id;
			}
			if(tags[i].name == 'localid[]') {
				tags[i].value = id;
			}
		}
		tags = newnode.getElementsByTagName('span');
		for(i in tags) {
			if(tags[i].id == 'localfile[]') {
				tags[i].id = 'localfile_' + id;
			}
		}
		$('attachbody').appendChild(newnode);
		aid++;
	}
	
	addAttach();
	
	function insertAttach(id) {
		var localimgpreview = '';
		var path = $('attach_' + id).value;
		var ext = path.lastIndexOf('.') == -1 ? '' : path.substr(path.lastIndexOf('.') + 1, path.length).toLowerCase();
		var re = new RegExp("(^|\\s|,)" + ext + "($|\\s|,)", "ig");
		var localfile = $('attach_' + id).value.substr($('attach_' + id).value.replace(/\\/g, '/').lastIndexOf('/') + 1);
	
		if(path == '') {
			return;
		}
		if(extensions != '' && (re.exec(extensions) == null || ext == '')) {
			alert(lang['post_attachment_ext_notallowed']);
			return;
		}
		attachexts[id] = is_ie && in_array(ext, ['gif', 'jpg', 'png', 'bmp']) && typeof supe == 'undefined' ? 2 : 1;
		$('localfile_' + id).innerHTML = '<a href="###delAttach" onclick="delAttach(' + id + ')">[' + lang['post_attachment_deletelink'] + ']</a> <a href="###insertAttach" title="' + lang['post_attachment_insert'] + '" onclick="insertAttachtext(' + id + ');return false;">[' + lang['post_attachment_insertlink'] + ']</a> ' +
			(attachexts[id] == 2 ? '<span id="localimgpreview_' + id + '" onmouseover="showMenu(this.id, 0, 0, 1, 0)"> <span class="smalltxt">[' +id + ']</span> <a href="###attachment" onclick="insertAttachtext(' + id + ');return false;">' + localfile + '</a></span>' : '<span class="smalltxt">[' + id + ']</span> ' + localfile);
		$('attach_' + id).style.display = 'none';
		addAttach();
	}
	function insertAttachtext(id) {
		if(!attachexts[id]) {
			return;
		}
		if(attachexts[id] == 2) {
			AddText('[local]' + id + '[/local]');
		} else {
			AddText('[local]' + id + '[/local]');
		}
	}
	function AddText(txt) {
		obj = $('postform').message;
		selection = document.selection;
		checkFocus();
		if(!isUndefined(obj.selectionStart)) {
			var opn = obj.selectionStart + 0;
			obj.value = obj.value.substr(0, obj.selectionStart) + txt + obj.value.substr(obj.selectionEnd);
		} else if(selection && selection.createRange) {
			var sel = selection.createRange();
			sel.text = txt;
			sel.moveStart('character', -strlen(txt));
		} else {
			obj.value += txt;
		}
	}
	</script>
</c:if>
<c:if test="${settings.forumjump==1&&settings.jsmenu_1>0}">
	<div class="popupmenu_popup" id="forumlist_menu" style="display: none">
	${forummenu}
	</div>
</c:if>
<jsp:include flush="true" page="footer.jsp" />

⌨️ 快捷键说明

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