<!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/simpletree.css" rel="stylesheet" type="text/css"/>
<script src="js/jquery/jquery.min.js" charset="utf-8"></script>
<script type="text/javascript" src="js/jquery/jquery.simple.tree.js"></script>
<script type="text/javascript">

var simpleTreeCollection;
$(document).ready(function(){
	simpleTreeCollection = $('.simpleTree').simpleTree({
		autoclose: true,
		drag:false,
		afterClick:function(node){
			//alert("text-"+$('span:first',node).text());
			var url = $(node).attr("link");
			if(url != '' && url != undefined)
			{
				parent.$("#link-url").val(url);
				parent.$("#link-text").val($("span:first",node).text());
				
			}
			
		},
		afterDblClick:function(node){
			//alert("text-"+$('span:first',node).text());
		},
		afterMove:function(destination, source, pos){
			//alert("destination-"+destination.attr('id')+" source-"+source.attr('id')+" pos-"+pos);
		},
		afterAjax:function()
		{
			//alert('Loaded');
		},
		afterToggle:function(){
		},
		animate:true
		//,docToFolderConvert:true
	});
	
	//parent.$("div#leftBox").unblock();
	
});
</script>
</head>

<body>

<ul class="simpleTree">
	<li class="root" id='1' style="font-size:12px;"><span><a class="menuItem active"  value="1"  style="color:#333333; border:none; background:none; text-decoration:none; cursor:pointer; margin-left:-16px; padding-left:20px;background:url(images/icon22.gif) -2px -1079px no-repeat;">首页</a></span>
		<ul>
			<li id="0"><span><a class="menuItem"  style="color:#333333; text-decoration:none;">频道</a></span>
				<ul class="ajax">
					<li id='list-channel'>{url:index.php?r=layout.getChannelTree}</li>
				</ul>
			</li>
			
			<li id="1"><span><a class="menuItem"  style="color:#333333; text-decoration:none;">文章模块</a></span>
				<ul class="ajax">
					<li id='list-channel'>{url:index.php?r=layout.getCmsChannelTree&channel_module_id=1}</li>
				</ul>
			</li>
			
			<li id="2" ><span><a class="menuItem"  style="color:#333333; text-decoration:none;">软件模块</a></span>
				<ul class="ajax">
					<li id='list-channel'>{url:index.php?r=layout.getCmsChannelTree&channel_module_id=2}</li>
				</ul>
			</li>
			
			<li id="3"><span><a class="menuItem"  style="color:#333333; text-decoration:none;">游戏模块</a></span>
				<ul class="ajax">
					<li id='list-channel'>{url:index.php?r=layout.getCmsChannelTree&channel_module_id=3}</li>
				</ul>
			</li>
			
			<li id="8"><span><a class="menuItem"  style="color:#333333; text-decoration:none;">主题模块</a></span>
				<ul class="ajax">
					<li id='list-channel'>{url:index.php?r=layout.getCmsChannelTree&channel_module_id=8}</li>
				</ul>
			</li>
			
			<li id="7"><span><a class="menuItem"  style="color:#333333; text-decoration:none;">友情链接模块</a></span>
				<ul class="ajax">
					<li id='list-channel'>{url:index.php?r=layout.getCmsChannelTree&channel_module_id=7}</li>
				</ul>
			</li>
			
			<li id="9"><span><a class="menuItem"  style="color:#333333; text-decoration:none;">图片模块</a></span>
				<ul class="ajax">
					<li id='list-channel'>{url:index.php?r=layout.getCmsChannelTree&channel_module_id=9}</li>
				</ul>
			</li>
		</ul>
	</li>
</ul>
</body>
</html>