<?if($action=="deldate"){?>
<br>
<table width="100%"  border="0" cellspacing="0" cellpadding="0" class="tableborder">
<form name="form1" method="post" action="?action=check&editid=<?=$editid?>">
  <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&editid=<?=$editid?>">
  <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>
<table border="0" cellspacing="0" cellpadding="0"  align="center" class="indextableborder1">
<tr> 
<td class="tdtit" colspan="6"><?=$lang['tpl.str1'].' '.$form_tit1?></td>
</tr>
</table>
<div style="border:#E4E4EF 1px solid;margin-top:0px;" class="tableborder">
<form name="dv_board" id="dv_board" action="<?=$action?>" method="post" >
</div>
<div class="tableborder">
<div class="forumrow">
<div class="formtitle" style="width:150px;"><?=$lang['item_type_1']?></div>
<div style="float:left;"><input type="text" name="boardtype" id="boardtype" value="<?=$boardtype?>" style="width:200px;margin-left:5px;margin-top:1px;"/></div>
<div style="text-indent:12px;"><?=$lang['item_description_1']?></div>
</div>

<!--add by hj 20071217-->
<div class="forumrow">
<div class="formtitle" style="width:150px;"><?=$lang['item_ename']?></div>
<div style="float:left;"><input type="text" name="boardname" id="boardname" value="<?=$boardname?>" style="width:200px;margin-left:5px;margin-top:1px;" onChange="this.value=this.value.replace(/([^a-z0-9]+)+/i,'');"/></div>
<div style="text-indent:12px;"><?=$lang['item_ename_1']?></div>
</div>
<!--END add by hj 20071217-->

</div>
<div class="tableborder">
<div class="tit1">
<div style="float:left;text-indent:5px;"><?=$lang['tpl.str1']?></div><?=$lang['item_type_2']?></div>
<div class="td1" style="border-top:#E4E4EF 1px solid;"><textarea name="readme" id="readme" style="margin-left:10px;width:90%;height:50px;" rows="20" cols="20"><?=$readme?></textarea></div>
<div class="td" style="text-indent:24px;border-top:#E4E4EF 1px solid;"><?=$lang['item_description_2']?></div></div>
<div class="tableborder">
<div class="td1">
<div class="formtitle" style="width:150px;"><?=$lang['item_type_4']?></div><div>
<select name="parentid" id="parentid" style="margin:3px;;width:200px;"  >
<?=boardjumplist($parentid,$lang['b_info27'])?>
</select></div>
<div class="formtitle" style="width:150px;"></div><div>
<?=$lang['item_description_4']?></div>
</div>
</div>
<div class="tableborder">
<div class="forumrow">
<div class="formtitle" style="width:150px;"><?=$lang['item_type_7']?></div>
<div style="float:left;"><input type="text" name="boardmaster" id="boardmaster" value="<?=$boardmaster?>" style="width:200px;margin-left:5px;margin-top:1px;"/></div>
<div style="text-indent:12px;"><?=$lang['item_description_7']?></div>
</div>
</div>
<?if ($boardmaster != ''){?>
<div class="tableborder">
<div class="forumrow1">
<div class="formtitle" style="width:150px;"><?=$lang['item_type_8']?></div>
<div style="float:left;"><input type="radio" name="unset_master" value="0" style="margin:3px;" checked="checked"/></div>
<div style="float:left;"><?=$lang['unset_master1']?></div>
<div style="float:left;"><input type="radio" name="unset_master" value="1" style="margin:3px;" /></div>
<div style="float:left;"><?=$lang['unset_master2']?></div>
</div>
</div>
<?}else{?>
<input type="hidden" name="unset_master" id="unset_master" value="0" />
<?}?>
<div class="tableborder">
<div class="td1">
<div class="formtitle" style="width:150px;"><?=$lang['item_type_10']?></div><div>
<select name="setting_id" id="setting_id" style="margin:3px;width:200px;"  >
<?
while($ts = $db->fetch_array($query1)){
	echo "<option value=\"{$ts['id']}\"";
	if ( $setting_id == $ts['id'] ){
		echo ' selected';
	}
	echo ">{$ts['type']}</option>";
}
?>
</select><?=$lang['item_description_10']?></div>
</div>
</div>
<div class="tableborder">
<div class="td1">
<div class="formtitle" style="width:150px;"><?=$lang['item_type_11']?></div><div>
<select name="ads_id" id="ads_id" style="margin:3px;width:200px;"  >
<?
while($ts = $db->fetch_array($query2)){
	echo "<option value=\"{$ts['id']}\"";
	if ( $ads_id == $ts['id'] ){
		echo ' selected';
	}
	echo ">{$ts['type']}</option>";
}
?>
</select><?=$lang['item_description_11']?></div>
</div>
</div>
<div class="tableborder">
<div class="td1">
<div class="formtitle" style="width:150px;"><?=$lang['item_type_12']?></div><div>
<select name="audit_settings_id" id="audit_settings_id" style="margin:3px;width:200px;"  >
<option value="0"><?=$lang['item_type_12_1']?></option>
<?
while($ts = $db->fetch_array($query4)){
	echo "<option value=\"{$ts['id']}\"";
	if ( $audit_settings_id == $ts['id'] ){
		echo ' selected';
	}
	echo ">{$ts['type']}</option>";
}
?>
</select><?=$lang['item_description_12']?></div>
</div>
</div>
<div class="tableborder">
<div class="forumrow">
<div class="formtitle" style="width:150px;"><?=$lang['item_type_9']?></div>
<div style="float:left;"><input type="text" name="indeximg" id="indeximg" value="<?=$indeximg?>" style="width:250px;margin-left:5px;margin-top:1px;"/></div>
<div style="text-indent:12px;"><?=$lang['item_description_9']?></div>
</div>
</div>
<div class="tableborder">
<div class="td1">
<div class="formtitle" style="width:150px;"><?=$lang['item_type_5']?></div><div>
<select name="sid" id="sid" style="margin:3px;width:200px;"  >
<?
while($ts = $db->fetch_array($query3)){
	$ts['directory'] = str_replace('/templates/','templates/',$ts['directory']);
	echo "<option value=\"{$ts['directory']}{$ts['ename']}.css\"";
	if ( $cid == $ts['directory'].$ts['ename'].'.css' ){
		echo ' selected';
	}
	echo ">{$ts['name']}[{$ts['tplname']}]</option>";
}
?>
</select></div>
</div>
</div>
<div class="tableborder">
<div class="forumrow1">
<div class="formtitle" style="width:150px;"><font color="red"><?=$lang['item_type_13']?></font></div>
<div style="float:left;"><input type="radio" name="allowpost" value="0" style="margin:3px;"<?if($allowpost==0){echo ' checked';}?>/></div>
<div style="float:left;"><?=$lang['item_type_13_1']?></div>
<div style="float:left;"><input type="radio" name="allowpost" value="1" style="margin:3px;"<?if($allowpost==1){echo ' checked';}?>/></div>
<div style="float:left;"><?=$lang['item_type_13_2']?></div>
<div style="float:left;"><input type="radio" name="allowpost" value="2" style="margin:3px;"<?if($allowpost==2){echo ' checked';}?>/></div>
<div style="float:left;"><?=$lang['item_type_13_3']?></div>
</div>
</div>
<div class="tableborder">
<div class="forumrow1">
<div class="formtitle" style="width:150px;"><?=$lang['item_type_14']?></div>
<div style="float:left;"><input type="radio" name="ishidden" value="0" style="margin:3px;"<?if($ishidden==0){echo ' checked';}?>/></div>
<div style="float:left;"><?=$lang['item_type_14_1']?></div>
<div style="float:left;"><input type="radio" name="ishidden" value="1" style="margin:3px;"<?if($ishidden==1){echo ' checked';}?>/></div>
<div style="float:left;"><?=$lang['item_type_14_2']?></div>
</div>
</div>
<div class="tableborder">
<div class="forumrow1">
<div class="formtitle" style="width:150px;"><?=$lang['item_type_15']?></div>
<div style="float:left;"><input type="radio" name="ischeckout" value="0" style="margin:3px;" onclick="showtable();"<?if($ischeckout==0){echo ' checked';}?>/></div>
<div style="float:left;"><?=$lang['item_type_15_1']?></div>
<div style="float:left;"><input type="radio" name="ischeckout" value="1" style="margin:3px;" onclick="showtable();"<?if($ischeckout==1){echo ' checked';}?>/></div>
<div style="float:left;"><?=$lang['item_type_15_2']?></div>
</div>
</div>
<div class="tableborder">
<div class="forumrow">
<div class="formtitle" style="width:150px;"><?=$lang['item_type_17']?></div>
<div style="float:left;"><input type="radio" name="showtype" value="0" style="margin:3px;"<?if($showtype==0){echo ' checked';}?>/></div>
<div style="float:left;"><?=$lang['item_type_18']?></div>
<div style="float:left;"><input type="radio" name="showtype" value="1" style="margin:3px;"<?if($showtype==1){echo ' checked';}?>/></div>
<div style="float:left;"><?=$lang['item_type_19']?></div>
<div style="float:left;"><input type="radio" name="showtype" value="2" style="margin:3px;"<?if($showtype==2){echo ' checked';}?>/></div>
<div style="float:left;"><?=$lang['item_type_20']?></div>
<div style="text-indent:12px;"><?=$lang['item_type_21']?></div>
</div>
</div>
<div class="tableborder">
<div class="forumrow">
<div class="formtitle" style="width:150px;"><?=$lang['b_info28']?></div>
<div style="float:left;"><input type="radio" name="showboard" value="0" style="margin:3px;"<?if($showboard==0){echo ' checked';}?>/></div>
<div style="float:left;"><?=$lang['b_info29']?></div>
<div style="float:left;"><input type="radio" name="showboard" value="1" style="margin:3px;"<?if($showboard==1){echo ' checked';}?>/></div>
<div style="float:left;"><?=$lang['b_info30']?></div>
</div>
</div>
<div class="tableborder">
<div class="forumrow">
<div class="formtitle" style="width:150px;"><?=$lang['b_info31']?></div>
<div style="float:left;"><input type="radio" name="showboardmaster" value="0" style="margin:3px;"<?if(empty($showboardmaster)){echo ' checked';}?>/></div>
<div style="float:left;"><?=$lang['item_type_14_2']?></div>
<div style="float:left;"><input type="radio" name="showboardmaster" value="1" style="margin:3px;"<?if($showboardmaster==1){echo ' checked';}?>/></div>
<div style="float:left;"><?=$lang['item_type_14_1']?></div>
</div>
</div>
<div class="tableborder" id="table_1">
<div class="tit1">
<div style="float:left;text-indent:5px;"><?=$lang['tpl.str1']?></div><?=$lang['item_type_16']?></div>
<div class="td1" style="border-top:#E4E4EF 1px solid;"><textarea name="boarduser" id="boarduser" style="margin-left:10px;width:90%;height:100px;" rows="20" cols="20"><?=$boarduser?></textarea></div>
<div class="td" style="text-indent:24px;border-top:#E4E4EF 1px solid;"><?=$lang['item_type_16_1']?></div>
<div class="td" style="text-indent:24px;border-top:#E4E4EF 1px solid;"><?=$lang['item_type_16_2']?></div>
<div class="td" style="text-indent:24px;border-top:#E4E4EF 1px solid;"><?=$lang['item_type_16_3']?></div></div>
<div class="tableborder">
<div class="tit1">
<div style="float:left;text-indent:5px;"><?=$lang['tpl.str1']?></div><?=$lang['item_type_3']?></div>
<div class="td1" style="border-top:#E4E4EF 1px solid;"><textarea name="rules" id="rules" style="margin-left:10px;width:90%;height:100px;" rows="20" cols="20"><?=$rules?></textarea></div>
<div class="td" style="text-indent:24px;border-top:#E4E4EF 1px solid;"><?=$lang['item_description_3']?></div></div>
<div class="tableborder">
<div class="forumrow1" style="text-align:center;height:30px;">
<input type="submit" class="button" name="submit" id="submit" value="<?=$lang['submit']?>" style="margin-top:4px;" />
</div>
</form>
</div>
<script language="javascript" type="text/javascript">
showtable();
</script>
<?}?>