<!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" type="text/css"/>
        <link href="css/cpanel.css" rel="stylesheet" type="text/css"/>
        <script src="js/jquery/jquery.min.js" charset="utf-8">
        </script>
		<script src="js/jquery/ui/jquery-ui.min.js" charset="utf-8">
        </script>
        </script>
        <script src="js/jquery/jquery.contextmenu.js" charset="utf-8">
        </script>
        <script src="js/layout.cpanel.js" charset="utf-8">
        </script>
		<script>
			var init_channel_id = "<!--{$channel_id}-->";
			var isSystem = "<!--{$isSystem}-->";
		</script>
<style type="text/css">
<!--
html , body { overflow:hidden;}
.mune1 {
	background:url(images/icon22.gif) -3px -2339px no-repeat!important;background:url(images/icon22.gif) -3px -2341px no-repeat;
}
.mune2 {
	background:url(images/icon22.gif) -3px -2501px no-repeat!important;background:url(images/icon22.gif) -3px -2503px no-repeat;
}
.mune3 {
	background:url(images/icon22.gif) -3px -2470px no-repeat!important; background:url(images/icon22.gif) -3px -2472px no-repeat;
}
.mune4 {
	background:url(images/icon22.gif) 0px -2406px no-repeat!important; background:url(images/icon22.gif) 0px -2408px no-repeat;
}
.mune5 {
	background:url(images/icon22.gif) 0px -2436px no-repeat!important; background:url(images/icon22.gif) 0px -2438px no-repeat;
}
.mune6 {
	background:url(images/icon22.gif) -3px -2533px no-repeat!important; background:url(images/icon22.gif) -3px -2535px no-repeat;
}
.mune7 {
	 background:url(images/icon22.gif) -3px -2372px no-repeat!important;background:url(images/icon22.gif) -3px -2374px no-repeat;
}
ul li{
	padding:3px 3px 3px 20px;
	width:73px;
	cursor:pointer;
}
-->
</style></head>
    <body  onload="resizew();">
        <div class="contextMenu" style="display:none;" id="myMenu" value="">
            <ul style="border:1px #FF0000 solid;">
                <li class="mune1" id="myMenu_attribute">修改</li>
                <li class="mune2" id="myMenu_channel">新增频道</li>
                <li class="mune3" id="myMenu_ubb">新增UBB</li>
				<li class="mune4" id="myMenu_up">上移</li>
				<li class="mune5" id="myMenu_down">下移</li>
				<li class="mune6" id="myMenu_hide">隐藏</li>
                <li class="mune7" id="myMenu_delete">删除</li>
            </ul>
        </div>
		
		<!--div style="width:100%;">当前位置：{$navigation}</div-->
        <div id="sort"  class="groupWrapper">
        	
        	<!--{foreach from=$data_line key=k item=Line}-->
			<!--{if $Line.system_flag==1}-->
			<div id="line-<!--{$Line.id}-->" channel="<!--{$channel_id}-->" line="<!--{$Line.id}-->" show="<!--{$Line.show_flag}-->" class="groupItem ui-state-disabled">
				<div class="itemHeader">
                    <span id="sp1" class="itemTitle">第<br><!--{$k+1}--><br>行</span>
                </div>
                <div id="itemSystem" class="itemSystem">
                	<img src="images/ajax.gif">数据正在加载...
                </div>
            </div>
			<!--{else}-->
            <div id="line-<!--{$Line.id}-->" channel="<!--{$channel_id}-->" line="<!--{$Line.id}-->" show="<!--{$Line.show_flag}-->" class="groupItem<!--{if $Line.show_flag==0}--> line_disable<!--{/if}-->">
				<div class="itemHeader">
                    <span id="sp1" class="itemTitle">第<br><!--{$k+1}--><br>行</span>
                </div>
                <div class="itemContent">
                    	<!--{foreach from=$Line.channels item=Channel}-->
                        <span id="module-<!--{$Channel.id}-->" channel="<!--{$Channel.id}-->" type="<!--{$Channel.channel_type}-->" show="<!--{$Channel.show_flag}-->" line="<!--{$Line.id}-->" class="groupChildItem<!--{if $Channel.show_flag==0}--> disable<!--{/if}--> menuItem<!--{if $Channel.channel_type==1}--> bluefont<!--{/if}-->">
                            <!--{if $Channel.br_flag==1}--><br><!--{/if}--><!--{if $Channel.channel_type==2}--><span class="ubb-tag">ubb</span><!--{/if}--><!--{$Channel.channel_text}-->
                        </span>
                        <!--{/foreach}-->
						<span class="groupChildItem">
							&nbsp;
                        </span>
                </div>
            </div>
			<!--{/if}-->
			<!--{/foreach}-->
			
        </div>
		<input id="input_channel_id" value="<!--{$channel_id}-->" type="hidden" />
		<input id="input_nav" value="当前位置：<!--{$navigation}-->" type="hidden" />
		<input id="input_line_id" value="<!--{$Line.id}-->" type="hidden" />
<script>
$(document).ready(function(){
	resizew();
	window.parent.document.getElementById("nav-html").innerHTML = $("#input_nav").val();
	
	window.parent.setid(1,$("#input_channel_id").val());
	window.parent.setid(2,$("#input_line_id").val());
	
	//parent.$("div#cpanelBox").unblock();
});
function resizew()
{
	
	var bodyHeght;
	if(document.all){
		//ie
		bodyHeght = document.body.scrollHeight;//ie
	}else{
		bodyHeght = document.body.offsetHeight;//ff
	}
	
	window.parent.document.getElementById("cpanelLayout").style.height = bodyHeght+'px';
}
		</script>
    </body>
</html>
