<?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('system',$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=config&action=config&tab=1" target='main'>基本配置</a></li>
			<li> <a href="<?php echo ADMIN_FILE;?>?file=config&action=config&tab=2" target='main'>上传配置</a></li>
			<li> <a href="<?php echo ADMIN_FILE;?>?file=config&action=config&tab=3" target='main'>邮件设置</a></li>
			<li> <a href="<?php echo ADMIN_FILE;?>?file=config&action=config&tab=4" target='main'>会员设置</a></li>
			<li> <a href="<?php echo ADMIN_FILE;?>?file=config&action=config&tab=5" target='main'>通 行 证</a></li>
			<li> <a href="<?php echo ADMIN_FILE;?>?file=config&action=config&tab=6" target='main'>UC 配置</a></li>
			<li> <a href="<?php echo ADMIN_FILE;?>?file=config&action=config&tab=7" target='main'>性能选项</a></li>
			<li> <a href="<?php echo ADMIN_FILE;?>?file=config&action=config&tab=8" 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=author&action=manage" target='main'>作者管理</a></li>
			<li><a href="<?php echo ADMIN_FILE;?>?file=type&action=manage" target='main'>类别管理</a></li>
			<li><a href="<?php echo ADMIN_FILE;?>?file=area&action=manage" target='main'>地区管理</a></li>
			<li><a href="<?php echo ADMIN_FILE;?>?file=copyfrom&action=manage" target='main'>稿件来源</a></li>
			<li><a href="<?php echo ADMIN_FILE;?>?file=posid&action=manage" target='main'>推 荐 位</a></li>
		</ul>
	</div>
	<?php }?>
	<?php if(in_array('database',$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=db&action=export" target='main'>数据备份</a></li>
			<li><a href="<?php echo ADMIN_FILE;?>?file=db&action=import" target='main'>数据还原</a></li>
			<li><a href="<?php echo ADMIN_FILE;?>?file=db&action=repair" target='main'>数据修复</a></li>
			<li><a href="<?php echo ADMIN_FILE;?>?file=db&action=sql" target='main'>执行SQL</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=model&action=manage" target='main'>内容模型</a></li>
			<li> <a href="<?php echo ADMIN_FILE;?>?file=membermodel&action=manage" target='main'>会员模型</a></li>
		</ul>
	</div>
	<?php if($_userid==ADMIN_FOUNDERS){?>
	<div class="div_bigmenu">
		<div class="div_bigmenu_nav_down" onclick="javascript:lefttoggle(5);" id="nav_5">模块配置</div>
		<ul id="ul_5">
			<li><a href="<?php echo ADMIN_FILE;?>?file=module" target='main'>网站后台</a></li>
			<?php if(in_array('member',$mymenu)){?>
			<li><a href="<?php echo ADMIN_FILE;?>?file=module&action=member" target='main'>会员中心</a></li>
			<?php }?>
		</ul>
	</div>
	<?php }?>
</body>
</html>
