<?php
	require_once('_approot.php');
	
	$menu_sql="select * from ls_menu order by menuNum desc";
	$menu_query=$opendb->query($menu_sql);
	?>
<title>管理页面</title>
<style type=text/css>
body  { background:#799AE1; margin:0px; font:9pt 宋体; }
body 
 {
  scrollbar-face-color: #A4B6D7;
  scrollbar-highlight-color: #ffffff;
  scrollbar-shadow-color: #000000;
  scrollbar-arrow-color: #ffffff;
  scrollbar-base-color: #6699ff;
  scrollbar-dark-shadow-color: #6699ff;
 }

table  { border:0px; }
td  { font:normal 12px 宋体; }
img  { vertical-align:bottom; border:0px; }
a  { font:normal 12px 宋体; color:#000000; text-decoration:none; }
a:hover  { color:#428EFF;text-decoration:underline; }
.sec_menu  { border-left:1px solid white; border-right:1px solid white; border-bottom:1px solid white; overflow:hidden; background:#D6DFF7; }
.menu_title  { }
.menu_title span  { position:relative; top:2px; left:8px; color:#215DC6; font-weight:bold; }
.menu_title2  { }
.menu_title2 span  { position:relative; top:2px; left:8px; color:#428EFF; font-weight:bold; }
</style>
<SCRIPT language=javascript1.2>
function showsubmenu(sid)
{
whichEl = eval("submenu" + sid);
if (whichEl.style.display == "none")
{
eval("submenu" + sid + ".style.display=\"\";");
}
else
{
eval("submenu" + sid + ".style.display=\"none\";");
}
}
</SCRIPT>

<BODY leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">
<tr><td valign=top>
<table cellpadding=0 cellspacing=0 width=158 align=center>
  <tr>
		<td height=42 valign=bottom> <img src="images/title.gif" width=158 height=38> 
		</td>
  </tr>
</table>
<table cellpadding=0 cellspacing=0 width=158 align=center>
  <tr>
		<td height=25 class=menu_title onmouseover=this.className='menu_title2'; onmouseout=this.className='menu_title'; background=images/title_bg_quit.gif  > 
		  <span><a href="../" target=_top><b>返回首页</b></a> | <a href="loginout.php" target=_top><b>退出系统 
		  </b></a></span></td>
  </tr>
  <tr>
  	<td height="20"></td>
  </tr>
</table>

<table cellpadding=0 cellspacing=0 width=158 align=center>
  <tr>
		<td height=25 class=menu_title onmouseover=this.className='menu_title2'; onmouseout=this.className='menu_title'; background="images/admin_left_1.gif" style="cursor:hand" id=menuTitle1 onClick="showsubmenu(0)" > 
		  <span>首选服务</span></td>
  </tr>
  <tr>
	<td style="display:none;" id='submenu0'>
<div class=sec_menu style="width:158">
			<table cellpadding=0 cellspacing=0 align=center width=135>
			  <tr> 
				<td height=20><a href="ls_config.php" target="right">系统配制</a></td>
			  </tr>
			  <tr> 
				<td height=20><a href="modipwd.php" target="right">修改登陆密码</a></td>
			  </tr>
			  			<tr> 
				<td height=20><a href="../ls_mantain/ls_menu.php" target="right">主菜单管理</a></td>
			  </tr>
			  <tr> 
				<td height=20><a href="ls_about.php" target="right">关于我们</a></td>
			  </tr>
			</table>
	  </div>
<div  style="width:158">
<table cellpadding=0 cellspacing=0 align=center width=135>
<tr><td height=20></td></tr>
</table>
	  </div>
	</td>
  </tr>
</table>

<?php
	 while ($menu_rows=mysqli_fetch_assoc($menu_query))
	 {
	 		if($menu_rows['menuLink']=="products.html" && $menu_rows['enable']==1)
	 			{
?>

<table cellpadding=0 cellspacing=0 width=158 align=center>
  <tr>
		<td height=25 class=menu_title onmouseover=this.className='menu_title2'; onmouseout=this.className='menu_title'; background="images/admin_left_2.gif" id=menuTitle1 onClick="showsubmenu(1)" style="cursor:hand" > 
		  <span>产品管理</span></td>
  </tr>
  <tr>
	<td style="display:none;" id='submenu1'>
<div class=sec_menu style="width:158">
			<table cellpadding=0 cellspacing=0 align=center width=135>
			  <tr> 
				<td height=20><a href="cate.php" target="right">产品类别设置</a></td>
			  </tr>
			  <tr> 
				<td height=20><a href="products.php" target="right">产品管理</a></td>
			  </tr>
			  <tr> 
				<td height=20><a href="addproducts.php" target="right">添加产品</a></td>
			  </tr>
			</table>
	  </div>
<div  style="width:158">
<table cellpadding=0 cellspacing=0 align=center width=135>
<tr><td height=20></td></tr>
</table>
	  </div>
	</td>
  </tr>
</table>

<?php
		}
	if($menu_rows['menuLink']=="news.html" && $menu_rows['enable']==1)
	 	{
?>
<table cellpadding=0 cellspacing=0 width=158 align=center>
	  <tr> 
		<td height=25 class=menu_title onmouseover=this.className='menu_title2'; onmouseout=this.className='menu_title'; background="images/admin_left_4.gif" id=menuTitle1 onClick="showsubmenu(8)" style="cursor:hand" > 
		  <span>新闻管理</span></td>
	  </tr>
	  <tr> 
		<td valign="top" id='submenu8' style="display:none;"> 
			<div class=sec_menu style="width:158"> 
			<table cellpadding=0 cellspacing=0 align=center width=135>
			 <tr> 
				<td height=20><a href="news.php" target="right">管理全部新闻</a></td>
			  </tr>
			  <tr> 
				<td height=20><a href="addnews.php" target="right">添加新闻内容</a></td>
			  </tr>
			</table>
			
		  </div>
		  <table cellpadding=0 cellspacing=0 align=center width=135>
<tr><td height=20></td></tr>
</table>
		 </td>
	  </tr>
	</table>


<?php
		}
	if($menu_rows['menuLink']=="download.html" && $menu_rows['enable']==1)
	 	{
?>

<table cellpadding=0 cellspacing=0 width=158 align=center>
	  <tr> 
		<td height=25 class=menu_title onmouseover=this.className='menu_title2'; onmouseout=this.className='menu_title'; background="images/admin_left_5.gif" id=menuTitle1 onClick="showsubmenu(9)" style="cursor:hand" > 
		  <span>下载管理</span></td>
	  </tr>
	  <tr> 
		<td valign="top" id='submenu9' style="display:none;"> <div class=sec_menu style="width:158"> 
			<table cellpadding=0 cellspacing=0 align=center width=135>
			 <tr> 
				<td height=20><a href="download.php" target="right">管理全部下载</a></td>
			  </tr>
			  <tr> 
				<td height=20><a href="adddownload.php" target="right">添加下载内容</a></td>
			  </tr>
			</table>
			
		  </div>
		  <table cellpadding=0 cellspacing=0 align=center width=135>
<tr><td height=20></td></tr>
</table>
		 </td>
	  </tr>
	</table>

<?php
		}
	}
	

?>


   

<table cellpadding=0 cellspacing=0 width=158 align=center>
  <tr>
		<td height=25 class=menu_title onmouseover=this.className='menu_title2'; onmouseout=this.className='menu_title'; background="images/admin_left_6.gif" id=menuTitle1 onClick="showsubmenu(10)" style="cursor:hand" > 
		  <span>模板管理</span></td>
  </tr>
  <tr>
	<td style="display:none;" id='submenu10'>
<div class=sec_menu style="width:158">
			<table cellpadding=0 cellspacing=0 align=center width=135>
			  <tr> 
				<td height=20><a href="admin.php" target="right">模板标签帮助</a></td>
			  </tr>
			  <tr> 
				<td height=20><a href="temp.php?ls=normal" target="right">常用模板设置</a></td>
			  </tr>
			  <tr> 
				<td height=20><a href="temp.php?ls=products" target="right">产品模板设置</a></td>
			  </tr>
			  <tr> 
				<td height=20><a href="temp.php?ls=other" target="right">其他模板设置</a></td>
			  </tr>
			 </table>
	  </div>

	</td>
  </tr>
</table>


<br>
 <table cellpadding=0 cellspacing=0 width=158 align=center>
  <tr>
		<td height=25 class=menu_title onmouseover=this.className='menu_title2'; onmouseout=this.className='menu_title'; background="images/admin_left_9.gif" id=menuTitle1 > 
		  <span>Web Information </span> </td>
  </tr>
  <tr>
	<td>
<div class=sec_menu style="width:158">
						<table cellpadding=0 cellspacing=0 align=center width=135>
			  <tr> 
				<td height=20>蓝信网络科技有限公司</td>
			  </tr>
			   </table>
  </div>
							<table cellpadding=0 cellspacing=0 align=center width=135>
							
							<tr><td height=20>
											
							</td></tr>
							
							</table>
	 
	</td>
  </tr>
</table>

</body>
</html>