<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:58:"F:\sywork\www\hsycms.v2.0/app/hsycms\view\index\index.html";i:1564128937;}*/ ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>后台管理</title>
<link rel="stylesheet" href="__PUBLIC__/public/admin/css/admin.css?v=<?php echo time(); ?>" />
<link rel="stylesheet" href="__PUBLIC__/public/admin/css/<?php echo config('webadminstyle'); ?>.css?v=<?php echo time(); ?>" />
<script src="__PUBLIC__/public/admin/js/jquery.js?v=<?php echo time(); ?>"></script>
<script src="__PUBLIC__/public/admin/js/tabmenu.js?v=<?php echo time(); ?>"></script>
</head>
<body>
<div class="content">
  <div class="header">
    <h1>后台管理</h1>
    <ul class="headmenu">
      <li <?php if($n==1): ?>class="on"<?php endif; ?>><a href="<?php echo url('Index/index',['n'=>1]); ?>"><i class="icon-gear (alias)"></i>系统设置</a></li>
      <li <?php if($n==2): ?>class="on"<?php endif; ?>><a href="<?php echo url('Index/index',['n'=>2]); ?>"><i class="icon-comment"></i>内容管理</a></li>
      <li><a href="<?php echo url('Common/clearCache'); ?>"><i class="icon-lemon-o"></i>清除缓存</a></li>			
      <li><a href="/" target="_blank"><i class="icon-home"></i>前台首页</a></li>
    </ul>
    <div class="fr">
      <div class="meminfo">
        <p class="p1"><i class="icon-user"></i>欢迎您，<?php echo \think\Session::get('username'); ?> <em class="icon-caret-down"></em></p>
        <div class="memson syui-anim syui-anim-up">
          <p><a href="<?php echo url('Site/config'); ?>" target="main"><i class="icon-gear (alias)"></i>系统配置</a></p>
          <p><a href="<?php echo url('Rbac/adduser',['id'=>\think\Session::get('userid')]); ?>" target="main"><i class="icon-unlock-alt"></i>修改密码</a></p>
          <p><a href="<?php echo url('Login/logout'); ?>"><i class="icon-sign-out"></i>退出登录</a></p>
        </div>
      </div>
    </div>
    <div class="location">
      <div class="location-con">
        <div class="leader"><a href="<?php echo url('Index/home'); ?>" target="main"><i class="icon-home"></i>首页</a><i>/</i><span class="s1">系统设置</span><i>/</i><span class="s2">网站信息</span></div>
        <div class="menutab">
          <div class="mtprev icon-angle-left" onClick="scrollMenu('left')"></div>
          <div class="bd">
            <ul>
            <!-- TAB菜单标签 -->         
            </ul>
          </div>
          <div class="closeMenu">关闭所有</div>
          <div class="mtnext icon-angle-right"  onClick="scrollMenu('right')"></div>
        </div>
        <div class="showmenu"><em class="e1"></em><em></em><em></em></div>
      </div>
    </div>
  </div>
  <div class="menu"> 
   <?php if($n == 1): ?>
    <ul>
      <li>
        <h2><a href="javascript:void(0);" class="a1"><i class="icon-gear (alias)"></i>网站设置<em class="icon-angle-right"></em></a></h2>
        <div class="mson">
          <p><a href="<?php echo url('Site/config'); ?>" target="main"><i class="icon-caret-right"></i>系统配置</a></p>
          <p><a href="<?php echo url('Site/nav'); ?>" target="main"><i class="icon-caret-right"></i>导航管理</a></p>
          <p><a href="<?php echo url('Site/image'); ?>" target="main"><i class="icon-caret-right"></i>文件管理</a></p>
          <p><a href="<?php echo url('Site/uploadset'); ?>" target="main"><i class="icon-caret-right"></i>上传设置</a></p>
          <p><a href="<?php echo url('Site/book'); ?>" target="main"><i class="icon-caret-right"></i>留言管理</a></p>
        </div>
      </li>
      <li>
        <h2><a href="javascript:void(0);" class="a1"><i class="icon-folder-open"></i>生成静态<em class="icon-angle-right"></em></a></h2>
        <div class="mson">
          <p><a href="<?php echo url('Chtml/index'); ?>" target="main"><i class="icon-caret-right"></i>生成首页</a></p>
          <p><a href="<?php echo url('Chtml/lists'); ?>" target="main"><i class="icon-caret-right"></i>生成列表</a></p>
          <p><a href="<?php echo url('Chtml/detail'); ?>" target="main"><i class="icon-caret-right"></i>生成详情</a></p>
        </div>
      </li>
      <li>
        <h2><a href="javascript:void(0);" class="a1"><i class="icon-folder-open"></i>权限管理<em class="icon-angle-right"></em></a></h2>
        <div class="mson">
          <p><a href="<?php echo url('Rbac/user'); ?>" target="main"><i class="icon-caret-right"></i>用户管理</a></p>
          <p><a href="<?php echo url('Rbac/role'); ?>" target="main"><i class="icon-caret-right"></i>角色管理</a></p>
          <p><a href="<?php echo url('Rbac/node'); ?>" target="main"><i class="icon-caret-right"></i>节点管理</a></p>
        </div>
      </li>
      <li>
        <h2><a href="javascript:void(0);" class="a1"><i class="icon-folder-open"></i>网站优化<em class="icon-angle-right"></em></a></h2>
        <div class="mson">
          <p><a href="<?php echo url('Seo/baiduurl'); ?>" target="main"><i class="icon-caret-right"></i>百度推送</a></p>
          <p><a href="<?php echo url('Seo/sitelink'); ?>" target="main"><i class="icon-caret-right"></i>网站内链</a></p>
          <p><a href="<?php echo url('Seo/sitemap'); ?>" target="main"><i class="icon-caret-right"></i>站点地图</a></p>
          <p><a href="<?php echo url('Seo/spider'); ?>" target="main"><i class="icon-caret-right"></i>蜘蛛统计</a></p>
          <p><a href="<?php echo url('Seo/link'); ?>" target="main"><i class="icon-caret-right"></i>友情链接</a></p>
        </div>
      </li>
      <?php if(PHP_VERSION < 7): ?>
      <li>
        <h2><a href="javascript:void(0);" class="a1"><i class="icon-database"></i>数据管理<em class="icon-angle-right"></em></a></h2>
        <div class="mson">
          <p><a href="<?php echo url('Database/backup'); ?>" target="main"><i class="icon-caret-right"></i>备份数据库</a></p>
          <p><a href="<?php echo url('Database/importsql'); ?>" target="main"><i class="icon-caret-right"></i>还原数据库</a></p>
        </div>
      </li>
      <?php endif; ?>
    </ul>
    <?php endif; if($n == 2): ?>
    <ul>
      <li>
        <h2><a href="javascript:void(0);" class="a1"><i class="icon-dashboard (alias)"></i>基本设置<em class="icon-angle-right"></em></a></h2>
        <div class="mson">          
          <p><a href="<?php echo url('Site/config'); ?>" target="main"><i class="icon-caret-right"></i>网站信息</a></p>
          <p><a href="<?php echo url('Site/topimg',['type'=>'pc']); ?>" target="main"><i class="icon-caret-right"></i>内页顶图【电脑】</a></p>
          <p><a href="<?php echo url('Site/topimg',['type'=>'wp']); ?>" target="main"><i class="icon-caret-right"></i>内页顶图【手机】</a></p>
          <?php if(is_array($adv) || $adv instanceof \think\Collection || $adv instanceof \think\Paginator): $i = 0; $__LIST__ = $adv;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
          <p><a href="<?php echo url('Article/adv',['nid'=>$v['id']]); ?>" target="main"><i class="icon-caret-right"></i><?php echo $v['title']; ?></a></p>
          <?php endforeach; endif; else: echo "" ;endif; ?> </div>
      </li>
      <?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
      <li>
        <h2><a href="javascript:void(0);" class="a1"><i class="<?php echo $v['icon']; ?>"></i><?php echo $v['title']; ?><em class="icon-angle-right"></em></a></h2>
        <div class="mson">
          <p><a href="<?php echo url('Article/index',['nid'=>$v['id']]); ?>" target="main"><i class="icon-caret-right"></i>内容列表</a></p>
          <p><a href="<?php echo url('Article/add',['nid'=>$v['id']]); ?>" target="main"><i class="icon-caret-right"></i>添加内容</a></p>
          <?php if($v['showcate'] == 1): ?>
          <p><a href="<?php echo url('Cate/index',['nid'=>$v['id']]); ?>" target="main"><i class="icon-caret-right"></i>分类管理</a></p>
          <?php endif; ?> </div>
      </li>
      <?php endforeach; endif; else: echo "" ;endif; ?>
    </ul>
    <?php endif; ?> </div>  
    <!-- 主要内容 -->
  <div class="main syui-anim1 syui-anim-up">
    <iframe src="" homeUrl="<?php echo url('Index/home'); ?>" name="main" id="main" style="width: 100%; height: 100%; display: inline;" frameborder="0"></iframe>
  </div>
</div>
</body>
</html>