<?php
if( !defined('ISDVBBS') ){
	header('HTTP/1.0 404 Not Found');
	exit;
}
function grouppermission($groupsetting){
	global $dv,$db,$lang,$ScriptName,$boardid,$fsetting,$_DCACHE;
	$lang = load_lang($lang, 'grouppermission',ROOT_PATH.'templates/lang/'.$_DCACHE['settings']['lang'].'/');
	if ($groupsetting == ''){
		$query=$db->query("Select groupsetting From {$dv}usergroups Where usergroupid=4");
		$gs = $db->fetch_array($query);
		$GroupSetting = explode(',',$gs['groupsetting']);
	}else{
		$GroupSetting = explode(',',$groupsetting);
	}
	if ($GroupSetting[58] == '0'){
		$GroupSetting[58] = $lang['main_str_16'];
	}
	$userhtml = explode($lang['main_str_16'],$GroupSetting[58]);
	if (count($userhtml) == 2){
		$userhtmla = htmlspecialchars($userhtml[0]);
		$userhtmlb = htmlspecialchars($userhtml[1]);
	}else{
		$userhtmla = '';
		$userhtmlb = '';
	}
	if (strpos($GroupSetting[71],$lang['main_str_16']) !== false && count(explode($lang['main_str_16'],$GroupSetting[71])) == 4){
		$VipMoneySetting = explode($lang['main_str_16'],$GroupSetting[71]);
	}else{
		$VipMoneySetting[0] = 0;
		$VipMoneySetting[1] = 0;
		$VipMoneySetting[2] = 0;
		$VipMoneySetting[3] = 0;
	}
?>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="mainbox tableborder" id="table_1">
<tbody>
<tr> 
<th width="100%" colspan="4"><a name="setting2"></a><div style="float:left;text-indent:5px;width:20px;"><?=$lang['g_title_falg']?></div><?=$lang['p_tit_1']?></th>
</tr>
<tr class="forumrow">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(58)" /></td>
<td><?=$lang['p_str_1_1']?><br />
<?=$lang['p_str_1_2']?></td>
<td><?=$lang['p_str_1_3']?> <input name="GroupSetting(58)A" type="text" size="30" value="<?=$userhtmla?>" /> <br /><?=$lang['p_str_1_4']?> <input name="GroupSetting(58)B" type="text" size="30" value="<?=$userhtmlb?>" /></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow1">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(57)" /></td>
<td><?=$lang['p_str_1_5']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(57)" type="radio" class="radio" value="1"<?if($GroupSetting[57]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(57)" type="radio" class="radio" value="0"<?if($GroupSetting[57]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(0)" /></td>
<td><?=$lang['p_str_1_6']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(0)" type="radio" class="radio" value="1"<?if($GroupSetting[0]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(0)" type="radio" class="radio" value="0"<?if($GroupSetting[0]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow1">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(1)" /></td>
<td><?=$lang['p_str_1_7']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(1)" type="radio" class="radio" value="1"<?if($GroupSetting[1]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(1)" type="radio" class="radio" value="0"<?if($GroupSetting[1]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(2)" /></td>
<td><?=$lang['p_str_1_8']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(2)" type="radio" class="radio" value="1"<?if($GroupSetting[2]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(2)" type="radio" class="radio" value="0"<?if($GroupSetting[2]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow1">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(41)" /></td>
<td><?=$lang['p_str_1_9']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(41)" type="radio" class="radio" value="1"<?if($GroupSetting[41]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(41)" type="radio" class="radio" value="0"<?if($GroupSetting[41]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(93)" /></td>
<td><?=$lang['p_str_1_10']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(93)" type="radio" class="radio" value="1" <?if($GroupSetting[93]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(93)" type="radio" class="radio" value="0" <?if(empty($GroupSetting[93])){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow"> 
<td width="100%" colspan="4" class="tit1" ><a name="setting3"></a><div style="float:left;text-indent:5px;width:20px;"><?=$lang['g_title_falg']?></div><?=$lang['p_tit_2']?></td>
</tr>
<tr class="forumrow1">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(3)" /></td>
<td><?=$lang['p_str_2_1']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(3)" type="radio" class="radio" value="1"<?if($GroupSetting[3]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(3)" type="radio" class="radio" value="0"<?if($GroupSetting[3]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(64)" /></td>
<td><?=$lang['p_str_2_2']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(64)" type="radio" class="radio" value="1"<?if($GroupSetting[64]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(64)" type="radio" class="radio" value="0"<?if($GroupSetting[64]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow1">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(62)" /></td>
<td><?=$lang['p_str_2_3']?></td>
<td><input name="GroupSetting(62)" type="text" size="4" value="<?=$GroupSetting[62]?>" /></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(4)" /></td>
<td><?=$lang['p_str_2_4']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(4)" type="radio" class="radio" value="1"<?if($GroupSetting[4]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(4)" type="radio" class="radio" value="0"<?if($GroupSetting[4]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow1">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(5)" /></td>
<td><?=$lang['p_str_2_5']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(5)" type="radio" class="radio" value="1"<?if($GroupSetting[5]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(5)" type="radio" class="radio" value="0"<?if($GroupSetting[5]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(8)" /></td>
<td><?=$lang['p_str_2_6']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(8)" type="radio" class="radio" value="1"<?if($GroupSetting[8]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(8)" type="radio" class="radio" value="0"<?if($GroupSetting[8]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow1">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(9)" /></td>
<td><?=$lang['p_str_2_7']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(9)" type="radio" class="radio" value="1"<?if($GroupSetting[9]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(9)" type="radio" class="radio" value="0"<?if($GroupSetting[9]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(68)" /></td>
<td><?=$lang['p_str_2_8']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(68)" type="radio" class="radio" value="1"<?if($GroupSetting[68]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(68)" type="radio" class="radio" value="0"<?if($GroupSetting[68]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow1">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(51)" /></td>
<td><?=$lang['p_str_2_11']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(51)" type="radio" class="radio" value="1"<?if($GroupSetting[51]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(51)" type="radio" class="radio" value="0"<?if($GroupSetting[51]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(59)" /></td>
<td><?=$lang['p_str_2_12']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(59)" type="radio" class="radio" value="1"<?if($GroupSetting[59]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(59)" type="radio" class="radio" value="0"<?if($GroupSetting[59]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow1">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(67)" /></td>
<td><?=$lang['p_str_2_13']?></td>
<td>
<select name="GroupSetting(67)" >
<option value="0"<?if($GroupSetting[67]==0){echo ' selected';}?>><?=$lang['p_str_2_13_1']?></option>
<option value="1"<?if($GroupSetting[67]==1){echo ' selected';}?>><?=$lang['p_str_2_13_2']?></option>
<option value="2"<?if($GroupSetting[67]==2){echo ' selected';}?>><?=$lang['p_str_2_13_3']?></option>
<option value="3"<?if($GroupSetting[67]==3){echo ' selected';}?>><?=$lang['p_str_2_13_4']?></option>
</select>
</td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(65)" /></td>
<td><?=$lang['p_str_2_14']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(65)" type="radio" class="radio" value="1"<?if($GroupSetting[65]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_str_2_14_1']?><input name="GroupSetting(65)" type="radio" class="radio" value="2"<?if($GroupSetting[65]==2){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(65)" type="radio" class="radio" value="0"<?if($GroupSetting[65]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow1">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(52)" /></td>
<td><?=$lang['p_str_2_15']?></td>
<td><input name="GroupSetting(52)" type="text" size="4" value="<?=$GroupSetting[52]?>" /></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(69)" /></td>
<td><?=$lang['p_str_2_16']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(69)" type="radio" class="radio" value="1"<?if($GroupSetting[69]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(69)" type="radio" class="radio" value="0"<?if($GroupSetting[69]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr> 
<td width="100%" colspan="4" class="tit1" ><a name="setting4"></a><div style="float:left;text-indent:5px;width:20px;"><?=$lang['g_title_falg']?></div><?=$lang['p_tit_3']?></td>
</tr>
<tr class="forumrow1">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(10)" /></td>
<td><?=$lang['p_str_3_1']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(10)" type="radio" class="radio" value="1"<?if($GroupSetting[10]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(10)" type="radio" class="radio" value="0"<?if($GroupSetting[10]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(11)" /></td>
<td><?=$lang['p_str_3_2']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(11)" type="radio" class="radio" value="1"<?if($GroupSetting[11]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(11)" type="radio" class="radio" value="0"<?if($GroupSetting[11]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow1">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(12)" /></td>
<td><?=$lang['p_str_3_3']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(12)" type="radio" class="radio" value="1"<?if($GroupSetting[12]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(12)" type="radio" class="radio" value="0"<?if($GroupSetting[12]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(13)" /></td>
<td><?=$lang['p_str_3_4']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(13)" type="radio" class="radio" value="1"<?if($GroupSetting[13]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(13)" type="radio" class="radio" value="0"<?if($GroupSetting[13]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow1"> 
<td width="100%" colspan="4" class="tit1" ><a name="setting5"></a><div style="float:left;text-indent:5px;width:20px;"><?=$lang['g_title_falg']?></div><?=$lang['p_tit_4']?></td>
</tr>
<tr class="forumrow">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(7)" /></td>
<td><?=$lang['p_str_3_5']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(7)" type="radio" class="radio" value="1"<?if($GroupSetting[7]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(7)" type="radio" class="radio" value="0"<?if($GroupSetting[7]==0){echo ' checked';}?>/>&nbsp;<?=$lang['p_str_3_5_1']?><input name="GroupSetting(7)" type="radio" class="radio" value="2"<?if($GroupSetting[7]==2){echo ' checked';}?>/>&nbsp;<?=$lang['p_str_3_5_2']?><input name="GroupSetting(7)" type="radio" class="radio" value="3"<?if($GroupSetting[7]==3){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow1">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(66)" /></td>
<td><?=$lang['p_str_3_6']?></td>
<td><input name="GroupSetting(66)" type="text" size="4" value="<?=$GroupSetting[66]?>" /></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(40)" /></td>
<td><?=$lang['p_str_3_7']?></td>
<td><input name="GroupSetting(40)" type="text" size="4" value="<?=$GroupSetting[40]?>" /></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow1">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(50)" /></td>
<td><?=$lang['p_str_3_8']?></td>
<td><input name="GroupSetting(50)" type="text" size="4" value="<?=$GroupSetting[50]?>" /></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(44)" /></td>
<td><?=$lang['p_str_3_9']?></td>
<td><input name="GroupSetting(44)" type="text" size="4" value="<?=$GroupSetting[44]?>" /> KB</td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow1">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(61)" /></td>
<td><?=$lang['p_str_3_10']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(61)" type="radio" class="radio" value="1"<?if($GroupSetting[61]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(61)" type="radio" class="radio" value="0"<?if($GroupSetting[61]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow"> 
<td width="100%" colspan="4" class="tit1" ><a name="setting6"></a><div style="float:left;text-indent:5px;width:20px;"><?=$lang['g_title_falg']?></div><?=$lang['p_tit_5']?></td>
</tr>
<tr class="forumrow1">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(18)" /></td>
<td><?=$lang['p_str_4_1']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(18)" type="radio" class="radio" value="1"<?if($GroupSetting[18]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(18)" type="radio" class="radio" value="0"<?if($GroupSetting[18]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(19)" /></td>
<td><?=$lang['p_str_4_2']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(19)" type="radio" class="radio" value="1"<?if($GroupSetting[19]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(19)" type="radio" class="radio" value="0"<?if($GroupSetting[19]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow1">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(20)" /></td>
<td><?=$lang['p_str_4_3']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(20)" type="radio" class="radio" value="1"<?if($GroupSetting[20]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(20)" type="radio" class="radio" value="0"<?if($GroupSetting[20]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(21)" /></td>
<td><?=$lang['p_str_4_4']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(21)" type="radio" class="radio" value="1"<?if($GroupSetting[21]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(21)" type="radio" class="radio" value="0"<?if($GroupSetting[21]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow1">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(54)" /></td>
<td><?=$lang['p_str_4_5']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(54)" type="radio" class="radio" value="1"<?if($GroupSetting[54]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(54)" type="radio" class="radio" value="0"<?if($GroupSetting[54]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(38)" /></td>
<td><?=$lang['p_str_4_6']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(38)" type="radio" class="radio" value="1"<?if($GroupSetting[38]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(38)" type="radio" class="radio" value="0"<?if($GroupSetting[38]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow1">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(22)" /></td>
<td><?=$lang['p_str_4_7']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(22)" type="radio" class="radio" value="1"<?if($GroupSetting[22]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(22)" type="radio" class="radio" value="0"<?if($GroupSetting[22]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(43)" /></td>
<td><?=$lang['p_str_4_8']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(43)" type="radio" class="radio" value="1"<?if($GroupSetting[43]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(43)" type="radio" class="radio" value="0"<?if($GroupSetting[43]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow1">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(23)" /></td>
<td><?=$lang['p_str_4_9']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(23)" type="radio" class="radio" value="1"<?if($GroupSetting[23]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(23)" type="radio" class="radio" value="0"<?if($GroupSetting[23]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(24)" /></td>
<td><?=$lang['p_str_4_10']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(24)" type="radio" class="radio" value="1"<?if($GroupSetting[24]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(24)" type="radio" class="radio" value="0"<?if($GroupSetting[24]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow1">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(25)" /></td>
<td><?=$lang['p_str_4_11']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(25)" type="radio" class="radio" value="1"<?if($GroupSetting[25]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(25)" type="radio" class="radio" value="0"<?if($GroupSetting[25]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(26)" /></td>
<td><?=$lang['p_str_4_12']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(26)" type="radio" class="radio" value="1"<?if($GroupSetting[26]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(26)" type="radio" class="radio" value="0"<?if($GroupSetting[26]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(28)" /></td>
<td><?=$lang['p_str_4_14']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(28)" type="radio" class="radio" value="1"<?if($GroupSetting[28]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(28)" type="radio" class="radio" value="0"<?if($GroupSetting[28]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow1">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(29)" /></td>
<td><?=$lang['p_str_4_15']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(29)" type="radio" class="radio" value="1"<?if($GroupSetting[29]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(29)" type="radio" class="radio" value="0"<?if($GroupSetting[29]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(30)" /></td>
<td><?=$lang['p_str_4_16']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(30)" type="radio" class="radio" value="1"<?if($GroupSetting[30]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(30)" type="radio" class="radio" value="0"<?if($GroupSetting[30]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow1">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(31)" /></td>
<td><?=$lang['p_str_4_17']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(31)" type="radio" class="radio" value="1"<?if($GroupSetting[31]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(31)" type="radio" class="radio" value="0"<?if($GroupSetting[31]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(42)" /></td>
<td><?=$lang['p_str_4_18']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(42)" type="radio" class="radio" value="1"<?if($GroupSetting[42]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(42)" type="radio" class="radio" value="0"<?if($GroupSetting[42]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow1">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(45)" /></td>
<td><?=$lang['p_str_4_19']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(45)" type="radio" class="radio" value="1"<?if($GroupSetting[45]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(45)" type="radio" class="radio" value="0"<?if($GroupSetting[45]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(36)" /></td>
<td><?=$lang['p_str_4_20']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(36)" type="radio" class="radio" value="1"<?if($GroupSetting[36]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(36)" type="radio" class="radio" value="0"<?if($GroupSetting[36]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow1">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(37)" /></td>
<td><?=$lang['p_str_4_21']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(37)" type="radio" class="radio" value="1"<?if($GroupSetting[37]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(37)" type="radio" class="radio" value="0"<?if($GroupSetting[37]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(48)" /></td>
<td><?=$lang['p_str_4_22']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(48)" type="radio" class="radio" value="1"<?if($GroupSetting[48]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(48)" type="radio" class="radio" value="0"<?if($GroupSetting[48]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow1"> 
<td width="100%" colspan="4" class="tit1" ><a name="setting7"></a><div style="float:left;text-indent:5px;width:20px;"><?=$lang['g_title_falg']?></div><?=$lang['p_tit_6']?></td>
</tr>
<tr class="forumrow">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(32)" /></td>
<td><?=$lang['p_str_5_1']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(32)" type="radio" class="radio" value="1"<?if($GroupSetting[32]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(32)" type="radio" class="radio" value="0"<?if($GroupSetting[32]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow1">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(33)" /></td>
<td><?=$lang['p_str_5_2']?></td>
<td><input name="GroupSetting(33)" type="text" size="5" value="<?=$GroupSetting[33]?>" /></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(34)" /></td>
<td><?=$lang['p_str_5_3']?></td>
<td><input name="GroupSetting(34)" type="text" size="5" value="<?=$GroupSetting[34]?>" /> byte</td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow1">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(35)" /></td>
<td><?=$lang['p_str_5_4']?></td>
<td><input name="GroupSetting(35)" type="text" size="5" value="<?=$GroupSetting[35]?>" /> <?=$lang['p_str_5_4_1']?></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(53)" /></td>
<td><?=$lang['p_str_5_5']?></td>
<td><input name="GroupSetting(53)" type="text" size="4" value="<?=$GroupSetting[53]?>" /> <?=$lang['p_str_5_5_1']?></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow1">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(63)" /></td>
<td><?=$lang['p_str_5_6']?></td>
<td><input name="GroupSetting(63)" type="text" size="4" value="<?=$GroupSetting[63]?>" /></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr> 
<td width="100%" colspan="4" class="tit1" ><a name="setting8"></a><div style="float:left;text-indent:5px;width:20px;"><?=$lang['g_title_falg']?></div><?=$lang['p_tit_7']?></td>
</tr>
<tr class="forumrow">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(14)" /></td>
<td><?=$lang['p_str_6_1']?> </td>
<td><?=$lang['p_yes']?><input name="GroupSetting(14)" type="radio" class="radio" value="1"<?if($GroupSetting[14]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(14)" type="radio" class="radio" value="0"<?if($GroupSetting[14]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow1">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(15)" /></td>
<td><?=$lang['p_str_6_2']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(15)" type="radio" class="radio" value="1"<?if($GroupSetting[15]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(15)" type="radio" class="radio" value="0"<?if($GroupSetting[15]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(16)" /></td>
<td><?=$lang['p_str_6_3']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(16)" type="radio" class="radio" value="1"<?if($GroupSetting[16]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(16)" type="radio" class="radio" value="0"<?if($GroupSetting[16]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow1">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(39)" /></td>
<td><?=$lang['p_str_6_4']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(39)" type="radio" class="radio" value="1"<?if($GroupSetting[39]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(39)" type="radio" class="radio" value="0"<?if($GroupSetting[39]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(49)" /></td>
<td><?=$lang['p_str_6_5']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(49)" type="radio" class="radio" value="1"<?if($GroupSetting[49]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(49)" type="radio" class="radio" value="0"<?if($GroupSetting[49]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow1">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(55)" /></td>
<td><?=$lang['p_str_6_6']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(55)" type="radio" class="radio" value="1"<?if($GroupSetting[55]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(55)" type="radio" class="radio" value="0"<?if($GroupSetting[55]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(56)" /></td>
<td><?=$lang['p_str_6_7']?></td>
<td><input name="GroupSetting(56)" type="text" size="4" value="<?=$GroupSetting[56]?>" /> <?=$lang['p_str_6_7_1']?></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr class="forumrow1">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(72)" /></td>
<td><?=$lang['p_str_6_8']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(72)" type="radio" class="radio" value="1"<?if($GroupSetting[72]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(72)" type="radio" class="radio" value="0"<?if($GroupSetting[72]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr> 
<td width="100%" colspan="4" class="tit1" ><div style="float:left;text-indent:5px;width:20px;"><?=$lang['g_title_falg']?></div><?=$lang['p_tit_8']?></td>
</tr>
<tr class="forumrow">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(70)" /></td>
<td><?=$lang['p_str_7_1']?><br /><?=$lang['p_str_7_1_1']?></td>
<td><?=$lang['p_yes']?><input name="GroupSetting(70)" type="radio" class="radio" value="1"<?if($GroupSetting[70]==1){echo ' checked';}?>/>&nbsp;<?=$lang['p_no']?><input name="GroupSetting(70)" type="radio" class="radio" value="0"<?if($GroupSetting[70]==0){echo ' checked';}?>/></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
<tr> 
<td width="100%" colspan="4" class="tit1" ><div style="float:left;text-indent:5px;width:20px;"><?=$lang['g_title_falg']?></div><?=$lang['p_tit_9']?></td>
</tr>
<tr class="forumrow">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(71)" /></td>
<td><?=$lang['p_str_8_1']?><br /><?=$lang['p_str_8_1_1']?>
</td>
<td>
<input type="text" name="GroupSetting(71)A" value="<?=$VipMoneySetting[0]?>" Size="4" /><?=$lang['p_str_8_1_2']?><br />
<input type="text" name="GroupSetting(71)B" value="<?=$VipMoneySetting[1]?>" Size="4" /><?=$lang['p_str_8_1_3']?><br />
<input type="text" name="GroupSetting(71)C" value="<?=$VipMoneySetting[2]?>" Size="4"/><?=$lang['p_str_8_1_4']?><br />
<input type="text" name="GroupSetting(71)D" value="<?=$VipMoneySetting[3]?>" Size="4"/><?=$lang['p_str_8_1_5']?>
</td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>




<tr> 
<td width="100%" colspan="4" class="tit1" ><div style="float:left;text-indent:5px;width:20px;"><?=$lang['g_title_falg']?></div><?=$lang['p_tit_10']?></td>
</tr>

<tr class="forumrow1">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(91)" /></td>
<td><?=$lang['p_str_9_1']?></td>
<td>
<select name="GroupSetting(91)" >
<option value="0"<?if($GroupSetting[91]==0){echo ' selected';}?>><?=$lang['p_str_9_1_1']?></option>
<option value="1"<?if($GroupSetting[91]==1){echo ' selected';}?>><?=$lang['p_str_9_1_2']?></option>
<option value="2"<?if($GroupSetting[91]==2){echo ' selected';}?>><?=$lang['p_str_9_1_3']?></option>
<option value="3"<?if($GroupSetting[91]==3){echo ' selected';}?>><?=$lang['p_str_9_1_4']?></option>
</select>
</td>
<tr class="forumrow">
<td style="text-align:center;"><input type="checkbox" class="chkbox" value="1" name="CheckGroupSetting(92)" /></td>
<td><?=$lang['p_str_9_2']?></td>
<td><textarea name="GroupSetting(92)" cols="60"><?=$GroupSetting[92]?></textarea><?=$lang['p_str_9_2_1']?></td>
<td><a href="#" class="helplink"><img src="images/help.gif" border="0" alt="<?=$lang['p_tit_help']?>" /></a></td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="mainbox">
<tbody>
<tr class="forumrow1"> 
<td>
</td>
<td colspan="3" style="text-align:center;"><button type="submit" class="button" name="submit" /><?=$lang['p_post']?></button></td>
</tr>
</tbody>
</table>
<?
}

function Select_Group($SelGroupID){
	global $dv,$db,$lang;
?>
<div id="Select_Group" style="POSITION:absolute;Z-INDEX: 99;display:none;">
<table border="0" style="width:400px;"><tr><td class="td1">
<select name="SelGroupid" id="SelGroupid" size="28" style="width:100%" multiple="multiple">
<?
	$query=$db->query("select title,usertitle,usergroupid,parentgid from {$dv}usergroups where parentgid > 0 and usergroupid<>{$SelGroupID} order by parentgid,usergroupid");
	while($group = $db->fetch_array($query)){
?>
<option value="<?=$group['usergroupid']?>"> <?=$lang['sys_group_'.$group['parentgid']]?> <?=$group['usertitle']?></option>
<?
	}
?>
</select>
</td></tr>
<tr><td class="tit1" style="text-align:center;">
<input type="button" class="button" value="<?=$lang['str_button']?>" onclick="getGroup('Select_Group')" /> <?=$lang['str_redame1']?>
</td></tr>
</table>
</div>
<?
}

function getgrouppermission(){
	global $_POST,$sum_CheckGroupSetting, $lang, $_DCACHE;
	$lang = load_lang($lang, 'grouppermission', ROOT_PATH.'templates/lang/'.$_DCACHE['settings']['lang'].'/');
	$sum_CheckGroupSetting = 0;
	for ($i=0; $i<94; $i++){
		if ($_POST["GroupSetting($i)"] == ''){
			$issetting = 0;
		}else{
			$issetting = str_replace(',','',$_POST["GroupSetting($i)"]);
		}
		if ($i == 0){
			$mgrouppermission = $issetting;
		}elseif($i == 58){
			$_POST["GroupSetting(58)A"] = str_replace(',','',$_POST["GroupSetting(58)A"]);
			$_POST["GroupSetting(58)A"] = str_replace('|||','',$_POST["GroupSetting(58)A"]);
			$_POST["GroupSetting(58)B"] = str_replace(',','',$_POST["GroupSetting(58)B"]);
			$_POST["GroupSetting(58)B"] = str_replace('|||','',$_POST["GroupSetting(58)B"]);
			$mgrouppermission .= ',' .$_POST["GroupSetting(58)A"]. $lang['main_str_16'] .$_POST["GroupSetting(58)B"];
		}elseif($i == 71){
			$_POST["GroupSetting(71)A"] = str_replace(',','',$_POST["GroupSetting(71)A"]);
			$_POST["GroupSetting(71)A"] = str_replace('|||','',$_POST["GroupSetting(71)A"]);
			$_POST["GroupSetting(71)B"] = str_replace(',','',$_POST["GroupSetting(71)B"]);
			$_POST["GroupSetting(71)B"] = str_replace('|||','',$_POST["GroupSetting(71)B"]);
			$_POST["GroupSetting(71)C"] = str_replace(',','',$_POST["GroupSetting(71)C"]);
			$_POST["GroupSetting(71)C"] = str_replace('|||','',$_POST["GroupSetting(71)C"]);
			$_POST["GroupSetting(71)D"] = str_replace(',','',$_POST["GroupSetting(71)D"]);
			$_POST["GroupSetting(71)D"] = str_replace('|||','',$_POST["GroupSetting(71)D"]);
			$mgrouppermission .= ',' .$_POST["GroupSetting(71)A"]. $lang['main_str_16'] .$_POST["GroupSetting(71)B"]. $lang['main_str_16'] .$_POST["GroupSetting(71)C"]. $lang['main_str_16'] .$_POST["GroupSetting(71)D"];
		}else{
			$mgrouppermission .= ',' .$issetting;
		}
		$sum_CheckGroupSetting+=intval($_POST["CheckGroupSetting($i)"]);
	}
	return $mgrouppermission;
}
//重新整理版面的权限数据
function reload_isgroupsetting($boardid){
	global $db,$dv;
	$query=$db->query("select groupid from ".$dv."boardpermission where boardid=".intval($boardid)."");
	$isgroupsetting='';
	while($groupidlist = $db->fetch_array($query)) {
		if($isgroupsetting==''){
			$isgroupsetting=$groupidlist['groupid'];
		}else{
			$isgroupsetting.=','.$groupidlist['groupid'];
		}
	}
	$query=$db->query("select uc_userid from ".$dv."useraccess where uc_boardid=".intval($boardid)."");
	while($useridlist = $db->fetch_array($query)) {
		if($isgroupsetting==''){
			$isgroupsetting='0_'.$useridlist['uc_userid'];
		}else{
			$isgroupsetting.=','.'0_'.$useridlist['uc_userid'];
		}
	}
	$db->query("update ".$dv."board set isgroupsetting='".$isgroupsetting."' where boardid=".intval($boardid)."");
}

function sysgroupname($parentgid){
	global $lang,$_DCACHE;
	if ($lang['main_str_10']==''){
		$lang = load_lang($lang, 'grouppermission',ROOT_PATH.'templates/lang/'.$_DCACHE['settings']['lang'].'/');
	}
	switch($parentgid){
		case 1:
			return $lang['main_str_10'];
			break;
		case 2:
			return $lang['main_str_11'];
			break;
		case 3:
			return $lang['main_str_12'];
			break;
		case 4:
			return $lang['main_str_13'];
			break;
		case 5:
			return $lang['main_str_14'];
			break;
		case 0:
			return $lang['main_str_15'];
			break;
	}
}
?>