<?php session_start(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php
/*
菜单是否有有效取决于
1、ls_menu是否有这个菜单项，并且有效
2、$vertype 套餐类型 是有允许， $vertype=0 没有套餐限制
*/
	require_once('inc/conn.php');
	require_once('inc/constant.php');
	require_once('inc/admin.class.php');
	require_once('inc/ls_syscode.php');
	$opendb=new mydb();
	require_once('inc/char_set.php');
	$config_sql="select * from ls_config ";
	$config_query=$opendb->query($config_sql);
	$config_rows=mysql_fetch_assoc($config_query);
	
	$menu_sql="select * from ls_menu order by menuNum asc"; 
	$menu_query=$opendb->query($menu_sql);
	$ls=$_GET['ls'];
	$del=$_GET['del'];
	$thispagepos=(strpos($_SERVER['PHP_SELF'],'createvertype.php')>0?true:false);
	//tag-vertype
	$vertype=0;
	//tag-vertypeend
	//echo $thispage;
	?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>管理页面</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link type="text/css" rel="stylesheet" href="css/admin.css" />
<style type=text/css>
body { background:#799AE1; margin:0px; padding:0px; }
table { border:0px; }
img { vertical-align:bottom; border:0px; }
.sec_menu { overflow:hidden; background:#D6DFF7;}
.sec_menu table{width:100%;}
.sec_menu td{padding:3px 0;}
.sec_menu td a{display:block;padding-left:10px;}
.sec_menu td a:hover{background:#f1f1f1;}
.menu_title { cursor:pointer; text-align:left; color:#215DC6; font-weight:bold; font-size:12px; padding-left:8px; }
.menu_title2 { cursor: pointer; }
.menu_title2 span { position:relative; top:2px; left:8px; color:#428EFF; font-weight:bold; }
</style>
<script type="text/javascript" src="scripts/jquery-core.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	$(",menu_title2").hover(function(){
		$(this).removeClass("menu_title");
		$(this).addClass("menu_title2");
	},function(){
		$(this).removeClass("menu_title2");
		$(this).addClass("menu_title");
	});
	$(".menu_title,.menu_title2").live("click",function(){
		$(this).parent("tr").next("tr").find("td:has(div.sec_menu)").toggle();
	});
})
</script>
</head>
<BODY>
<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 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 background="images/admin_left_1.gif" id=menuTitle1 >系统管理</td>
	</tr>
	<tr>
		<td style="display:none;" id='submenu0'>
			<div class="sec_menu">
				<table>
					<tr>
						<td><a href="ls_config.php" target="right">设置优化</a></td>
					</tr>
					<tr>
					  <td><a href="ls_about.php" target="right">关于我们</a></td>
				  </tr>
					<tr>
						<td><a href="modipwd.php" target="right">修改密码</a></td>
				</tr>
				<tr>
					  <td><a href="ls_feedback.php" target="right">反馈信息</a></td>
				  </tr>
				  <tr>
					  <td><a href="ls_contact.php" target="right">联系我们</a></td>
				  </tr>
<?					
if(   $vertype!=1  )
{
?>					<tr>
					  <td><a href="motif.php" target="right">主题图</a></td>
				  </tr>
<? }?>
					<tr>
					  <td><a href="generalpics.php?gen=revolvingpics" target="right">主页滚动图片</a></td>
				  </tr>
                  <?php
                  if(in_array('1',$admin->getRole())){ ?>
					<tr>
					  <td><a href="adminmanage.php" target="right">管理员管理</a></td>
				  </tr>
                  <? }?>
<?					
if(   $vertype!=1 &&  $vertype!=2 )
{
?>
<? }

if(   $vertype!=1  )
{
?>					
	
					<tr>
						<td><a href="watermarkstr.php" target="right">图片水印</a></td>
					</tr>
<? }?>
					<tr>
						<td><a href="ls_log.php" target="right">系统日志</a></td>
					</tr>
				</table>
			</div>
		</td>
	</tr>
</table>

<div style="height:10px;"></div>
<?php
while ($menu_rows=mysql_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 background="images/admin_left_2.gif" id=menuTitle2 ><span>产品管理</span></td>
	</tr>
	<tr>
		<td style="display:;" id='submenu1'>
			<div class="sec_menu">
				<table>
					<tr>
						<td><a href="cate.php" target="right">产品类别</a></td>
					</tr>
					<tr>
						<td><a href="products.php" target="right">产品管理</a></td>
					</tr>
					<tr>
					  <td><a href="addproducts.php" target="right">添加产品</a></td>
				  </tr>
					<tr>
						<td><a href="home_pro_manage.php" target="right">首页热点排序</a></td>
					</tr>
					<?
					if($ls_classproType == "selectPic"){
					?>
					<tr>
						<td><a href="products_pro_manage.php" target="right">产品类图</a></td>
					</tr>
					<? } ?>
					<tr>
					  <td><a href="catetransfer.php" target="right">类别迁移</a></td>
				  </tr>
				</table>
			</div>
		</td>
	</tr>
</table>
<div style="height:10px;"></div>
<?php
	}
}
mysql_data_seek($menu_query,0);//指针复位
while ($menu_rows=mysql_fetch_assoc($menu_query))
{
	if($menu_rows['menuLink']=="news.html" && $menu_rows['enable']>=1 && $vertype!=1 )
	{
?>
<table cellpadding=0 cellspacing=0 width=158 align=center>
	<tr>
		<td height=25 class=menu_title background="images/admin_left_4.gif" id=menuTitle3 ><span>新闻管理</span></td>
	</tr>
	<tr>
		<td valign="top" id='submenu8' style="display:none;">
			<div class="sec_menu">
				<table>
					<tr>
						<td><a href="managefunctioncate.php?functionName=新闻分类" target="right">新闻分类</a></td>
					</tr>
					<tr>
						<td><a href="news.php" target="right">管理全部</a></td>
					</tr>
					<tr>
						<td><a href="addnews.php" target="right">添加新闻</a></td>
					</tr>
				</table>
			</div>
		</td>
	</tr>
</table>
<div style="height:10px;"></div>
<table cellpadding=0 cellspacing=0 width=158 align=center>
	<tr>
		<td height=25 class=menu_title background="images/admin_left_4.gif" id=menuTitle3 ><span>常见问题</span></td>
	</tr>
	<tr>
		<td valign="top" id='submenu8' style="display:none;">
			<div class="sec_menu">
				<table>
					<tr>
						<td><a href="managefunctioncate.php?functionName=常见问题" target="right">问题分类</a></td>
					</tr>
					<tr>
						<td><a href="faq.php" target="right">问题管理</a></td>
					</tr>
					<tr>
						<td><a href="addfaq.php" target="right">添加问题</a></td>
					</tr>
				</table>
			</div>
		</td>
	</tr>
</table>
<div style="height:10px;"></div>
<table cellpadding=0 cellspacing=0 width=158 align=center>
	<tr>
		<td height=25 class=menu_title background="images/admin_left_4.gif" id=menuTitle3 ><span>博客管理</span></td>
	</tr>
	<tr>
		<td valign="top" id='submenu8' style="display:none;">
			<div class="sec_menu">
				<table>
					<tr>
						<td><a href="managefunctioncate.php?functionName=博客分类" target="right">博客分类</a></td>
					</tr>
					<tr>
						<td><a href="blog.php" target="right">管理博客</a></td>
					</tr>
					<tr>
						<td><a href="addblog.php" target="right">添加博客</a></td>
					</tr>
                    <tr>
						<td><a href="ls_links.php" target="right">博客链接</a></td>
					</tr>
				</table>
			</div>
		</td>
	</tr>
</table>
<div style="height:10px;"></div>
<?php

	}
}
mysql_data_seek($menu_query,0);//指针复位
while ($menu_rows=mysql_fetch_assoc($menu_query))
{
	if($menu_rows['menuLink']=="download.html" && $menu_rows['enable']>=1 && $vertype!=1)
	{
?>
<table cellpadding=0 cellspacing=0 width=158 align=center>
	<tr>
		<td height=25 class=menu_title background="images/admin_left_5.gif" id=menuTitle4 ><span>下载管理</span></td>
	</tr>
	<tr>
		<td valign="top" id='submenu9' style="display:none;">
			<div class="sec_menu">
				<table>
					<tr>
						<td><a href="download.php" target="right">管理下载</a></td>
					</tr>
					<tr>
						<td><a href="adddownload.php" target="right">添加下载</a></td>
					</tr>
				</table>
			</div>
		</td>
	</tr>
</table>
<div style="height:10px;"></div>
<?php
	}
}
if(  $vertype!=1 && $vertype!=2)
{
?>
<table cellpadding=0 cellspacing=0 width=158 align=center>
	<tr>
		<td height=25 class=menu_title background="images/admin_left_7.gif" id=menuTitle5 ><span>单页管理</span></td>
	</tr>
	<tr>
		<td valign="top" id='submenu13' style="display:none;">
			<div class="sec_menu">
				<table>
					<tr>
						<td><a href="singlepage.php" target="right">单页管理</a></td>
					</tr>
					<tr>
						<td><a href="addsinglepage.php" target="right">添加单页</a></td>
					</tr>
				</table>
			</div>
		</td>
	</tr>
</table>
<div style="height:10px;"></div>
<?php
}
if(   $vertype!=1  )
{
?>

<table cellpadding=0 cellspacing=0 width=158 align=center>
	<tr>
		<td height=25 class=menu_title background="images/admin_left_5.gif" id=menuTitle6 ><span>网站推广</span></td>
	</tr>
	<tr>
	  <td valign="top" id='submenu4' style="display:none;"><div class="sec_menu">
	    <table>
	      <tr>
	        <td><a href="manageb2bsite.php" target="right">推广管理</a></td>
          </tr>
 	      <tr>
	        <td><a href="<?=$awstatsUrl?>" target="blank">访问统计</a></td>
          </tr>
       </table>
	    </div></td>
  </tr>
</table>
 <?php
}
?>
<div style="height:10px;"></div>
<?php
if(   $vertype!=1  )
{
?>
<!--
<table cellpadding=0 cellspacing=0 width=158 align=center>
	<tr>
		<td height=25 class=menu_title background="images/admin_left_5.gif" id=menuTitle6 ><span>移动终端</span></td>
	</tr>
	<tr>
	  <td valign="top" id='submenu4' style="display:none;"><div class="sec_menu">
	    <table>
	      <tr>
	        <td><a href="ls_mobiconfig.php" target="right">移动配置</a></td>
          </tr>
       </table>
	    </div></td>
  </tr>
</table>-->
 <?php
}
?>
<table cellpadding=0 cellspacing=0 width=158 align=center>
	<tr>
		<td height=25 class=menu_title background="images/admin_left_8.gif" id=menuTitle7 ><span>其他栏目</span></td>
	</tr>
	<tr>
		<td valign="top" id='submenu11' style="display:none;">
			<div class="sec_menu">
				<table>
 <?php

mysql_data_seek($menu_query,0);//指针复位
while ($menu_rows=mysql_fetch_assoc($menu_query))
{
	if($menu_rows['menuLink']=="column.html" && $menu_rows['enable']>=1 &&  $vertype!=1 )
	{
?>
 <?php
	}
}
mysql_data_seek($menu_query,0);//指针复位
while ($menu_rows=mysql_fetch_assoc($menu_query))
{ 
	if($menu_rows['menuLink']=="workshop.html" && $menu_rows['enable']>=1   )
	{

?>
					<tr>
						<td><a href="generalpics.php?gen=workshop" target="right">工厂管理</a></td>
					</tr>
 <?php
	}
}
mysql_data_seek($menu_query,0);//指针复位
while ($menu_rows=mysql_fetch_assoc($menu_query))
{ 
	if($menu_rows['menuLink']=="certificate.html" && $menu_rows['enable']>=1   )
	{

?>
					<tr>
						<td><a href="generalpics.php?gen=certificate" target="right">认证管理</a></td>
					</tr>
 <?php
	}
}
mysql_data_seek($menu_query,0);//指针复位
while ($menu_rows=mysql_fetch_assoc($menu_query))
{ 
	if($menu_rows['menuLink']=="quality.html" && $menu_rows['enable']>=1   )
	{

?>
					<tr>
						<td><a href="generalpics.php?gen=quality" target="right">质量控制</a></td>
					</tr>
<?php
	}
}
mysql_data_seek($menu_query,0);//指针复位
while ($menu_rows=mysql_fetch_assoc($menu_query))
{ 
	if($menu_rows['menuLink']=="links.html" && $menu_rows['enable']>=1  && $vertype!=1 &&  $vertype!=2 )
	{

?>
					<tr>
						<td><a href="ls_links.php" target="right">友情链接</a></td>
					</tr>
 <?php
	}
}
mysql_data_seek($menu_query,0);//指针复位
while ($menu_rows=mysql_fetch_assoc($menu_query))
{ 
	if($menu_rows['menuLink']=="packing.html" && $menu_rows['enable']>=1  && $vertype!=1 &&  $vertype!=2 )
	{

?>

					<tr>
					  <td><a href="generalpics.php?gen=packing" target="right">包装管理</a></td>
				  </tr>


 <?php
	}
}
mysql_data_seek($menu_query,0);//指针复位
while ($menu_rows=mysql_fetch_assoc($menu_query))
{ 
	if($menu_rows['menuLink']=="rd.html" && $menu_rows['enable']>=1  && $vertype!=1 &&  $vertype!=2 )
	{

?>

					<tr>
					  <td><a href="generalpics.php?gen=packing" target="right">研发管理</a></td>
				  </tr>

 <?php
	}
}
mysql_data_seek($menu_query,0);//指针复位
while ($menu_rows=mysql_fetch_assoc($menu_query))
{ 
	if($menu_rows['menuLink']=="brand.html" && $menu_rows['enable']>=1  && $vertype!=1 &&  $vertype!=2 )
	{

?>
 <?php
	}
}
mysql_data_seek($menu_query,0);//指针复位
while ($menu_rows=mysql_fetch_assoc($menu_query))
{ 
	if($menu_rows['menuLink']=="management.html" && $menu_rows['enable']>=1  && $vertype!=1 &&  $vertype!=2 )
	{

?>
					<tr>
					  <td><a href="generalpics.php?gen=management" target="right">团队管理</a></td>
				  </tr>
<?
	}
		if($menu_rows['menuLink']=="history.html" && $menu_rows['enable']>=1  && $vertype!=1 &&  $vertype!=2 )
	{

?>
					<tr>
					  <td><a href="generalpics.php?gen=history" target="right">公司历史</a></td>
				  </tr>
<?
	}
}
?>
				</table>
			</div>
		</td>
	</tr>
</table>
<div style="height:10px;"></div>

<table cellpadding=0 cellspacing=0 width=158 align=center>
	<tr>
		<td height=25 class=menu_title background="images/admin_left_6.gif" id=menuTitle8 ><span>页面生成</span></td>
	</tr>
	<tr>
		<td style="display:none;" id='submenu10'>
			<div class="sec_menu">
				<table>
					<tr>
					  <td><a href="temp.php?ls=normal" target="right">常用页面</a></td>
				  </tr>
					<tr>
						<td><a href="temp.php?ls=products" target="right">产品页面</a></td>
					</tr>
					<tr>
					  <td><a href="temp.php?ls=other" target="right">其他页面</a></td>
				  </tr>
				  <tr>
					  <td><a href="temp_m.php?ls=mobile" target="right">移动端页面</a></td>
				  </tr>
					<tr>
					  <td><a href="admin.php" 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 background="images/admin_left_9.gif" id=menuTitle1 >Web Information</td>
	</tr>
	<tr>
		<td><div class="sec_menu">
				<table>
					<tr>
						<td><span class="sec_menu" style="width:158"><a href="http://www.lanscend.com" target="_blank">蓝信网络科技有限公司</a></span></td>
					</tr>
				</table>
			</div>
			<table>
				<tr>
					<td><br>
						<span style="font-size:12px;">温馨提示：您添加、修改内容以后请使用“页面生成”，然后刷新浏览器。</span></td>
				</tr>
			</table></td>
	</tr>
</table>
</body>
</html>