<?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}
.scrollbar li{text-indent:28px;margin:0 8px;padding:5px 0;border-bottom:1px solid #B7D5DF;background:url(http://127.0.0.5/magic/Data/Public/images/bd2.png) center left no-repeat;}
.scrollbar .root{text-indent:20px;background:url(http://127.0.0.5/magic/Data/Public/images/bd.png) center left no-repeat;}
.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:" onclick="">新建</a></li>
			<li><a href="?r=database">刷新</a></li>
			<li><a href="javascript:" onclick="$('.arcleft').hide();$('.arcright').css('width','100%');$('.arczk').show();">隐藏</a></li>
		</ul>
	 </div> 
	</div>
<div class="scrollbar">
	<ul>
		<li class="root"><b><?php echo $dbname;?></b></li>
		<?php foreach ($table as $vo){?>
		<li><a href="?r=database-fields&table=<?php echo $vo['tablename'];?>" target="tablist"><?php echo $vo['tablename'];?></a></li>
		<?php }?>
	</ul>
</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="tablist" name="tablist" src="?r=database&tpl=Database/table" style="width:100%;height:90%"></iframe>
</div>
</body>
</html>
