<?php 
include("../../config/config.php");
if(!isset($_SESSION['adminname'])){echo "<script>alert('请重新登录!')</script><script>top.location.href='/$htlj/'</script>";exit;}
$adminname=$_SESSION['adminname'];
$type="where name='$adminname'";
$adminpd=queryall(admin,$type);
if(!$adminpd){echo "<script>alert('请重新登录!')</script><script>top.location.href='/$htlj/'</script>";exit;}
?>
<div class="layui-side layui-bg-black kit-side">
<div class="layui-side-scroll">
<ul class="layui-nav layui-nav-tree" lay-filter="kitNavbar" kit-navbar>
<?php if($adminpd[qx]=='超级管理员'){?>
<li class="layui-nav-item ">
<a href="javascript:;"><i class="fa fa-th-large" aria-hidden="true"></i><span> 系统菜单</span></a>
<ul class="menu_ul layui-nav-child">
<li><a href="javascript:;" data-url="/htpeizhi<?php echo $dshz?>" data-icon="fa fa-cogs"  data-title="网站配置" kit-target data-id='28'><i class="fa fa-cogs" aria-hidden="true"></i><span> 网站配置</span></a></li>
<li><a href="javascript:;" data-url="/htwxlist<?php echo $dshz?>" data-icon="fa fa-cogs"  data-title="微信资料" kit-target data-id='2809'><i class="fa fa-cogs" aria-hidden="true"></i><span> 微信资料</span></a></li>
<li><a href="javascript:;" data-url="/htadmin<?php echo $dshz?>" data-icon="fa fa-lock" data-title="管理员列表" kit-target data-id='27'><i class="fa fa-lock" aria-hidden="true"></i><span> 管理员列表</span></a></li>
<li><a href="javascript:;" data-url="/htzym<?php echo $dshz?>" data-icon="fa fa-slack" data-title="主域名列表" kit-target data-id='216'><i class="fa fa-slack" aria-hidden="true"></i><span> 主域名列表</span></a></li>
<li><a href="javascript:;" data-url="/hthost<?php echo $dshz?>" data-icon="fa fa-slack" data-title="落地域名列表" kit-target data-id='26'><i class="fa fa-slack" aria-hidden="true"></i><span> 落地域名列表</span></a></li>
<li><a href="javascript:;" data-url="/htgonggao<?php echo $dshz?>" data-icon="fa fa-bullhorn" data-title="网站公告管理" kit-target data-id='25'><i class="fa fa-bullhorn" aria-hidden="true"></i><span> 网站公告管理</span></a></li>
<li><a href="javascript:;" data-url="/htdlrz<?php echo $dshz?>" data-icon="fa fa-comments-o" data-title="代理日志" kit-target data-id='23'><i class="fa fa-comments-o" aria-hidden="true"></i><span> 代理日志</span></a></li>
<li><a href="javascript:;" data-url="/htglyqm<?php echo $dshz?>" data-icon="fa fa-certificate" data-title="邀请码列表" kit-target data-id='22'><i class="fa fa-certificate" aria-hidden="true"></i><span> 邀请码列表</span></a></li>
<li><a href="javascript:;" data-url="/htbeifen<?php echo $dshz?>" data-icon="fa fa-wrench" data-title="备份数据" kit-target data-id='20'><i class="fa fa-wrench" aria-hidden="true"></i><span> 备份数据</span></a></li>
</ul>
</li> 
<?php }elseif($adminpd[qx]=='系统管理员'){?>
<li class="layui-nav-item ">
<a href="javascript:;"><i class="fa fa-th-large" aria-hidden="true"></i><span> 系统菜单</span></a>
<ul class="menu_ul layui-nav-child">
<li><a href="javascript:;" data-url="/htpeizhi<?php echo $dshz?>" data-icon="fa fa-cogs"  data-title="网站配置" kit-target data-id='28'><i class="fa fa-cogs" aria-hidden="true"></i><span> 网站配置</span></a></li>
<li><a href="javascript:;" data-url="/htwxlist<?php echo $dshz?>" data-icon="fa fa-cogs"  data-title="微信资料" kit-target data-id='2809'><i class="fa fa-cogs" aria-hidden="true"></i><span> 微信资料</span></a></li>
<li><a href="javascript:;" data-url="/htpass<?php echo $dshz?>" data-icon="fa fa-lock" data-title="修改账号密码" kit-target data-id='27'><i class="fa fa-lock" aria-hidden="true"></i><span> 修改账号密码</span></a></li>
<li><a href="javascript:;" data-url="/htzym<?php echo $dshz?>" data-icon="fa fa-slack" data-title="主域名列表" kit-target data-id='216'><i class="fa fa-slack" aria-hidden="true"></i><span> 主域名列表</span></a></li>
<li><a href="javascript:;" data-url="/hthost<?php echo $dshz?>" data-icon="fa fa-slack" data-title="落地域名列表" kit-target data-id='26'><i class="fa fa-slack" aria-hidden="true"></i><span> 落地域名列表</span></a></li>
<li><a href="javascript:;" data-url="/htgonggao<?php echo $dshz?>" data-icon="fa fa-bullhorn" data-title="网站公告管理" kit-target data-id='25'><i class="fa fa-bullhorn" aria-hidden="true"></i><span> 网站公告管理</span></a></li>
<li><a href="javascript:;" data-url="/htdlrz<?php echo $dshz?>" data-icon="fa fa-comments-o" data-title="代理日志" kit-target data-id='23'><i class="fa fa-comments-o" aria-hidden="true"></i><span> 代理日志</span></a></li>
<li><a href="javascript:;" data-url="/htglyqm<?php echo $dshz?>" data-icon="fa fa-certificate" data-title="邀请码列表" kit-target data-id='22'><i class="fa fa-certificate" aria-hidden="true"></i><span> 邀请码列表</span></a></li>
</ul>
</li> 
<?php }else{?>
<li class="layui-nav-item ">
<a href="javascript:;"><i class="fa fa-th-large" aria-hidden="true"></i><span> 系统菜单</span></a>
<ul class="menu_ul layui-nav-child">
<li><a href="javascript:;" data-url="/htpass<?php echo $dshz?>" data-icon="fa fa-lock" data-title="修改账号密码" kit-target data-id='27'><i class="fa fa-lock" aria-hidden="true"></i><span> 修改账号密码</span></a></li>
</ul>
</li> 
<?php }?>
<?php if($adminpd[qx]=='超级管理员' or $adminpd[qx]=='财务管理员'){?> 
<li class="layui-nav-item ">
<a href="javascript:;"><i class="fa fa-jpy" aria-hidden="true"></i><span> 财务管理</span></a>
<ul class="menu_ul layui-nav-child">
<li><a href="javascript:;" data-url="/htyjs<?php echo $dshz?>" data-icon="fa fa-check" data-title="已结算列表" kit-target data-id='19'><i class="fa fa-check" aria-hidden="true"></i><span> 已结算列表</span></a></li>
<li><a href="javascript:;" data-url="/htwjs<?php echo $dshz?>"  data-icon="fa fa-remove" data-title="未结算列表" kit-target data-id='18'><i class="fa fa-remove" aria-hidden="true"></i><span> 未结算列表</span></a></li>
</ul>
</li> 
<?php }?>
<?php if($adminpd[qx]=='超级管理员'){?> 
<li class="layui-nav-item ">
<a href="javascript:;"><i class="fa fa-vimeo-square" aria-hidden="true"></i><span> 支付接口</span></a>
<ul class="menu_ul layui-nav-child">
<li><a href="javascript:;" data-url="/hthzpay<?php echo $dshz?>"  data-icon="fa fa-star-half-full" data-title="支付通道列表" kit-target data-id='17'><i class="fa fa-star-half-full" aria-hidden="true"></i><span> 支付通道列表</span></a></li>
</ul>
</li> 
<?php }?>
<?php if($adminpd[qx]=='超级管理员'){?>
<li class="layui-nav-item ">
<a href="javascript:;"><i class="fa fa-bar-chart" aria-hidden="true"></i><span> 订单数据</span></a>
<ul class="menu_ul layui-nav-child">
<li><a href="javascript:;" data-url="/htdingdan<?php echo $dshz?>" data-icon="fa fa-list-ul" data-title="订单列表" kit-target data-id='975'><span> 订单列表</span></a></li>
<li><a href="javascript:;" data-url="/htkl<?php echo $dshz?>" data-icon="fa fa-align-left" data-title="扣量列表" kit-target data-id='976'><span> 扣量列表</span></a></li>
</ul>
</li>
<?php }?>
<?php if($adminpd[qx]=='超级管理员'){?>
<li class="layui-nav-item ">
<a href="javascript:;"><i class="fa fa-users" aria-hidden="true"></i><span> 代理列表</span></a>
<ul class="menu_ul layui-nav-child">
<li> <a href="javascript:;" data-url="/htuserlist<?php echo $dshz?>" data-icon="fa fa-user" data-title="代理列表" kit-target data-id='977'><span> 代理列表</span></a></li>
<li> <a href="javascript:;" data-url="/htyqm<?php echo $dshz?>" data-icon="fa fa-certificate" data-title="代理邀请码" kit-target data-id='978'><span> 代理邀请码</span></a></li>
</ul>
</li> 
<?php }?>
<?php if($adminpd[qx]=='超级管理员' or $adminpd[qx]=='资源管理员'){?> 
<li class="layui-nav-item ">
<a href="javascript:;"><i class="fa fa-video-camera" aria-hidden="true"></i><span> 视频列表</span></a>
<ul class="menu_ul layui-nav-child">
<?php if($adminpd[qx]=='超级管理员'){?>
<li> <a href="javascript:;" data-url="/htfenlei<?php echo $dshz?>" data-icon="fa fa-play-circle-o" data-title="视频分类" kit-target data-id='979'><span> 视频分类</span></a></li>
<li> <a href="javascript:;" data-url="/htgllist<?php echo $dshz?>" data-icon="fa fa-play-circle-o" data-title="公共片库" kit-target data-id='980'><span> 公共片库</span></a></li>
<li> <a href="javascript:;" data-url="/htdllist<?php echo $dshz?>" data-icon="fa fa-play-circle" data-title="代理片库" kit-target data-id='981'><span> 代理片库</span></a></li>
<li> <a href="javascript:;" data-url="/htspup<?php echo $dshz?>" data-icon="fa fa-upload" data-title="上传视频" kit-target data-id='982'><span> 上传视频</span></a></li>
<li> <a href="javascript:;" data-url="/htsptj<?php echo $dshz?>" data-icon="fa fa-plus" data-title="添加外链" kit-target data-id='983'><span> 添加外链</span></a></li>
<li> <a href="javascript:;" data-url="/htsppltj<?php echo $dshz?>" data-icon="fa fa-plus" data-title="批量添加外链" kit-target data-id='984'><span> 批量添加外链</span></a></li>
<!--<li> <a href="javascript:;" data-url="/httglist<?php echo $dshz?>" data-icon="fa fa-share-square-o" data-title="推广链接" kit-target data-id='985'><span> 推广链接</span></a></li>-->
<?php }elseif($adminpd[qx]=='资源管理员'){?>
<li> <a href="javascript:;" data-url="/htfenlei<?php echo $dshz?>" data-icon="fa fa-play-circle-o" data-title="视频分类" kit-target data-id='986'><span> 视频分类</span></a></li>
<li> <a href="javascript:;" data-url="/htsplist<?php echo $dshz?>" data-icon="fa fa-play-circle-o" data-title="公共片库" kit-target data-id='987'><span> 公共片库</span></a></li>
<li> <a href="javascript:;" data-url="/htspup<?php echo $dshz?>" data-icon="fa fa-upload" data-title="上传视频" kit-target data-id='988'><span> 上传视频</span></a></li>
<li> <a href="javascript:;" data-url="/htsptj<?php echo $dshz?>" data-icon="fa fa-plus" data-title="添加外链" kit-target data-id='989'><span> 添加外链</span></a></li>
<li> <a href="javascript:;" data-url="/htsppltj<?php echo $dshz?>" data-icon="fa fa-plus" data-title="批量添加外链" kit-target data-id='990'><span> 批量添加外链</span></a></li>
<?php }?>
</ul>
</li> 
<?php }?>
<?php if($adminpd[qx]=='超级管理员'){?> 
<li class="layui-nav-item ">
<a href="javascript:;"><i class="fa fa-table" aria-hidden="true"></i><span> 推广盒子</span></a>
<ul class="menu_ul layui-nav-child">
<li> <a href="javascript:;" data-url="/htwzlist<?php echo $dshz?>" data-icon="fa fa-globe" data-title="网站列表" kit-target data-id='991'><span> 网站列表</span></a></li>
<li> <a href="javascript:;" data-url="/htlinklist<?php echo $dshz?>" data-icon="fa fa-chain-broken" data-title="链接列表" kit-target data-id='992'><span> 链接列表</span></a></li>
<li> <a href="javascript:;" data-url="/htlishilist<?php echo $dshz?>" data-icon="fa fa-clock-o" data-title="历史记录" kit-target data-id='993'><span> 历史记录</span></a></li>
<li> <a href="javascript:;" data-url="/htad<?php echo $dshz?>" data-icon="fa fa-audio-description" data-title="广告位" kit-target data-id='994'><span> 广告位</span></a></li>
</ul>
</li> 
<?php }?>
<?php if($adminpd[qx]=='超级管理员'){?> 
<li class="layui-nav-item ">
<a href="javascript:;"><i class="fa fa-cloud-upload" aria-hidden="true"></i><span> 发片员管理</span></a>
<ul class="menu_ul layui-nav-child">
<li> <a href="javascript:;" data-url="/htfpian<?php echo $dshz?>" data-icon="fa fa-user-circle-o" data-title="发片员列表" kit-target data-id='995'><span> 发片员列表</span></a></li>
<li> <a href="javascript:;" data-url="/htfshipin<?php echo $dshz?>" data-icon="fa fa-th" data-title="资源列表" kit-target data-id='996'><span> 资源列表</span></a></li>
</ul>
</li> 
<?php }?>
<?php if($adminpd[qx]=='超级管理员'){?> 
<li class="layui-nav-item ">
<a href="javascript:;"><i class="fa fa-tasks" aria-hidden="true"></i><span> 模板设置</span></a>
<ul class="menu_ul layui-nav-child">
<li> <a href="javascript:;" data-url="/hthezimb<?php echo $dshz?>" data-icon="fa " data-title="盒子模板设置" kit-target data-id='997'><span> 盒子模板设置</span></a></li>
<li> <a href="javascript:;" data-url="/htdsmb<?php echo $dshz?>" data-icon="fa " data-title="打赏模板设置" kit-target data-id='998'><span> 打赏模板设置</span></a></li>
<li > <a href="javascript:;" data-url="/htlinkmb<?php echo $dshz?>" data-icon="fa fa-th" data-title="总链模板设置" kit-target data-id='999'><span> 总链模板设置</span></a></li>
</ul>
</li> 
<?php }?>
</ul>
</div>
</div>