<?php if (!defined('APP_PATH')) exit;?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="http://127.0.0.5/magic/Data/Public/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://127.0.0.5/magic/Data/Public/js/jquery.min.js"></script>
<script src="http://127.0.0.5/magic/Data/Public/js/main.js"></script>
<script src="http://127.0.0.5/magic/Data/Public/js/dtree.js"></script>
</head>
<body>
<div class="container">
<iframe id="blank" name="blank"  style="display:none" ></iframe>
<form method="post" target="blank" action="?r=class-index-quick">
<input type="hidden" name="catid"  value="<?php echo $class['catid'];?>">
<body class="formbox">
<table border="0" cellspacing="0" cellpadding="0" class="forminfo formtable">
		<tr>
		<td height="50" align="right">上级分类：</td>
		<td>
			<select name="pid"  class="selectbox" >
				<option value="0" <?php if($vo['id']==$class['pid']){ ?> selected<?php }?>>一级栏目</option>
				<?php foreach ($list as $vo){?>
				<option value="<?php echo $vo['catid'];?>"<?php if($vo['catid']==$class['pid']){ ?> selected<?php }?>><?php echo $vo['_name'];?></option>
				<?php }?>
			</select>
		</td>
	</tr>
	<tr>
		<td height="40" align="right">内容模型：</td>
		<td>
			<select name="model" class="selectbox">
				<?php foreach ($model as $vo){?>
				<option value="<?php echo $vo['value'];?>"<?php if($vo['value']==$class['model']){ ?> selected<?php }?>><?php echo $vo['model'];?>&nbsp;[<?php echo $vo['value'];?>]</option>
				<?php }?>
			</select>
		</td>
	</tr>
		<td height="40" align="right">栏目主名称：</td><td ><input type="text" name="name" value="<?php echo $class['name'];?>" class="insty" size="35"></td>
	</tr>
	</tr>
		<td height="40" align="right">栏目副名称：</td><td ><input type="text" name="subname" value="<?php echo $class['subname'];?>" class="insty" size="35"></td>
	</tr>
	<tr>
		<td height="40" align="right">排列顺序：</td><td><input type="text" name="sorter" value="<?php echo $class['sorter'];?>" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" maxlength="5" class="insty" size="8"><cite>排序仅能为数字</cite></td>
	<tr>
	<tr>
		<td height="40" align="right">是否设为导航：</td><td>&nbsp;是&nbsp;<input type="radio" name="ismenu" value="1" <?php if($class['ismenu']==1){ ?> checked<?php }?>>&nbsp;否&nbsp;<input type="radio" name="ismenu" value="0" <?php if($class['ismenu']==0){ ?> checked<?php }?>></td>
	</tr>
	<tr>
		<td height="40" align="right">是否隐藏栏目：</td><td>&nbsp;是&nbsp;<input type="radio" name="status" value="0" <?php if($class['status']==0){ ?> checked<?php }?>>&nbsp;否&nbsp;<input type="radio" name="status" value="1" <?php if($class['status']==1){ ?> checked<?php }?>></td>
	</tr>
	<tr>
		<td height="40" align="right">文件保存路径：</td><td ><input type="text" name="savepath" value="<?php echo $class['savepath'];?>"  class="insty" size="30"><cite>留空则自动生成拼音</cite></td>
	</tr>
	<tr>
		<td height="30" align="right">栏目列表选项：</td><td>&nbsp;&nbsp;<input type="radio" id="l1" name="listoption" value="0" <?php if($class['listoption']==0){ ?> checked<?php }?>><label for="l1">链接到默认页</label>&nbsp;&nbsp;<input type="radio" id="l2" name="listoption" value="1" <?php if($class['listoption']==1){ ?> checked<?php }?>><label for="l2">链接到列表第一页</label></td>
	</tr>
	<tr>
		<td align="right">栏目属性：</td><td>
		<table border="0" cellspacing="0" cellpadding="0" style="height:0" width="100%" align="center">
		     <tr>
			   <td width="10"><input type="radio" id="s1" name="attribute" value="1" <?php if($class['attribute']==1 || empty($class['attribute'])){ ?> checked<?php }?>></td><td><label for="s1">最终列表栏目（允许在本栏目发布文档）</label></td>
		     <tr>
			  <tr>
			   <td><input type="radio" id="s2" name="attribute" value="2" <?php if($class['attribute']==2){ ?> checked<?php }?>></td><td><label for="s2">频道封面（栏目本身不允许发布文档）</label></td>
		     <tr>
			  <tr>
			   <td><input type="radio" id="s3" name="attribute" value="3" <?php if($class['attribute']==3){ ?> checked<?php }?>></td><td><label for="s3">外部连接（在"文件保存目录"处填写网址）</label></td>
		     <tr>
		</table>
		</td></tr>
</table>
</div>
<table style="margin:5px auto">
	<tr>
		<td align="center" height="40" colspan="10"><input type="submit" class="scbtn7" value="保存">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" value="重置" class="scbtn8"></td>
	</tr>
</table>
</body>
</html>