<?php 	require_once('_approot.php'); ?>
<!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 没有套餐限制
*/
	
	$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
	include("widget/ls_langpath.php");  //多语种路径判断

	?>
<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" />-->
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
  <!-- Font Awesome -->
<link rel="stylesheet" href="font-awesome/css/font-awesome.min.css" />
  <!-- Ionicons -->
<link rel="stylesheet" href="css/ionicons.min.css">
  <!-- Theme style -->
<link rel="stylesheet" href="css/AdminLTE.min.css">
  <!-- AdminLTE Skins. Choose a skin from the css/skins
       folder instead of downloading all of them to reduce the load. -->
  <link rel="stylesheet" href="css/_all-skins.min.css" />
  <!-- Morris chart -->
  <link rel="stylesheet" href="css/morris.css">
  <!-- jvectormap -->
  <link rel="stylesheet" href="css/jquery-jvectormap.css">
  <!-- Date Picker -->
  <link rel="stylesheet" href="css/bootstrap-datepicker.min.css">
  <!-- Daterange picker -->
  <link rel="stylesheet" href="css/daterangepicker2.css">
  <!-- bootstrap wysihtml5 - text editor -->
  <link rel="stylesheet" href="css/bootstrap3-wysihtml5.min.css">
  <style> 
  body{ font-family:"微软雅黑";}
  </style>
</head>
<body class="hold-transition skin-blue sidebar-mini" style="background-color: #222d32;">
<!--<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="all.php" target=_top><b> 后台首页</b></a> | <a href="loginout.php" target=_top><b>退出系统 </b></a></span></td>
	</tr>
	<tr>
		<td height="20"></td>
	</tr>
</table>-->
<header class="main-header">
    <a href="#" class="logo">
      <span class="logo-mini"><b>菜单</b></span>
    <span class="logo-lg"><b>后台功能菜单</b></span></a>
    <div class="user-panel">
      <div class="pull-left image"> <img src="images/timg2.jpg" class="img-circle" alt="User Image" /> </div>
      <div class="pull-left info">
        <p>管理员</p>
        <a href="#"><i class="fa fa-circle text-success"></i> admin</a> </div>
    </div>
</header>
    <section class="sidebar" style="background-color: #222d32;">
      <!-- Sidebar user panel -->
      <ul class="sidebar-menu" data-widget="tree">
        <li class="active treeview">
          <a href="#">
         <i class="fa fa-gears"></i> <span>系统功能</span>
            <span class="pull-right-container">
            </span>
          </a>
          <ul class="treeview-menu">
          <li class="active"><a href="ls_config.php" target="right"><i class="fa fa-circle-o"></i> 设置优化</a></li>
			     <li><a href="ls_about.php" target="right"><i class="fa fa-circle-o"></i> 关于我们</a></li>
				 <li><a href="ls_contact.php" target="right"><i class="fa fa-circle-o"></i> 联系我们</a></li>
				 <li><a href="ls_feedback.php" target="right"><i class="fa fa-circle-o"></i> 询盘管理</a></li>
				 <li><a href="ls_notice.php" target="right"><i class="fa fa-circle-o"></i> 最新公告</a></li>
				 <li><a href="modipwd.php" target="right"><i class="fa fa-circle-o"></i> 修改密码</a></li>
				 <li><a href="motif.php" target="right"><i class="fa fa-circle-o"></i> 主题图</a></li>
				 <li><a href="generalpics.php?gen=revolvingpics" target="right"><i class="fa fa-circle-o"></i> 主页滚动</a></li>
				
<?php 				
if(   $vertype!=1 &&  $vertype!=2 )
{
?>					
						<li><a href="ls_users.php" target="right"><i class="fa fa-circle-o"></i> 客户管理</a></li>

				
<?php }

if(   $vertype!=1  )
{
?>					
	

						<li><a href="watermarkstr.php" target="right"><i class="fa fa-circle-o"></i> 图片水印</a></li>
					
<?php }?>
					
						<li><a href="backup.php" target="right"><i class="fa fa-circle-o"></i> 备份数据</a></li>

						<li><a href="restore.php" target="right"><i class="fa fa-circle-o"></i> 恢复数据</a></li>

						<li><a href="ls_log.php" target="right"><i class="fa fa-circle-o"></i> 系统日志</a></li>
          </ul>
        </li>
        <li class="treeview">
          <a href="#">
         <i class="fa fa-dashboard"></i>
            <span>产品管理</span>
            <span class="pull-right-container">
             <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="cate.php" target="right"><i class="fa fa-circle-o"></i> 产品类别</a></li>
            <li><a href="products.php" target="right"><i class="fa fa-circle-o"></i> 产品管理</a></li>
            <li><a href="addproducts.php" target="right"><i class="fa fa-circle-o"></i> 添加产品</a></li>
            <li><a href="home_pro_manage.php" target="right"><i class="fa fa-circle-o"></i> 热点产品</a></li>
            <?php 					if($ls_classproType == "selectPic"){
					?>
            <li><a href="products_pro_manage.php" target="right"><i class="fa fa-circle-o"></i> 产品类图</a></li>
            <?php } ?>
            <li><a href="catetransfer.php" target="right"><i class="fa fa-circle-o"></i> 类别迁移</a></li>
            <li><a href="ls_pro_feedback.php" target="right"><i class="fa fa-circle-o"></i> 产品反馈</a></li>
          </ul>
        </li>
        <li class="treeview">
          <a href="#">
            <i class="fa fa-edit"></i> <span>新闻管理</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="managefunctioncate.php?functionName=新闻分类" target="right"><i class="fa fa-circle-o"></i> 新闻分类</a></li>
            <li><a href="news.php" target="right"><i class="fa fa-circle-o"></i> 全部新闻</a></li>
            <li><a href="addnews.php" target="right"><i class="fa fa-circle-o"></i> 添加新闻</a></li>
          </ul>
        </li>
        <li class="treeview">
          <a href="#">
            <i class="fa fa-wt"></i> <span>常见问题</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="managefunctioncate.php?functionName=常见问题" target="right"><i class="fa fa-circle-o"></i> 问题分类</a></li>
            <li><a href="faq.php" target="right"><i class="fa fa-circle-o"></i> 管理问题</a></li>
            <li><a href="addfaq.php" target="right"><i class="fa fa-circle-o"></i> 添加问题</a></li>
          </ul>
        </li>
        <li class="treeview">
          <a href="#">
            <i class="fa fa-bk"></i> <span>博客管理</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="managefunctioncate.php?functionName=博客分类" target="right"><i class="fa fa-circle-o"></i> 博客分类</a></li>
            <li><a href="blog.php" target="right"><i class="fa fa-circle-o"></i> 全部博客</a></li>
            <li><a href="addblog.php" target="right"><i class="fa fa-circle-o"></i> 添加博客</a></li>
            <li><a href="ls_links.php" target="right"><i class="fa fa-circle-o"></i> 博客链接</a></li>
          </ul>
        </li>
        <li class="treeview">
          <a href="#">
            <i class="fa fa-folder"></i><span> 下载管理</span><span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="download.php" target="right"><i class="fa fa-circle-o"></i> 管理下载</a></li>
            <li><a href="adddownload.php" target="right"><i class="fa fa-circle-o"></i> 添加下载</a></li>
          </ul>
        </li>
        <li class="treeview">
          <a href="#">
            <i class="fa fa-pie-chart"></i>
            <span>单页管理</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="singlepage.php" target="right"><i class="fa fa-circle-o"></i> 单页管理</a></li>
            <li><a href="addsinglepage.php" target="right"><i class="fa fa-circle-o"></i> 添加单页</a></li>
          </ul>
        </li>
        <li class="treeview">
          <a href="#">
            <i class="fa fa-files-o"></i>
            <span>其他栏目</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
           <?php

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

            <li><a href="generalpics.php?gen=workshop" target="right"><i class="fa fa-circle-o"></i> 工厂管理</a></li>
             <?php
	}
}
mysqli_data_seek($menu_query,0);//指针复位
while ($menu_rows=mysqli_fetch_assoc($menu_query))
{ 
	if($menu_rows['menuLink']=="certificate.html" && $menu_rows['enable']>=1   )
	{

?>
            <li><a href="generalpics.php?gen=certificate" target="right"><i class="fa fa-circle-o"></i> 认证管理</a></li>
            <?php
	}
}
mysqli_data_seek($menu_query,0);//指针复位
while ($menu_rows=mysqli_fetch_assoc($menu_query))
{ 
	if($menu_rows['menuLink']=="quality.html" && $menu_rows['enable']>=1   )
	{

?>
						<li><a href="generalpics.php?gen=quality" target="right"><i class="fa fa-circle-o"></i> 质量控制</a></li>

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

?>
						<li><a href="ls_links.php" target="right"><i class="fa fa-circle-o"></i> 友情链接</a></li>

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

?>
					  <li><a href="generalpics.php?gen=packing" target="right"><i class="fa fa-circle-o"></i> 包装管理</a></li>

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

?>
					  <li><a href="generalpics.php?gen=rd" target="right"><i class="fa fa-circle-o"></i> 研发管理</a></li>


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

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

?>
					  <li><a href="generalpics.php?gen=history" target="right"><i class="fa fa-circle-o"></i> 公司历史</a></li>
				  
<?php 	}
}
?>
          </ul>
        </li>
        <li class="treeview">
          <a href="#">
            <i class="fa fa-laptop"></i>
            <span>页面生成</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="temp.php?ls=normal" target="right"><i class="fa fa-circle-o"></i> 常用页面</a></li>
            <li><a href="temp.php?ls=products" target="right"><i class="fa fa-circle-o"></i> 产品页面</a></li>

           <?php if($googleTrans && $_SESSION['landir']==""){?> <li><a href="temp_ml.php?ls=translate" target="right"><i class="fa fa-circle-o"></i> 多语种</a></li><?php }?>
            <li><a href="admin.php" target="right"><i class="fa fa-circle-o"></i> 标签帮助</a></li>
          </ul>
        </li>
      </ul>

  <div class="main-yj" style="position: relative;
max-height: 100px; padding:20px 0;
z-index: 1030;background-color: #367fa9;
color: #fff;text-align: center;
border-bottom: 0 solid transparent;">
      <span style="font-size:18px;
">Web Information</span></br>
<span style="width:158"><a href="http://www.lanscend.com" target="_blank">蓝信网络科技有限公司</a></span>
  </div>      
<div style="margin:5px 10px;"><span style="font-size:12px; color:#fff;">温馨提示：您添加、修改内容以后请使用“页面生成”，然后刷新浏览器。</span></div>
    </section>
<script type="text/javascript" src="js/jquery.min.js"></script>
<!-- jQuery UI 1.11.4 -->
<script type="text/javascript"src="js/jquery-ui.min.js"></script>
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
<script>
  $.widget.bridge('uibutton', $.ui.button);
</script>
<!-- Bootstrap 3.3.7 -->
<script type="text/javascript" src="bootstrap/js/bootstrap.min.js"></script>
<!-- Morris.js charts -->
<script type="text/javascript" src="js/raphael.min.js"></script>
<script type="text/javascript" src="js/morris.min.js"></script>
<!-- Sparkline -->
<script type="text/javascript" src="js/jquery.sparkline.min.js"></script>
<!-- jvectormap -->
<script type="text/javascript" src="js/jquery-jvectormap-1.2.2.min.js"></script>
<script type="text/javascript" src="js/jquery-jvectormap-world-mill-en.js"></script>
<!-- jQuery Knob Chart -->
<script type="text/javascript" src="js/jquery.knob.min.js"></script>
<!-- daterangepicker -->
<script type="text/javascript" src="js/moment.min2.js"></script>
<script type="text/javascript" src="js/daterangepicker.js"></script>
<!-- datepicker -->
<script type="text/javascript" src="js/bootstrap-datepicker.min.js"></script>
<!-- Bootstrap WYSIHTML5 -->
<script type="text/javascript" src="js/bootstrap3-wysihtml5.all.min.js"></script>
<!-- Slimscroll -->
<script type="text/javascript" src="js/jquery.slimscroll.min.js"></script>
<!-- FastClick -->
<script type="text/javascript" src="js/fastclick.js"></script>
<!-- AdminLTE App -->
<script type="text/javascript" src="js/adminlte.min.js"></script>
<!-- AdminLTE dashboard demo (This is only for demo purposes) -->
<script type="text/javascript" src="js/dashboard.js"></script>
<!-- AdminLTE for demo purposes -->
<script type="text/javascript" src="js/demo.js"></script>
</body>
</html>