<?php
if( !defined('ISDVBBS') ){
	header('HTTP/1.0 404 Not Found');
	printFooter();
	exit;
}
switch($action){
	case 'online':
?>
<br>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder">
<tr> 
<td height="23" align="left" colspan="6" class="tit1"><?=$lang['tpl.str180']?> <?=$lang['group.info1']?></td>
</tr>
<tr align="left">
<td height="23" class="forumrow" style="text-align:center;" width="10%">
<input type="submit" name="Submit" value="<? echo $lang['tpl.str182']?>" style="color: #FF0000;width:80px;height:50px;border:1px outset;">
</td>
<td height="23" class="forumrow" colspan="5">
<li><?=$lang['group.info2']?>
<li><?=$lang['group.info3']?>
</td>
</tr>
<tr align="left">
<td height="23" align="center" bgcolor="#F1F3F5" width="10%">
<a href="?"><?=$lang['group.info5']?></a>
</td>
<td width="10%" align="center" bgcolor="#F1F3F5"><a href="?action=oper_1"><?=$lang['group.info6']?></a></td>
<td width="10%" align="center" bgcolor="#F1F3F5"><a href="?action=oper_2"><?=$lang['group.info7']?></a></td>
<td width="10%" align="center" bgcolor="#F1F3F5"><a href="?action=oper_3"><?=$lang['group.info8']?></a></td>
<td width="10%" align="center" bgcolor="#F1F3F5"><a href="?action=editgroup&groupid=4"><?=$lang['group.info9']?></a></td>
<td width="10%" align="center" bgcolor="#7bbee3"><font color="red"><?=$lang['group.info10']?></font></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" align="center" class="indextableborder">
<FORM METHOD="POST" ACTION="?action=saveonline">
<tr><td height="23" align="left" colspan="3" class="tdtit"><?=$lang['tpl.str180']?> <?=$lang['group.info10']?></td></tr>
<tr> 
<td width="20%" class="forumrow"><B><?=$lang['group.info11']?></B></td>
<td height="23" width="10%" class="forumrow"><B><?=$lang['group.info12']?></B></td>
<td width="*" class="forumrow"><B><?=$lang['group.info13']?></B></td>
</tr>
<?while($gs = $db->fetch_array($query)){?>
<tr align="left">
<td height="23" class="forumrow">
<input type="hidden" value="<?=$gs['usergroupid']?>" name="usertitleid[]">
<?=$gs['usertitle']?>
</td>
<td height="23" class="forumrow">
<Input type=text size="5" name="orders[]" value="<?=$gs['orders']?>">
</td>
<td height="23" class="forumrow">
<Input type=text size="20" name="titlepic[]" value="<?=$gs['titlepic']?>">
<?
	if ($gs['parentgid'] == 0){
		echo $lang['group.info14'].' <a href="?action=editgroup&groupid=4">'.$lang['group.info15'].'</a>';
	}
?>
</td>
</tr>
<?}?>
<tr align="center">
<td colspan="3" height="25" class="forumrow1" style="text-align:center;">
<input type="submit" name="submit" class="button" value="<?=$lang['group.info16']?>">
</td></tr>
</form>
</table>
<?
break;
		case 'editgroup':
?>
<script language="javascript" type="text/javascript">
var vBobjects = new Array();
function fetch_object(idname, forcefetch)
{
	if (typeof(vBobjects[idname]) == "undefined")
	{
		vBobjects[idname] = MM_findObj(idname);
	}
	return vBobjects[idname];
}
function getGroup(Did)
{
var SGroup = fetch_object(Did);
	if (SGroup){
		if (SGroup.style.display=='none'){
		SGroup.style.top = '120px'//(document.body.scrollTop+((document.body.clientHeight-1000)/2))+"px";
		SGroup.style.left = '340px'//(document.body.scrollLeft+((document.body.clientWidth-480)/2))+"px";
		SGroup.style.display = '';
		}
		else{
			var SelGroupid = fetch_object("SelGroupid");
			var groupid = fetch_object("groupid");
			var Val="";
			SGroup.style.display='none';
			if (SelGroupid){
				for (var i=0;i<SelGroupid.length;i++){
					if (SelGroupid.options[i].selected){
						Val += SelGroupid.options[i].value;
						Val += ",";
					}
				}
				groupid.value = Val.substr(0,Val.lastIndexOf(","));
			}
		}
	}
}
function MM_findObj(n, d) {
var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
 
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  
	if(!x && d.getElementById) x=d.getElementById(n); return x;

} 
function CheckAll(form)  {
	for (var i=0;i<form.elements.length;i++)
	{
		var e = form.elements[i];
		if (e.name != 'chkall'&&e.type=="checkbox")
		{
			e.checked = form.chkall.checked;
		}
	}
}
function showtable(){
	if (document.getElementById("isdefault").checked){
		document.getElementById('table_1').style.display='none';
		document.getElementById('tr_1').style.display='none';
		document.getElementById('tr_2').style.display='none';
		}else{
		document.getElementById('table_1').style.display='block';
		document.getElementById('tr_1').style.display='block';
		document.getElementById('tr_2').style.display='block';
		}
	}
</script>
<br>
<table border="0" cellspacing="1" cellpadding="1"  align="center" class="tableborder">
<FORM METHOD="POST" ACTION="?action=editgroup&editgroupid=<?=$groupid?>" name="TheForm">
<tr>
<td height="23" colspan="4" class="tit1">
<?=$lang['tpl.str180']?> <?=$lang['group.info17']?>
</td>
</tr>
<tr>
<td height="25" class="forumrow" width="15%" style="text-align:center;"> 
<input type="submit" name="Submit" value="<? echo $lang['tpl.str182']?>" style="color: #FF0000;width:80px;height:50px;border:1px outset;">
</td>
<td colspan="3" height="25" class="forumrow"><?=$lang['group.info18']?>
<BR><?=$lang['group.info19']?>
<BR><?=$lang['group.info20']?>
<BR><?=$lang['group.info21']?>
<BR><?=$lang['group.info22']?>
</td></tr>
<tr><td colspan="4" height="25" class="forumrow">
<?=$lang['group.info23']?>
[<a href="#setting1"><?=$lang['group.info24']?></a>] 
[<a href="#setting2"><?=$lang['group.info25']?></a>] 
[<a href="#setting3"><?=$lang['group.info26']?></a>] 
[<a href="#setting4"><?=$lang['group.info27']?></a>] 
[<a href="#setting5"><?=$lang['group.info28']?></a>] 
[<a href="#setting6"><?=$lang['group.info29']?></a>] 
[<a href="#setting7"><?=$lang['group.info30']?></a>] 
[<a href="#setting8"><?=$lang['group.info31']?></a>] 
[<a href="#setting9"><?=$lang['group.info32']?></a>] 
</td></tr>
<tr><td colspan="4" height="25" class="forumrow">
<?=$lang['group.info33']?><input type="button" class="button" value="<?=$lang['group.info34']?>" onclick="getGroup('Select_Group');">
</td></tr>
<tr>
<td height="23" colspan="4" align="left" class="tit1">
<?=$lang['tpl.str180']?> <a name="setting1"></a>
<INPUT TYPE="checkbox" NAME="chkall" onclick="CheckAll(this.form);">[<?=$lang['group.info35']?>]
<?=$lang['group.info36']?>
</td>
</tr>
<tr><td colspan="4" height="25" class="forumrow1">
<B><a href="?"><?=$lang['group.info34']?></a> >> <?=sysgroupname($gs['parentgid'])?></B>
<?=$gs['usertitle']?>
<input name="groupid" type="hidden" value="">
</td></tr>
<tr class="forumrow">
<td></td>
<td height="23"><?=$lang['group.info34']?></td>
<td height="23"><input size="35" name="title" type=text value="<?=$gs['usertitle']?>"></td>
</tr>
<tr class="forumrow">
<td align=center width="2"><INPUT TYPE="checkbox" NAME="CheckGroupPic"></td>
<td width="49%"><?=$lang['group.info39']?></td>
<td width="49%"><input size="35" name="grouppic" type=text value="<?=$gs['grouppic']?>"></td>
</tr>
<?=grouppermission($regroupsetting)?>
<input type="hidden" value="yes" name="groupaction">
</FORM>
</table>
<?=Select_Group($groupid)?>
<?
break;
		default:
?>
<br>
<table width="95%" border="0" cellspacing="1" cellpadding="0"  align="center" class="tableborder">
<tr> 
<td height="23" align="left" colspan="6" class="tit1"><?=$lang['tpl.str180']?> <?=$lang['group.info34']?></td>
</tr>
<tr align="left">
<td height="23" class="forumrow" style="LINE-HEIGHT: 140%">
<input type="submit" name="Submit" value="<? echo $lang['tpl.str182']?>" style="color: #FF0000;width:80px;height:50px;border:1px outset;">
</td>
<td height="23" class="forumrow" style="LINE-HEIGHT: 140%">
<li><?=$lang['group.info40']?>
<li><?=$lang['group.info41']?>
<li><?=$lang['group.info42']?>
<li><?=$lang['group.info43']?>
<li><?=$lang['group.info44']?>
<li><?=$lang['group.info45']?>
</td>
</tr>
</table>
<!--µ¼؛½-->
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder">
<tr align="center">
<td height="25" align="center" <?if($action=='oper_0' or $action==''){echo 'bgcolor="#C9DEFA"';}else{echo 'bgcolor="#F1F3F5"';}?>  width="10%"><a href="?action=oper_0"><font color="<?if($action=='oper_0' or $action==''){echo 'white';}else{echo '#000000';}?>"><?=$lang['tpl.str181']?></font></a></td>
<td height="25" align="center" <?if($action=='oper_1'){echo 'bgcolor="#C9DEFA"';}else{echo 'bgcolor="#F1F3F5"';}?> width="10%"><a href="?action=oper_1"><font color="<?if($action=='oper_1'){echo 'white';}else{echo '#000000';}?>"><?=$lang['group.info6']?></font></a></td>
<td width="10%" align="center" <?if($action=='oper_2'){echo 'bgcolor="#C9DEFA"';}else{echo 'bgcolor="#F1F3F5"';}?>></font><a href="?action=oper_2"><font color="<?if($action=='oper_2'){echo 'white';}else{echo '#000000';}?>"><?=$lang['group.info7']?></font></a></td>
<td width="10%" align="center" <?if($action=='oper_3'){echo 'bgcolor="#C9DEFA"';}else{echo 'bgcolor="#F1F3F5"';}?>></font><a href="?action=oper_3"><font color="<?if($action=='oper_3'){echo 'white';}else{echo '#000000';}?>"><?=$lang['group.info8']?></font></a></td>
<td width="10%" align="center" <?if($action=='oper_4'){echo 'bgcolor="#C9DEFA"';}else{echo 'bgcolor="#F1F3F5"';}?>></font><a href="?action=oper_4"><font color="<?if($action=='oper_4'){echo 'white';}else{echo '#000000';}?>"><?=$lang['group.info46']?></font></a></td>
<td width="10%" align="center" bgcolor="#F1F3F5"><a href="?action=editgroup&groupid=4"><font color="000000"><?=$lang['group.info47']?></font></a></td>
<td width="10%" align="center" bgcolor="#F1F3F5"> <a href="?action=online"><font color="000000"><?=$lang['group.info48']?></font></a></td>
</tr>
</table>
<!--µ¼؛½½لتّ-->
<?
if($action=='oper_0' or $action==''){?>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="indextableborder1">
<tr> 
<td class="tdtit" colspan="6"><?=$lang['tpl.str180']?> <?=$lang['group.info49']?></td>
</tr>
<tr><td colspan="6" height="25"  class="forumrow">
<?=$lang['group.info50']?>
</td></tr>
<tr>
<td height="20" width="5%" class="forumrow1"><B><?=$lang['group.info51']?></B></td>
<td height="20" width="20%" class="forumrow1"><B><?=$lang['group.info52']?></B></td>
<td width="15%" class="forumrow1"><B><?=$lang['group.info53']?></B></td>
<td width="30%" class="forumrow1"><B><?=$lang['group.info54']?></B></td>
<td height="20" width="10%" class="forumrow1"><B><?=$lang['group.info55']?></B></td>
<td width="20%" class="forumrow1"><B><?=$lang['group.info56']?></B></td>
</tr>
<FORM METHOD="POST" ACTION="?action=saveusergroup">
<?
foreach( $_group1 as $val ){
?>
<input type="hidden" value="<?=$val['usergroupid']?>" name="usertitleid[]">
<tr>
<td class="forumrow" align="center"><?=$val['usergroupid']?></td>
<td height="23" class="forumrow"><input size="15" value="<?=$val['usertitle']?>" name="usertitle[]" type=text></td>
<td class="forumrow"><input size="5" value="<?=$val['minarticle']?>" name="minarticle[]" type=text ></td>
<td class="forumrow"><input size="15" value="<?=$val['grouppic']?>" name="titlepic[]" type=text></td>
<td class="forumrow"><B><?=$val['usercount']?></B></td>
<td class="forumrow"><a href="?action=editgroup&groupid=<?=$val['usergroupid']?>"><?=$lang['group.info57']?></a> | <a href="user.php?doaction=user_search&user_search=10&usergroupid=<?=$val['usergroupid']?>"><?=$lang['group.info59']?></a> | <a href="?action=delusergroup&id=<?=$val['usergroupid']?>" onclick="{if(confirm('<?=$lang['group.info60']?>')){return true;}return false;}"><?=$lang['group.info58']?></a></td>
</tr>
<?
}
?>
<input type="hidden" value="0" name="usertitleid[]">
<tr>
<td class="forumrow" align="center"><font color="blue"><?=$lang['group.info61']?></font></td>
<td height="23" class="forumrow"><input size="15" value="" name="usertitle[]" type=text></td>
<td class="forumrow"><input size="5" value="0" name="minarticle[]" type=text ></td>
<td class="forumrow"><input size="15" value="level0.gif" name="titlepic[]" type=text></td>
<td class="forumrow">
<B>0</B>
</td>
<td width="20%" class="forumrow"></td>
</tr>
<tr align="center">
<td colspan="6" height="25" class="forumrow1"  style="text-align:center;">
<input type="submit" name="submit" class="button" value="<?=$lang['group.info16']?>">
</td></tr>
</FORM>
</table>
<?}elseif($action=='oper_1'){?>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="indextableborder1">
<tr> 
<td colspan="6" class="tdtit"><?=$lang['tpl.str180']?> <?=$lang['group.info62']?><a name="1"></a></td>
</tr>
<tr><td colspan="6" height="25" class="forumrow">
<?=$lang['group.info63']?>
</td></tr>
<tr>
<td height="23" width="5%" class="forumrow"><B><?=$lang['group.info51']?></B></td>
<td height="23" width="20%" class="forumrow"><B><?=$lang['group.info64']?></B></td>
<td width="15%" class="forumrow"><B><?=$lang['group.info65']?></B></td>
<td height="23" width="30%" class="forumrow"><B><?=$lang['group.info66']?></B></td>
<td height="23" width="10%" class="forumrow"><B><?=$lang['group.info55']?></B></td>
<td width="20%" class="forumrow"><B><?=$lang['group.info56']?></B></td>
</tr>
<FORM METHOD="POST" ACTION="?action=savesysgroup">
<input type="hidden" value="1" name="parentid">
<?
foreach( $_group2 as $val ){
?>
<input type="hidden" value="<?=$val['usergroupid']?>" name="usertitleid[]">
<input value="<?=$val['title']?>" name="title[]" type="hidden">
<input type="hidden" value="<?=$val['issetting']?>" name="issetting[]">
<tr>
<td class="forumrow" align="center"><?=$val['usergroupid']?></td>
<td height="23" class="forumrow"><input size="15" value="<?=$val['usertitle']?>" name="usertitle[]" type=text></td>
<td class="forumrow"><input size="5" value="<?=$val['minarticle']?>" name="minarticle[]" type=text ></td>
<td class="forumrow"><input size="15" value="<?=$val['grouppic']?>" name="titlepic[]" type=text></td>
<td class="forumrow"><B><?=$val['usercount']?></B></td>
<td class="forumrow"><a href="?action=editgroup&groupid=<?=$val['usergroupid']?>"><?=$lang['group.info57']?></a> | <a href="user.php?doaction=user_search&user_search=10&usergroupid=<?=$val['usergroupid']?>"><?=$lang['group.info59']?></a></td>
</tr>
<?
}
?>
<input type="hidden" value="0" name="usertitleid[]">
<tr>
<td class="forumrow" align="center"><font color="blue"><?=$lang['group.info61']?></font></td>
<td height="23" class="forumrow"><input size="15" value="" name="usertitle[]" type=text></td>
<td class="forumrow"><input size="5" value="0" name="minarticle[]" type=text ></td>
<td class="forumrow"><input size="15" value="level0.gif" name="titlepic[]" type=text></td>
<td class="forumrow">
<B>0</B>
</td>
<td width="20%" class="forumrow"></td>
</tr>
<tr align="center">
<td colspan="6" height="25" class="forumrow1" style="text-align:center;">
<input type="submit" name="submit" class="button" value="<?=$lang['group.info16']?>">
</td></tr>
</FORM>
</table>
<?}elseif($action=='oper_2'){?>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="indextableborder1">
<tr> 
<td colspan="6" class="tdtit"><?=$lang['tpl.str180']?> <?=$lang['group.info67']?></td>
</tr>
<tr><td colspan="6" height="25" class="forumrow"><?=$lang['group.info68']?></td></tr>
<tr>
<td width="5%" class="forumrow"><B><?=$lang['group.info51']?></B></td>
<td height="23" width="15%" class="forumrow"><B><?=$lang['group.info69']?></B></td>
<td width="15%" class="forumrow"><B><?=$lang['group.info65']?></B></td>
<td width="30%" class="forumrow"><B><?=$lang['group.info70']?></B></td>
<td height="23" width="10%" class="forumrow"><B><?=$lang['group.info55']?></B></td>
<td width="20%" class="forumrow"><B><?=$lang['group.info56']?></B></td>
</tr>
<FORM METHOD="POST" ACTION="?action=savesysgroup">
<input type="hidden" value="2" name="parentid">
<?
foreach( $_group3 as $val ){
?>
<input type="hidden" value="<?=$val['usergroupid']?>" name="usertitleid[]">
<input type="hidden" value="<?=$val['issetting']?>" name="issetting[]">
<tr>
<td class="forumrow" align="center"><?=$val['usergroupid']?></td>
<td height="23" class="forumrow"><input size="15" value="<?=$val['usertitle']?>" name="usertitle[]" type=text></td>
<td class="forumrow"><input size="15" value="<?=$val['title']?>" name="title[]" type=text></td>
<td class="forumrow"><input size="15" value="<?=$val['grouppic']?>" name="titlepic[]" type=text></td>
<td class="forumrow"><B><?=$val['usercount']?></B></td>
<td class="forumrow"><a href="?action=editgroup&groupid=<?=$val['usergroupid']?>"><?=$lang['group.info57']?></a> | <a href="user.php?doaction=user_search&user_search=10&usergroupid=<?=$val['usergroupid']?>"><?=$lang['group.info59']?></a> | <a href="?action=delusergroup&id=<?=$val['usergroupid']?>" onclick="{if(confirm('<?=$lang['group.info60']?>')){return true;}return false;}"><?=$lang['group.info58']?></a></td>
</tr>
<?
}
?>
<input type="hidden" value="0" name="usertitleid[]">
<input type="hidden" value="" name="issetting[]">
<tr>
<td class="forumrow" align="center"><font color="blue"><?=$lang['group.info61']?></font></td>
<td height="23" class="forumrow"><input size="15" value="" name="usertitle[]" type=text></td>
<td class="forumrow"><input size=5 value="0" name="minarticle[]" type=text ></td>
<td class="forumrow"><input size="15" value="level0.gif" name="titlepic[]" type=text></td>
<td class="forumrow">
<B>0</B>
</td>
<td width="20%" class="forumrow"></td>
</tr>
<tr align="center">
<td colspan="6" height="25" class="forumrow1" style="text-align:center;">
<input type="submit" name="submit" class="button" value="<?=$lang['group.info16']?>">
</td></tr>
</FORM>
</table>
<?}elseif($action=='oper_3'){?>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="indextableborder1">
<tr> 
<td colspan="7" class="tdtit"><?=$lang['tpl.str180']?><?=$lang['group.info71']?><a name="3"></a></td>
</tr>
<tr><td colspan="7" height="25" class="forumrow">
<?=$lang['group.info72']?></td></tr>
<tr>
<td width="5%" class="forumrow"><B><?=$lang['group.info51']?></B></td>
<td height="23" width="13%" class="forumrow"><B><?=$lang['group.info73']?></B></td>
<td width="10%" class="forumrow"><B><?=$lang['group.info65']?></B></td>
<td width="17%" class="forumrow"><B><?=$lang['group.info74']?></B></td>
<td width="28%" class="forumrow"><B><?=$lang['group.info75']?></B></td>
<td height="23" width="8%" class="forumrow"><B><?=$lang['group.info55']?></B></td>
<td width="25%" class="forumrow"><B><?=$lang['group.info56']?></B></td>
</tr>
<FORM METHOD="POST" ACTION="?action=savesysgroup">
<input type="hidden" value="4" name="parentid">
<?
if (!empty($_group4) AND is_array($_group4))
foreach( $_group4 as $val ){
?>
<input type="hidden" value="<?=$val['usergroupid']?>" name="usertitleid[]">
<tr>
<td class="forumrow" align="center"><?=$val['usergroupid']?></td>
<td height="23" class="forumrow"><input size="15" value="<?=$val['usertitle']?>" name="usertitle[]" type=text></td>
<td class="forumrow"><input size="15" value="<?=$val['title']?>" name="title[]" type=text></td>
<td class="forumrow"><input size="15" value="<?=$val['issetting']?>" name="issetting[]" type=text> *</td>
<td class="forumrow"><input size="15" value="<?=$val['grouppic']?>" name="titlepic[]" type=text></td>
<td class="forumrow"><B><?=$val['usercount']?></B></td>
<td class="forumrow"><a href="?action=editgroup&groupid=<?=$val['usergroupid']?>"><?=$lang['group.info57']?></a> | <a href="user.php?doaction=user_search&user_search=10&usergroupid=<?=$val['usergroupid']?>"><?=$lang['group.info59']?></a> | <a href="?action=delusergroup&id=<?=$val['usergroupid']?>" onclick="{if(confirm('<?=$lang['group.info60']?>')){return true;}return false;}"><?=$lang['group.info58']?></a></td>
</tr>
<?
}
?>
<input type="hidden" value="0" name="usertitleid[]">
<tr>
<td class="forumrow" align="center"><font color="blue"><?=$lang['group.info61']?></font></td>
<td height="23" class="forumrow"><input size="15" value="" name="usertitle[]" type=text></td>
<td class="forumrow"><input size="15" value="" name="title[]" type=text></td>
<td class="forumrow"><input size="15" value="" name="issetting[]" type=text> *</td>
<td class="forumrow"><input size="15" value="level0.gif" name="titlepic[]" type=text></td>
<td class="forumrow">
<B>0</B>
</td>
<td width="20%" class="forumrow"></td>
</tr>
<tr align="center">
<td colspan="7" height="25" class="forumrow1" style="text-align:center;">
<input type="submit" name="submit" class="button" value="<?=$lang['group.info16']?>">
</td></tr>
</FORM>
</table>
<?}elseif($action=='oper_4'){?>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="indextableborder1">
<tr> 
<td colspan="6" class="tdtit"><?=$lang['tpl.str180']?> <?=$lang['group.info46']?><a name="4"></a></td>
</tr>
<tr><td colspan="6" height="25" class="forumrow">
<?=$lang['group.info76']?>
</td></tr>
<tr>
<td width="5%" class="forumrow"><B><?=$lang['group.info51']?></B></td>
<td height="23" width="15%" class="forumrow"><B><?=$lang['group.info69']?></B></td>
<td width="15%" class="forumrow"><B><?=$lang['group.info65']?></B></td>
<td width="30%" class="forumrow"><B><?=$lang['group.info70']?></B></td>
<td height="23" width="10%" class="forumrow"><B><?=$lang['group.info55']?></B></td>
<td width="20%" class="forumrow"><B><?=$lang['group.info56']?></B></td>
</tr>
<FORM METHOD="POST" ACTION="?action=savesysgroup">
<input type="hidden" value="5" name="parentid">
<?
$i = 0;
if (is_array($_group5)){
foreach( $_group5 as $val ){
	$i++;
?>
<input type="hidden" value="<?=$val['usergroupid']?>" name="usertitleid[]">
<input type="hidden" value="<?=$val['issetting']?>" name="issetting[]">
<tr>
<td class="forumrow" align="center"><?=$val['usergroupid']?></td>
<td height="23" class="forumrow"><input size="15" value="<?=$val['usertitle']?>" name="usertitle[]" type=text></td>
<td class="forumrow"><input size="15" value="<?=$val['title']?>" name="title[]" type=text></td>
<td class="forumrow"><input size="15" value="<?=$val['grouppic']?>" name="titlepic[]" type=text></td>
<td class="forumrow"><B><?=$val['usercount']?></B></td>
<td class="forumrow"><a href="?action=editgroup&groupid=<?=$val['usergroupid']?>"><?=$lang['group.info57']?></a> | <a href="user.php?doaction=user_search&user_search=10&usergroupid=<?=$val['usergroupid']?>"><?=$lang['group.info59']?></a> | <a href="?action=delusergroup&id=<?=$val['usergroupid']?>" onclick="{if(confirm('<?=$lang['group.info60']?>')){return true;}return false;}"><?=$lang['group.info58']?></a></td>
</tr>
<?
}
}
?>
<input type="hidden" value="0" name="usertitleid[]">
<input type="hidden" value="" name="issetting[]">
<?if ($i == 0){?>
<tr>
<td class="forumrow" align="center"><font color="blue"><?=$lang['group.info61']?></font></td>
<td height="23" class="forumrow"><input size="15" value="" name="usertitle[]" type=text></td>
<td class="forumrow"><input size="15" value="" name="title[]" type=text></td>
<td class="forumrow"><input size="15" value="level0.gif" name="titlepic[]" type=text></td>
<td class="forumrow">
<B>0</B>
</td>
<td width="20%" class="forumrow"></td>
</tr>
<?}else{?>
<input size="15" value="" name="usertitle[]" type="hidden">
<input size="15" value="<?=$lang['group.info77']?>" name="title[]" type="hidden">
<input size="15" value="level0.gif" name="titlepic[]" type="hidden">
<?}?>
<tr align="center">
<td colspan="7" height="25" class="forumrow1" style="text-align:center;">
<input type="submit" name="submit" class="button" value="<?=$lang['group.info16']?>">
</td></tr>
</FORM>
</table>
<?
}
	//break;
}	
?>