<!--<?php
include_once PrintEot('left');
if (!$action) {
print <<<EOT
-->
<h3><b>提示信息</b></h3>
<div class="tr5">
1、可以根據自己論壇的定位來選擇合適自己的論壇模式<br />
2、二級域名︰請設置全稱,如:mode.phpwind.net
</div>

<form action="$basename&" method="post">
	<input type="hidden" name="action" value="set">
	<h2>模式選擇</h2>
	<table width="100%" cellspacing="0" cellpadding="0">

		<tr class="tr3 s3">
			<td>模式名稱</td>
			<td>導航名稱</td>
			<td>二級域名</td>
			<td>選擇默認</td>
			<td>是否開啟</td>
			<td width="5%">配置</td>
			<td width="5%">更新</td>
			<td width="5%">卸載</td>
		</tr>
		<tr class="tr3">
			<td>論壇模式</td>
			<td><input type="text" name="title[bbs]" value="{$db_modes[bbs][title]}" class="input"></td>
			<td></td>
			<td><input type="radio" name="defaultmode" value='' $defalutchecked></td>
			<td><input type="hidden" name="ifopen[]" value="bbs" /></td>
			<td colspan="5"> </td>
		</tr>
<!--
EOT;
foreach($db_modes as $key=>$mode){
if ($key == 'bbs') continue;
$checked = $key==$db_mode ? 'checked="checked"' : '';
$ifopen = $mode[ifopen]==1 ? 'checked="checked"' : '';
print <<<EOT
-->
		<tr class="tr3">
			<td>{$mode[m_name]}</td>
			<td><input type="text" name="title[$key]" value="{$mode[title]}" class="input"></td>
			<td><input type="text" name="domain[$key]" value="{$db_modedomain[$key]}" class="input"></td>
			<td><input type="radio" name="defaultmode" value="$key" $checked></td>
			<td><input type="checkbox" name="ifopen[]" value="$key" $ifopen/></td>
			<td>
				<a class="fourm-two" href="$admin_file?adminjob=modepage&m=$key">
					<span class="edit" title="配置頁面"/>
				</a>
			</td>
			<td>
				<a class="fourm-two" title="更新緩存" href="$basename&action=fourmtypecache&m=$key">
					<span class="update"></span>
				</a>
			</td>
			<td>
				<a class="fourm-two" href="$basename&action=uninstall&m=$key">
					<span class="del" title="卸載"/>
				</a>
			</td>
		</tr>
<!--
EOT;
}print <<<EOT
-->
	</table>
	<br />
	<center><input type="submit" class="btn" value="提 交" /></center>
</form>
<!--
EOT;
if ($uninstall) {
print <<<EOT
-->
<br />
<h2>未安裝模式</h2>
<table width="100%" cellspacing="0" cellpadding="0">
	<tr class="tr3 s3">
		<td width="10%">模式名稱</td>
		<td width="60%">模式說明</td>
		<td width="10%">模式目錄</td>
		<td width="10%">管理選項︰</td>
	</tr>

<!--
EOT;
foreach($uninstall as $mode){
print <<<EOT
-->
	<tr class="tr3">
		<td>$mode[0]</td>
		<td>$mode[1]</td>
		<td>$mode[2]</td>
		<td><a href="$basename&action=install&mode=$mode[2]">安裝</a></td>
	</tr>
<!--
EOT;
}
print <<<EOT
-->
</table>
<!--
EOT;
}
print <<<EOT
-->

<!--
EOT;
}
print <<<EOT
-->

</div>
<script language="javascript">
function showListFid(fid){
	if (getObj('type_'+fid)) {
		var showfid = getObj('type_'+fid);
		if (showfid.style.display == 'none') {
			showfid.style.display = '';
			getObj('cate_'+fid).className = 'close fl';
		} else {
			showfid.style.display = 'none';
			getObj('cate_'+fid).className = 'open fl';
		}
	}
}
</script>
<!--
EOT;
include_once PrintEot('adminbottom');
?>-->