<!--<?php
include_once PrintEot('left');
if (empty($action)){
print <<<EOT
-->
<table width=98% align=center cellspacing=1 cellpadding=3 class=i_table>
<tr><td class=head colspan=2>{#guide}</td></tr>
<tr><td class=b>
{#level_info}
</td></tr></table><br>

<table width=98% align=center cellspacing=1 cellpadding=3 class=i_table>
<tr><td class="b">{#level_shortcut}
</td></tr></table>

<form action="$basename&" method="post">
<input type=hidden name="action" value="menedit">
<table width=98% align=center cellspacing=0 cellpadding=0 class=i_table>
<tr><td><table width=100% cellspacing=1 cellpadding=3>
<tr><td class=head colspan=5>{#level_edit_mem}</td></tr>
<tr align=center><td bgcolor='$c'>{#level_group}</td><td bgcolor='$c'>{#level_group_pic}</td>
<td bgcolor='$c'>{#level_credit}</td><td bgcolor='$c'>{#level_edit}</td>
<td bgcolor='$c'>{#level_delete}</td></tr>
<!--
EOT;
foreach($memberdb as $member){
$key=$member[gid];
print <<<EOT
-->
<tr><td class=b align=middle>{#level_groupid}$member[gid]
<input type=text size=40 name='memtitle[$key]' value='$member[grouptitle]'></td>
<td class=b align=middle>
<input type=text size=40 name='mempic[$key]' value='$member[groupimg]'></td>
<td bgcolor='F5F5FF' align=middle>
<input type=text size=10 name='mempost[$key]' value='$member[grouppost]'></td>
<td class=b align=middle><input type=button value='{#level_edit_right}' onclick=location.href='$basename&action=editgroup&gid=$key'></td>
<td class=b valign=middle align=left><input type=button value='{#level_delete}'  
onclick="return checkgroupset('$basename&action=delgroup&delid=$key')"></td></tr>
<!--
EOT;
}
print <<<EOT
-->
</table></td></tr></table>
<br><center><input type=submit value="{#submit}"> <input type=reset value="{#reset}">
</center></form>

<form action="$basename&" method="post">
<input type=hidden name="action" value="addmengroup">
<table width=50% align=center cellspacing=0 cellpadding=0 class=i_table>
<tr><td><table width=100% cellspacing=1 cellpadding=3>
<tr><td class=head colspan=5><a name=1>{#level_add_mem}<a></td></tr>
<td class=b valign=middle align=left width=40%>
{#level_group}</td>
<td class=b valign=middle align=left>
<input type=text size=40 name='newtitle'></td></tr>
<tr><td class=b valign=middle align=left width=40%>
{#level_group_pic}</td>
<td class=b valign=middle align=left>
<input type=text size=40 name='newpic'></td></tr>
<tr><td class=b valign=middle align=left width=40%>
{#level_credit}</td><td bgcolor='F5F5FF' valign=middle align=left>
<input type=text size=40 name='newpost'></td></tr>
</table></td></tr></table>
<br><center><input type=submit value="{#submit}"></center></form>

<form action="$basename&" method="post">
<input type=hidden name="action" value="defedit">
<table width=98% align=center cellspacing=0 cellpadding=0 class=i_table>
<tr><td><table width=100% cellspacing=1 cellpadding=3>
<tr><td class=head colspan=4>{#level_default}</td></tr>
<tr align=center><td bgcolor='$c'>{#level_group}</td>
<td bgcolor='$c'>{#level_group_pic}</td><td bgcolor='$c'>{#level_edit}</td></tr>
<!--
EOT;
foreach($defaultdb as $default){
$key=$default[gid];
print <<<EOT
-->
<tr><td class=b align=middle>{#level_groupid}$default[gid]
<input type=text size=40 name='deftitle[$key]' value='$default[grouptitle]'></td>
<td class=b align=middle>
<input type=text size=40 name='defpic[$key]' value='$default[groupimg]'></td>
<td class=b align=middle><input type=button value='{#level_edit_right}' onclick=location.href='$basename&action=editgroup&gid=$key'></td></tr>
<!--
EOT;
}
print <<<EOT
-->
</table></td></tr></table>
<br><center><input type=submit value="{#submit}"> <input type=reset value="{#reset}">
</center></form>

<form action="$basename&" method="post">
<input type=hidden name="action" value="sysedit">
<table width=98% align=center cellspacing=0 cellpadding=0 class=i_table>
<tr><td><table width=100% cellspacing=1 cellpadding=3>
<tr><td class=head colspan=4>{#level_edit_sys}</td></tr>
<tr align=center><td bgcolor='$c'>{#level_group}</td>
<td bgcolor='$c'>{#level_group_pic}</td><td bgcolor='$c'>{#level_edit}</td><td bgcolor='$c'>{#level_delete}</td></tr>
<!--
EOT;
foreach($sysdb as $sys){
$key=$sys[gid];
print <<<EOT
-->
<tr><td class=b align=center>{#level_groupid}$sys[gid]
<input type=text size=40 name='systitle[$key]' value='$sys[grouptitle]'></td>
<td class=b align=center>
<input type=text size=40 name='syspic[$key]' value='$sys[groupimg]'></td>
<td class=b align=center>
<input type=button value='{#level_edit_right}' onclick=location.href="$basename&action=editgroup&gid=$key">
</td>
<td class=b align=center>
<!--
EOT;
if($key>7){
print <<<EOT
-->
<input type=button value='{#level_delete}' onclick="return checkgroupset('$basename&action=delgroup&delid=$key')">
</td>
<!--
EOT;
}}
print <<<EOT
-->
</table></td></tr></table>
<br><center><input type=submit value="{#submit}"> <input type=reset value="{#reset}">
</center></form>
<form action="$basename&" method="post">
<input type=hidden name="action" value="addadmingroup">
<table width=50% align=center cellspacing=0 cellpadding=0 class=i_table>
<tr><td><table width=100% cellspacing=1 cellpadding=3>
<tr><td class=head colspan=5><a name=2>{#level_add_sys}</td></tr>
<td class=b valign=middle align=left width=40%>{#level_group}</td>
<td class=b valign=middle align=left><input type=text size=40 name='newtitle'></td></tr>
<tr><td class=b valign=middle align=left width=40%>{#level_group_pic}</td>
<td class=b valign=middle align=left><input type=text size=40 name='newpic'></td></tr>
</table></td></tr></table>
<br><center><input type=submit value="{#submit}"></center></form>


<!--
EOT;
if($vipdb){
print <<<EOT
-->
<form action='$basename&' method='post'><input type=hidden name='action' value='vipedit'>
<table width=98% align=center cellspacing=0 cellpadding=0 class=i_table>
<tr><td><table width=100% cellspacing=1 cellpadding=3>
<tr><td class=head colspan=4>{#level_edit_vip}</td></tr>
<tr align=center><td bgcolor='$c'>{#level_group}</td>
<td bgcolor='$c'>{#level_group_pic}</td><td bgcolor='$c'>{#level_edit}</td><td bgcolor='$c'>{#level_delete}</td></tr>
<!--
EOT;
foreach($vipdb as $vip){
$key=$vip[gid];
print <<<EOT
-->
<tr><td class=b align=center>{#level_groupid}$vip[gid]
<input type=text size=40 name='viptitle[$key]' value='$vip[grouptitle]'></td>
<td class=b align=center>
<input type=text size=40 name='vippic[$key]' value='$vip[groupimg]'></td>
<td class=b align=center>
<input type=button value='{#level_edit_right}' onclick=location.href='$basename&action=editgroup&gid=$key'>
<td class=b align=center>
<input type=button value='{#level_delete}' onclick="return checkgroupset('$basename&action=delgroup&delid=$key')">
</tr>
<!--
EOT;
}
print <<<EOT
-->
</table></td></tr></table>
<br><center><input type=submit value="{#submit}"> <input type=reset value="{#reset}">
</center></form>
<!--
EOT;
}
print <<<EOT
-->
<form action="$basename&" method="post">
<input type=hidden name="action" value="addvipgroup">
<table width=50% align=center cellspacing=0 cellpadding=0 class=i_table>
<tr><td><table width=100% cellspacing=1 cellpadding=3>
<tr><td class=head colspan=5><a name=3>{#level_add_vip}</td></tr>
<td class=b valign=middle align=left width=40%>{#level_group}</td>
<td class=b valign=middle align=left><input type=text size=40 name='newtitle'></td></tr>
<tr><td class=b valign=middle align=left width=40%>{#level_group_pic}</td>
<td class=b valign=middle align=left><input type=text size=40 name='newpic'></td></tr>
</table></td></tr></table>
<br><center><input type=submit value="{#submit}"></center></form>
<!--
EOT;
}elseif($action=='editgroup'){
print <<<EOT
-->
<form action="$basename&" method=POST name=mod>
<table width=98% align=center cellspacing=1 cellpadding=3 class=i_table>
<tr>
<td class=head align=center colspan=2>
<a class=bold>{#level_editgroup}</a></td>
</tr>
<tr class=b><td width=60%>{#level_group_title}</td>
<td><select name="selectfid" onChange="level_jump('$admin_file')">
$groupselect
</select><br><br>
<!--
EOT;
if($gp_gptype=='member'){
if($default){
print <<<EOT
-->
<font color=blue>{#level_default}</font>
<!--
EOT;
}else{
print <<<EOT
-->
<font color=red>{#level_independ}</font>-- 
<a href='$basename&action=editgroup&gid=$gid&step=3'>{#level_use_default}</a>
<!--
EOT;
}}print <<<EOT
-->
</td></tr>
</td></tr></table>
<input type=hidden name="action" value="editgroup">
<input type=hidden name="gid" value="$gid">
<input type=hidden name="gptype" value="$gp_gptype">
<input type=hidden name="step" value="2">
<br><br>
<table width="98%" align=center cellspacing=1 cellpadding=3 class=i_table>
<tr><td class=head align=center colspan=3><b>{#level_right}</b></td></tr>
<tr class=b><td width="3%"><input type="checkbox" name="othergroup[]" value='allowhide'></td>
<td width="60%">{#level_hide}</td>
<td><input type=radio value=1 $hide_Y name=group[allowhide]>{#_yes} 
<input type=radio value=0 $hide_N name=group[allowhide]>{#_no} </td></tr>
<tr class=b><td><input type="checkbox" name="othergroup[]" value='allowread'></td>
<td>{#level_read}</td>
<td><input type=radio value=1 $read_Y name=group[allowread]>{#_yes} 
<input type=radio value=0 $read_N name=group[allowread]>{#_no} </td></tr>
<tr class=b><td><input type="checkbox" name="othergroup[]" value='allowsearch'></td>
<td>{#level_search}</td>
<td><input type=radio value=0 $search_N name=group[allowsearch]>{#level_search_0}<br>
<input type=radio value=1 $search_1 name=group[allowsearch]>{#level_search_1}<br>
<input type=radio value=2 $search_2 name=group[allowsearch]>{#level_search_2}</td></tr>
<tr class=b><td><input type="checkbox" name="othergroup[]" value='allowmember'></td>
<td>{#level_member}</td>
<td><input type=radio value=1 $member_Y name=group[allowmember]>{#_yes}
<input type=radio value=0 $member_N name=group[allowmember]>{#_no}</td></tr>
<tr class=b><td><input type="checkbox" name="othergroup[]" value='allowprofile'></td>
<td>{#level_profile}</td>
<td><input type=radio value=1 $profile_Y name="group[allowprofile]">{#_yes} 
<input type=radio value=0 $profile_N name="group[allowprofile]">{#_no} </td></tr>
<tr class=b>
	<td><input type="checkbox" name="othergroup[mright][]" value='atclog'></td>
	<td>{#level_atclog}</td>
	<td>
		<input type=radio value=1 name="mright[atclog]" $atclog_Y>{#_yes} 
		<input type=radio value=0 name="mright[atclog]" $atclog_N>{#_no}
	</td>
</tr>
<tr class=b><td><input type="checkbox" name="othergroup[mright][]" value='show'></td>
<td>{#level_show}</td>
<td><input type=radio value=1 $show_Y name="mright[show]">{#_yes} 
<input type=radio value=0 $show_N name="mright[show]">{#_no} </td></tr>
<tr class=b>
<td><input type="checkbox" name="othergroup[]" value='allowreport'></td>
<td>{#level_report}</td>
<td><input type=radio value=1 $report_Y name=group[allowreport]>{#_yes} 
<input type=radio value=0 $report_N name=group[allowreport]>{#_no} </td></tr>
<tr class=b><td><input type="checkbox" name="othergroup[]" value='upload'></td>
<td>{#level_uploadimg}</td>
<td><input type=radio value=1 $uploadimg_Y name=group[upload]>{#_yes}
<input type=radio value=0 $uploadimg_N name=group[upload]>{#_no} </td></tr> 
<tr class=b><td><input type="checkbox" name="othergroup[]" value='allowportait'></td>
<td>{#level_portait}</td>
<td><input type=radio value=1 $portait_Y name=group[allowportait]>{#_yes}
<input type=radio value=0 $portait_N name=group[allowportait]>{#_no} </td></tr> 
<tr class=b><td><input type="checkbox" name="othergroup[]" value='allowhonor'></td>
<td>{#level_honor}</td>
<td><input type=radio value=1 $honor_Y name=group[allowhonor]>{#_yes}
<input type=radio value=0 $honor_N name=group[allowhonor]>{#_no} </td></tr>
<tr class=b><td><input type="checkbox" name="othergroup[]" value='allowmessege'></td>
<td>{#level_messege}</td>
<td><input type=radio value=1 $messege_Y name=group[allowmessege]>{#_yes}
<input type=radio value=0 $messege_N name=group[allowmessege]>{#_no} </td></tr>
<tr class=b><td><input type="checkbox" name="othergroup[]" value='allowsort'></td>
<td>{#level_sort}</td>
<td><input type=radio value=1 $sort_Y name=group[allowsort]>{#_yes}
<input type=radio value=0 $sort_N name=group[allowsort]>{#_no} </td></tr>
<tr class=b><td><input type="checkbox" name="othergroup[]" value='alloworder'></td>
<td>{#level_order}</td>
<td><input type=radio value=1 $order_Y name=group[alloworder]>{#_yes}
<input type=radio value=0 $order_N name=group[alloworder]>{#_no} </td></tr>
<tr class=b><td><input type="checkbox" name="othergroup[mright][]" value='viewipfrom'></td>
<td>{#level_ipfrom}</td>
<td><input type=radio value=1 name="mright[viewipfrom]" $viewipfrom_Y>{#_yes}
<input type=radio value=0 name="mright[viewipfrom]" $viewipfrom_N>{#_no} </td></tr>
<tr class=b>
<td><input type="checkbox" name="othergroup[]" value='searchtime'></td>
<td>{#level_searchtime}</td>
<td><input size=35 value="$gp_searchtime" name=group[searchtime]></td></tr>
<tr class=b><td><input type="checkbox" name="othergroup[]" value='signnum'></td>
<td>{#level_signnum}</td>
<td><input size=35 value="$gp_signnum" name=group[signnum]></td></tr>
<tr class=b><td><input type="checkbox" name="othergroup[mright][]" value='imgwidth'></td>
<td>{#level_imgwidth}</td>
<td><input size="5" name="mright[imgwidth]" value="$imgwidth"></td></tr>
<tr class=b><td><input type="checkbox" name="othergroup[mright][]" value='imgheight'></td>
<td>{#level_imgheight}</td>
<td><input  size="5" name="mright[imgheight]" value="$imgheight"></td></tr>
<tr class=b><td><input type="checkbox" name="othergroup[mright][]" value='fontsize'></td>
<td>{#level_fontsize}</td>
<td><input name="mright[fontsize]" value="$fontsize"></td></tr>
<tr class=b><td><input type="checkbox" name="othergroup[]" value='maxmsg'></td>
<td>{#level_maxmsg}</td>
<td><input size=35 value="$gp_maxmsg" name="group[maxmsg]"></td></tr>
<tr class=b><td><input type="checkbox" name="othergroup[mright][]" value='msggroup'></td>
<td>{#level_msggroup}</td>
<td><input type=radio value=1 name="mright[msggroup]" $msggroup_Y>{#_yes}
<input type=radio value=0 name="mright[msggroup]" $msggroup_N>{#_no} </td></tr>
<tr class=b><td><input type="checkbox" name="othergroup[mright][]" value='maxfavor'></td>
<td>{#level_maxfavor}</td>
<td><input size=35 value="$maxfavor" name="mright[maxfavor]"></td></tr></table><br><br>

<table width="98%" align=center cellspacing=1 cellpadding=3 class=i_table>
<tr><td class=head align=center colspan=3><b>{#level_atc_right}</b></td></tr>
<tr class=b><td width="3%"><input type="checkbox" name="othergroup[]" value='allowpost'>
<td width="60%">{#level_post}</td>
<td><input type=radio value=1 $post_Y name=group[allowpost]>{#_yes} 
<input type=radio value=0 $post_N name=group[allowpost]>{#_no} </td></tr>
<tr class=b><td><input type="checkbox" name="othergroup[]" value='allowrp'></td>
<td>{#level_reply}</td>
<td><input type=radio value=1 $reply_Y name=group[allowrp]>{#_yes} 
<input type=radio value=0 $reply_N name=group[allowrp]>{#_no} </td></tr>
<tr class=b><td><input type="checkbox" name="othergroup[]" value='allownewvote'></td>
<td>{#level_postvote}</td>
<td><input type=radio value=1 $postvote_Y name=group[allownewvote]>{#_yes} 
<input type=radio value=0 $postvote_N name=group[allownewvote]>{#_no} </td></tr>
<tr class=b><td><input type="checkbox" name="othergroup[]" value='allowvote'></td>
<td>{#level_vote}</td>
<td><input type=radio value=1 $vote_Y name=group[allowvote]>{#_yes} 
<input type=radio value=0 $vote_N name=group[allowvote]>{#_no} </td></tr>
<tr class=b><td><input type="checkbox" name="othergroup[mright][]" value='viewvote'></td>
<td>{#level_viewvote}</td>
<td><input type=radio value=1 name="mright[viewvote]" $viewvote_Y>{#_yes} 
<input type=radio value=0 name="mright[viewvote]" $viewvote_N>{#_no} </td></tr>
<tr class=b><td><input type="checkbox" name="othergroup[]" value='htmlcode'></td>
<td>{#level_html}</td>
<td><input type=radio value=1 $html_Y name=group[htmlcode]>{#_yes} 
<input type=radio value=0 $html_N name=group[htmlcode]>{#_no} </td></tr>
<tr class=b><td><input type="checkbox" name="othergroup[]" value='wysiwyg'></td>
<td>{#level_wysiwyg}</td>
<td><input type=radio value=1 $wysiwyg_Y name=group[wysiwyg]>{#_yes} 
<input type=radio value=0 $wysiwyg_N name=group[wysiwyg]>{#_no} </td></tr>
<tr class=b><td><input type="checkbox" name="othergroup[]" value='allowhidden'></td>
<td>{#level_hidden}</td>
<td><input type=radio value=1 $hidden_Y name=group[allowhidden]>{#_yes} 
<input type=radio value=0 $hidden_N name=group[allowhidden]>{#_no} </td></tr>
<tr class=b><td><input type="checkbox" name="othergroup[]" value='allowencode'></td>
<td>{#level_encode}</td>
<td><input type=radio value=1 $encode_Y name=group[allowencode]>{#_yes} 
<input type=radio value=0 $encode_N name=group[allowencode]>{#_no} </td></tr>
<tr class=b><td><input type="checkbox" name="othergroup[]" value='allowsell'></td>
<td>{#level_sell}</td>
<td><input type=radio value=1 $sell_Y name=group[allowsell]>{#_yes} 
<input type=radio value=0 $sell_N name=group[allowsell]>{#_no} </td></tr>
<tr class=b>
<td><input type="checkbox" name="othergroup[]" value='allowdelatc'></td>
<td>{#level_delatc}</td>
<td><input type=radio value=1 $delatc_Y name=group[allowdelatc]>{#_yes} 
<input type=radio value=0 $delatc_N name=group[allowdelatc]>{#_no} 
</td></tr>
<tr class=b><td><input type="checkbox" name="othergroup[mright][]" value='atccheck'></td>
<td>{#level_atccheck}</td>
<td><input type=radio value=1 $atccheck_Y name=mright[atccheck]>{#_yes} 
<input type=radio value=0 $atccheck_N name=mright[atccheck]>{#_no} </td></tr>
<tr class=b><td><input type="checkbox" name="othergroup[mright][]" value='markable'></td>
<td>{#level_markable}</td>
<td><input type=radio value=1 $markable_Y name=mright[markable]>{#_yes} 
<input type=radio value=0 $markable_N name=mright[markable]>{#_no} </td></tr>
<tr class=b><td rowspan=3><input type="checkbox" name="othergroup[mright][]" value='markdb'></td>
<td>{#level_maxcredit}</td>
<td><input type=text value='$maxcredit' name=markdb[maxcredit]></td></tr>
<tr class=b><td>{#level_credit_limit}</td><td>
{#level_minper} <input type=text size=3 value='$minper' name=markdb[minper]>
{#level_maxper} <input type=text size=3 value='$maxper' name=markdb[maxper]></td></tr>
<tr class=b><td>{#level_credit_type}</td><td>$credit_type</td></tr>

<tr class=b><td><input type="checkbox" name="othergroup[mright][]" value='postlimit'></td>
<td>{#level_postlimit}</td>
<td><input size=35 value="$postlimit" name="mright[postlimit]"></td></tr>
<tr class=b><td><input type="checkbox" name="othergroup[]" value='postpertime'></td>
<td>{#level_postpertime}</td>
<td><input size=35 value="$gp_postpertime" name="group[postpertime]"></td></tr>
<tr class=b><td><input type="checkbox" name="othergroup[]" value='edittime'></td>
<td>{#level_edittime}</td>
<td><input size=35 value="$gp_edittime" name="group[edittime]"></td></tr></table><br><br>

<table width=98% align=center cellspacing=1 cellpadding=3 class=i_table>
<tr><td class=head align=center colspan=3><b>{#level_attach_right}</b></td></tr>
<tr class=b><td width=3%><input type="checkbox" name="othergroup[]" value='allowupload'></td>
<td width=60%>{#level_upload}</td>
<td><input type=radio value=1 $upload_Y name=group[allowupload]>{#_yes} 
<input type=radio value=0 $upload_N name=group[allowupload]>{#_no} </td></tr>
<tr class=b><td><input type="checkbox" name="othergroup[]" value='allowdownload'></td>
<td>{#level_download}</td>
<td><input type=radio value=1 $download_Y name=group[allowdownload]>{#_yes} 
<input type=radio value=0 $download_N name=group[allowdownload]>{#_no} </td></tr>
<tr class=b>
<td><input type="checkbox" name="othergroup[]" value='uploadmoney'></td>
<td>{#level_uploadmoney}</td>
<td><input size=35 value="$gp_uploadmoney" name=group[uploadmoney]></td></tr>
<tr class=b><td><input type="checkbox" name="othergroup[]" value='allownum'></td>
<td>{#level_allownum}</td>
<td><input size=35 value="$gp_allownum" name=group[allownum]></td></tr>
<tr class=b><td><input type="checkbox" name="othergroup[mright][]" value='uploadmaxsize'></td>
<td>{#level_uploadlimit}</td>
<td><input size=35 value="$uploadmaxsize" name=mright[uploadmaxsize]></td></tr>
<tr class=b><td><input type="checkbox" name="othergroup[mright][]" value='uploadtype'></td>
<td>{#level_uploadtype}</td>
<td><input size=35 value="$uploadtype" name=mright[uploadtype]></td></tr></table><br><br>
<!--
EOT;
if($gp_gptype=='system' ||$gp_gptype=='special'){print <<<EOT
-->
<table width=98% align=center cellspacing=1 cellpadding=3 class=i_table>
<tr><td class=head colspan=2>{#level_admin_title}</td></tr>
<tr><td class=b><br><ul>{#level_admin_info}</ul><br></td></tr></table><br>

<table width=98% align=center cellspacing=1 cellpadding=3 class=i_table>
<tr><td class=head align=center colspan=3>
<a class=bold>{#level_admin_right}</a></td></tr>
<tr class=b><td width="3%"><input type="checkbox" name="othergroup[]" value='allowadmincp'></td>
<td width="60%">{#level_admincp}</td>
<td><input type=radio value=1 $allowadmincp_Y name=sysgroup[allowadmincp]>{#_yes} 
<input type=radio value=0 $allowadmincp_N name=sysgroup[allowadmincp]>{#_no} </td></tr>
<tr class=b><td><input type="checkbox" name="othergroup[]" value='viewhide'></td>
<td>{#level_viewhide}</td>
<td><input type=radio value=1 $viewhide_Y name=sysgroup[viewhide]>{#_yes} 
<input type=radio value=0 $viewhide_N name=sysgroup[viewhide]>{#_no} </td></tr>
<tr class=b><td><input type="checkbox" name="othergroup[]" value='postpers'></td>
<td>{#level_postpers}</td>
<td><input type=radio value=1 $postpers_Y name=sysgroup[postpers]>{#_yes} 
<input type=radio value=0 $postpers_N name=sysgroup[postpers]>{#_no} </td></tr>
<tr class=b><td><input type="checkbox" name="othergroup[]" value='replylock'></td>
<td>{#level_replylock}</td>
<td><input type=radio value=1 $replylock_Y name=sysgroup[replylock]>{#_yes} 
<input type=radio value=0 $replylock_N name=sysgroup[replylock]>{#_no} </td></tr>
<tr class=b><td><input type="checkbox" name="othergroup[]" value='viewip'></td>
<td>{#level_viewip}</td><td>
<!--
EOT;
if($gid==5){print <<<EOT
-->
<input type=radio value=2 $viewip_2 name=sysgroup[viewip]>{#level_only} 
<input type=radio value=1 $viewip_1 name=sysgroup[viewip]>{#level_whole}
<!--
EOT;
}else{print <<<EOT
-->
<input type=radio value=1 $viewip_1 name=sysgroup[viewip]>{#_yes} 
<!--
EOT;
}
print <<<EOT
-->
<input type=radio value=0 $viewip_N name=sysgroup[viewip]>{#_no} </td></tr>
<!--
EOT;
if($gid!=5){print <<<EOT
-->
<tr class=b><td><input type="checkbox" name="othergroup[sright][]" value='topped'></td>
<td>{#level_topped}</td><td>
<input type=radio value=0 $topped_0 name=sright[topped]>{#level_top0}<br>
<input type=radio value=1 $topped_1 name=sright[topped]>{#level_top1}<br>
<input type=radio value=2 $topped_2 name=sright[topped]>{#level_top2}<br>
<input type=radio value=3 $topped_3 name=sright[topped]>{#level_top3}
</td></tr>
<tr class=b><td><input type="checkbox" name="othergroup[]" value='typeadmin'></td>
<td>{#level_typeadmin}</td>
<td><input type=radio value=1 $typeadmin_Y name=sysgroup[typeadmin]>{#_yes} 
<input type=radio value=0 $typeadmin_N name=sysgroup[typeadmin]>{#_no} </td></tr>
<tr class=b><td><input type="checkbox" name="othergroup[sright][]" value='tpctype'></td>
<td>{#level_tpctype}</td>
<td><input type=radio value=1 $tpctype_Y name=sright[tpctype]>{#_yes} 
<input type=radio value=0 $tpctype_N name=sright[tpctype]>{#_no} </td></tr>
<tr class=b><td><input type="checkbox" name="othergroup[sright][]" value='tpccheck'></td>
<td>{#level_tpccheck}</td>
<td><input type=radio value=1 $tpccheck_Y name=sright[tpccheck]>{#_yes} 
<input type=radio value=0 $tpccheck_N name=sright[tpccheck]>{#_no} </td></tr>

<tr class=b><td><input type="checkbox" name="othergroup[]" value='delatc'></td>
<td>{#level_adelatc}</td>
<td><input type=radio value=1 $adelatc_Y name=sysgroup[delatc]>{#_yes} 
<input type=radio value=0 $adelatc_N name=sysgroup[delatc]>{#_no} </td></tr>
<tr class=b><td><input type="checkbox" name="othergroup[]" value='moveatc'></td>
<td>{#level_moveatc}</td>
<td><input type=radio value=1 $moveatc_Y name=sysgroup[moveatc]>{#_yes} 
<input type=radio value=0 $moveatc_N name=sysgroup[moveatc]>{#_no} </td></tr>
<tr class=b><td><input type="checkbox" name="othergroup[]" value='copyatc'></td>
<td>{#level_copyatc}</td>
<td><input type=radio value=1 $copyatc_Y name=sysgroup[copyatc]>{#_yes} 
<input type=radio value=0 $copyatc_N name=sysgroup[copyatc]>{#_no} </td></tr>


<tr class=b><td><input type="checkbox" name="othergroup[]" value='modother'></td>
<td>{#level_modother}</td>
<td><input type=radio value=1 $modother_Y name=sysgroup[modother]>{#_yes} 
<input type=radio value=0 $modother_N name=sysgroup[modother]>{#_no} </td></tr>
<tr class=b><td><input type="checkbox" name="othergroup[]" value='deltpcs'></td>
<td>{#level_deltpcs}</td>
<td><input type=radio value=1 $deltpcs_Y name=sysgroup[deltpcs]>{#_yes} 
<input type=radio value=0 $deltpcs_N name=sysgroup[deltpcs]>{#_no} </td></tr>

<tr class=b><td><input type="checkbox" name="othergroup[]" value='viewcheck'></td>
<td>{#level_viewcheck}</td>
<td><input type=radio value=1 $viewcheck_Y name=sysgroup[viewcheck]>{#_yes} 
<input type=radio value=0 $viewcheck_N name=sysgroup[viewcheck]>{#_no} </td></tr>
<tr class=b><td><input type="checkbox" name="othergroup[]" value='viewclose'></td>
<td>{#level_viewclose}</td>
<td><input type=radio value=1 $viewclose_Y name=sysgroup[viewclose]>{#_yes} 
<input type=radio value=0 $viewclose_N name=sysgroup[viewclose]>{#_no} </td></tr>
<!-- <tr class=b><td><input type="checkbox" name="othergroup[]" value='allowread'>是否允许查看附件</td>
<td><input type=radio value=1 $attachper_Y name=sysgroup[attachper]>是 
<input type=radio value=0 $attachper_N name=sysgroup[attachper]>否 </td></tr> -->
<tr class=b><td><input type="checkbox" name="othergroup[]" value='delattach'></td>
<td>{#level_delattach}</td>
<td><input type=radio value=1 $delattach_Y name=sysgroup[delattach]>{#_yes} 
<input type=radio value=0 $delattach_N name=sysgroup[delattach]>{#_no} </td></tr>

<tr class=b><td><input type="checkbox" name="othergroup[]" value='banuser'></td>
<td>{#level_banuser}</td>
<td><input type=radio value=1 $banuser_Y name=sysgroup[banuser]>{#_yes} 
<input type=radio value=0 $banuser_N name=sysgroup[banuser]>{#_no} </td></tr>
<!--
EOT;
}
print <<<EOT
-->

<tr class=b><td><input type="checkbox" name="othergroup[]" value='bantype'></td>
<td>{#level_bantype}</td>
<td><input type=radio value=1 $bantype_Y name=sysgroup[bantype]>{#_yes} 
<input type=radio value=0 $bantype_N name=sysgroup[bantype]>{#_no} </td></tr>
<tr class=b><td><input type="checkbox" name="othergroup[]" value='banmax'></td>
<td>{#level_banmax}</td><td>
<input type=text size=3 value='$banmax' name=sysgroup[banmax]></td></tr></table><br><br>
<!--
EOT;
}print <<<EOT
-->
<table width=98% align=center cellspacing=1 cellpadding=3 class=i_table>
<tr class=head align=center><td colspan=2>{#level_advanceset}</td></tr>
<tr class=b><td width="63%" valign="top">{#level_othergroups}</td>
<td><select name='othergid[]' size='22' multiple>$groupselect</select></td></tr>
</td></tr></table>
<br><center><input type=submit value="{#submit}"> <input type=reset value="{#reset}"></center></form>
<!--
EOT;
}include_once PrintEot('adminbottom');
?>
-->