<?php include 'header.tpl.php';?>
<div class="pMenu">
<?php foreach($arr_model as $item){?>
<li <?php if($item["model_id"]==$get_model_id) echo 'class="sel"';?>><a href="javascript:frmSet('model_id','<?php echo $item["model_id"];?>');frmExecute('');"><?php echo $item["model_name"];?></a></li>
<?php }?>
<li class="info"><a href="javascript:inc_show_help(192);" style="color:#ff0000">帮助</a></li>
</div>
<table class='pTable' id="objcategory">
<tr class='pTabTitRow'>
	<td class='pTabTitCol'>参数说明</td><td class='pTabTitCol'>值</td>
	<td class='pTabTitCol'>变量</td><td class='pTabTitCol'>操作</td></tr>
<?php foreach($arr_config as $item){?>
<tr class='pTabRow'>
	<td class='pTabCol' width="250"><input type="hidden" name="selid[]" value="<?php echo $item["config_id"]?>" size="5"><input type="hidden" name="config_intro[]" value="<?php echo $item["config_intro"]?>" size="5"><?php echo $item["config_intro"]?></td><td class='pTabCol'>
	<?php if($item["config_type"]=="textarea"||$item["config_type"]=="array"){?>
	<textarea name='config_val[]' id='config_val[]' style='width:400px;height:120px' onpropertychange='this.style.posHeight=this.scrollHeight+2'><?php echo $item["config_val"];?></textarea>
	<?php }else if($item["config_type"]=="list"){?>
			<select name="config_val[]">
			<?php foreach($item["config_list"] as $item2=>$key2){?>
			<option value="<?php echo trim($item2)?>" <?php if(trim($item2)==trim($item["config_val"]))echo "selected";?>><?php echo $key2?></option>
			<?php }?>
			</select>
	<?php }else if($item["config_type"]=="chk"){?>
			<?php foreach($item["config_list"] as $item2){?>
			<input type="checkbox" name="config_val_<?php echo $item["config_id"];?>[]" value="<?php echo $item2?>" <?php if(strstr("|".$item["config_val"]."|","|".trim($item2)."|"))echo "checked";?>><?php echo $item2?>
			<?php }?>
			<input type="hidden" name="config_val[]" value="">
	<?php }else if($item["config_type"]=="bool"){?>
			<input type="radio" name="config_val_bool_<?php echo $item["config_id"];?>" value="0" checked>否 <input type="radio" name="config_val_bool_<?php echo $item["config_id"];?>" value="1" <?php if(intval($item["config_val"])==1) echo "checked";?>>是
			<input type="hidden" name="config_val[]" value="">
	<?php }else{?>
		<input type="input" name="config_val[]" value="<?php echo $item["config_val"]?>" size=40>
	<?php }?>
	</td><td class='pTabCol'><input type="hidden" name="config_name[]" value="<?php echo $item["config_name"]?>" size="5"><?php echo $item["config_name"]?></td>
	<td class='pTabCol' onmousedown="frmSet('id','<?php echo $item['config_id'];?>')">
	<?php if($obj_ctl_limit->chk_act("edit")){?><a href="javascript:frmExecute('edit');">编辑</a><?php }?>　<?php if($obj_ctl_limit->chk_act("del")){?><a href="javascript:frmExecute('del');">注消</a><?php }?></td></tr>
<?php }?>
</table>
<div class="pFootAct">
<li><?php if($obj_ctl_limit->chk_act("update")){?>&nbsp;<input type="button" name="btnExe" value="更新" onclick="frmExecute('update');" class="pBtn"><?php }?>　<?php if($obj_ctl_limit->chk_act("add")){?><a href="javascript:frmExecute('add');">添加</a><?php }?></li>
</div>
<script>
areabox_autoheight_m(document.frmMain,"config_val");
</script>

<?php include 'footer.tpl.php';?>		
