<?php
error_reporting(0); 
include("../../config/config.php");
session_start();
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-header">
<div class="layui-logo" id="logo"><span>后台管理</span></div>
<ul class="layui-nav layui-layout-left kit-nav kit-tab-tool-body">
<li class="layui-nav-item"><a id="kit-side-fold" title="左侧菜单" style="color:#333;"><i class="fa fa-arrow-left" aria-hidden="true"></i></a></li>
<li class="layui-nav-item"><a href="/index<?php echo $dshz?>"  target="_blank"  title="主页" style="color:#333;"><i class="fa fa-life-ring" aria-hidden="true"></i></a></li>
<li class="layui-nav-item"><a class="kit-item" data-target="refresh" title="刷新当前页" style="color:#333;" id="refresh"><i class="fa fa-refresh" aria-hidden="true"></i></a></li>
</ul>
<ul class="layui-nav layui-layout-right kit-nav">
<li class="layui-nav-item" style="background-color: transparent !important;">
<a href="javascript:;" id="color" style="color:#333;" class="refresh">皮肤<span class="layui-badge-dot"></span></a>
</a>
</li>
<li class="layui-nav-item">
<a href="javascript:;" style="color:#333;">欢迎,<?php echo $adminname?></a>
</li>
<li class="layui-nav-item"><a href="/htlogout<?php echo $dshz?>" style="color:#333;"><span><i class="fa fa-sign-out" aria-hidden="true"></i>注销登录</span></a></li>
</ul>
</div>