<?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('link',$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=other&action=flink" target='main'>友链管理</a></li>
			<li><a href="<?php echo ADMIN_FILE;?>?file=other&action=flink&ispassed=0" target='main'>审核友链</a></li>
		</ul>
	</div>
	<?php }?>
	<?php if(in_array('ads',$mymenu)){?>
	<div class="div_bigmenu">
		<div class="div_bigmenu_nav_down" onclick="javascript:lefttoggle(2);" id="nav_2">广告管理</div>
		<ul id="ul_2">
			<li><a href="<?php echo ADMIN_FILE;?>?file=other&action=ads" target='main'>广告管理</a></li>
			<li><a href="<?php echo ADMIN_FILE;?>?file=other&action=ads&ispassed=0" target='main'>审核广告</a></li>
			<li><a href="<?php echo ADMIN_FILE;?>?file=other&action=adspos" target='main'>广 告 位</a></li>
			<li><a href="<?php echo ADMIN_FILE;?>?file=other&action=createhtml" target='main'>更新广告</a></li>
		</ul>
	</div>
	<?php }?>
	<?php if(in_array('plus',$mymenu)){?>
	<div class="div_bigmenu">
		<div class="div_bigmenu_nav_down" onclick="javascript:lefttoggle(3);" id="nav_3">拓展插件</div>
		<ul id="ul_3">
			<li><a href="<?php echo ADMIN_FILE;?>?file=other&action=install_plus" target='main'>安装插件</a></li>
			<li><a href="<?php echo ADMIN_FILE;?>?file=other&action=vote" target='main'>在线投票</a></li>
			<li><a href="<?php echo ADMIN_FILE;?>?file=other&action=sign" target='main'>报名管理</a></li>
			<?php 
				$r=cache_read("cache_plus.cache.php",DIRCMS_ROOT.'data/cache/');
				if($r)foreach($r as $_r)
				{
					echo '<li><a href="'.SITE_URL.'plus/'.$_r['link'].'/" target="main">'.$_r['name'].'</a></li>';
				}
			?>
		</ul>
	</div>
	<?php }?>
	<?php if(in_array('notice',$mymenu)){?>
	<div class="div_bigmenu">
		<div class="div_bigmenu_nav_down" onclick="javascript:lefttoggle(4);" id="nav_4">网站公告</div>
		<ul id="ul_4">
			<li><a href="<?php echo ADMIN_FILE;?>?file=other&action=notice" target='main'>公告管理</a></li>
		</ul>
	</div>
	<?php }?>
	<?php if(in_array('guestbook',$mymenu)){?>
	<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=guestbook&action=manage" target='main'>留言管理</a></li>
			<li><a href="<?php echo ADMIN_FILE;?>?file=guestbook&action=manage&passed=0" target='main'>审核留言</a></li>
		</ul>
	</div>
	<?php }?>
</body>
</html>
