<?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('content',$mymenu)){?>
	<div class="div_cbigmenu">
		<div class="div_bigmenu_nav_down" id="nav_1" onclick="javascript:lefttoggle(1);">栏目管理</div>
		<ul id="ul_1">
			<li style="background:url(admin/template/images/folder-closed.gif) left no-repeat; text-indent:9px"><a href="<?php echo ADMIN_FILE;?>?file=content&action=category_add" target='main'>添加栏目</a></li>
			<li style="background:url(admin/template/images/file.gif) left no-repeat; text-indent:9px"><a href="<?php echo ADMIN_FILE;?>?file=content&action=page_add" target='main'>添加单页</a></li>
			<li style="background:url(admin/template/images/folder-closed.gif) left no-repeat; text-indent:9px"><a href="<?php echo ADMIN_FILE;?>?file=content&action=category_manage" target='main'>栏目管理</a></li>
		</ul>
	</div>
	<div class="div_cbigmenu">
		<div class="div_bigmenu_nav_down" id="nav_2" onclick="javascript:lefttoggle(2);">内容管理</div>
		<ul id="ul_2">
			<?php foreach($category as $_category){?>
			<li id="cat_li_<?php echo $_category['id'];?>" class="<?php echo $_category['ispage']?'page_li':'folder-closed_li';?>">
			<?php if($_category['ispage']){?>
			<a href="?file=content&action=page_edit&id=<?php echo $_category['id'];?>" target='main'><?php echo $_category['categoryname'];?></a>
			<?php }elseif(!in_array($_category['id'],$finalcatid)){?>
			<a href="javascript:show_catmenu(<?php echo $_category['id'];?>);"><?php echo $_category['categoryname'];?></a>
			<?php }else{ ?>
			<a href="?file=content&action=manage&catid=<?php echo $_category['id'];?>" target='main'><?php echo $_category['categoryname'];?></a>
			<?php }?>
			</li>
			<?php menutree($_category['id']);?>
			<?php }?>
		</ul>
	</div>
	<?php }?>
</body>
</html>
