<!--<?php
include_once PrintEot('left');
print <<<EOT
-->

<form action="$basename" method="post">
<input type=hidden name="action" value="unsubmit">
<!--
EOT;
if($type=='bbsset' || $type=='all'){print <<<EOT
-->
<a name="bbsset">
<table width=98% align=center cellspacing=1 cellpadding=3 class=i_table>
	<tr><td class="head" colspan="2" align="center"><a href="#top"><b>{#setting_bbsset}</b></a></td></tr>
	<tr class=b>
		<td width="60%">{#setting_bbsifopen}</td>
		<td>
			<input type=radio value=1 name="config[bbsifopen]" $bbsifopen_Y> {#setting_open}
			<input type=radio value=0 name="config[bbsifopen]" $bbsifopen_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_bbsclose}</td>
		<td><textarea name="config[whybbsclose]" rows=6 cols=50>$db_whybbsclose</textarea></td>
	</tr>
	<tr class=b>
		<td>{#setting_postisopen}</td>
		<td>
			<input type=radio value=1 name="config[openpost]" $openpost_Y>{#setting_open}
			<input type=radio value=0 name="config[openpost]" $openpost_N>{#setting_close}<br><br>
			{#setting_poststart} <input name="config[poststart]" value="$db_poststart" size=2>
			{#setting_postend} <input name="config[postend]" value="$db_postend" size=2>
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_searchopen}</td>
		<td>
			<input type=radio value=1 name="schcontrol[opensch]" $opensch_Y>{#setting_open}
			<input type=radio value=0 name="schcontrol[opensch]" $opensch_N>{#setting_close}
			<br><br>
			{#setting_searchstart} <input name="schcontrol[schstart]" value="$db_schstart" size=2>
			{#setting_searchend} <input name="schcontrol[schend]" value="$db_schend" size=2>
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_onlinelmt}</td>
		<td><input size=35 name="config[onlinelmt]" value="$db_onlinelmt"></td>
	</tr>
	<tr class=b>
		<td>{#setting_regpopup}</td>
		<td>
			<input type=radio value=1 name="config[regpopup]" $regpopup_Y> {#setting_open}
			<input type=radio value=0 name="config[regpopup]" $regpopup_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_debug}</td>
		<td>
			<input type=radio value=1 name="config[debug]" $debug_Y> {#setting_open}
			<input type=radio value=0 name="config[debug]" $debug_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td valign="top">{#setting_forumdir}</td>
		<td>
			<input type=radio value=0 name="config[forumdir]" $forumdir_0> {#setting_dir_0}<br>
			<input type=radio value=1 name="config[forumdir]" $forumdir_1> {#setting_dir_1}<br>
			<input type=radio value=2 name="config[forumdir]" $forumdir_2> {#setting_dir_2}
		</td>
	</tr>
	<tr class=b>
		<td>{#meta_keyword}</td>
		<td><input size=35 name="config[metakeyword]" value="$db_metakeyword"></td>
	</tr>
	<tr class=b>
		<td>{#meta_descrip}</td>
		<td><input size=35 name="config[metadescrip]" value="$db_metadescrip"></td>
	</tr>
</table>
<br>
<!--
EOT;
}if($type=='setgd' || $type=='all'){print <<<EOT
-->
<a name="setgd">
<table width=98% align=center cellspacing=1 cellpadding=3 class=i_table>
	<tr><td class="head" colspan="2" align="center"><a href="#top">{#setting_setgd}</a></td></tr>
	<tr class=b>
		<td width="60%">{#setting_ckmethod}</td>
		<td>
			<input type=radio value=1 name="config[ckmethod]" $ckmethod_Y> {#setting_open}
			<input type=radio value=2 name="config[ckmethod]" $ckmethod_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_reggd}</td>
		<td>
			<input type=radio value=1 name="gdcheck[reg]" $reggd_Y> {#setting_open}
			<input type=radio value=0 name="gdcheck[reg]" $reggd_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_logingd}</td>
		<td>
			<input type=radio value=1 name="gdcheck[login]" $logingd_Y> {#setting_open}
			<input type=radio value=0 name="gdcheck[login]" $logingd_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_postgd}</td>
		<td>
			<input type=radio value=1 name="gdcheck[post]" $postgd_Y> {#setting_open}
			<input type=radio value=0 name="gdcheck[post]" $postgd_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_msggd}</td>
		<td>
			<input type=radio value=1 name="gdcheck[msg]" $msggd_Y> {#setting_open}
			<input type=radio value=0 name="gdcheck[msg]" $msggd_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_othergd}</td>
		<td>
			<input type=radio value=1 name="gdcheck[other]" $othergd_Y> {#setting_open}
			<input type=radio value=0 name="gdcheck[other]" $othergd_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_admingd}</td>
		<td>
			<input type=radio value=1 name="gdcheck[admin]" $admingd_Y> {#setting_open}
			<input type=radio value=0 name="gdcheck[admin]" $admingd_N>{#setting_close}
		</td>
	</tr>
</table>
<br>
<!--
EOT;
}if($type=='basicset' || $type=='all'){print <<<EOT
-->
<a name="basicset">
<table width="98%" align="center" cellspacing="1" cellpadding="3" class="i_table">
	<tr><td class="head" colspan="2" align="center"><a href="#top">{#setting_basicset}</a></td></tr>
	<tr class=b>
		<td width="60%">{#setting_bbsname}</td>
		<td><input size=35 name="config[bbsname]" value="$db_bbsname"></td>
	</tr>
	<tr class=b>
		<td>{#setting_bbsfile}</td>
		<td><input size=35 name="config[bfn]" value="$db_bfn"></td>
	</tr>
	<tr class=b>
		<td>{#setting_bbsurl}</td>
		<td><input size=35 name="config[bbsurl]" value="$db_bbsurl"></td>
	</tr>
	<tr class=b>
		<td>{#setting_ceoconnect}</td>
		<td><input size=35 name="config[ceoconnect]" value="$db_ceoconnect"></td>
	</tr>
	<tr class=b>
		<td>{#setting_ceoemail}</td>
		<td><input size=35 name="config[ceoemail]" value="$db_ceoemail"></td>
	</tr>
	<tr class=b>
		<td>{#setting_recycle}</td>
		<td><input size=35 name="config[recycle]" value="$db_recycle"></td>
	</tr>
</table>
<br>
<!--
EOT;
}if($type=='pathset' || $type=='all'){print <<<EOT
-->
<a name="pathset">
<table width="98%" align="center" cellspacing="1" cellpadding="3" class="i_table">
	<tr><td class="head" colspan="2" align="center"></a><a href="#top">{#setting_pathset}</a></td></tr>
	<tr class=b>
		<td width="60%">{#setting_picpath}</td>
		<td><input size=35 name="set[picpath]" value="$picpath" $imgdisabled></td>
	</tr>
	<tr class=b>
		<td>{#setting_attachpath}</td>
		<td><input size=35 name="set[attachpath]" value="$attachname" $attdisabled></td>
	</tr>
	<tr class=b>
		<td>{#setting_autochange}</td>
		<td>
			<input type=radio value=1 name="config[autochange]" $autochange_Y>{#setting_open}
			<input type=radio value=0 name="config[autochange]" $autochange_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_hour}</td>
		<td>
			<select name="config[hour]">
				<option value=4 $hour_sel[4]>4</option>
				<option value=6 $hour_sel[6]>6</option>
				<option value=8 $hour_sel[8]>8</option>
				<option value=12 $hour_sel[12]>12</option>
				<option value=20 $hour_sel[20]>24</option>
			</select>
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_http}</td>
		<td><input size=35 name="config[http]" value="$db_http"></td>
	</tr>
	<tr class=b>
		<td>{#setting_attachurl}</td>
		<td><input size=35 name="config[attachurl]" value="$db_attachurl"></td>
	</tr>
</table>
<br>
<!--
EOT;
}if($type=='coreset' || $type=='all'){print <<<EOT
-->
<a name="coreset">
<table width="98%" align="center" cellspacing="1" cellpadding="3" class="i_table">
	<tr><td class="head" colspan="2" align="center"><a href="#top">{#setting_coreset}</a></td></tr>
	<tr class=b>
		<td>{#setting_lp}</td>
		<td>
			<input type=radio value=1 name="config[lp]" $lp_Y>{#setting_open}
			<input type=radio value=0 name="config[lp]" $lp_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_obstart}</td>
		<td>
			<input type=radio value=1 name="config[obstart]" $obstart_Y>{#setting_open}
			<input type=radio value=0 name="config[obstart]" $obstart_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#meta_charset}</td>
		<td>
			<select name="config[charset]">
				<option value="gbk" $charset_gbk>{#charset_gbk}</option>
				<option value="big5" $charset_big5>{#charset_big5}</option>
				<option value="utf-8" $charset_utf8>{#charset_utf8}</option>
			</select>
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_defaultstyle}</td>
		<td><select name="config[defaultstyle]">$choseskin</select></td>
	</tr>
	<tr class=b>
		<td>{#setting_cvtime}</td>
		<td><input type="text" name="config[cvtime]" value="$db_cvtime"></td>
	</tr>
	<tr class=b>
		<td>{#setting_timedf}</td>
		<td>
			<select name="config[timedf]">
<!--
EOT;
include PrintEot('timezone');
print <<<EOT
-->
			</select>
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_datefm}</td>
		<td>
			<input name="config[datefm]" value="$db_datefm">
			<input type=radio name='time_f' value='24' $check_24>24
			<input type=radio name='time_f' value='12' $check_12>12
		</td>
	</tr>
	<tr class=b>
	<td>{#setting_upload}</td>
		<td>
			<input type=radio value=1 name="config[upload]" $upload_Y>{#setting_open}
			<input type=radio value=0 name="config[upload]" $upload_N>{#setting_close}
			<br><br>
			{#setting_iconsize}(k) <input name="config[imgsize]" value="$db_imgsize" size=10>
			{#setting_iconlen} <input name="config[imglen]" value="$db_imglen" size=4>
			{#setting_iconwidth} <input name="config[imgwidth]" value="$db_imgwidth" size=4>
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_msgsound}</td>
		<td>
			<input type=radio value=1 name="config[msgsound]" $msgsound_Y>{#setting_open}
			<input type=radio value=0 name="config[msgsound]" $msgsound_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_ifonlinetime}</td>
		<td>
			<input type=radio value=1 name="config[ifonlinetime]" $ifonlinetime_Y>{#setting_open}
			<input type=radio value=0 name="config[ifonlinetime]" $ifonlinetime_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_ifjump}</td>
		<td>
			<input type=radio value=1 name="config[ifjump]" $ifjump_Y>{#setting_open}
			<input type=radio value=0 name="config[ifjump]" $ifjump_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_refreshtime}</td>
		<td><input size=35 name="config[refreshtime]" value="$db_refreshtime"></td>
	</tr>
	<tr class=b>
		<td>{#setting_onlinetime}</td>
		<td><input size=35 name="config[onlinetime]" value="$db_onlinetime"></td>
	</tr>
	<tr class=b>
		<td>{#setting_maxresult}</td>
		<td><input size=35 name="config[maxresult]" value="$db_maxresult"></td>
	</tr>
	<tr class=b>
		<td>{#setting_footertime}</td>
		<td>
			<input type=radio value=1 name="config[footertime]" $footertime_Y>{#setting_open}
			<input type=radio value=0 name="config[footertime]" $footertime_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_ckpath}</td>
		<td><input size=35 name="config[ckpath]" value="$db_ckpath"></td>
	</tr>
	<tr class=b>
		<td>{#setting_ckdomain}</td>
		<td><input size=35 name="config[ckdomain]" value="$db_ckdomain"></td>
	</tr>
</table>
<br>
<!--
EOT;
}if($type=='creditset' || $type=='all'){print <<<EOT
-->
<a name="creditset">
<table width="98%" align="center" cellspacing="1" cellpadding="3" class="i_table">
	<tr><td class="head" colspan="2" align="center"><a href="#top">{#setting_creditset}</a></td></tr>
	<tr class=b>
		<td width="60%">{#setting_moneyname}</td>
		<td><input size=35 name="credits[1]" value="$credits_1"></td>
	</tr>
	<tr class=b>
		<td>{#setting_moneyunit}</td>
		<td><input size=35 name="credits[2]" value="$credits_2"></td>
	</tr>
	<tr class=b>
		<td>{#setting_rvrcname}</td>
		<td><input size=35 name="credits[3]" value="$credits_3"></td>
	</tr>
	<tr class=b>
		<td>{#setting_rvrcunit}</td>
		<td><input size=35 name="credits[4]" value="$credits_4"></td>
	</tr>
	<tr class=b>
		<td>{#setting_creditname}</td>
		<td><input size=35 name="credits[5]" value="$credits_5"></td>
	</tr>
	<tr class=b>
		<td>{#setting_creditunit}</td>
		<td><input size=35 name="credits[6]" value="$credits_6"></td>
	</tr>
</table>
<br>
<!--
EOT;
}if($type=='regset' || $type=='all'){print <<<EOT
-->
<a name="regset">
<table width="98%" align="center" cellspacing="1" cellpadding="3" class="i_table">
	<tr><td class="head" colspan="2" align="center"><a href="#top">{#setting_regset}</a></td></tr>
	<tr class=b>
		<td width="60%">{#setting_allowregister}</td>
		<td>
			<input type=radio value=1 name="reg[allowregister]" $allowregister_Y>{#setting_open}
			<input type=radio value=0 name="reg[allowregister]" $allowregister_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_regreason}</td>
		<td><textarea name="reg[whyregclose]" rows=6 cols=50>$rg_whyregclose</textarea></td>
	</tr>
	<tr class=b>
		<td>{#setting_reg}</td>
		<td>
			<input type=radio value=0 name="reg[reg]" $reg_Y>{#setting_open}
			<input type=radio value=1 name="reg[reg]" $reg_V>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_rgpermit}</td>
		<td><textarea name="reg[rgpermit]" rows=6 cols=50>$rg_rgpermit</textarea></td>
	</tr>
	<tr class=b>
		<td>{#setting_regdetail}</td>
		<td>
			<input type=radio value=1 name="reg[regdetail]" $regdetail_Y>{#setting_open}
			<input type=radio value=0 name="reg[regdetail]" $regdetail_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_emailcheck}</td>
		<td>
			<input type=radio value=1 name="reg[emailcheck]" $emailcheck_Y>{#setting_open}
			<input type=radio value=0 name="reg[emailcheck]" $emailcheck_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_allowsameip}</td>
		<td>
			<input type=radio value=1 name="reg[allowsameip]" $allowsameip_Y>{#setting_open}
			<input type=radio value=0 name="reg[allowsameip]" $allowsameip_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_regsendemail}</td>
		<td>
			<input type=radio value=1 name="reg[regsendemail]" $regsendemail_Y>{#setting_open}
			<input type=radio value=0 name="reg[regsendemail]" $regsendemail_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_regsendmsg}</td>
		<td>
			<input type=radio value=1 name="reg[regsendmsg]" $regsendmsg_Y>{#setting_open}
			<input type=radio value=0 name="reg[regsendmsg]" $regsendmsg_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_welcomemsg}</td>
		<td><textarea name="reg[welcomemsg]" rows=6 cols=50>$rg_welcomemsg</textarea></td>
	</tr>
	<tr class=b>
		<td>{#setting_banname}</td>
		<td><textarea name="reg[banname]" rows=6 cols=50>$rg_banname</textarea></td>
	</tr>
	<tr class=b>
		<td>{#setting_ifcheck}</td>
		<td>
			<input type=radio value=1 name="reg[ifcheck]" $ifcheck_Y>{#setting_open}
			<input type=radio value=0 name="reg[ifcheck]" $ifcheck_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_postallowtime}</td>
		<td>
			<select name="config[postallowtime]">
				<option value=0 $regcheck[0]>0</option>
				<option value=1 $regcheck[1]>1</option>
				<option value=3 $regcheck[3]>3</option>
				<option value=6 $regcheck[6]>6</option>
				<option value=12 $regcheck[12]>12</option>
				<option value=24 $regcheck[24]>24</option>
			</select>
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_rglower}</td>
		<td>
			<input type=radio value=1 name="reg[rglower]" $rglower_Y>{#setting_open}
			<input type=radio value=0 name="reg[rglower]" $rglower_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_regminname}</td>
		<td><input size=35 name="reg[regminname]" value="$rg_regminname"></td>
	</tr>
	<tr class=b>
		<td>{#setting_regmaxname}</td>
		<td><input size=35 name="reg[regmaxname]" value="$rg_regmaxname"></td>
	</tr>
	<tr class=b>
		<td>{#setting_regrvrc}</td>
		<td><input size=35 name="reg[regrvrc]" value="$rg_regrvrc"></td>
	</tr>
	<tr class=b>
		<td>{#setting_regmoney}</td>
		<td><input size=35 name="reg[regmoney]" value="$rg_regmoney"></td>
	</tr>
</table>
<br>
<!--
EOT;
}if($type=='windcode' || $type=='all'){print <<<EOT
-->
<a name="windcode">
<table width="98%" align="center" cellspacing="1" cellpadding="3" class="i_table">
	<tr><td class="head" colspan="2" align="center"><a href="#top">{#setting_wind_code}</a></td></tr>
	<tr class=b>
		<td width="60%">{#setting_post_cvtimes}</td>
		<td><input type=text name="config[cvtimes]"  value="$db_cvtimes"></td>
	</tr>
	<tr class=b>
		<td>{#setting_post_pic}</td>
		<td>
			<input type=radio value=1 name="config[windpost_pic]" $windpost_pic_Y>{#setting_open}
			<input type=radio value=0 name="config[windpost_pic]" $windpost_pic_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_post_imgsize}</td>
		<td>
			{#width}: <input type="text" size="5" name="config[windpost_picwidth]" value="$db_windpost[picwidth]">
			{#height}: <input type="text" size="5" name="config[windpost_picheight]" value="$db_windpost[picheight]">
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_post_fontsize}</td>
		<td>{#maxsize}: <input type="text" size="5" name="config[windpost_size]" value="$db_windpost[size]"></td>
	</tr>
	<tr class=b>
		<td>{#setting_post_flash}</td>
		<td>
			<input type=radio value=1 name="config[windpost_flash]" $windpost_flash_Y>{#setting_open}
			<input type=radio value=0 name="config[windpost_flash]" $windpost_flash_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_post_mpeg}</td>
		<td>
			<input type=radio value=1 name="config[windpost_mpeg]" $windpost_mpeg_Y>{#setting_open}
			<input type=radio value=0 name="config[windpost_mpeg]" $windpost_mpeg_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_post_iframe}</td>
		<td>
			<input type=radio value=1 name="config[windpost_iframe]" $windpost_iframe_Y>{#setting_open}
			<input type=radio value=0 name="config[windpost_iframe]" $windpost_iframe_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_sign_code}</td>
		<td>
			<input type=radio value=1 name="config[signwindcode]" $signwindcode_Y>{#setting_open}
			<input type=radio value=0 name="config[signwindcode]" $signwindcode_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_sign_pic}</td>
		<td>
			<input type=radio value=1 name="config[windpic_pic]" $windpic_pic_Y>{#setting_open}
			<input type=radio value=0 name="config[windpic_pic]" $windpic_pic_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_sign_imgsize}</td>
		<td>
			{#width}: <input type="text" size="5" name="config[windpic_picwidth]" value="$db_windpic[picwidth]">
			{#height}: <input type="text" size="5" name="config[windpic_picheight]" value="$db_windpic[picheight]">
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_sign_fontsize}</td>
		<td>{#maxsize}: <input type="text" size="5" name="config[windpic_size]" value="$db_windpic[size]"></td>
	</tr>
	<tr class=b>
		<td>{#setting_sign_flash}</td>
		<td>
			<input type=radio value=1 name="config[windpic_flash]" $windpic_flash_Y>{#setting_open}
			<input type=radio value=0 name="config[windpic_flash]" $windpic_flash_N>{#setting_close}
		</td>
	</tr>
</table>
<br>
<!--
EOT;
}if($type=='attachset' || $type=='all'){print <<<EOT
-->
<a name="attachset">
<table width="98%" align="center" cellspacing="1" cellpadding="3" class="i_table">
	<tr><td class="head" colspan="2" align="center"><a href="#top">{#setting_attachset}</a></td></tr>
	<tr class=b>
		<td width="60%">{#setting_allowupload}</td>
		<td>
			<input type=radio value=1 name="config[allowupload]" $allowupload_Y>{#setting_open} 
			<input type=radio value=0 name="config[allowupload]" $allowupload_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_attachdir}</td>
		<td>
			<input type="radio" name="config[attachdir]" value="0" $attachdir_ck[0]> {#setting_attachdir_0}<br>
			<input type="radio" name="config[attachdir]" value="1" $attachdir_ck[1]> {#setting_attachdir_1}<br>
			<input type="radio" name="config[attachdir]" value="2" $attachdir_ck[2]> {#setting_attachdir_2}<br>
			<input type="radio" name="config[attachdir]" value="3" $attachdir_ck[3]> {#setting_attachdir_3}<br>
			<input type="radio" name="config[attachdir]" value="4" $attachdir_ck[4]> {#setting_attachdir_4}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_attachnum}</td>
		<td><input size=35 name="config[attachnum]" value="$db_attachnum"></td>
	</tr>
	<tr class=b>
		<td>{#setting_maxsize}</td>
		<td><input size=35 name="config[uploadmaxsize]" value="$db_uploadmaxsize"></td>
	</tr>
	<tr class=b>
		<td>{#setting_filetype}</td>
		<td><input size=35 name="config[uploadfiletype]" value="$db_uploadfiletype"></td>
	</tr>
	<tr class=b>
		<td>{#setting_showreplynum}</td>
		<td><input size=35 name="config[showreplynum]" value="$db_showreplynum"></td>
	</tr>
	<tr class=b>
		<td>{#setting_selcount}</td>
		<td><input size=35 name="config[selcount]" value="$db_selcount"></td>
	</tr>
	<tr class=b>
		<td>{#setting_replysendmail}</td>
		<td>
			<input type=radio value=1 name="config[replysendmail]" $replysendmail_Y>{#setting_open}
			<input type=radio value=0 name="config[replysendmail]" $replysendmail_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_titlemax}</td>
		<td><input size=35 name="config[titlemax]" value="$db_titlemax"></td>
	</tr>
	<tr class=b>
		<td>{#setting_postmax}</td>
		<td><input size=35 name="config[postmax]" value="$db_postmax"></td>
	</tr>
	<tr class=b>
		<td>{#setting_postmin}</td>
		<td><input size=35 name="config[postmin]" value="$db_postmin"></td>
	</tr>
	<tr class=b>
		<td>{#setting_autoimg}</td>
		<td>
			<input type=radio value=1 name="config[autoimg]" $autoimg_Y>{#setting_open} 
			<input type=radio value=0 name="config[autoimg]" $autoimg_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_kijiji}</td>
		<td>
			<input type=radio value=1 name="config[kijiji]" $kijiji_Y>{#setting_open} 
			<input type=radio value=0 name="config[kijiji]" $kijiji_N>{#setting_close}
		</td>
	</tr>
</table>
<br>
<!--
EOT;
}if($type=='atcset' || $type=='all'){print <<<EOT
-->
<a name="atcset">
<table width="98%" align="center" cellspacing="1" cellpadding="3" class="i_table">
	<tr><td class="head" colspan="2" align="center"><a href="#top">{#setting_atcset}</a></td></tr>
	<tr><td class=b colspan=2>{#setforum_rvrc}</td></tr>
	<tr class=b>
		<td width="60%">{#setforum_Dgrvrc}</td>
		<td><input type=text name="creditdb[rvrc][Digest]" size=10  value="{$credit[rvrc][Digest]}"></td>
	</tr>
	<tr class=b>
		<td>{#setforum_Prvrc}</td>
		<td><input type=text name="creditdb[rvrc][Post]" size=10  value="{$credit[rvrc][Post]}"></td>
	</tr>
	<tr class=b>
		<td>{#setforum_Rrvrc}</td>
		<td><input type=text name="creditdb[rvrc][Reply]" size=10  value="{$credit[rvrc][Reply]}"></td>
	</tr>
	<tr class=b>
		<td>{#setforum_Undgrvrc}</td>
		<td><input type=text name="creditdb[rvrc][Undigest]" size=10  value="{$credit[rvrc][Undigest]}"></td>
	</tr>
	<tr class=b>
		<td>{#setforum_Drvrc}</td>
		<td><input type=text name="creditdb[rvrc][Delete]" size=10  value="{$credit[rvrc][Delete]}"></td>
	</tr>
	<tr class=b>
		<td>{#setforum_DRrvrc}</td>
		<td><input type=text name="creditdb[rvrc][Deleterp]" size=10  value="{$credit[rvrc][Deleterp]}"></td>
	</tr>
	<tr><td class=b colspan=2>{#setforum_money}</td></tr>
	<tr class=b>
		<td>{#setforum_Dgmoney}</td>
		<td><input type=text name="creditdb[money][Digest]" size=10  value="{$credit[money][Digest]}"></td>
	</tr>
	<tr class=b>
		<td>{#setforum_Pmoney}</td>
		<td><input type=text name="creditdb[money][Post]" size=10  value="{$credit[money][Post]}"></td>
	</tr>
	<tr class=b>
		<td>{#setforum_Rmoney}</td>
		<td><input type=text name="creditdb[money][Reply]" size=10  value="{$credit[money][Reply]}"></td>
	</tr>
	<tr class=b>
		<td>{#setforum_Undgmoney}</td>
		<td><input type=text name="creditdb[money][Undigest]" size=10  value="{$credit[money][Undigest]}"></td>
	</tr>
	<tr class=b>
		<td>{#setforum_Dmoney}</td>
		<td><input type=text name="creditdb[money][Delete]" size=10  value="{$credit[money][Delete]}"></td>
	</tr>
	<tr class=b>
		<td>{#setforum_DRmoney}</td>
		<td><input type=text name="creditdb[money][Deleterp]" size=10  value="{$credit[money][Deleterp]}"></td>
	</tr>
<!--
EOT;
foreach($_CREDITDB as $key => $value){
print <<<EOT
-->
	<tr><td class=b colspan=2><font color="red">{$value[0]}</font></td></tr>
	<tr class=b>
		<td>{#setforum_Digest}{$value[0]}</td>
		<td><input type=text name="creditdb[$key][Digest]"   size=10  value="{$credit[$key][Digest]}"></td>
	</tr>
	<tr class=b>
		<td>{#setforum_Post}{$value[0]}</td>
		<td><input type=text name="creditdb[$key][Post]"     size=10  value="{$credit[$key][Post]}"></td>
	</tr>
	<tr class=b>
		<td>{#setforum_Reply}{$value[0]}</td>
		<td><input type=text name="creditdb[$key][Reply]"    size=10  value="{$credit[$key][Reply]}"></td>
	</tr>
	<tr class=b>
		<td>{#setforum_Undigest}{$value[0]}</td>
		<td><input type=text name="creditdb[$key][Undigest]" size=10  value="{$credit[$key][Undigest]}"></td>
	</tr>
	<tr class=b>
		<td>{#setforum_Delete}{$value[0]}</td>
		<td><input type=text name="creditdb[$key][Delete]"   size=10  value="{$credit[$key][Delete]}"></td>
	</tr>
	<tr class=b>
		<td>{#setforum_Deleterp}{$value[0]}</td>
		<td><input type=text name="creditdb[$key][Deleterp]" size=10  value="{$credit[$key][Deleterp]}"></td>
	</tr>
<!--
EOT;
}print <<<EOT
-->
</table>
<br>
<!--
EOT;
}if($type=='indexset' || $type=='all'){print <<<EOT
-->
<a name="indexset">
<table width="98%" align="center" cellspacing="1" cellpadding="3" class="i_table">
	<tr><td class="head" colspan="2" align="center"><a href="#top">{#setting_indexset}</a></td></tr>
	<tr class=b>
		<td width="60%">{#setting_showgroup}</td>
		<td>$usergroup</td>
	</tr>
	<tr class=b>
		<td><font color="red">{#setting_indexlink}</td>
		<td>
			<input type=radio value=1 name="config[indexlink]" $indexlink_Y>{#setting_open}
			<input type=radio value=0 name="config[indexlink]" $indexlink_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td><font color="red">{#setting_mqshare}</td>
		<td>
			<input type=radio value=1 name="config[indexmqshare]" $indexmqshare_Y>{#setting_open}
			<input type=radio value=0 name="config[indexmqshare]" $indexmqshare_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_birth}</td>
		<td>
			<input type=radio value=1 name="config[indexshowbirth]" $indexshowbirth_Y>{#setting_open}
			<input type=radio value=0 name="config[indexshowbirth]" $indexshowbirth_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_indexonline}</td>
		<td>
			<input type=radio value=1 name="config[indexonline]" $indexonline_Y>{#setting_open} 
			<input type=radio value=0 name="config[indexonline]" $indexonline_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_adminshow}</td>
		<td>
			<input type=radio value=1 name="config[adminshow]" $adminshow_Y>{#setting_open}
			<input type=radio value=0 name="config[adminshow]" $adminshow_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_showguest}</td>
		<td>
			<input type=radio value=1 name="config[showguest]" $showguest_Y>{#setting_open}
			<input type=radio value=0 name="config[showguest]" $showguest_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_today}</td>
		<td>
			<input type=radio value=1 name="config[today]" $today_Y>{#setting_open}
			<input type=radio value=0 name="config[today]" $today_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_fmlogo}</td>
		<td>
			<input type=radio value=0 name="config[indexfmlogo]" $indexfmlogo_0>{#setting_none}
			<input type=radio value=1 name="config[indexfmlogo]" $indexfmlogo_1>{#setting_default}
			<input type=radio value=2 name="config[indexfmlogo]" $indexfmlogo_2>{#setting_custom}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_todaypost}</td>
		<td>
			<input type=radio value=1 name="config[todaypost]" $todaypost_Y>{#setting_open}
			<input type=radio value=0 name="config[todaypost]" $todaypost_N>{#setting_close}
		</td>
	</tr>
</table>
<br>
<!--
EOT;
}if($type=='viewset' || $type=='all'){print <<<EOT
-->
<a name="viewset">
<table width="98%" align="center" cellspacing="1" cellpadding="3" class="i_table">
	<tr><td class="head" colspan="2" align="center"><a href="#top">{#setting_viewset}</a></td></tr>
	<tr class=b>
		<td width="60%">{#setting_newtime}</td>
		<td><input size=35 name="config[newtime]" value="$db_newtime"></td>
	</tr>
	<tr class=b>
		<td>{#setting_perpage}</td>
		<td><input size=35 name="config[perpage]" value="$db_perpage"></td>
	</tr>
	<tr class=b>
		<td>{#setting_readperpage}</td>
		<td><input size=35 name="config[readperpage]" value="$db_readperpage"></td>
	</tr>
	<tr class=b>
		<td>{#setting_maxpage}</td>
		<td><input size=35 name="config[maxpage]" value="$db_maxpage"></td>
	</tr>
	<tr class=b>
		<td>{#setting_maxmember}</td>
		<td><input size=35 name="config[maxmember]" value="$db_maxmember"></td>
	</tr>
	<tr class=b>
		<td>{#setting_hithour}</td>
		<td>
			<select name="config[hithour]">
				<option value=0  $hithour_sel[0]>0</option>
				<option value=1  $hithour_sel[1]>1</option>
				<option value=4  $hithour_sel[4]>4</option>
				<option value=6  $hithour_sel[6]>6</option>
				<option value=8  $hithour_sel[8]>8</option>
				<option value=12 $hithour_sel[12]>12</option>
				<option value=20 $hithour_sel[20]>24</option>
			</select>
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_topped}</td>
		<td>
			<input type=radio value=1 name="config[topped]" $topped_Y>{#setting_open}
			<input type=radio value=0 name="config[topped]" $topped_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_threadonline}</td>
		<td>
			<input type=radio value=1 name="config[threadonline]" $threadonline_Y>{#setting_open}
			<input type=radio value=0 name="config[threadonline]" $threadonline_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_showonline}</td>
		<td>
			<input type=radio value=1 name="config[showonline]" $showonline_Y>{#setting_open}
			<input type=radio value=0 name="config[showonline]" $showonline_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_showpost}</td>
		<td>
			<input type=radio value=1 name="config[threadshowpost]" $threadshowpost_Y>{#setting_open}
			<input type=radio value=0 name="config[threadshowpost]" $threadshowpost_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_colony}</td>
		<td>
			<input type=radio value=1 name="config[showcolony]" $showcolony_Y>{#setting_open}
			<input type=radio value=0 name="config[showcolony]" $showcolony_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_customcredit}</td>
		<td>
			<table>
				<tr>
<!--
EOT;
$num=0;
foreach($_CREDITDB as $key=>$value){
$ct_checked=strpos($db_showcustom,",$key,")!==false?'checked':'';
$num++;print <<<EOT
-->
					<td>
						<input type="checkbox" name="showcustom[$key]" value="$key" $ct_checked>$value[0]
					</td>
<!--
EOT;
if($num==4){
$num=0;print <<<EOT
-->
				</tr>
				<tr>
<!--
EOT;
}}print <<<EOT
-->
					</td>
				</tr>
			</table>
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_motion}</td>
		<td>
			<input type=radio value=1 name="config[threademotion]" $threademotion_Y>{#setting_open}
			<input type=radio value=0 name="config[threademotion]" $threademotion_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_ipfrom}</td>
		<td>
			<input type=radio value=1 name="config[ipfrom]" $ipfrom_Y>{#setting_open}
			<input type=radio value=0 name="config[ipfrom]" $ipfrom_N>{#setting_close}
		</td>
	</tr>
</table>
<br>
<!--
EOT;
}if($type=='watermark' || $type=='all'){print <<<EOT
-->
<a name="watermark">
<table width="98%" align="center" cellspacing="1" cellpadding="3" class="i_table">
	<tr><td class="head" colspan="2" align="center"><a href="#top">{#setting_watermark}</a></td></tr>
	<tr class=b>
		<td width="60%">{#setting_ifwatermark}</td>
		<td>
			<input type=radio value=1 name="config[watermark]" $watermark_Y> {#setting_open} 
			<input type=radio value=0 name="config[watermark]" $watermark_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_watersize}</td>
		<td>
			{#width}: <input type=text size="5" name="config[waterwidth]"   value="$db_waterwidth">
			{#height}:<input type=text size="5" name="config[waterheight]"  value="$db_waterheight">
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_waterpos}</td>
		<td>
			<input type=radio name="config[waterpos]"  value="0" $waterpos_ck_0>{#setting_waterpos_0}
			<input type=radio name="config[waterpos]"  value="1" $waterpos_ck_1>{#setting_waterpos_1}
			<input type=radio name="config[waterpos]"  value="2" $waterpos_ck_2>{#setting_waterpos_2}
			<input type=radio name="config[waterpos]"  value="3" $waterpos_ck_3>{#setting_waterpos_3}<br>
			<input type=radio name="config[waterpos]"  value="7" $waterpos_ck_7>{#setting_waterpos_7}
			<input type=radio name="config[waterpos]"  value="4" $waterpos_ck_4>{#setting_waterpos_4}
			<input type=radio name="config[waterpos]"  value="5" $waterpos_ck_5>{#setting_waterpos_5}
			<input type=radio name="config[waterpos]"  value="6" $waterpos_ck_6>{#setting_waterpos_6}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_waterimg}</td>
		<td><input type=text name="config[waterimg]"  value="$db_waterimg"></td>
	</tr>
	<tr class=b>
		<td>{#setting_watertext}</td>
		<td><input type=text name="config[watertext]"  value="$db_watertext"></td>
	</tr>
	<tr class=b>
		<td>{#setting_waterfont}</td>
		<td><input type=text name="config[waterfont]"  value="$db_waterfont"></td>
	</tr>
	<tr class=b>
		<td>{#setting_watercolor}</td>
		<td><input type=text name="config[watercolor]"  value="$db_watercolor"></td>
	</tr>
	<tr class=b>
		<td>{#setting_waterpct}</td>
		<td><input type=text name="config[waterpct]"  value="$db_waterpct"></td>
	</tr>
</table>
<br>
<!--
EOT;
}if($type=='buysign' || $type=='all'){print <<<EOT
-->
<a name="buysign">
<table width="98%" align="center" cellspacing="1" cellpadding="3" class="i_table">
	<tr><td class="head" colspan="2" align="center">
	<a name="set12"></a><a href="#top">{#setting_buysign}</a></td></tr>
	<tr class=b><td valign="top">{#setting_signgroup}</td>
	<td>$signgroup</td></tr>
	<tr class=b>
	<td>{#setting_signmoney}</td>
	<td><input size=35 name="config[signmoney]" value="$db_signmoney"></td>
	</tr>
</table>
<br>
<!--
EOT;
}if($type=='ajax' || $type=='all'){print <<<EOT
-->
<a name="ajax">
<table width="98%" align="center" cellspacing="1" cellpadding="3" class="i_table">
	<tr><td class="head" colspan="2" align="center"><a href="#top">{#setting_ajax}</a></td></tr>
	<tr class=b>
		<td>{#setting_ajaxsubject}</td>
		<td>
			<input type=radio value=1 name="config[ajaxsubject]" $ajaxsubject_Y> {#setting_open}
			<input type=radio value=0 name="config[ajaxsubject]" $ajaxsubject_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_ajaxcontent}</td>
		<td>
			<input type=radio value=1 name="config[ajaxcontent]" $ajaxcontent_Y> {#setting_open}
			<input type=radio value=0 name="config[ajaxcontent]" $ajaxcontent_N>{#setting_close}
		</td>
	</tr>
</table>
<br>
<!--
EOT;
}if($type=='wap' || $type=='all'){print <<<EOT
-->
<a name="wap">
<table width="98%" align="center" cellspacing="1" cellpadding="3" class="i_table">
	<tr><td class="head" colspan="2" align="center"><a href="#top">{#setting_wap}</a></td></tr>
	<tr class=b>
		<td width="60%">{#setting_wapifopen}</td>
		<td>
			<input type=radio value=1 name="config[wapifopen]" $wapifopen_Y> {#setting_open}
			<input type=radio value=0 name="config[wapifopen]" $wapifopen_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_waplimit}</td>
		<td><input type=text name="config[waplimit]" value="$db_waplimit"></td>
	</tr>
</table>
<br>
<!--
EOT;
}if($type=='js' || $type=='all'){print <<<EOT
-->
<a name="js">
<table width="98%" align="center" cellspacing="1" cellpadding="3" class="i_table">
	<tr><td class="head" colspan="2" align="center"><a href="#top">{#setting_js}</a></td></tr>
	<tr class=b>
		<td width="60%">{#setting_jsifopen}</td>
		<td>
			<input type=radio value=1 name="config[jsifopen]" $jsifopen_Y> {#setting_open}
			<input type=radio value=0 name="config[jsifopen]" $jsifopen_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_jsper}</td>
		<td><input type=text name="config[jsper]" value="$db_jsper"></td>
	</tr>
	<tr class=b>
		<td>{#setting_bindurl}</td>
		<td><input type=text size="50" name="config[bindurl]" value="$db_bindurl"></td>
	</tr>
</table>
<br>
<!--
EOT;
}if($type=='mail' || $type=='all'){print <<<EOT
-->
<a name="js">
<table width="98%" align="center" cellspacing="1" cellpadding="3" class="i_table">
	<tr><td class="head" colspan="2" align="center"><a href="#top">{#setting_mail}</a></td></tr>
	<tr class=b>
		<td>{#setting_mailifopen}</td>
		<td>
			<input type=radio value=1 name="mailconfig[ml_mailifopen]" $mailifopen_Y>{#_yes}
			<input type=radio value=0 name="mailconfig[ml_mailifopen]" $mailifopen_N>{#_no}
		</td>
	</tr>
	<tr class=b>
		<td width="60%">{#setting_mailmethod}</td>
		<td>
			<input type=radio value=1 name="mailconfig[ml_mailmethod]" $mailmethod_1> {#setting_mailfunc}
			<input type=radio value=2 name="mailconfig[ml_mailmethod]" $mailmethod_2>{#setting_mailsmtp}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_smtphost}</td>
		<td><input type=text name="mailconfig[ml_smtphost]" value="$ml_smtphost"></td>
	</tr>
	<tr class=b>
		<td>{#setting_smtpport}</td>
		<td><input type=text name="mailconfig[ml_smtpport]" value="$ml_smtpport"></td>
	</tr>
	<tr class=b>
		<td>{#setting_smtpfrom}</td>
		<td><input type=text name="mailconfig[ml_smtpfrom]" value="$ml_smtpfrom"></td>
	</tr>
	<tr class=b>
		<td>{#setting_smtpauth}</td>
		<td>
			<input type=radio value=1 name="mailconfig[ml_smtpauth]" $smtpauth_Y>{#_yes}
			<input type=radio value=0 name="mailconfig[ml_smtpauth]" $smtpauth_N>{#_no}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_smtpuser}</td>
		<td><input type=text name="mailconfig[ml_smtpuser]" value="$ml_smtpuser"></td>
	</tr>
	<tr class=b>
		<td>{#setting_smtppass}</td>
		<td><input type=text name="mailconfig[ml_smtppass]" value="$ml_smtppass"></td>
	</tr>
</table>
<br>
<!--
EOT;
}if($type=='safe' || $type=='all'){print <<<EOT
-->
<a name="safe">
<table width="98%" align="center" cellspacing="1" cellpadding="3" class="i_table">
	<tr><td class="head" colspan="2" align="center"><a href="#top">{#setting_safe}</a></td></tr>
	<tr class=b>
		<td>{#setting_ipcheck}</td>
		<td>
			<input type=radio value=1 name="config[ipcheck]" $ipcheck_Y>{#setting_open}
			<input type=radio value=0 name="config[ipcheck]" $ipcheck_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td>{#setting_hash}</td>
		<td><input size=35 name="config[hash]" value="$db_hash"></td>
	</tr>
	<tr class=b>
		<td>{#setting_iplimit}</td>
		<td><textarea name="config[iplimit]" rows="6" cols="35">$db_iplimit</textarea></td>
	</tr>
</table>
<br>
<!--
EOT;
}if($type=='other' || $type=='all'){print <<<EOT
-->
<a name="other">
<table width="98%" align="center" cellspacing="1" cellpadding="3" class="i_table">
	<tr><td class="head" colspan="2" align="center"><a href="#top">{#setting_other}</a></td></tr>
	<tr class=b>
		<td width="60%">{#setting_enterreason}</td>
		<td>
			<input type=radio value=1 name="config[enterreason]" $enterreason_Y>{#setting_open}
			<input type=radio value=0 name="config[enterreason]" $enterreason_N>{#setting_close}
		</td>
	</tr>
	<tr class=b>
		<td width="60%">{#setting_adminreason}</td>
		<td><textarea name="config[adminreason]" rows="6" cols="35">$db_adminreason</textarea></td>
	</tr>
</table>
<br>
<!--
EOT;
}print <<<EOT
-->
<center>
<input type=reset value="{#reset}">
<input type=submit value="{#submit}">
</center>
<!-- 
EOT;
include_once PrintEot('adminbottom');
?>-->