<!--<?php
include_once PrintEot('left');
if (empty($action)) {print <<<EOT
-->
<ul class="nav3">
<li><a href="$basename" class="two">用戶組編輯</a></li>
<li><a href="$basename&action=batch">導入導出</a></li>
<li><a href="$basename&action=help">詳細幫助</a></li>
</ul>
<div class="c"></div>
<h3><b>提示信息</b></h3>
<div class="tr5">
<a href="#1" class="f14 b">會員組</a>︰級別按照會員發的帖子數自動進行級別判斷並更新。<br>
<a href="#2" class="f14 b">系統組</a>︰屬于論壇管理層，系統組成員由論壇管理員設定，管理員可以在<a href="$admin_file?adminjob=setuser"><font color="blue">會員管理</font></a>內編輯用戶組成員。<br />
<a href="#3" class="f14 b">特殊組</a>︰可以設置管理權限的組別，區別于系統組，特殊組可以進行出售<br />
<a href="#4" class="f14 b">默認組</a>︰默認組別不可刪除，當其他組別未設置權限時，則使用該默認權限<br />
注︰批量添加的用戶組權限設置為默認，需要單獨進行權限編輯。
</div>
<form action="$basename&" method="post">
<input type="hidden" name="action" value="menedit" />
<h2><span class="fr">[<a href="javascript:void(0)" title="收起" onclick="showGroup('memBody',0)">收起</a>]&nbsp;[<a href="javascript:void(0)" title="展開" onclick="showGroup('memBody',1)">展開</a>]</span><a name="1" class="fl"><b>會員組編輯</b></a></h2>

<table width="100%" cellspacing="0" cellpadding="0">
<tr class="tr3 tac s3">
	<td width="50%">頭餃</td>
	<td width="20%">等級圖片號</td>
	<td width="15%">升級點數需求</td>
	<td width="7%" class="tal">編輯</td>
	<td width="7%" class="tal">刪除</td>
</tr>
<tbody id="memBody">
<!--
EOT;
foreach ($gdb['member'] as $member) {
$key = $member[gid];
$j_url = EncodeUrl("$basename&action=delgroup&delid=$key");
print <<<EOT
-->
<tr class="tr3 tac">
	<td>組ID$member[gid]&nbsp;
		<input type="text" size="40" class="input" name="memtitle[$key]" value="$member[grouptitle]" onchange="pwJsCheck(this,true)" />
	</td>
	<td>
		<input type="text" size="3" class="input" name="mempic[$key]" value="$member[groupimg]" onchange="getImg(this)" />
		<img id="img_member" src="$imgpath/$stylepath/level/$member[groupimg].gif" title="選擇等級圖片" onclick="showImg(this)" style="cursor:pointer" />
	</td>
	<td>
		<input type="text" size="10" class="input" name="mempost[$key]" value="$member[grouppost]" onchange="pwJsCheck(this,true)"/>
	</td>
	<td>
		<a class="fourm-two" title="權限" onclick="location.href='$basename&action=editgroup&gid=$key'"><span class="edit"></span></a>
	</td>
	<td>
		<a class="fourm-two" title="刪除" onclick="return checkgroupset('$j_url')"><span class="del"></span></a>
	</td>
</tr>
<!--
EOT;
}print <<<EOT
-->
</tbody>
<tbody id="memTable">
	<tr><td colspan="5"><a name="add1"></a></td></tr>
	<tr id="addmem" class="tr3 tips tac" style="display:none">
		<td width="50%">
			<a href="javascript:void(0)" onclick="addRecord('addmem','memTable')"><span class="open fl"></span></a>
			<a href="javascript:void(0)" onclick="delRecord('addmem','memTable',this)"><span class="close fl"></span></a>
			添加會員組<input type="text" size="40" class="input" name="memtitle[add][]" value="" />
		</td>
		<td width="20%">
			<input type="text" size="3" class="input" name="mempic[add][]" value="" onchange="getImg(this)" />
			<img id="img_member" src="$imgpath/$stylepath/level/6.gif" title="選擇等級圖片" onclick="showImg(this)" style="cursor:pointer" />
		</td>
		<td width="15%">
			<input type="text" size="10" class="input" name="mempost[add][]" value="" />
		</td>
		<td width="7%">
			<a class="fourm-two" title="權限" onclick="location.href='$basename&action=editgroup&gid=$key'"><span class="edit"></span></a>
		</td>
		<td width="7%">
			<a class="fourm-two" title="刪除" onclick="delRecord('addmem','memTable',this)"><span class="del"></span></a>
		</td>
	</tr>
	<tr class="tr3 tips tac">
		<td width="50%">
			<a href="javascript:void(0)" onclick="addRecord('addmem','memTable')"><span class="open fl"></span></a>
			<a href="javascript:void(0)" onclick="delRecord('addmem','memTable',this)"><span class="close fl"></span></a>
			添加會員組︰<input type="text" size="40" class="input" name="memtitle[add][]" value="" />
		</td>
		<td width="20%">
			<input type="text" size="3" class="input" name="mempic[add][]" value="" onchange="getImg(this)" />
			<img id="img_member" src="$imgpath/$stylepath/level/6.gif" title="選擇等級圖片" onclick="showImg(this)" style="cursor:pointer" />
		</td>
		<td width="15%">
			<input type="text" size="10" class="input" name="mempost[add][]" value="" />
		</td>
		<td width="7%">
			<a class="fourm-two" title="權限" onclick="editGroup(this,'member')"><span class="edit"></span></a>
		</td>
		<td width="7%">
			<a class="fourm-two" title="刪除" onclick="delRecord('addmem','memTable',this)"><span class="del"></span></a>
		</td>
	</tr>
</tbody></table>
<br><center><input type="submit" class="btn" value="提 交" />
</center></form><br />

<form action="$basename&" method="post">
<input type="hidden" name="action" value="sysedit" />
<h2><span class="fr">[<a href="javascript:void(0)" title="收起" onclick="showGroup('sysBody',0)">收起</a>]&nbsp;[<a href="javascript:void(0)" title="展開" onclick="showGroup('sysBody',1)">展開</a>]</span><a name=2><b>系統組編輯</b></a></h2>
<table width="100%" cellspacing="0" cellpadding="0">
<tr class="tr3 tac s3">
	<td width="50%">頭餃</td>
	<td width="20%">等級圖片號</td>
	<td width="15%"></td>
	<td width="7%" class="tal">編輯</td>
	<td width="7%" class="tal">刪除</td>
</tr>
<tbody id="sysBody">
<!--
EOT;
foreach($gdb['system'] as $sys){
$key = $sys[gid];
$j_url = EncodeUrl("$basename&action=delgroup&delid=$key");
print <<<EOT
-->
<tr class="tr3 tac">
	<td>組ID$sys[gid]&nbsp;
		<input type="text" size="40" class="input" name="systitle[$key]" value="$sys[grouptitle]" onchange="pwJsCheck(this,true)" />
	</td>
	<td>
		<input type="text" size="3" class="input" name="syspic[$key]" value="$sys[groupimg]" onchange="getImg(this)" />
		<img id="img_system" src="$imgpath/$stylepath/level/$sys[groupimg].gif" title="選擇等級圖片" onclick="showImg(this)" style="cursor:pointer" >
	</td>
	<td>&nbsp;</td>
	<td>
		<a class="fourm-two" title="權限" onclick="location.href='$basename&action=editgroup&gid=$key'"><span class="edit"></span></a>
	</td>
	<td>
<!--
EOT;
if ($key > 7) {print <<<EOT
-->
		<a class="fourm-two" title="刪除" onclick="return checkgroupset('$j_url')"><span class="del"></span></a>
<!--
EOT;
}print <<<EOT
-->
	</td>
</tr>
<!--
EOT;
}print <<<EOT
-->
</tbody>
<tbody id="sysTable">
	<tr><td colspan="5"><a name="add2"></a></td></tr>
	<tr id="addsys" class="tr3 tips tac" style="display:none">
		<td width="50%">
			<a href="javascript:void(0)" onclick="addRecord('addsys','sysTable')"><span class="open fl"></span></a>
			<a href="javascript:void(0)" onclick="delRecord('addsys','sysTable',this)"><span class="close fl"></span></a>
			添加系統組︰<input type="text" size="40" class="input" name="systitle[add][]" value="" />
		</td>
		<td width="20%">
			<input type="text" size="3" class="input" name="syspic[add][]" value="" onchange="getImg(this)" />
			<img id="img_system" src="$imgpath/$stylepath/level/6.gif" title="選擇等級圖片" onclick="showImg(this)" style="cursor:pointer" >
		</td>
		<td width="15%">&nbsp;</td>
		<td width="7%">
			<a class="fourm-two" title="權限" onclick="location.href='$basename&action=editgroup&gid=$key'"><span class="edit"></span></a>
		</td>
		<td width="7%">
			<a class="fourm-two" title="刪除" onclick="delRecord('addsys','sysTable',this)"><span class="del"></span></a>
		</td>
	</tr>
	<tr class="tr3 tips tac">
		<td width="50%">
			<a href="javascript:void(0)" onclick="addRecord('addsys','sysTable')"><span class="open fl"></span></a>
			<a href="javascript:void(0)" onclick="delRecord('addsys','sysTable',this)"><span class="close fl"></span></a>
			添加系統組︰<input type="text" size="40" class="input" name="systitle[add][]" value="" />
		</td>
		<td width="20%">
			<input type="text" size="3" class="input" name="syspic[add][]" value="" onchange="getImg(this)" />
			<img id="img_system" src="$imgpath/$stylepath/level/6.gif" title="選擇等級圖片" onclick="showImg(this)" style="cursor:pointer" >
		</td>
		<td width="15%">&nbsp;</td>
		<td width="7%">
			<a class="fourm-two" title="權限" onclick="location.href='$basename&action=editgroup&gid=$key'"><span class="edit"></span></a>
		</td>
		<td width="7%">
			<a class="fourm-two" title="刪除" onclick="delRecord('addsys','sysTable',this)"><span class="del"></span></a>
		</td>
	</tr>
</tbody></table>
<br><center><input type="submit" class="btn" value="提 交" />
</center></form><br />

<form action="$basename&" method="post">
<input type="hidden" name="action" value="vipedit" />
<h2><span class="fr">[<a href="javascript:void(0)" title="收起" onclick="showGroup('speBody',0)">收起</a>]&nbsp;[<a href="javascript:void(0)" title="展開" onclick="showGroup('speBody',1)">展開</a>]</span><a name="3"><b>特殊組編輯</b></a></h2>
<table width="100%" cellspacing="0" cellpadding="0">
<tr class="tr3 tac s3">
	<td width="50%">頭餃</td>
	<td width="20%">等級圖片號</td>
	<td width="15%"></td>
	<td width="7%" class="tal">編輯</td>
	<td width="7%" class="tal">刪除</td>
</tr>
<tbody id="speBody">
<!--
EOT;
foreach ($gdb['special'] as $vip) {
$key = $vip[gid];
$j_url = EncodeUrl("$basename&action=delgroup&delid=$key");
print <<<EOT
-->
<tr class="tr3 tac">
	<td>組ID$vip[gid]&nbsp;
		<input type="text" size="40" class="input" name="viptitle[$key]" value="$vip[grouptitle]" onchange="pwJsCheck(this,true)" />
	</td>
	<td>
		<input type="text" size="3" class="input" name="vippic[$key]" value="$vip[groupimg]" onchange="getImg(this)" />
		<img id="img_special" src="$imgpath/$stylepath/level/$vip[groupimg].gif" title="選擇等級圖片" onclick="showImg(this)" style="cursor:pointer" >
	</td>
	<td>&nbsp;</td>
	<td>
		<a class="fourm-two" title="權限" onclick="location.href='$basename&action=editgroup&gid=$key'"><span class="edit"></span></a>
	</td>
	<td>
		<a class="fourm-two" title="刪除" onclick="return checkgroupset('$j_url')"><span class="del"></span></a>
	</td>
</tr>
<!--
EOT;
}print <<<EOT
-->
</tbody>
<tbody id="splTable">
	<tr><td colspan="5"><a name="add3"></a></td></tr>
	<tr id="addspl" class="tr3 tips tac" style="display:none">
		<td width="50%">
			<a href="javascript:void(0)" onclick="addRecord('addspl','splTable')"><span class="open fl"></span></a>
			<a href="javascript:void(0)" onclick="delRecord('addspl','splTable',this)"><span class="close fl"></span></a>
			添加特殊組︰<input type="text" size="40" class="input" name="viptitle[add][]" value="" />
		</td>
		<td width="20%">
			<input type="text" size="3" class="input" name="vippic[add][]" value="" onchange="getImg(this)" />
			<img id="img_special" src="$imgpath/$stylepath/level/6.gif" title="選擇等級圖片" onclick="showImg(this)" style="cursor:pointer" >
		</td>
		<td width="15%">&nbsp;</td>
		<td width="7%">
			<a class="fourm-two" title="權限" onclick="location.href='$basename&action=editgroup&gid=$key'"><span class="edit"></span></a>
		</td>
		<td width="7%">
			<a class="fourm-two" title="刪除" onclick="delRecord('addspl','splTable',this)"><span class="del"></span></a>
		</td>
	</tr>
	<tr class="tr3 tips tac">
		<td width="50%">
			<a href="javascript:void(0)" onclick="addRecord('addspl','splTable')"><span class="open fl"></span></a>
			<a href="javascript:void(0)" onclick="delRecord('addspl','splTable',this)"><span class="close fl"></span></a>
			添加特殊組︰<input type="text" size="40" class="input" name="viptitle[add][]" value="" />
		</td>
		<td width="20%">
			<input type="text" size="3" class="input" name="vippic[add][]" value="" onchange="getImg(this)" />
			<img id="img_special" src="$imgpath/$stylepath/level/6.gif" title="選擇等級圖片" onclick="showImg(this)" style="cursor:pointer" >
		</td>
		<td width="15%">&nbsp;</td>
		<td width="7%">
			<a class="fourm-two" title="權限" onclick="location.href='$basename&action=editgroup&gid=$key'"><span class="edit"></span></a>
		</td>
		<td width="7%">
			<a class="fourm-two" title="刪除" onclick="delRecord('addspl','splTable',this)"><span class="del"></span></a>
		</td>
	</tr>
</tbody></table>
<br><center><input type="submit" class="btn" value="提 交" />
</center></form><br />

<form action="$basename&" method="post">
<input type="hidden" name="action" value="defedit" />
<h2><a name="4">默認用戶組</a></h2>
<table width="100%" cellspacing="0" cellpadding="0">
<tr class="tr3 tac s3">
	<td width="50%">頭餃</td>
	<td width="20%">等級圖片號</td>
	<td width="15%"></td>
	<td width="7%" class="tal">編輯</td>
	<td width="7%" class="tal"></td>
</tr>
<!--
EOT;
foreach ($gdb['default'] as $default) {
$key = $default[gid];
print <<<EOT
-->
<tr class="tr3 tac">
	<td>組ID$default[gid]&nbsp;
		<input type="text" size="40" class="input" name='deftitle[$key]' value='$default[grouptitle]' onchange="pwJsCheck(this,true)">
	</td>
	<td>
		<input type="text" size="3" class="input" name='defpic[$key]' value='$default[groupimg]' onchange="getImg(this)" />
		<img id="img_default" src="$imgpath/$stylepath/level/$default[groupimg].gif" title="選擇等級圖片" onclick="showImg(this)" style="cursor:pointer" />
	</td>
	<td>&nbsp;</td>
	<td><a class="fourm-two" title="權限" onclick="location.href='$basename&action=editgroup&gid=$key'"><span class="edit"></span></a></td>
	<td>&nbsp;</td>
</tr>
<!--
EOT;
}print <<<EOT
-->
</table>
<br><center><input type="submit" class="btn" value="提 交">
</center></form><br/>
<style type="text/css">
.leve{width:400px;height:300px;overflow-y:scroll;}
.leve li{float:left;line-height:30px;height:30px;*word-wrap:normal;*white-space:nowrap;list-style:none;width:45%;}
.leve img{width:80px;margin-right:8px;cursor:pointer;margin-left:2em;}
</style>
<div id="imgTab" class="menu tt" style="display:none;">
<h2 onmousedown="read.move(event)" style="cursor:move;border-top:0px;"><span class="fr" onclick="closep()" style="cursor:pointer"><img src="images/close.gif" /></span>等級圖片選擇</h2>
<ul class="leve">
<!--
EOT;
foreach ($levelImg as $key=>$value) {print <<<EOT
-->
<li><img src="$imgpath/$stylepath/level/$value" align="absmiddle" title="點擊選擇" onclick="selImg('$key')" /> 編號︰$key</li>
<!--
EOT;
}print <<<EOT
-->
</ul>
</div><div class="c"></div>
<script language="JavaScript">
var curObj;
function showImg(_this) {
	curObj = _this;
	read.open('imgTab',_this.id);
}
function selImg(l) {
	var o=curObj.parentNode;
	for (var i=0;i<o.childNodes.length;i++) {
		if (o.childNodes[i].nodeName.toLowerCase() == 'img') {
			o.childNodes[i].src = "$imgpath/$stylepath/level/"+l+".gif";
		} else if (o.childNodes[i].nodeName.toLowerCase() == 'input') {
			o.childNodes[i].value = l;
		}
	}
	pwJsCheck(curObj,true);
	closep();
}
function getImg(_this) {
	var o=_this.parentNode;
	for (var i=0;i<o.childNodes.length;i++) {
		if (o.childNodes[i].nodeName.toLowerCase() == 'img') {
			o.childNodes[i].src = "$imgpath/$stylepath/level/"+_this.value+".gif";
			pwJsCheck(_this,true);
			break;
		}
	}
}
function addRecord(s,t) {
	var l = getObj(t).lastChild;
	var n = getObj(s).cloneNode(true);
	n.style.display = '';
	n.id = '';
	getObj(t).insertBefore(n,l);
}
function delRecord(s,t,o) {
	getObj(t).removeChild(o.parentNode.parentNode);
	if (getObj(t).getElementsByTagName('TR').length<=2)addRecord(s,t);
}
function editGroup(_this,t) {
	var url = "&gtype="+t;
	var v = _this.parentNode.parentNode.getElementsByTagName('INPUT');

	for (var i=0;i<v.length;i++) {
		if (i == 0) {
			url += "&newtitle="+v[0].value;
		} else if (i == 1) {
			url += "&newpic="+v[1].value;
		} else if (i == 2) {
			url += "&newpost="+v[2].value;
		}
	}
	window.location = '$basename&action=addgroup'+url;
}
function showGroup(id,s) {
	if (s == 1) {
		getObj(id).style.display = '';
	} else {
		getObj(id).style.display = 'none';
	}
}
</script>
<script src="js/global.js" language="JavaScript"></script>
<!--
EOT;
} elseif ($action == 'editgroup') {print <<<EOT
-->
<ul class="nav3">
<li><a href="$basename" class="two">用戶組編輯</a></li>
<li><a href="$basename&action=batch">導入導出</a></li>
<li><a href="$basename&action=help">詳細幫助</a></li>
</ul>
<div class="c"></div>
<script language="JavaScript">
function level_jump(admin_file) {
	var URL = document.mod.selectfid.options[document.mod.selectfid.selectedIndex].value;
	location.href = admin_file + "?adminjob=level&action=editgroup&gid=" + URL;
}
function addcols(mode,ft){
	var s = getObj(mode).firstChild.cloneNode(true);
	getObj(ft).appendChild(s);
}
function removecols(obj){
	var o = obj.parentNode.parentNode;
	o.parentNode.removeChild(o);
}
</script>
<form action="$basename&" method="post" name="mod">
<h2>用戶組編輯</h2>
<table width="100%" cellspacing="0" cellpadding="0">
<tr class="tr3"><td width="60%">用戶組頭餃</td>
<td><br /><select name="selectfid" onChange="level_jump('$admin_file')">
$groupselect
</select><br /><br />
<!--
EOT;
if ($gp_gptype == 'member') {
if ($default) {print <<<EOT
-->
<font color="blue">默認用戶組</font>
<!--
EOT;
}else{print <<<EOT
-->
<font color="red">獨立用戶組權限</font>--
<a href='$basename&step=3'>點擊采用默認用戶組權限</a>
<!--
EOT;
}}print <<<EOT
-->
</td></tr></table>
<input type="hidden" name="action" value="editgroup" />
<input type="hidden" name="gid" value="$gid" />
<input type="hidden" name="step" value="2" />
<br />
<!--
EOT;
foreach ($lang['right'] as $key => $value) {
if ($key == 'special' && $gp_gptype <> 'special' || $key == 'system' && in_array($gp_gptype,array('member','default'))) {
	continue;
}
print <<<EOT
-->
<h2>{$lang[right_title][$key]}</h2>
<table width="100%" cellspacing="0" cellpadding="0">
<!--
EOT;
foreach ($value as $k => $v) {
eval("\$v[html] = \"".addcslashes($v['html'],'"')."\";");
print <<<EOT
-->
	<tr class="tr3">
		<td width="3%"><input type="checkbox" name="othergroup[]" value="$k" onclick="pwJsCheck(this)" /></td>
		<td width="57%"><a href="$basename&action=setright&rkey=$k">$v[title]</a><br />$v[desc]</td>
		<td>$v[html]</td>
	</tr>
<!--
EOT;
}print <<<EOT
-->
</table><br />
<!--
EOT;
}print <<<EOT
-->
<h2>高級設置</h2>
<table width="100%" cellspacing="0" cellpadding="0">
	<tr class="tr3">
		<td width="60%" valign="top">用戶組權限橫向操作<br><br>功能說明︰<br>利用此功能可將一個或多個權限設置同時應用到其它用戶組中，不再需要逐個用戶組設置，使操作更加簡便<br><br>操作說明︰<br>1. <font color=blue>選中</font>需要進行橫向操作的<font color=blue>權限設置前面的復選框</font><br>2. 在右邊的復選框中<font color=blue>選擇</font>需要進行橫向操作的<font color=blue>用戶組</font><br>3. 然後提交即可完成用戶組橫向操作<br><br>注︰<br>1. 選擇用戶組時可使用 ‘Ctrl’ 鍵進行多選，也可使用 ‘Shift’ 鍵或拖動鼠標連續選擇多個用戶組<br>2. 不使用此功能，請不要選中<font color=blue>權限設置前面的復選框</font>和右邊的復選框中<font color=blue>用戶組</font></td>
		<td><select name="othergid[]" size="16" multiple>$groupselect</select></td>
	</tr>
</table>
<br />
<center><input type="submit" class="btn" value="提 交"></center></form><br />
<!--
EOT;
} elseif ($action == 'setright') {print <<<EOT
-->
<ul class="nav3">
<li><a href="$basename" class="two">用戶組編輯</a></li>
<li><a href="$basename&action=batch">導入導出</a></li>
<li><a href="$basename&action=help">詳細幫助</a></li>
</ul>
<div class="c"></div>

<script language="JavaScript">
function addcols(mode,ft){
	var s = getObj(mode).firstChild.cloneNode(true);
	getObj(ft).appendChild(s);
}
function removecols(obj){
	var o = obj.parentNode.parentNode;
	o.parentNode.removeChild(o);
}
</script>
<form action="$basename&action=$action" method="post" name="mod">
<input type="hidden" name="step" value="3" />
<input type="hidden" name="rkey" value="$rkey" />
<h2>用戶組權限設置</h2>
<table width="100%" cellspacing="0" cellpadding="0">
	<tr class="tr3">
		<td width="30%">用戶組</td>
		<td>$setdb[title]</td>
	</tr>
<!--
EOT;
$lang_title = array('default' => '默認用戶組','member' => '會員組','system' => '系統組','special' => '特殊組');
foreach ($gdb as $key => $value) {print <<<EOT
-->
	<tr class="tr3">
		<td colspan="2">
			<b>$lang_title[$key]</b>
		<td>
	</tr>
<!--
EOT;
foreach ($value as $k => $v) {print <<<EOT
-->
	<tr class="tr3">
		<td>$v[0]</td>
		<td>$v[1]</td>
	</tr>
<!--
EOT;
}}print <<<EOT
-->
</table>
<br />
<center><input type="submit" class="btn" value="提 交"></center></form><br />
</form>
<!--
EOT;
} elseif ($action == 'batch') {print <<<EOT
-->
<ul class="nav3">
<li><a href="$basename">用戶組編輯</a></li>
<li><a href="#" class="two">導入導出</a></li>
<li><a href="$basename&action=help">詳細幫助</a></li>
</ul>
<div class="c"></div>

<h3><b>提示信息</b></h3>
<div class="tr5">
批量導入︰<br />　　選擇需要導入的文件(txt)，點擊提交<br />　　內容規則︰<br />　　1、a=>b (a 為 用戶組ID；b 為用戶組頭餃)<br />　　2、一行一條記錄
</div>

<form action="$basename" method="post" enctype="multipart/form-data">
<input type="hidden" name="action" value="batch" />
<input type="hidden" name="step" value="3" />
<h2>用戶組頭餃名稱導入</h2>
<table width="100%" cellspacing="0" cellpadding="0">
<tr class="tr3"><td width="30%">導入文件</td><td><input class="input" type="file" name="upload" size="29" style="height:22px;" /></td></tr>
</table><br />
<center><input class="btn" type="submit" value="提 交" name="submit" /></center><br/>
</form>

<form action="$basename" method="post">
<input type="hidden" name="action" value="batch" />
<input type="hidden" name="step" value="5" />
<h2></h2>
<table width="100%" cellspacing="0" cellpadding="0">
<tr class="tr3 s3 tac"><td width="6%"></td><td width="10%">組ID</td><td>用戶組名</td><td>用戶組類型</td></tr>
<!--
EOT;
$gdb = array('member'=>'會員組','system'=>'系統組','special'=>'特殊組');
foreach($group as $key=>$value){print <<<EOT
-->
<tr class="tr3 tac"><td><input type="checkbox" name="selid[]" value="$value[gid]" checked /></td><td>$value[gid]</td><td>$value[grouptitle]</td><td>{$gdb[$value[gptype]]}</td></tr>
<!--
EOT;
}print <<<EOT
-->
</table><br />
<center><input class="btn" type="button" name="chkall" value="全 選" onclick="CheckAll(this.form)" />&nbsp;<input type="submit" value="提 交" name="submit" class="btn"/></center><br/>
</form>
<!--
EOT;
}if($action=='help'){print <<<EOT
-->

<ul class="nav3">
<li><a href="$basename">用戶組編輯</a></li>
<li><a href="$basename&action=batch">導入導出</a></li>
<li><a href="$basename&action=help" class="two">詳細幫助</a></li>
</ul>
<style type="text/css">
.leve2 li{margin-left:4em;text-align:center;float:left;line-height:30px;height:30px;*word-wrap:normal;*white-space:nowrap;list-style:none;}
.leve2 img{width:80px;margin-right:8px;cursor:pointer}
</style>
<div class="c"></div>
<h3><b>提示信息</b></h3>
<div class="tr5">
<b>論壇的用戶組分為會員組、系統組、特殊組、默認組。</b><br />&nbsp;&nbsp;會員組︰級別按照會員發的帖子數自動進行級別判斷並更新。<br>
&nbsp;&nbsp;系統組︰屬于論壇管理層，系統組成員由論壇管理員設定，管理員可以在<a href="$admin_file?adminjob=setuser"><font color=blue>會員管理</font></a>內編輯用戶組成員。<br />
&nbsp;&nbsp;特殊組︰可以設置管理權限的組別，區別于系統組，特殊組可以進行出售<br />
&nbsp;&nbsp;默認組︰默認組別不可刪除，當其他組別未設置權限時，則使用該默認權限<br><br><b>默認組說明︰</b><br>&nbsp;&nbsp;<b>default</b>︰默認權限設置（沒設置過權限的用戶組使用，可以節約不必要的資源）<br>&nbsp;&nbsp;<b>guest</b>︰論壇游客權限設置<br>&nbsp;&nbsp;<b>禁言組(banned)</b>︰此用戶組禁止發言<br>&nbsp;&nbsp;<b>未驗證會員(newrg)</b>︰等待驗證的用戶組<br><br><b>系統組說明︰</b><br>&nbsp;&nbsp;<b>管理員(manager)</b>︰由論壇創始人在<font color=blue>會員管理</font>內進行設置<br>&nbsp;&nbsp;<b>總版主(superadmin)</b>︰前台管理員，擁有前台所有管理權限<br>&nbsp;&nbsp;<b>版主(admin)</b>:負責分版塊的管理工作<br><br><b>組ID說明︰</b><br>&nbsp; &nbsp;所有普通會員組在線標記圖片為: 6.gif &nbsp; <img src="$imgpath/wind/group/6.gif"><br>&nbsp; &nbsp;管理組和特殊組在線標記圖片名為Gid.gif , 例 :<br>&nbsp; &nbsp;比如組ID為 16,會員在線標記圖片為: 16.gif &nbsp; <img src="$imgpath/wind/group/16.gif"><br>&nbsp; &nbsp;比如組ID為 3,會員在線標記圖片為: 3.gif &nbsp; <img src="$imgpath/wind/group/3.gif"><br><br>&nbsp;&nbsp;&nbsp;<font color=blue>注︰</font>可以在<a href="./$db_adminfile?adminjob=settings&type=indexset"><font color=blue>核心-首頁細節</font></a>里選擇參與在線顯示的用戶組
</div><br>
<h2>}#level_pic_intro{</h2>
<div class="c"></div>
<ul class="leve2">
<!--
EOT;
foreach ($levelImg as $key=>$value) {print <<<EOT
-->
<li>$key 代表 <img src="$imgpath/$stylepath/level/$value" align="absmiddle" /></li>
<!--
EOT;
}print <<<EOT
-->
</ul>
<div class="c"></div>
<!--
EOT;
}include_once PrintEot('adminbottom');
?>-->
