<?php
require_once('session.php');
require_once('../fun/funsql.php'); 
require_once('../fun/funlogic.php');
if (isset($_GET["rel"])){$rel=$_GET["rel"];}else{$rel="";}
?>
<!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>
<title>left menu</title>

<link href="css_menu.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<base target="main">
<body>
<div class="menu">
<?php if ($rel==''){?>
<!-- Item Strat -->
<dl>
    <dt><a>快捷菜单</a></dt>
    <dd id="items2" style="display:block;">
			<ul>
<li><a href='main.php?rel=config' target='main'>网站配置</a></li>
<li><a href='class.php?rel=class' target='main'>分类管理</a></li>
<li><a href='news.php?rel=news_add' target='main'>信息添加</a></li>
<li><a href='html.php?rel=index_html' target='main'>静态首页</a></li>
<li><a href='main.php?rel=gao' target='main'>网站公告</a></li>
<li><a href='link.php' target='main'>友情连接</a></li>
  			</ul>
		</dd>
</dl>
<!-- Item End -->
<?php }?>

<?php if ($rel=='user'){?>
<!-- Item Strat -->
<dl>
    <dt><a>会员管理</a></dt>
    <dd id="items2" style="display:block;">
			<ul>
<li><a href='user.php?rel=user_admin' target='main'>管理员管理</a></li>	

  			</ul>
		</dd>
</dl>
<!-- Item End -->
<?php }?>

<?php if ($rel=='plug'){?>
<!-- Item Strat -->
<dl>
    <dt><a>插件管理</a></dt>
    <dd id="items2" style="display:block;">
			<ul>
<li><a href='main.php?rel=plug_add' target='main'>安装插件</a></li>	
<li><a href='main.php?rel=plug' target='main'>插件管理</a></li>	

  			</ul>
		</dd>
</dl>
<!-- Item End -->
<!-- Item Strat -->
<dl>
    <dt><a>插件列表</a></dt>
    <dd id="items2" style="display:block;">
			<ul>
<?php 
$sql=query("select * from ".$dbz."plug order by times desc");
while($row=fetch($sql)){
?>
<li><a href='<?php echo $row["files"]; ?>' target='main'><?php echo $row["names"]; ?></a></li>	
<?php }?>
  			</ul>
		</dd>
</dl>
<!-- Item End -->
<?php }?>

<?php if ($rel=='style'){?>
<!-- Item Strat -->
<dl>
    <dt><a>风格管理</a></dt>
    <dd id="items2" style="display:block;">
			<ul>
<?php 
$dp=listdir("../temp",1);
$dps=explode(",,",$dp);
$dpi=0;
while($dpi<(count($dps)-1)){
?>
<li><a href='style.php?rel=&path=<?php echo $dps[$dpi]; ?>' target='main'><?php echo $dps[$dpi]; ?></a></li>	
<?php 
$dpi+=1;
}?>

  			</ul>
		</dd>
</dl>
<!-- Item End -->
<?php }?>

<?php if ($rel=='html'){?>
<!-- Item Strat -->
<dl>
    <dt><a>静态管理</a></dt>
    <dd id="items2" style="display:block;">
			<ul>
<li><a href='html.php?rel=index_html' target='main'>首页静态</a></li>	
<li><a href='html.php?rel=class_while_html' target='main'>分类静态</a></li>
<li><a href='html.php?rel=news_html_num' target='main'>文章静态</a></li>	
  			</ul>
		</dd>
</dl>
<!-- Item End -->
<?php }?>
<?php if ($rel=='sys'){?>
<!-- Item Strat -->
<dl>
    <dt><a>基本配置</a></dt>
    <dd id="items2" style="display:block;">
			<ul>
<li><a href='main.php?rel=config' target="main">网站参数</a></li>
<li><a href='main.php?rel=gao' target="main">网站公告</a></li>
  			</ul>
		</dd>
</dl>
<!-- Item End -->
<!-- Item Strat -->
<dl>
    <dt><a>独立页面</a></dt>
    <dd id="items2" style="display:block;">
			<ul>
<li><a href='main.php?rel=page_add' target="main">页面添加</a></li>
<li><a href='main.php?rel=page' target="main">页面管理</a></li>
  			</ul>
		</dd>
</dl>
<!-- Item End -->
<!-- Item Strat -->
<dl>
    <dt><a>搜索关键字</a></dt>
    <dd id="items2" style="display:block;">
			<ul>
<li><a href='main.php?rel=so_add' target="main">关键字添加</a></li>
<li><a href='main.php?rel=so' target="main">关键字管理</a></li>
  			</ul>
		</dd>
</dl>
<!-- Item End -->
<?php }?>

<?php if ($rel=='ad'){?>
<!-- Item Strat -->
<dl>
    <dt><a>广告管理</a></dt>
    <dd id="items2" style="display:block;">
			<ul>
<li><a href='link.php' target="main">友情连接管理</a></li>
<li><a href='ad.php?rel=ad_add' target="main">广告添加</a></li>
<li><a href='ad.php' target="main">广告管理</a></li>
  			</ul>
		</dd>
</dl>
<!-- Item End -->
<?php }?>

<?php if ($rel=='class'){?>
<!-- Item Strat -->
<dl>
    <dt><a>分类管理</a></dt>
    <dd id="items2" style="display:block;">
			<ul>
			
<li><a href='class.php?rel=class_add' target="main">分类添加</a></li>
<li><a href='class.php?rel=class' target="main">分类管理</a></li>
<li><a href='class.php?rel=class_move' target="main">分类移动</a></li>
  			</ul>
		</dd>
</dl>
<!-- Item End -->
<?php }?>

<?php if ($rel=='news'){?>
<!-- Item Strat -->
<dl>
    <dt><a>信息管理</a></dt>
    <dd id="items2" style="display:block;">
			<ul>
<li><a href='news.php?rel=news_config' target="main">信息配置</a></li>			
<li><a href='news.php?rel=news_add' target="main">信息添加</a></li>
<li><a href='news.php?rel=news' target="main">信息管理</a></li>
<li><a href='news.php?rel=comments' target="main">信息评论</a></li>
<li><a href='news.php?rel=news&audit=1' target="main">信息审核</a></li>
  			</ul>
		</dd>
</dl>
<!-- Item End -->
<?php }?>

<!-- Item Strat -->
<dl>
    <dt><a>帮助信息</a></dt>
    <dd id="items2" style="display:block;">
			<ul>
<li><a href='http://www.csc9.cn' target="_blank">帮助社区</a></li>
<li><a href='http://c9cms.csc9.cn' target="_blank">程序演示</a></li>
  			</ul>
		</dd>
</dl>
<!-- Item End -->
</div>
</body>
</html>
<?php mysql_close();?>