
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head><title><!--{$UUDEV_PAGE_TITLE}--></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link href="css/admin.css" rel="stylesheet"/>
    </head>
	<style>
		.ubbADDright td { padding:3px;}
	</style>
    <body>
		<div class="UBBbuju_title">
			修改频道
		</div>
    	<form name="channelForm" method="post" id="channelForm" action="./index.php?r=layout.edit_channel&id=<!--{$data.id}-->">
        <input type="hidden" name="data[Channel][channel_type]" value="1">
		<input type="hidden" id="id" value="<!--{$data.id}-->">
		<input type="hidden" name="init_channel" id="init_channel" value="<!--{$init_channel}-->">
		<input type="hidden" name="init_line" id="init_line" value="<!--{$init_line}-->">
		<input type="hidden" name="init_order" id="init_order" value="<!--{$init_order}-->">
		
		<table class="ubbADDright">
			<tr>
				<td width="100">频道名称<span class="red">*</span></td>
				<td colspan="3"><input id="channel_text" name="data[Channel][channel_text]" maxlength="20" class="text" value="<!--{$data.channel_text}-->"/></td>
			</tr>
			<tr>
				<td>上级栏目</td>
				<td colspan="3"> <select name="data[Channel][parent_id]" id="parent_id" >
                    	
                        <!--{foreach from=$channel key=key item=channel}-->
						<option value="<!--{$key}-->" <!--{if $init_channel == $key}-->selected="selected" <!--{/if}-->><!--{$channel}--></option>
                        <!--{/foreach}-->
                    </select></td>
			</tr>
			<tr>
				<td>功能属性</td>
				<td colspan="3">
					<select  name="data[Channel][channel_module_id]" readonly="readonly" id="channel_module_id" disabled>
                        <!--{foreach from=$module item=module}-->
						<option value="<!--{$module.id}-->" <!--{if $module.id == $data.channel_module_id}-->selected="selected" <!--{/if}-->>[<!--{$module.id}-->]<!--{$module.channel_module_name}--></option>
                        <!--{/foreach}-->
                    </select>
				</td>
			</tr>
			<tr>
				<td>是否换行</td>
				<td>
					<input type="radio" name="data[Channel][br_flag]" value="1" <!--{if $data.br_flag==1}-->checked="checked"<!--{/if}-->>是  <input <!--{if $data.br_flag==0}-->checked="checked"<!--{/if}--> type="radio" name="data[Channel][br_flag]" value="0">否
				</td>
				<td></td>
				<td></td>
			</tr>
						<tr>
				<td>是否隐藏</td>
				<td>
					<input type="radio" name="data[Channel][show_flag]" value="0" <!--{if $data.show_flag==0}-->checked="checked"<!--{/if}-->>是  <input  type="radio" name="data[Channel][show_flag]" value="1" <!--{if $data.show_flag==1}-->checked="checked"<!--{/if}-->>否
				</td>
				<td></td>
				<td></td>
			</tr>
						<tr>
				<td>频道位置</td>
				<td><select id="line_id" name="data[Channel][line_id]" style="width:38px;">
                		<option value="1">1</option>
						<option value="2">2</option>
						<option value="3">3</option>
                	</select>行</td>
				<td>序号</td>
				<td><select id="show_order" name="data[Channel][show_order]" style="width:38px;">
                		<option value="1">1</option>
						<option value="2">2</option>
						<option value="3">3</option>
                	</select></td>
			</tr>
			<tr>
				<td></td>
				<td colspan="3">
					 <button type="submit" id="btn_submit" class="butsubmit">提交</button>
				</td>
			</tr>
		</table>
		</form>
		<span id="span_parent_id" style="color:red;"></span>
<script src="js/layout.editchannel.js" charset="utf-8"></script>
    </body>
</html>
