<?php
if( !defined('ISDVBBS') ){
	header('HTTP/1.0 404 Not Found');
	exit;
}
?>
<br>
<div id="Select_Group" style="position:absolute; display:none; top:50px; left:100px; width:320px;">
<table width="300" border=0><tr><td class="forumrow1">
<select name="selgroupid[]" id="selgroupid" size="28" style="width:100%" multiple>
<?
	if(!empty($group_list)){
		if(is_array($group_list)){
			foreach($group_list as $g_arr){
?>
<option value="<?=$g_arr['usergroupid']?>" <?If (strpos(",".$g_arr['usergroupid'].",",$groupid)!==false) echo "selected"?>> <? echo sys_groupname($g_arr['parentgid'])?> -- <?=$g_arr['title']?>--<?=$g_arr['usertitle']?></option>
<?
			}
		}
	}
?>
</select>
</td></tr>
<tr><td class="forumrow1">
<input type="button" class="button" value="<?=$lang['plus.info9']?>" onclick="getGroup('Select_Group')"> <?=$lang['plus.info10']?>
</td></tr>
</table>
</div>
<?if($action=="add"){
?>
<table border="0" cellspacing="1" cellpadding="1"  align="center" class="tableborder">
  <tr>
    <td class="tit1" colspan="2"><?=$lang['plus.info125']?> <?=$lang['plus.info11']?></td>
  </tr>
  <tr>
	<td height="23" class="forumrow" style="text-align:center;"><input type="submit" name="Submit" value="<? echo $lang['plus.info127']?>" style="color: #FF0000;width:80px;height:50px;border:1px outset;"></td>
    <td class="forumrow" height="25"><?=$lang['plus.info64']?></td>
  </tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" class="tableborder">
<tr>
<td height="25" align="center" <?if($action==''){echo 'bgcolor="#C9DEFA"';}else{echo 'bgcolor="#F1F3F5"';}?>><a href="?action="><font color="<?if($action==''){echo 'red';}else{echo '#000000';}?>"><?=$lang['plus.info13']?></font></a></td>
<td height="25" align="center" <?if($action=='add' or $action==''){echo 'bgcolor="#C9DEFA"';}else{echo 'bgcolor="#F1F3F5"';}?>><a href="?action=add"><font color="<?if($action=='add' or $action==''){echo 'red';}else{echo '#000000';}?>"><?=$lang['plus.info67']?></font></a></td>
<td height="25" align="center" <?if($action=='post_data'){echo 'bgcolor="#C9DEFA"';}else{echo 'bgcolor="#F1F3F5"';}?>><a href="?action=post_data"><font color="<?if($action=='post_data'){echo 'red';}else{echo '#000000';}?>"><?=$lang['plus.info93']?></font></a></td>
<td height="25" align="center" <?if($action=='get_data'){echo 'bgcolor="#C9DEFA"';}else{echo 'bgcolor="#F1F3F5"';}?>><a href="?action=get_data"><font color="<?if($action=='get_data'){echo 'red';}else{echo '#000000';}?>"><?=$lang['plus.info107']?></font></a></td>
</tr>
</table>
		<table border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder">
		<form name="form1" method="post" action="?action=addok">
		  <tr>
			<td class="tdtit"><?=$lang['plus.info125']?> <?=$lang['plus.info14']?></td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25"><?=$lang['plus.info15']?><input type=text size="50" name="title"> <?=$lang['plus.info16']?></td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25"><?=$lang['plus.info17']?> <?=$lang['plus.info18']?>  <Input type="radio" name="isuse" value="1" checked>  <?=$lang['plus.info19']?>  <input type="radio" name="isuse" value="0" >
			</td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25"><?=$lang['plus.info20']?>
			<Select name="stype" size="1">
			<?
				$sql=$db->query("SELECT id,plus_name FROM {$dv}plus WHERE plus_type='0'");
				$rows=$db->num_rows($sql);				
				if($rows<=0){
					echo "<option value=0>".$lang['plus.info21']."</option>";
				}
				else{
					echo "<option value=0>".$lang['plus.info21']."</option>";
					while ($arr=$db->fetch_array($sql)){
						echo "<option value=".$arr['id'].">".$arr['plus_name']."</option>";
					}
				}
			?>
			</select><?=$lang['plus.info22']?><br>
			</td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25"><?=$lang['plus.info23']?>
			<input type=text size="50" name="readme"> <?=$lang['plus.info24']?> </td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25"><?=$lang['plus.info25']?>
			<select name="windowtype" size="1">
			<option value="0"><?=$lang['plus.info26']?></option>
			<option value="1"><?=$lang['plus.info27']?></option>
			<option value="2"><?=$lang['plus.info28']?></option>
			<option value="3"><?=$lang['plus.info29']?></option>
			</select>&nbsp;&nbsp;
			<?=$lang['plus.info30']?><input type=text name="windowwidth" value="0" size="5">
			&nbsp;&nbsp;
			<?=$lang['plus.info31']?><input type=text name="windowheight" value="0" size="5">
			</td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25"><?=$lang['plus.info32']?>
			<input type=text size="50" name="url"></td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25"><?=$lang['plus.info33']?>
			<input type=text size="50" name="plus_adminpage">
			</td>
		  </tr>
		  <tr>
			<td class="tit1"><?=$lang['plus.info125']?> <?=$lang['plus.info34']?></td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25"><?=$lang['plus.info35']?>&nbsp;&nbsp;<input type=text name="plusid" value="newplus1" size="20"><?=$lang['plus.info36']?>
			<a href="http://bbs.dvbbs.net/dv_plusinfo.php" target="_blank" title="<?=$lang['plus.info42']?>" ><?=$lang['plus.info37']?></a> </td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25"><?=$lang['plus.info38']?>&nbsp;&nbsp; <?=$lang['plus.info18']?>  <Input type="radio" name="usetime" value="1">  <?=$lang['plus.info19']?>  <input type="radio" name="usetime" value="0" checked></td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25"><?=$lang['plus.info39']?>&nbsp;&nbsp; <input type=text name="timesetting" value="0|24" size="10"></td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25"><?=$lang['plus.info40']?>&nbsp;&nbsp; 
			<input type="text" name="groupid" value="" size="30"><?=$lang['plus.info41']?>
			<input type="button" class="button" value="<?=$lang['plus.info43']?>" onclick="getGroup('Select_Group');"></td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25"><?=$lang['plus.info44']?>&nbsp;&nbsp; <textarea  name="plusmaster" cols="50" rows="5" ></textarea><br><?=$lang['plus.info45']?></td>
		  </tr>
		  <tr>
			<td class="tit1"><?=$lang['plus.info125']?> <?=$lang['plus.info46']?></td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25"> <?=$lang['plus.info47']?>&nbsp;&nbsp;<input type=text name="plus_userpost" value="0" size="5"></td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25"> <?=$lang['plus.info48']?>&nbsp;&nbsp;<input type=text name="plus_userwealth" value="0" size="5"></td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25"> <?=$lang['plus.info49']?>&nbsp;&nbsp;<input type=text name="plus_userep" value="0" size="5"></td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25">  <?=$lang['plus.info50']?>&nbsp;&nbsp;<input type=text name="plus_usercp" value="0" size="5"></td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25"> <?=$lang['plus.info51']?>&nbsp;&nbsp;<input type=text name="plus_userpower" value="0" size="5"></td>
		  </tr>
		  <tr>
			<td class="tit1"><?=$lang['plus.info125']?> <?=$lang['plus.info52']?></td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25"> <?=$lang['plus.info53']?>&nbsp;&nbsp;<input type=text name="plus_adduserwealth" value="0" size="5"></td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25"><?=$lang['plus.info54']?>&nbsp;&nbsp;<input type=text name="plus_adduserep" value="0" size="5"></td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25"> <?=$lang['plus.info55']?>&nbsp;&nbsp;<input type=text name="plus_addusercp" value="0" size="5"></td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25"> <?=$lang['plus.info56']?>&nbsp;&nbsp;<input type=text name="plus_adduserpower" value="0" size="5"></td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25"><?=$lang['plus.info57']?></td>
		  </tr>
		  <tr>
			<td class="tit1"><?=$lang['plus.info125']?> <?=$lang['plus.info58']?></td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25">
			<textarea name="plus_setting" cols="60" rows="20">
<?=$lang['plus.info59']?>1=0
<?=$lang['plus.info59']?>2=0
<?=$lang['plus.info59']?>3=0
<?=$lang['plus.info59']?>4=0
<?=$lang['plus.info59']?>5=0
<?=$lang['plus.info59']?>6=0
<?=$lang['plus.info59']?>7=0
<?=$lang['plus.info59']?>8=0
<?=$lang['plus.info59']?>9=0
<?=$lang['plus.info59']?>10=0
<?=$lang['plus.info59']?>11=0
<?=$lang['plus.info59']?>12=0
<?=$lang['plus.info59']?>13=0
<?=$lang['plus.info59']?>14=0
<?=$lang['plus.info59']?>15=0
<?=$lang['plus.info59']?>16=0
<?=$lang['plus.info59']?>17=0
<?=$lang['plus.info59']?>18=0
<?=$lang['plus.info59']?>19=0
			</textarea>
			</td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25"><?=$lang['plus.info60'].":".$lang['plus.info61']?></td>
		  </tr>
		  <tr>
			<td class="forumrow1" height="25" style="text-align:center;"><input type="submit" class="button" name="submit" value=" <?=$lang['plus.info62']?> ">
			</td>
		  </tr>
 </form>
		</table>
<?}
if($action=="m_edit"){
	if(!empty($carte_list))	{
		if(is_array($carte_list)){
			foreach($carte_list as $plus_arr){
				$plus_setting=explode("|||",$plus_arr['plus_setting']);
				$p_set1=explode("|",$plus_setting[0]);
?>
<table border="0" cellspacing="1" cellpadding="1"  align="center" class="tableborder">
  <tr>
    <td class="tit1" colspan="2"><?=$lang['plus.info125']?> <?=$lang['plus.info63']?></td>
  </tr>
  <tr>  
	<td height="23" class="forumrow" style="text-align:center;"><input type="submit" name="Submit" value="<? echo $lang['plus.info127']?>" style="color: #FF0000;width:80px;height:50px;border:1px outset;"></td>
    <td class="forumrow" height="25"><?=$lang['plus.info64']?></td>
  </tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" class="tableborder">
<tr>
<td height="25" align="center" <?if($action==''){echo 'bgcolor="#C9DEFA"';}else{echo 'bgcolor="#F1F3F5"';}?>><a href="?action="><font color="<?if($action==''){echo 'red';}else{echo '#000000';}?>"><?=$lang['plus.info13']?></font></a></td>
<td height="25" align="center" <?if($action=='add' or $action==''){echo 'bgcolor="#C9DEFA"';}else{echo 'bgcolor="#F1F3F5"';}?>><a href="?action=add"><font color="<?if($action=='add' or $action==''){echo 'red';}else{echo '#000000';}?>"><?=$lang['plus.info67']?></font></a></td>
<td height="25" align="center" <?if($action=='post_data'){echo 'bgcolor="#C9DEFA"';}else{echo 'bgcolor="#F1F3F5"';}?>><a href="?action=post_data"><font color="<?if($action=='post_data'){echo 'red';}else{echo '#000000';}?>"><?=$lang['plus.info93']?></font></a></td>
<td height="25" align="center" <?if($action=='get_data'){echo 'bgcolor="#C9DEFA"';}else{echo 'bgcolor="#F1F3F5"';}?>><a href="?action=get_data"><font color="<?if($action=='get_data'){echo 'red';}else{echo '#000000';}?>"><?=$lang['plus.info107']?></font></a></td>
<td height="25" align="center" <?if($action=='m_edit'){echo 'bgcolor="#C9DEFA"';}else{echo 'bgcolor="#F1F3F5"';}?>><a href="?action=m_edit"><font color="<?if($action=='m_edit'){echo 'red';}else{echo '#000000';}?>"><?=$lang['plus.info68']?></font></a></td>
</tr>
</table>
		<table border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder">
		<form name="formedit" method="post" action="?action=editok&id=<?=$plus_arr['id']?>">
		  <tr>
			<td class="tdtit"><?=$lang['plus.info125']?> <?=$lang['plus.info68']?></td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25"><?=$lang['plus.info69']?><input type=text size="50" name="title" value="<?=$plus_arr['plus_name']?>"> <?=$lang['plus.info70']?></td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25"><?=$lang['plus.info71'].":".$lang['plus.info18']?>
			<Input type="radio" name="isuse" value="1" <?if(intval($plus_arr['isuse'])==1)echo "checked"?>> <?=$lang['plus.info19']?>  
			<input type="radio" name="isuse" value="0" <?if($plus_arr['isuse']==0)echo "checked"?>>
			</td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25"><?=$lang['plus.info20']?>
			<Select name="stype" size=1>
			<?
				$sql=$db->query("SELECT id,plus_name FROM {$dv}plus WHERE plus_type='0'");
				$rows=$db->num_rows($sql);				
				if($rows<=0){
					echo "<option value=0>".$lang['plus.info72']."</option>";
				}
				else{
					if($plus_arr['plus_type']==0){
						echo "<option value=0 selected>".$lang['plus.info72']."</option>";
					}
					else{
						echo "<option value=0>".$lang['plus.info72']."</option>";
						while ($arr=$db->fetch_array($sql)){
							if($GLOBALS['id']<>$arr['id']){
								echo "<option value=\"{$arr['id']}\"".($plus_arr['plus_type']==$arr['id']?" selected ":"").">".$arr['plus_name']."</option>";
							}
						}
					}
				}
			?>
			</select><?=$lang['plus.info73']?><br>
			</td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25"><?=$lang['plus.info23']?>
			<input type=text size="50" name="readme" value="<?=$plus_arr['plus_copyright']?>"> <?=$lang['plus.info75']?> </td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25"><?=$lang['plus.info25']?>
			<select name="windowtype" size="1">
			<option value="0" <?if($p_set1[0]==0)echo "selected"?>><?=$lang['plus.info77']?></option>
			<option value="1" <?if($p_set1[0]==1)echo "selected"?>><?=$lang['plus.info78']?></option>
			<option value="2" <?if($p_set1[0]==2)echo "selected"?>><?=$lang['plus.info79']?></option>
			<option value="3" <?if($p_set1[0]==3)echo "selected"?>><?=$lang['plus.info80']?></option>
			</select>&nbsp;&nbsp;
			<?=$lang['plus.info81']?><input type=text name="windowwidth" value="<?=$p_set1[1]?>" size="5">
			&nbsp;&nbsp;
			<?=$lang['plus.info82']?><input type=text name="windowheight" value="<?=$p_set1[2]?>" size="5">
			</td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25"><?=$lang['plus.info32']?>
			<input type=text size="50" name="url" value="<?=$plus_arr['mainpage']?>"></td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25"><?=$lang['plus.info74']?>
			<input type=text size="50" name="plus_adminpage" value="<?=$plus_arr['plus_adminpage']?>">
			</td>
		  </tr>
		  <tr>
			<td class="tit1"><?=$lang['plus.info125']?> <?=$lang['plus.info76']?></td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25"><?=$lang['plus.info83']?>&nbsp;&nbsp;
			<input type=text name="plusid" value="<?=$plus_arr['plus_id']?>" size="20"><?=$lang['plus.info84']?>
			<a href="http://bbs.dvbbs.net/dv_plusinfo.php" target="_blank" title="<?=$lang['plus.info85']?>" ><?=$lang['plus.info86']?></a> </td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25"><?=$lang['plus.info87']?>&nbsp;&nbsp; <?=$lang['plus.info18']?>  
			<?if(count($plus_setting)>2){
				$p_set3=explode(",",$plus_setting[3]);
			}?>
			<Input type="radio" name="usetime" value="1" <?if(intval($p_set3[0])==1)echo "checked"?>> <?=$lang['plus.info19']?> <input type="radio" name="usetime" value="0" <?if(intval($p_set3[0])==0)echo "checked"?>></td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25"><?=$lang['plus.info88']?>&nbsp;&nbsp; 
			<input type=text name="timesetting" value="<?=$p_set3[1]?>" size="10"></td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25"><?=$lang['plus.info89']?>&nbsp;&nbsp; 
			<input type=text name="groupid" value="<?echo str_replace("@",",",$p_set3[2])?>" size="30">&nbsp;
			<?=$lang['plus.info90']?>&nbsp;
			<input type="button" class="button" value="<?=$lang['plus.info91']?>" onclick="getGroup('Select_Group');"></td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25"><?=$lang['plus.info92']?>&nbsp;&nbsp; <textarea  name="plusmaster" cols="50" rows="5" ><? echo str_replace("|","\r\n",$p_set3[3])?></textarea><br><?=$lang['plus.info45']?></td>
		  </tr>
		  <tr>
			<td class="tit1"><?=$lang['plus.info125']?> <?=$lang['plus.info94']?></td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25"> <?=$lang['plus.info95']?>&nbsp;&nbsp;<input type=text name="plus_userpost" value="<?=$p_set3[4]?>" size="5"></td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25"> <?=$lang['plus.info96']?>&nbsp;&nbsp;<input type=text name="plus_userwealth" value="<?=$p_set3[5]?>" size="5"></td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25"> <?=$lang['plus.info97']?>&nbsp;&nbsp;<input type=text name="plus_userep" value="<?=$p_set3[6]?>" size="5"></td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25"> <?=$lang['plus.info98']?>&nbsp;&nbsp;<input type=text name="plus_usercp" value="<?=$p_set3[7]?>" size="5"></td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25"> <?=$lang['plus.info99']?>&nbsp;&nbsp;<input type=text name="plus_userpower" value="<?=$p_set3[8]?>" size="5"></td>
		  </tr>
		  <tr>
			<td class="tit1"><?=$lang['plus.info125']?> <?=$lang['plus.info100']?></td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25"> <?=$lang['plus.info101']?>&nbsp;&nbsp;<input type=text name="plus_adduserwealth" value="<?=$p_set3[9]?>" size="5"></td>
		  </tr>
		  <tr> 
			<td class="forumrow" height="25"> <?=$lang['plus.info102']?>&nbsp;&nbsp;<input type=text name="plus_adduserep" value="<?=$p_set3[10]?>" size="5"></td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25"> <?=$lang['plus.info103']?>&nbsp;&nbsp;<input type=text name="plus_addusercp" value="<?=$p_set3[11]?>" size="5"></td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25"> <?=$lang['plus.info104']?>&nbsp;&nbsp;<input type=text name="plus_adduserpower"value="<?=$p_set3[12]?>" size="5"></td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25"><?=$lang['plus.info57']?></td>
		  </tr>
		  <tr>
			<td class="tit1"><?=$lang['plus.info125']?> <?=$lang['plus.info105']?></td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25">
			<textarea name="plus_setting" cols="60" rows="20" style="text-align:left;">
<?
	if(count($plus_setting)>1){
		$p_set1_1=explode(",",$plus_setting[1]);
		$p_set1_2=explode(",",$plus_setting[2]);
		$count=count($p_set1_2);
		for($i=0;$i<$count;$i++){
			echo str_replace(" ","",$p_set1_2[$i])."=".str_replace(" ","",$p_set1_1[$i])."\r\n";
		}
	}
	else{
?>
<?=$lang['plus.info59']?>1=0
<?=$lang['plus.info59']?>2=0
<?=$lang['plus.info59']?>3=0
<?=$lang['plus.info59']?>4=0
<?=$lang['plus.info59']?>5=0
<?=$lang['plus.info59']?>6=0
<?=$lang['plus.info59']?>7=0
<?=$lang['plus.info59']?>8=0
<?=$lang['plus.info59']?>9=0
<?=$lang['plus.info59']?>10=0
<?=$lang['plus.info59']?>11=0
<?=$lang['plus.info59']?>12=0
<?=$lang['plus.info59']?>13=0
<?=$lang['plus.info59']?>14=0
<?=$lang['plus.info59']?>15=0
<?=$lang['plus.info59']?>16=0
<?=$lang['plus.info59']?>17=0
<?=$lang['plus.info59']?>18=0
<?=$lang['plus.info59']?>19=0
<?}?>
			</textarea>
			</td>
		  </tr>
		  <tr>
			<td class="forumrow" height="25"><?=$lang['plus.info106']?></td>
		  </tr>
		  <tr>
			<td class="forumrow1" height="25" style="text-align:center;"><input type="submit" class="button" name="submit" value=" <?=$lang['plus.info62']?> ">
			</td>
		  </tr>
 </form>
		</table>
<?
			}	
		}
	}
}
if($action=="" or $action=="get_data" or $action=="post_data"){?>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="tableborder">
<tr>
<td class="tit1" colspan="5"><?=$lang['plus.info125']?> <?=$lang['plus.info63']?></td>
</tr>
<tr>
<td height="23" class="forumrow" style="text-align:center;"><input type="submit" name="Submit" value="<? echo $lang['plus.info127']?>" style="color: #FF0000;width:80px;height:50px;border:1px outset;"></td>
<td height="23" colspan="4" class="forumrow"><?=$lang['plus.info12']?></td>
</tr>
<tr><td colspan="5">
<table border="0" cellspacing="0" cellpadding="0" style="width:100%">
<tr>
<td height="25" align="center" <?if($action=='add' or $action==''){echo 'bgcolor="#C9DEFA"';}else{echo 'bgcolor="#F1F3F5"';}?>><a href="?action=add"><font color="<?if($action=='add' or $action==''){echo 'red';}else{echo '#000000';}?>"><?=$lang['plus.info67']?></font></a></td>
<td height="25" align="center" <?if($action=='post_data'){echo 'bgcolor="#C9DEFA"';}else{echo 'bgcolor="#F1F3F5"';}?>><a href="?action=post_data"><font color="<?if($action=='post_data'){echo 'red';}else{echo '#000000';}?>"><?=$lang['plus.info93']?></font></a></td>
<td height="25" align="center" <?if($action=='get_data'){echo 'bgcolor="#C9DEFA"';}else{echo 'bgcolor="#F1F3F5"';}?>><a href="?action=get_data"><font color="<?if($action=='get_data'){echo 'red';}else{echo '#000000';}?>"><?=$lang['plus.info107']?></font></a></td>
</tr>
<tr><td colspan="5" class="tdtit">
<?=$lang['plus.info67']?>
</td></tr>
</table>
</td></tr>
<tr class="forumrow2">
<td align=center><?=$lang['plus.info15']?></td>
<td align=center><?=$lang['plus.info20']?></td>
<td align=center><?=$lang['plus.info108']?></td>
<td align=center><?=$lang['plus.info109']?></td>
<td align=center><?=$lang['plus.info110']?></td>
</tr>
<?
	if(!empty($carte_list)){
		if(is_array($carte_list)){
			foreach($carte_list as $m_arr){
				$p_setting=explode("|",$m_arr['plus_setting']);
?>
<tr class="forumrow">
<td height="25" align=center><?=$m_arr['plus_name']?></td>
<td height="25" align=center>
<? 
	if($m_arr['plus_type']==0){ 
		echo $lang['plus.info111'];
	}
	else {
		$sql1=$db->query("SELECT plus_name FROM {$dv}plus WHERE id=".$m_arr['plus_type']."");
		$list=$db->fetch_array($sql1);
		if($list['plus_name']=="" or $list['plus_name']==NULL){
			echo $lang['plus.info112'];
		}
		else{
			echo $list['plus_name'];
		}
	}
?>
</td>
<td height="25" align=center>
<?
	switch ($p_setting[0]){
		case 0:
			echo $lang['plus.info113'];
		break;
		case 1:
			echo $lang['plus.info27'];
		break;
		case 2:
			echo $lang['plus.info79'].$lang['plus.info126'].$lang['plus.info114'].$p_setting[1].",".$lang['plus.info115'].$p_setting[2];
		break;
		case 3:
			echo $lang['plus.info29'];
		break;
	}
?>
</td>
<td height="25" align=center>
<?if(intval($m_arr['isuse'])==1) echo "YES";else echo "NO";?>
</td>
<td height="25" align=center>
<?if($m_arr['plus_adminpage']<>"") echo "<a href=\"".$m_arr['plus_adminpage']."\" target=\"_self\"> ".$lang['plus.info116']." </a>";?> | 
<a href="?action=m_edit&id=<?=$m_arr['id']?>"><?=$lang['plus.info117']?></a>
<?if ($m_arr['plus_id']=='honor' or $m_arr['plus_id']=='dv_bank') {echo '';
}else{?> | <a href="?action=m_del&id=<?=$m_arr['id']?>"><?=$lang['plus.info118']?></a>
<?}?>
</td>
</tr>
<?
			}
		}
	}
?>
</table>
<?}?>