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

📄 modcp_forums.htm

📁 论坛代码网增加免费空间业务
💻 HTM
字号:
<!--{if $modforums['fids']}-->
	<div class="mainbox">
		<h3>{lang mod_forum_select}</h3>
		<form method="post" action="{$cpscript}">
		<input type="hidden" name="action" value="$action" />
		<input type="hidden" name="op" value="$op" />
		<table cellspacing="0" cellpadding="0">
			<tr>
			<th width="20%">{lang forum}</th>
			<td>
				<select name="fid">
					<option value=""></option>
					<!--{loop $modforums[list] $id $name}-->
					<option value="$id" {if $id == $fid}selected{/if}>$name</option>
					<!--{/loop}-->
				</select>
			</td>
			<td><button type="submit" class="submit" name="chooseforumsubmit" value="true">{lang submit}</button></td>
			</tr>
		</table>
		</form>
	</div>
<!--{else}-->
	<div class="mainbox">
		<h3>{lang mod_option_error}</h3>
		<table cellspacing="0" cellpadding="0">
			<tr><td>{lang mod_message_forum_nopermission}</td></tr>
		</table>
	</div>
<!--{/if}-->

<!--{if $fid && $forum['ismoderator']}-->

	<!--{if $op == 'editforum'}-->
		<script type="text/javascript">
			var allowbbcode = allowimgcode = 1;
			var allowhtml = forumallowhtml = allowsmilies = 0;
			function parseurl(str, mode) {
				str = str.replace(/([^>=\]"'\/]|^)((((https?|ftp):\/\/)|www\.)([\w\-]+\.)*[\w\-\u4e00-\u9fa5]+\.([\.a-zA-Z0-9]+|\u4E2D\u56FD|\u7F51\u7EDC|\u516C\u53F8)((\?|\/|:)+[\w\.\/=\?%\-&~`@':+!]*)+\.(jpg|gif|png|bmp))/ig, mode == 'html' ? '$1<img src="$2" border="0">' : '$1[img]$2[/img]');
				str = str.replace(/([^>=\]"'\/@]|^)((((https?|ftp|gopher|news|telnet|rtsp|mms|callto|bctp|ed2k):\/\/)|www\.)([\w\-]+\.)*[:\.@\-\w\u4e00-\u9fa5]+\.([\.a-zA-Z0-9]+|\u4E2D\u56FD|\u7F51\u7EDC|\u516C\u53F8)((\?|\/|:)+[\w\.\/=\?%\-&~`@':+!#]*)*)/ig, mode == 'html' ? '$1<a href="$2" target="_blank">$2</a>' : '$1[url]$2[/url]');
				str = str.replace(/([^\w>=\]:"'\.\/]|^)(([\-\.\w]+@[\.\-\w]+(\.\w+)+))/ig, mode == 'html' ? '$1<a href="mailto:$2">$2</a>' : '$1[email]$2[/email]');
				return str;
			}
		</script>
		<script type="text/javascript" src="include/javascript/bbcode.js"></script>
		<div class="mainbox">
			<h3>{lang mod_option_forum_edit} - $forum[name]</h3>
			<form method="post" action="{$cpscript}?action=$action&op=$op">
			<input type="hidden" name="formhash" value="{FORMHASH}">
			<input type="hidden" name="fid" value="$fid">
			<table cellspacing="0" cellpadding="0">
				<tr>
					<th width="20%">{lang forum_name}</th><td>$forum[name] [<a href="forumdisplay.php?fid=$fid" target="_blank">{lang views}</a>]</td>
				</tr>
				<tr>
				<tr>
					<th width="20%">{lang forum_description}<br /><br />{faq discuzcode} <b>{lang enabled}</b><br />{lang post_html} <b>{lang disabled}</b><br />{lang memcp_nocustomizebbcode}<br /><br /><a href="###" onclick="$('descpreview').innerHTML = bbcode2html($('descnew').value)">{lang memcp_profile_preview}</a></th><td><div id="descpreview"></div><textarea id="descnew" name="descnew" rows="8" cols="80">$forum['description']</textarea></td>
				</tr>
				<tr>
					<th width="20%">{lang forum_rules}<br /><br />{faq discuzcode} <b>{lang enabled}</b><br />{lang post_html} <b>{lang disabled}</b><br />{lang memcp_nocustomizebbcode}<br /><br /><a href="###" onclick="$('rulespreview').innerHTML = bbcode2html($('rulesnew').value)">{lang memcp_profile_preview}</a></th><td><div id="rulespreview"></div><textarea id="rulesnew" name="rulesnew" rows="8" cols="80" {if !$alloweditrules}disabled readonly{/if}>$forum['rules']</textarea></td>
				</tr>
				<tr>
					<th></th><td><button type="submit" class="submit" name="editsubmit" value="true">{lang submit}</button></td>
				</tr>
			</table>
			</form>
		</div>
		<!--{if $forumupdate}-->
			<div class="notice">{lang mod_message_forum_update}</div>
		<!--{/if}-->

	<!--{elseif $op == 'recommend'}-->
		<div class="mainbox">
		<h3>{lang mod_option_forum_recommend} - $forum[name]</h3>
		<table cellspacing="0" cellpadding="0">
			<thead>
				<tr>
					<td width="10%"><input class="checkbox" type="checkbox" id="chkall" name="chkall" onclick="checkall(this.form)" />{lang delete}</td>
					<th width="10%">{lang displayorder}</th>
					<th>{lang subject}</th>
					<th class="user" width="15%">{lang author}</th>
					<th class="user" width="15%">{lang moderator}</th>
					<td class="time" width="10%">{lang mod_forum_recommend_expiration}</td>
				</tr>
			</thead>
			<!--{if $threadlist}-->
				<form method="post" action="{$cpscript}?action=$action">
				<input type="hidden" name="formhash" value="{FORMHASH}" />
				<input type="hidden" name="op" value="$op" />
				<input type="hidden" name="page" value="$page" />
				<input type="hidden" name="fid" value="$fid" />
				<!--{loop $threadlist $thread}-->
					<tr>
					<td class="selector"><input type="checkbox" name="delete[]" value="$thread[tid]" /></td>
					<td><input type="text" size="3" name="ordernew[{$thread[tid]}]" value="$thread[displayorder]"></td>
					<td><a href="viewthread.php?tid=$thread[tid]" target="_blank">$thread[subject]</a></td>
					<td>$thread[author]</td>
					<td>$thread[moderator]</td>
					<td class="time">$thread[expiration]</td>
					</tr>
				<!--{/loop}-->
				</table>
				<div class="footoperation" align="center">
					<button type="submit" name="editsubmit" value="yes" class="button">{lang mod_forum_recommend_list}</button>
				</div>
			<!--{else}-->
					<tr><td colspan="6">{lang search_nomatch}</td></tr>
				</table>

			<!--{/if}-->
		</div>
		</form>
		<!--{if !empty($reportlist[pagelink])}--><div class="pages_btns">$reportlist[pagelink]</div><!--{/if}-->
		<!--{if $listupdate}-->
			<div class="notice">{lang mod_message_forum_updaterecommend}</div>
		<!--{/if}-->

	<!--{/if}-->

<!--{/if}-->

⌨️ 快捷键说明

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