<?php include 'header.tpl.php';?>
<script>
function me_change(msgval){
	if(msgval){
		obj_x=document.getElementById("id_htmldir");
		obj_x.style.display="";
	}else{
		obj_x=document.getElementById("id_htmldir");
		obj_x.style.display="none";
	}
}
</script>
<div class="pMenu">
<li><a href="javascript:frmExecute('');">管理</a></li>
<li><a href="javascript:frmExecute('add');">添加</a></li>
<li class="sel"><a href="javascript:frmExecute('edit');">编辑</a></li>
<li class="info"><a href="javascript:inc_show_help(212);" style="color:#ff0000">帮助</a></li>
</div>
<div>
<table class='pEditTable'>
<tr class='pTabTitRow'>
	<td class='pTabTitCol' colspan="2">&nbsp;</td></tr>
<tr><td class="pTabColName">频　道：</td><td class="pTabColVal"><input type="input" name="channel_name" value="<?php echo $arr_channel["channel_name"];?>"></td>
	</tr>
<tr><td class="pTabColName">生成HTML：</td><td class="pTabColVal"><input type="checkbox" name="channel_savehtml" value="1" onclick="me_change(this.checked);" <?php if($arr_channel["channel_savehtml"]==1) echo "checked";?>>　<span id="id_htmldir"  <?php if($arr_channel["channel_savehtml"]!=1) echo "style='display:none'";?>>目录分布格式：<select name="channel_htmldir_split"><option value=''>无</option><option value='m'<?php if($arr_channel["channel_htmldir_split"]=="m") echo " selected";?>>Y-m</option><option value='d'<?php if($arr_channel["channel_htmldir_split"]=="d") echo " selected";?>>Y-m-d</option><option value='y'<?php if($arr_channel["channel_htmldir_split"]=="y") echo " selected";?>>Y</option></select>&nbsp;&nbsp;路　径：<input type="input" name="channel_htmldir" value="<?php echo $arr_channel["channel_htmldir"];?>" size=28> 相对根目录路径，前面请加"/"</span></td>
	</tr>
<tr><td class="pTabColName">频道模板：</td><td class="pTabColVal"><input type="input" name="channel_tpl" value="<?php echo $arr_channel["channel_tpl"];?>" size=50> <input type="button" name="btntemp" value="选择" class="pBtn" onclick="dialog_winTemplates('channel_tpl');"></td>
	</tr>
<tr><td class="pTabColName">文章模板：</td><td class="pTabColVal"><input type="input" name="channel_article_tpl" value="<?php echo $arr_channel["channel_article_tpl"];?>" size=50> <input type="button" name="btntemp" value="选择" class="pBtn" onclick="dialog_winTemplates('channel_article_tpl');"></td>
	</tr>
	<tr><td colspan=2 class="pTabSubmit">
	<?php if($obj_ctl_limit->chk_act("save")){?><input type="button" name="subok" value="保 存" class="pSubmit" onclick="frmExecute('save')"><?php }else{?>
	<font color="red">没有保存权限！</font>
	<?php }?>
	　<input type="button" name="subok" value="取　消" class="pCancel" onclick="frmExecute('')"></td></tr>
</table>
</div>
<?php include 'footer.tpl.php';?>		