<?php
	!defined('DIRCMS_MANAGE') && exit('Access Denied!');
?>
<!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=gb2312" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link href="admin/template/css/left.css" type="text/css" rel="stylesheet" />
<title>左侧菜单</title>
<script src="images/js/jquery.min.js"></script>
<script language="javascript" type="text/javascript" charset="utf-8" src="admin/template/js/admin.js"></script>
</head>

<body oncontextmenu="return false" ondragstart="return false" onSelectStart="return false">
	<?php if(in_array('template',$mymenu)){?>
	<div class="div_bigmenu">
		<div class="div_bigmenu_nav_down" id="nav_1" onclick="javascript:lefttoggle(1);">模板方案</div>
		<ul id="ul_1">
			<li><a href="<?php echo ADMIN_FILE;?>?file=templateproject&action=manage" target='main'>模板方案</a></li>
			<li><a href="<?php echo ADMIN_FILE;?>?file=template&action=manage" target='main'>模板管理</a></li>
			<li><a href="<?php echo ADMIN_FILE;?>?file=template&action=add" target='main'>添加模板</a></li>
		</ul>
	</div>
	<div class="div_bigmenu">
		<div class="div_bigmenu_nav_down" id="nav_2" onclick="javascript:lefttoggle(2);">内容数据</div>
		<ul id="ul_2">
			<li><a href="<?php echo ADMIN_FILE;?>?file=tag&action=category" target='main'>栏目调用</a></li>
			<li><a href="<?php echo ADMIN_FILE;?>?file=tag&action=content" target='main'>内容调用</a></li>
			<li><a href="<?php echo ADMIN_FILE;?>?file=tag&action=comment" target='main'>评论调用</a></li>
		</ul>
	</div>
	<?php $r=cache_read('cache_membermodel.cache.php',DIRCMS_ROOT.'data/cache_model/');if($r){?>
	<div class="div_bigmenu">
		<div class="div_bigmenu_nav_down" id="nav_5" onclick="javascript:lefttoggle(5);">会员数据</div>
		<ul id="ul_5">
			<?php
				foreach($r as $_r)
				{
					if($_r['isinstall'])echo '<li><a href="'.ADMIN_FILE.'?file=tag&action=member&modelid='.$_r['name'].'" target="main">'.$_r['modelname'].'</a></li>';
				}			
			?>
		</ul>
	</div>
	<?php }?>
	<?php if(in_array('yellowpages',$mymenu)){?>
	<div class="div_bigmenu">
		<div class="div_bigmenu_nav_down" id="nav_3" onclick="javascript:lefttoggle(3);">黄页数据</div>
		<ul id="ul_3">
			<li><a href="<?php echo ADMIN_FILE;?>?file=tag&action=co_type" target='main'>商家分类</a></li>
			<li><a href="<?php echo ADMIN_FILE;?>?file=tag&action=co_news" target='main'>企业新闻</a></li>
			<li><a href="<?php echo ADMIN_FILE;?>?file=tag&action=co_product" target='main'>企业产品</a></li>
			<li><a href="<?php echo ADMIN_FILE;?>?file=tag&action=co_coupon" target='main'>优惠动态</a></li>
			<li><a href="<?php echo ADMIN_FILE;?>?file=tag&action=co_guestbook" target='main'>留言调用</a></li>
		</ul>
	</div>
	<?php }?>
	<div class="div_bigmenu">
		<div class="div_bigmenu_nav_down" id="nav_4" onclick="javascript:lefttoggle(4);">其他数据</div>
		<ul id="ul_4">
			<li><a href="<?php echo ADMIN_FILE;?>?file=tag&action=link" target='main'>友链调用</a></li>
			<li><a href="<?php echo ADMIN_FILE;?>?file=tag&action=notice" target='main'>公告调用</a></li>
			<li><a href="<?php echo ADMIN_FILE;?>?file=tag&action=area" target='main'>地区调用</a></li>
		</ul>
	</div>
	<?php }?>
</body>
</html>
