<?php
	$QueryString= "";
	if(isset($_GET["groupid"]))
		$QueryString.= "&groupid=".$_GET["groupid"];

	if($action=="deldate"){
?>
<br>
<table width="100%"  border="0" cellspacing="0" cellpadding="0" class="tableborder">
<form name="form1" method="post" action="?action=check<?=$QueryString?>">
  <tr>
    <td class="tit1"><?=$lang['tpl.str1']?><?=$GLOBALS['board_type']?><?=$lang['b_info12']?></td>
  </tr>
  <tr>
    <td height="25" class="forumrow1"><li><?=$lang['b_info13']?><?=$str1?></li><br><li><?=$lang['b_info14']?><?=$str3?></li><br><?=$str2?><li><?=$lang['b_info15']?><B><?=$str4?></B><?=$lang['b_info16']?></li></td>
  </tr>
  <tr>
    <td height="40" class="forumrow"><?=$lang['b_info18']?>&nbsp;<b><?=$board_type?></b>&nbsp;<?=$lang['b_info20']?>&nbsp;
	<select name="tablelist">
	<option value="all"><?=$lang['b_info17']?></option>
	<?
		foreach($t_list as $t_arr){
	?>
		<option value="<?=$t_arr['tablename']?>"><?=$t_arr['tabletype']?></option>
	<?
		}
	?>
    </select>&nbsp;&nbsp;<?=$lang['b_info19']?>&nbsp;&nbsp;
      <input name="date_num" type="text" size="10" value="365">&nbsp;&nbsp;<?=$lang['b_info21']?>
      <input type="submit" name="Submit" class="button" value="<?=$lang['b_info5']?>"></td>
  </tr>
  <tr height="40" class="forumrow1">
    <td><?=$lang['b_info6']?></td>
  </tr>
</form>
</table>
<?}elseif($action=='miniclass'){?>
<br>
<table width="100%"  border="0" cellspacing="1" cellpadding="1" class="tableborder">
<form name="form1" method="post" action="?action=saveminiclass<?=$QueryString?>">
  <tr>
    <td class="tit1" colspan=2><?=$lang['tpl.str1']?><?=$board_type?> <?=$lang['b_info23']?></td>
  </tr>
<?
	if ( $ismini == 1 ){
		$i = 0;
		foreach($minilist as $val){
			if ( $val != '' ){
			$i++;
			$order = str_replace('$i', $i, $lang['b_info24']);
?>
  <tr>
    <td class="forumrow" style="text-align:right;padding-right:5px;"><?=$order?></td>
    <td class="forumrow" height=25><input type=text name="miniclass[]" size=30 value="<?=htmlspecialchars($val)?>"></td>
  </tr>
<?
			}
		}
	}
?>
  <tr>
    <td class="forumrow" style="text-align:right;padding-right:5px;"><font color=blue><?=$lang['b_info25']?></font></td>
    <td class="forumrow" height=25><input type=text name="newminiclass" size=30></td>
  </tr>
  <tr>
    <td class="forumrow1" style="text-align:right;padding-right:5px;"></td>
    <td class="forumrow1" height=25><input type=submit name="submit" value="<?=$lang['b_info26']?>"></td>
  </tr>
</form>
</table>
<?}else{?>
<SCRIPT LANGUAGE="JavaScript">
<!--
function showtable(){
	if (document.getElementById("ischeckout").checked){
		document.getElementById('table_1').style.display='none';
		}else{
		document.getElementById('table_1').style.display='block';
		}
	}
//-->
</SCRIPT>
</script>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="indextableborder1">
<tr> 
<td class="tdtit" colspan="10"><?=$lang['item_type1']?></td>
</tr>
	<form method="POST" action="indivgroup.php?action=savenew<?=$QueryString?>" name="groupform">
	<input type="hidden" name="groupid" value="<?=$GroupID?>">
	<tr> 
		<td width="20%" class=td1><b><?=$lang['item_type1_1']?></b></td>
		<td width="80%" class=td1>
		<input type="text" name="GroupName" size="35" value="<?=$GroupName?>">
		</td>
	</tr>
	<tr> 
		<td width="20%" class=td1><b><?=$lang['item_type1_2']?></b></td>
		<td width="80%" class=td1>
		<input type="text" name="AppUserName" size="35" value="<?=$AppUserName?>">
		</td>
	</tr>
	<tr> 
		<td width="20%" class=td1><b><?=$lang['item_type1_3']?></b></td>
		<td width="80%" class=td1>
		<textarea rows="4" cols="35" name="GroupInfo"><?=$GroupInfo?></textarea>
		</td>
	</tr>
	<tr> 
		<td width="20%" class=td1><b><?=$lang['item_type1_5']?></b></td>
		<td width="80%" class=td1>
		<input type="text" name="LimitUser" size="35" value="<?=$LimitUser?>">
		</td>
	</tr>
	<tr> 
		<td width="20%" class=td1><b><?=$lang['item_type1_6']?></b></td>
		<td width="80%" class=td1>
			<div style="float:left;"><input type="radio" name="GroupStats" value="1" style="margin:3px;"<?if($GroupStats==1 || $GroupStats==''){echo ' checked';}?>/></div>
			<div style="float:left;"><?=$lang['item_type_1']?></div>
			<div style="float:left;"><input type="radio" name="GroupStats" value="2" style="margin:3px;"<?if($GroupStats==2){echo ' checked';}?>/></div>
			<div style="float:left;"><?=$lang['item_type_2']?></div>
			<div style="float:left;"><input type="radio" name="GroupStats" value="3" style="margin:3px;"<?if($GroupStats==3){echo ' checked';}?>/></div>
			<div style="float:left;"><?=$lang['item_type_3']?></div>
		</td>
	</tr>
	<tr> 
		<td width="20%" class=td1><b><?=$lang['item_type1_7']?></b></td>
		<td width="80%" class=td1>
			<div style="float:left;"><input type="radio" name="Locked" value="0" style="margin:3px;"<?if($Locked==0){echo ' checked';}?>/></div>
			<div style="float:left;"><?=$lang['item_type_4']?></div>
			<div style="float:left;"><input type="radio" name="Locked" value="1" style="margin:3px;"<?if($Locked==1){echo ' checked';}?>/></div>
			<div style="float:left;"><?=$lang['item_type_5']?></div>
		</td>
	</tr>
	<tr>
		<td width="20%" class=td1><b><?=$lang['item_type1_8']?></b></td>
		<td width="80%" class=td1>
			<div style="float:left;"><input type="radio" name="ViewFlag" value="0" style="margin:3px;"<?if($ViewFlag==0){echo ' checked';}?>/></div>
			<div style="float:left;"><?=$lang['item_type_6']?></div>
			<div style="float:left;"><input type="radio" name="ViewFlag" value="1" style="margin:3px;"<?if($ViewFlag==1){echo ' checked';}?>/></div>
			<div style="float:left;"><?=$lang['item_type_7']?></div>
		</td>
	</tr>
	<tr><td colspan="2" style="text-align:center;" class="forumrow"><?=$lang['item_description']?></td></tr>
	<tr>
		<td height="23" colspan="2" class="forumrow"><input type="submit" class="button" name="submit" id="submit" value="<?=$lang['submit']?>" style="margin-top:4px;" />
	</td>
	</tr>
	</form>
</table>
<?}?>