<!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">
    </head>
    <body>
    	<form name="channelForm" method="post" id="channelForm" action="./index.php?r=layout.edit_ubb&id=<!--{$data.id}-->">
        <input type="hidden" name="data[Channel][channel_type]" value="2">
		<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}-->">

<style>
<!--
	table.UBB_table1 td { padding:3px; padding-right:6px;}
-->
</style>
<div class="UBBbuju_title">
	修改UBB
</div>	
<div class="layoutEditor" style=" background:#FFFFFF; padding:0px 3px;">
	<div class="editorBody">
		<div class="ubbEditor" style="padding-top:3px;width:99%">
			<textarea id="channel_text" name="data[Channel][channel_text]" style="width:100%; border:none;"><!--{$data.channel_text}--></textarea>
		</div>
		<div class="ubbAttr" style="padding-bottom:5px;">
			
					<table id="UBB_table" cellspacing="0" cellpadding="0">
						<tr>
							<td>换行</td>
							<td>
								<select name="data[Channel][br_flag]" id="br_flag">
									<option value="0" <!--{if $data.br_flag==0}--> selected="selected" <!--{/if}--> >否</option>
									<option value="1" <!--{if $data.br_flag==1}-->selected="selected"<!--{/if}--> >是</option>
								</select>
							</td>
							<td>隐藏</td>
							<td>
								<select name="data[Channel][show_flag]" id="show_flag">
									<option value="0" <!--{if $data.show_flag==0}-->selected="selected"<!--{/if}--> >否</option>
									<option value="1" <!--{if $data.show_flag==1}-->selected="selected"<!--{/if}--> >是</option>
								</select>	
							</td>
							<td>栏目</td>
							<td>
								<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>
								<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>
							<td colspan="2"><button type="submit" id="btn_submit" class="butT">保存</button><button type="button" id="btn_save_to_ubbtags" class="but5font">保存为标签</button></td>
						</tr>
					</table>
		</div>
	</div>
	<div style=" overflow-y:scroll;border:1px #bfd5e8 solid;" id="UBB_edit_navBox">
		<div class="showtool" style=" padding:2px; background:url(images/bgx.gif) 0px -199px; height:20px; line-height:20px; border-right:none; cursor:pointer">
			<span ><b id="ubbmenu-status">基本功能</b></span>&nbsp;&nbsp;[鼠标点击显示更多功能]
		</div>
		<div class="ubbTool" style="background:#ffffff; border-top:1px #aedcfe solid;">
			<ul>
				<li><a class="ubbmenu" value="basic-function" href="javascript:void();">基本功能</a></li>
				<li><a class="ubbmenu" value="resources-call" href="javascript:void();">资源调用</a></li>
				<li><a class="ubbmenu" value="new-resources" href="javascript:void();">资源新增</a></li>
				<li><a class="ubbmenu" value="advertising-system" href="javascript:void();">广告系统</a></li>
				<li><a class="ubbmenu" value="links" href="javascript:void();">友情链接</a></li>
				<li><a class="ubbmenu" value="custom-search" href="javascript:void();">自定义搜索</a></li>
				<li><a class="ubbmenu" value="music-module" href="javascript:void();">音乐模块</a></li>
				<li><a class="ubbmenu" value="forum-module" href="javascript:void();">论坛模块</a></li>
				<li><a class="ubbmenu" value="access-statistics" href="javascript:void();">访问统计</a></li>
				<!--li><a class="ubbmenu" value="personal-center-page" href="javascript:void();">个人中心页面</a></li>
				<li><a class="ubbmenu" value="member-display-page" href="javascript:void();">会员展示页面</a></li-->
				<li><a class="ubbmenu" value="ubbtags" href="javascript:void();">自定义标签</a></li>
			</ul>
		</div>
		<div class="ubbBody" style="background:#f6f9fc; border-top:1px #bfd5e8 solid;">
			
					
			<div id="ubbArea" style="line-height:24px; color:#119300; padding-left:5px;">
			
			</div>
	
		</div>
	</div>
</div>
<div class="growlUI" style="display:none">
   
</div>
</form>
<script src="js/layout.editubb.js" charset="utf-8"></script>
<script src="js/layout.editubb.cleditor.js" charset="utf-8"></script>
<script>
$(document).ready(function(){
	var tbl_w = $("#cpanelBox").width();
	if(tbl_w>280){
		$("#UBB_table").addClass("UBB_table1");
	}else{
		$("#UBB_table").removeClass("UBB_table1");
	}
});
</script>
</body>
</html>
