<?php if (!defined('APP_PATH')) exit;?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<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.js"></script>
<script src="http://127.0.0.5/Data/Public/layer/layer.js"></script>
<script src="http://127.0.0.5/Magic/Data/Public/js/dtree.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/jquery.nicescroll.min.js"></script>
</head>
<body>
<style type="text/css">
.arcleft{float:left;height:100%;width:15%;border-right:1px solid #B7D5DF;overflow:hidden}
.arcright{float:left;height:100%;width:84.9%;}
.arcplace{height:35px;}
.dTreeNode{width:100%;float:left;margin-left:10px;}
.scrollbar{height:90%;width:100%;overflow-y:scroll;overflow-x:hidden}
.dtree{overflow-x:hidden}
.node_name{width:100%;float:left;}
.node_name img{float:left;}
.node_name span{float:left;color:#ccc}
.toolbar li,.arczk{width:40px;height:25px;padding:0;text-align:center;line-height:25px}
.toolbar,.arczk{margin:7px;margin-left:20px}
.place .arczk{line-height:25px;display:none;}
</style>
<script>
  $(document).ready(function() {    
	$(".scrollbar").niceScroll();
  });
</script>
<div class="arcleft">
	<div class="place">
		<div class="tools">
		<ul class="toolbar">
			<li><a href="javascript:ac.openAll();">展开</a></li>
			<li><a href="javascript: ac.closeAll();">合并</a></li>
			<li><a href="javascript:" onclick="$('.arcleft').hide();$('.arcright').css('width','100%');$('.arczk').show();">隐藏</a></li>
		</ul>
	 </div> 
	</div>
<div class="scrollbar">
	<script type="text/javascript">
	ac = new dTree('ac');
	ac.add(0,-1,'','','');
	<?php foreach ($list as $k=>$vo){?>
	<?php if($vo['attribute']==1){ ?>
		<?php $url='?r=archives-index-arclist&param='.$vo['model'].'&catid='.$vo['catid'];;?> 
	<?php }else if($vo['attribute']==2){ ?>
		<?php $url='?r=archives-index-page&catid='.$vo['catid'];;?> 
	<?php }else if($vo['attribute']==3){ ?>
		<?php $url='';?> 
	<?php }?>
	ac.add(<?php echo $vo['catid'];?>,<?php echo $vo['pid'];?>,'<?php echo $vo['name'];?>','<?php echo $url;?>',-1,'','','','','','','','arclist');
	<?php }?>
	document.write(ac);
	</script>
</div>
</div>
<div class="arcright">
	<div class="place">
		<span class="arczk"><a href="javascript:" onclick="$('.arcleft').show();$('.arcright').css('width','84.9%');$('.arczk').hide();">展开</a></span>
		<span>位置：</span>
		<ul class="placeul">
			<li>首页</li>
			<li>内容管理</li>
			<li>编辑文档</li>
		</ul>
	</div>
	<iframe id="arclist" name="arclist" src="?r=archives-index-arclist&param=<?php echo Q('get.param');?>" style="width:100%;height:90%"></iframe>
</div>
</body>
</html>
