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

📄 forumdetail.jsp

📁 论坛软件系统亦称电子公告板(BBS)系统
💻 JSP
📖 第 1 页 / 共 4 页
字号:
									</c:if>
								</c:forEach>
								<tr><td colspan="6">新增:<a href="###" onclick="addtype()">[+]</a></td></tr>
								<c:forEach begin="0" end="9" step="1" varStatus="index">
								<tbody id="type_${index.index}" ${index.index>0?"style='display: none'":""}>
									<tr align="center">
										<td class="altbg1"><input type="text" name="newname[${index.index}]" size="15"></td>
										<td class="altbg2"><input type="text" name="newdescription[${index.index}]" size="15"></td>
										<td class="altbg1"><input class="radio" type="radio" name="newoptions[${index.index}]" value="0"></td>
										<td class="altbg2"><input class="radio" type="radio" name="newoptions[${index.index}]" value="1" checked></td>
										<td class="altbg1"><input class="radio" type="radio" name="newoptions[${index.index}]" value="2"></td>
										<td class="altbg1"><input class="checkbox" type="checkbox" name="newoptions[${index.index}]" value="2"></td>
									</tr>
								</tbody>
								</c:forEach>
								<tr><td colspan="6">请选择您期望在本版块中使用的类别选项,如果本版块选择的分类较多,建议您使用“下拉显示”方式,只把重要的分类使用平板显示,以免分类显示太长,破坏页面。注意:本功能必须“启用主题分类”后才可使用</td></tr>
							</table>
							<br />
							<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableborder">
								<tr class="header">
									<td>版块权限</td>
									<td><input class="checkbox" type="checkbox" name="chkall1" onclick="checkall(this.form, 'viewperm', 'chkall1')">浏览版块</td>
									<td><input class="checkbox" type="checkbox" name="chkall2" onclick="checkall(this.form, 'postperm', 'chkall2')">发新话题</td>
									<td><input class="checkbox" type="checkbox" name="chkall3" onclick="checkall(this.form, 'replyperm', 'chkall3')">发表回复</td>
									<td><input class="checkbox" type="checkbox" name="chkall4" onclick="checkall(this.form, 'getattachperm', 'chkall4')">下载/查看附件</td>
									<td><input class="checkbox" type="checkbox" name="chkall5" onclick="checkall(this.form, 'postattachperm', 'chkall5')"> 上传附件</td>
								</tr>
								<c:forEach items="${usergroups}" var="usergroup">
									<tr>
										<td class="altbg1"><input class="checkbox" title="全选" type="checkbox" name="chkallv${usergroup.groupid}" onclick="checkallvalue(this.form, ${usergroup.groupid}, 'chkallv${usergroup.groupid}')"> ${usergroup.grouptitle}</td>
										<td class="altbg2"><input class="checkbox" type="checkbox" name="viewperm" ${viewpermMap[usergroup.groupid]?'checked':''} value="${usergroup.groupid}"></td>
										<td class="altbg1"><input class="checkbox" type="checkbox" name="postperm" ${postpermMap[usergroup.groupid]?'checked':''} value="${usergroup.groupid}"></td>
										<td class="altbg2"><input class="checkbox" type="checkbox" name="replyperm" ${replypermMap[usergroup.groupid]?'checked':''} value="${usergroup.groupid}"></td>
										<td class="altbg1"><input class="checkbox" type="checkbox" name="getattachperm" ${getattachpermMap[usergroup.groupid]?'checked':''} value="${usergroup.groupid}"></td>
										<td class="altbg2"><input class="checkbox" type="checkbox" name="postattachperm" ${postattachpermMap[usergroup.groupid]?'checked':''} value="${usergroup.groupid}"></td>
									</tr>
								</c:forEach>
								<tr><td colspan="6">某权限如果未全选则表示如下含义:<br />  浏览版块,全部用户组具有浏览版块帖子权限;发新话题,除游客以外的用户组具有发帖权限;发表回复,除游客以外的用户组具有回复权限;查看附件,全部用户组具有下载/查看附件权限;上传附件,除游客以外的用户组具有上传附件权限</td></tr>
								<tr class="header"><td colspan="6"><b>特殊用户:</b></td></tr>
								<tr><td class="altbg1">浏览版块:</td><td class="altbg2" colspan="5">${viewaccess}</td></tr>
								<tr><td class="altbg1">发新话题:</td><td class="altbg2" colspan="5">${postaccess}</td></tr>
								<tr><td class="altbg1">发表回复:</td><td class="altbg2" colspan="5">${allowreply}</td></tr>
								<tr><td class="altbg1">下载/查看附件:</td><td class="altbg2" colspan="5">${allowgetattach}</td></tr>
								<tr><td class="altbg1">上传附件:</td><td class="altbg2" colspan="5">${allowpostattach}</td></tr>
							</table>
							<br />
							<a name="a65d308e169d9410"></a>
							<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableborder">
								<tr class="header">
									<td colspan="2">权限表达式设置<a href="###" onclick="collapse_change('a65d308e169d9410')"><img id="menuimg_a65d308e169d9410" src="images/admincp/menu_reduce.gif" border="0" style="float: right; margin-top: -12px; margin-right: 8px;" /></a></td>
								</tr>
								<tbody id="menu_a65d308e169d9410" style="display: yes">
									<script language="javascript" type="text/javascript">
										var extcredits=new Array(8);
									</script>
									<c:forEach items="${extcredits}" var="extcredit">
										<c:if test="${extcredit.value.available==1}"><script language="javascript" type="text/javascript">extcredits[${extcredit.key-1}]='${extcredit.value.title}';</script></c:if>
										<c:if test="${extcredit.value.available==null||extcredit.value.available!=1}"><script language="javascript" type="text/javascript">extcredits[${extcredit.key-1}]='自定义积分${extcredit.key}';</script></c:if>
									</c:forEach>
									<script language="javascript" type="text/javascript">
										function isUndefined(variable) {
											return typeof variable == 'undefined' ? true : false;
										}
										function insertunit(text, textend) {
											$('formulapermnew').focus();
											textend = isUndefined(textend) ? '' : textend;
											if(!isUndefined($('formulapermnew').selectionStart)) {
												var opn = $('formulapermnew').selectionStart + 0;
												if(textend != '') {
													text = text + $('formulapermnew').value.substring($('formulapermnew').selectionStart, $('formulapermnew').selectionEnd) + textend;
												}
												$('formulapermnew').value = $('formulapermnew').value.substr(0, $('formulapermnew').selectionStart) + text + $('formulapermnew').value.substr($('formulapermnew').selectionEnd);
											} else if(document.selection && document.selection.createRange) {
												var sel = document.selection.createRange();
												if(textend != '') {
													text = text + sel.text + textend;
												}
												sel.text = text.replace(/\r?\n/g, '\r\n');
												sel.moveStart('character', -strlen(text));
											} else {
												$('formulapermnew').value += text;
											}
											formulaexp();
										}
										
										var formulafind = new Array('digestposts', 'posts', 'oltime', 'pageviews');
										var formulareplace = new Array('<u>精华帖数</u>','<u>发帖数</u>','<u>在线时间(小时)</u>','<u>页面浏览量</u>');
										function formulaexp() {
											var result = $('formulapermnew').value;
											result = result.replace(/extcredits1/g, '<u>'+extcredits[0]+'</u>');
											result = result.replace(/extcredits2/g, '<u>'+extcredits[1]+'</u>');
											result = result.replace(/extcredits3/g, '<u>'+extcredits[2]+'</u>');
											result = result.replace(/extcredits4/g, '<u>'+extcredits[3]+'</u>');
											result = result.replace(/extcredits5/g, '<u>'+extcredits[4]+'</u>');
											result = result.replace(/extcredits6/g, '<u>'+extcredits[5]+'</u>');
											result = result.replace(/extcredits7/g, '<u>'+extcredits[6]+'</u>');
											result = result.replace(/extcredits8/g, '<u>'+extcredits[7]+'</u>');
											result = result.replace(/digestposts/g, '<u>精华帖数</u>');result = result.replace(/posts/g, '<u>发帖数</u>');result = result.replace(/oltime/g, '<u>在线时间(小时)</u>');result = result.replace(/pageviews/g, '<u>页面浏览量</u>');result = result.replace(/and/g, '&nbsp;&nbsp;并且&nbsp;&nbsp;');result = result.replace(/or/g, '&nbsp;&nbsp;或者&nbsp;&nbsp;');result = result.replace(/>=/g, '&ge;');result = result.replace(/<=/g, '&le;');	$('formulapermexp').innerHTML = result;
										}
									</script>
									<tr>
										<td colspan="2" class="altbg1">
											<span class="smalltxt">如果用户拥有浏览本版块的权限,那么当您设定了权限表达式后,用户必须符合此表达式才可以继续浏览本版块。如“posts > 100 and extcredits1 > 10”表示“发帖数 > 100 并且 威望 > 10”</span>
											<br />
											<img src="images/admincp/zoomin.gif" onmouseover="this.style.cursor='pointer'" onclick="zoomtextarea('creditsformulanew', 1)">
											<img src="images/admincp/zoomout.gif" onmouseover="this.style.cursor='pointer'" onclick="zoomtextarea('creditsformulanew', 0)">
											<div style="width:90%" class="formulaeditor">
												<div>
													<c:forEach items="${extcredits}" var="extcredit"><c:choose><c:when test="${extcredit.value.available==1}"><a href="###" onclick="insertunit('extcredits${extcredit.key}')">${extcredit.value.title}</a> &nbsp;</c:when><c:otherwise><a href="###" onclick="insertunit('extcredits${extcredit.key}')">自定义积分${extcredit.key}</a> &nbsp;</c:otherwise></c:choose></c:forEach>
													<br />
													<a href="###" onclick="insertunit(' digestposts ')">精华帖数</a>&nbsp;
													<a href="###" onclick="insertunit(' posts ')">发帖数</a>&nbsp;
													<a href="###" onclick="insertunit(' oltime ')">在线时间(小时)</a>&nbsp;
													<a href="###" onclick="insertunit(' pageviews ')">页面浏览量</a>&nbsp;
													<a href="###" onclick="insertunit(' + ')">&nbsp;+&nbsp;</a>&nbsp;
													<a href="###" onclick="insertunit(' - ')">&nbsp;-&nbsp;</a>&nbsp;
													<a href="###" onclick="insertunit(' * ')">&nbsp;*&nbsp;</a>&nbsp;
													<a href="###" onclick="insertunit(' / ')">&nbsp;/&nbsp;</a>&nbsp;
													<a href="###" onclick="insertunit(' > ')">&nbsp;>&nbsp;</a>&nbsp;
													<a href="###" onclick="insertunit(' >= ')">&nbsp;>=&nbsp;</a>&nbsp;
													<a href="###" onclick="insertunit(' < ')">&nbsp;<&nbsp;</a>&nbsp;
													<a href="###" onclick="insertunit(' <= ')">&nbsp;<=&nbsp;</a>&nbsp;
													<a href="###" onclick="insertunit(' = ')">&nbsp;=&nbsp;</a>&nbsp;
													<a href="###" onclick="insertunit(' (', ') ')">&nbsp;(&nbsp;)&nbsp;</a>&nbsp;
													<a href="###" onclick="insertunit(' and ')">&nbsp;并且&nbsp;</a>&nbsp;
													<a href="###" onclick="insertunit(' or ')">&nbsp;或者&nbsp;</a>&nbsp;
													<br />
													<span id="formulapermexp"></span>
												</div>
												<textarea name="formulaperm" id="formulapermnew" style="width:100%" rows="3" onkeyup="formulaexp()" type="_moz">${forumlaperms}</textarea>
												<input type="hidden" id="checkResult" name="checkResult" value="false">
											</div>
											<script>formulaexp()</script>
											<br />
											注意: 在线时间和页面访问量两个指标,用户可以通过长时间联机刷新而作弊,请慎用
										</td>
									</tr>
								</tbody>
							</table>
							<br />
							<center>
								<input class="button" type="submit" name="detailsubmit" value="提 交">&nbsp;&nbsp;&nbsp;<input class="button" type="submit" name="saveconfigsubmit" value="保存为设置方案">
							</center>
						</form>
<script language="javascript" type="text/javascript">
	isRadioChecked("status",'${forum.status}');
	isRadioChecked("alloweditrules",'${forum.alloweditrules}');
	isRadioChecked("modnewposts",'${forum.modnewposts}');
	isRadioChecked("alloweditpost",'${forum.alloweditpost}');
	isRadioChecked("recyclebin",'${forum.recyclebin}');
	isRadioChecked("allowshare",'${forum.allowshare}');
	isRadioChecked("allowhtml",'${forum.allowhtml}');
	isRadioChecked("allowbbcode",'${forum.allowbbcode}');
	isRadioChecked("allowimgcode",'${forum.allowimgcode}');
	isRadioChecked("allowmediacode",'${forum.allowmediacode}');
	isRadioChecked("allowsmilies",'${forum.allowsmilies}');
	isRadioChecked("jammer",'${forum.jammer}');
	isRadioChecked("allowanonymous",'${forum.allowanonymous}');
	isRadioChecked("disablewatermark",'${forum.disablewatermark}');
	isRadioChecked("allowspecialonly",'${forum.allowspecialonly}');
	isRadioChecked("allowpaytoauthor",'${forum.allowpaytoauthor}');
	isRadioChecked("autoclose",'${forum.autoclose}');
		
	isRadioChecked("threadtypes[status]","${threadtypesMap['status']}");
	isRadioChecked("threadtypes[required]","${threadtypesMap['required']}");
	isRadioChecked("threadtypes[listable]","${threadtypesMap['listable']}");
	isRadioChecked("threadtypes[prefix]","${threadtypesMap['prefix']}");
	isSelectChecked("projectId",'${proId}');
	isSelectChecked("fup",'${forum.fup}');
	//特殊主题信息
	isCheckboxChecked("allowpostspecial[1]","${allowpostspecials[0]}");
	isCheckboxChecked("allowpostspecial[2]","${allowpostspecials[1]}");
	isCheckboxChecked("allowpostspecial[3]","${allowpostspecials[2]}");
	isCheckboxChecked("allowpostspecial[4]","${allowpostspecials[3]}");
	isCheckboxChecked("allowpostspecial[5]","${allowpostspecials[4]}");
	isCheckboxChecked("allowpostspecial[6]","${allowpostspecials[5]}");
	//推荐主题功能信息
	isRadioChecked("modrecommend[open]","${modrecommend['open']}");
	isRadioChecked("modrecommend[sort]","${modrecommend['sort']}");
	isRadioChecked("modrecommend[orderby]","${modrecommend['orderby']}");
	if('${modrecommend['open']}'=='1')
	{
		$('hidden_forums_edit_recommend').style.display = '';
	}
</script>
	</c:otherwise>
</c:choose>
<jsp:include page="../cp_footer.jsp" />

⌨️ 快捷键说明

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