<?php
if(!defined('InEmpireCMS'))
{
	exit();
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>菜单</title>
<link href="../../../data/menu/menu.css" rel="stylesheet" type="text/css">
<script src="../../../data/menu/menu.js" type="text/javascript"></script>
<SCRIPT lanuage="JScript">
function tourl(url){
	parent.main.location.href=url;
}
</SCRIPT>
</head>
<body onLoad="initialize()">







<table border='0' cellspacing='0' cellpadding='0' width=100%>




<?
if($r[domenu])
{
?>
  <tr id="itemmenu"> 
    <td class="list">
		<table border='0' cellspacing='0' cellpadding='0' width=100%>
		<tr> 
          <td class="file1">
			<a href="../../other/MenuClass.php" target="main">管理菜单</a>
          </td>
        </tr>
      </table>
	</td>
  </tr>
<?
}
?>



<?
if($r[dodo]||$r[dotask])
{
?>
  <tr> 
    <td id="prtask" class="menu1" onclick="chengstate('task')">
		<a onmouseout="this.style.fontWeight=''" onmouseover="this.style.fontWeight='bold'">计划任务</a>
	</td>
  </tr>
  <tr id="itemtask" style="display:none"> 
    <td class="list">
		<table border='0' cellspacing='0' cellpadding='0' width=100%>
		<?
		if($r[dodo])
		{
		?>
        <tr> 
          <td class="file">
			<a href="../../ListDo.php" target="main" onmouseout="this.style.fontWeight=''" onmouseover="this.style.fontWeight='bold'">管理刷新任务</a>
          </td>
        </tr>
		<?
		}
		?>

      </table>
	</td>
  </tr>
<?
}
?>



<?
if($r[dolink])
{
?>
  <tr> 
    <td id="prlink" class="menu1" onclick="chengstate('link')">
		<a >友情链接管理</a>
	</td>
  </tr>
  <tr id="itemlink" style="display:none"> 
    <td class="list">
		<table border='0' cellspacing='0' cellpadding='0' width=100%>
        <tr> 
          <td class="file">
			<a href="../../tool/LinkClass.php" target="main" >管理友情链接分类</a>
          </td>
        </tr>
		<tr> 
          <td class="file">
			<a href="../../tool/ListLink.php" target="main" >管理友情链接</a>
          </td>
        </tr>
      </table>
	</td>
  </tr>
<?
}
?>

<?
if($r[dogbook])
{
?>
  <tr> 
    <td id="prgbook" class="menu1" onclick="chengstate('gbook')">
		<a >留言板管理</a>
	</td>
  </tr>
  <tr id="itemgbook" style="display:none"> 
    <td class="list">
		<table border='0' cellspacing='0' cellpadding='0' width=100%>
        <tr> 
          <td class="file">
			<a href="../../tool/GbookClass.php" target="main" >管理留言分类</a>
          </td>
        </tr>
		<tr> 
          <td class="file">
			<a href="../../tool/gbook.php" target="main" >管理留言</a>
          </td>
        </tr>
		<tr> 
          <td class="file">
			<a href="../../tool/DelMoreGbook.php" target="main" >批量删除留言</a>
          </td>
        </tr>
      </table>
	</td>
  </tr>
<?
}
?>





<?php
$b=0;
//自定义插件菜单
$menucsql=$empire->query("select classid,classname from {$dbtbpre}enewsmenuclass where classtype=2 order by myorder,classid");
while($menucr=$empire->fetch($menucsql))
{
	$menujsvar='diymenu'.$menucr['classid'];
	$b=1;
?>
  <tr> 
    <td id="pr<?=$menujsvar?>" class="menu1" onclick="chengstate('<?=$menujsvar?>')">
		<a ><?=$menucr['classname']?></a>
	</td>
  </tr>
  <tr id="item<?=$menujsvar?>" style="display:none"> 
    <td class="list">
		<table border='0' cellspacing='0' cellpadding='0' width=100%>
		<?php
		$menusql=$empire->query("select menuid,menuname,menuurl from {$dbtbpre}enewsmenu where classid='$menucr[classid]' order by myorder,menuid");
		while($menur=$empire->fetch($menusql))
		{
			if(!(strstr($menur['menuurl'],'://')||substr($menur['menuurl'],0,1)=='/'))
			{
				$menur['menuurl']='../../'.$menur['menuurl'];
			}
		?>
        <tr> 
          <td class="file">
			<a href="<?=$menur['menuurl']?>" target="main" ><?=$menur['menuname']?></a>
          </td>
        </tr>
		<?php
		}
		?>
      </table>
	</td>
  </tr>
<?php
}
?>
</table>
</body>
</html>