<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:37:"themes/admin_h/admin\index\index.html";i:1615187961;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <title><?php echo lang('ADMIN_CENTER'); ?></title>
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
    <link href="/themes/admin_h/public/assets/css/bootstrap.min.css?v=3.3.7" rel="stylesheet">
    <link href="/static/font-awesome/css/font-awesome.min.css?page=index" rel="stylesheet" type="text/css">
    <link href="/themes/admin_h/public/assets/css/animate.css?v=1.0" rel="stylesheet">
    <link href="/themes/admin_h/public/assets/css/style.css?v=4.1.1" rel="stylesheet">
    <script>
        //全局变量
        var GV = {
            HOST: "<?php echo $_SERVER['HTTP_HOST']; ?>",
            ROOT: "/",
            WEB_ROOT: "/",
            JS_ROOT: "static/js/"
        };
    </script>

    <?php $submenus=$menus; function getsubmenu($submenus){ if(!(empty($submenus) || (($submenus instanceof \think\Collection || $submenus instanceof \think\Paginator ) && $submenus->isEmpty()))): foreach($submenus as $menu){ ?>
        <li>
            <?php 
                $menu_name=lang($menu['lang']);
                $menu_name=$menu['lang']==$menu_name?$menu['name']:$menu_name;
             if(empty($menu['items'])){ ?>
            <a class="J_menuItem" href="<?php echo $menu['url']; ?>"><i class="fa fa-<?php echo (isset($menu['icon']) && ($menu['icon'] !== '')?$menu['icon']:'desktop'); ?>"></i> <span class="nav-label"><?php echo $menu_name; ?></span></a>
            <?php }else{ ?>
                <a href="#">
                    <i class="fa fa fa-<?php echo (isset($menu['icon']) && ($menu['icon'] !== '')?$menu['icon']:'desktop'); ?>"></i>
                    <span class="nav-label"><?php echo $menu_name; ?></span>
                    <span class="fa arrow"></span>
                </a>
                <ul class="nav nav-second-level submenu">
                    <?php getsubmenu1($menu['items']) ?>
                </ul>
                <?php } ?>
            </li>
        <?php } endif; } function getsubmenu1($submenus){ foreach($submenus as $menu){ ?>

    <li>
        <?php 
            $menu_name=lang($menu['lang']);
            $menu_name=$menu['lang']==$menu_name?$menu['name']:$menu_name;
         if(empty($menu['items'])){ ?>
         <a class="J_menuItem" href="<?php echo $menu['url']; ?>"><i class="fa fa-<?php echo (isset($menu['icon']) && ($menu['icon'] !== '')?$menu['icon']:'circle-o'); ?>"></i><?php echo $menu_name; ?></a>
         <?php }else{ ?>
         <a href="#"><i class="fa fa-<?php echo (isset($menu['icon']) && ($menu['icon'] !== '')?$menu['icon']:'circle-o'); ?>"></i><?php echo $menu_name; ?><span class="fa arrow"></span></a>
          <ul class="nav nav-third-level submenu">
            <?php getsubmenu2($menu['items']) ?>
         </ul>
         <?php } ?>
    </li>

    <?php } } function getsubmenu2($submenus){ foreach($submenus as $menu){ ?>

    <li>
        <?php 
            $menu_name=lang($menu['lang']);
            $menu_name=$menu['lang']==$menu_name?$menu['name']:$menu_name;
         ?>

        <a class="J_menuItem" href="<?php echo $menu['url']; ?>"><i class="fa fa-<?php echo (isset($menu['icon']) && ($menu['icon'] !== '')?$menu['icon']:'circle-o'); ?>"></i><?php echo $menu_name; ?></a>

    </li>

    <?php } } ?>

</head>

<body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden">
    <div id="wrapper">
        <!--左侧导航开始-->
        <nav class="navbar-default navbar-static-side" role="navigation">
            <div class="nav-close"><i class="fa fa-times-circle"></i>
            </div>
            <div class="sidebar-collapse">
                <ul class="nav" id="side-menu">
                    <li class="nav-header">
                        <div class="dropdown profile-element">
                            <span>
                                <?php if(isset($admin['avatar']) && $admin['avatar']): ?>
                                    <img alt="image" class="img-circle" src="<?php echo cmf_get_image_url($admin['avatar']); ?>" width="64" />
                                <?php else: ?>
                                    <img alt="image" class="img-circle" src="/themes/admin_h/public/assets/images/profile_small.jpg" />
                                <?php endif; ?>
                            </span>
                            <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                                <span class="clear">
                               <span class="block m-t-xs">
                                    <strong class="font-bold">
                                        <?php echo lang('WELCOME_USER',array('user_nickname' => empty($admin['user_nickname'] )? $admin['user_login'] : $admin['user_nickname'])); ?>
                                    </strong>
                                </span>
                                <span class="text-muted text-xs block">操作<b class="caret"></b></span>
                                </span>
                            </a>
                            <ul class="dropdown-menu animated fadeInRight m-t-xs">
                                <?php if(cmf_auth_check(cmf_get_current_admin_id(),'admin/Setting/site')): ?>
                                    <li>
                                        <a class="J_menuItem" href="<?php echo url('setting/site'); ?>"><?php echo lang('ADMIN_SETTING_SITE'); ?></a>
                                    </li>
                                <?php endif; if(cmf_auth_check(cmf_get_current_admin_id(),'admin/user/userinfo')): ?>
                                    <li>
                                        <a class="J_menuItem" href="<?php echo url('user/userinfo'); ?>"><?php echo lang('ADMIN_USER_USERINFO'); ?></a>
                                    </li>
                                <?php endif; if(cmf_auth_check(cmf_get_current_admin_id(),'admin/Setting/password')): ?>
                                    <li>
                                        <a class="J_menuItem" href="<?php echo url('setting/password'); ?>"><?php echo lang('ADMIN_SETTING_PASSWORD'); ?></a>
                                    </li>
                                <?php endif; ?>
                                <li class="divider"></li>
                                <li>
                                    <a href="<?php echo url('Public/logout'); ?>">安全退出</a>
                                </li>
                            </ul>
                        </div>
                        <div class="logo-element">
                          <?php if(isset($admin['avatar']) && $admin['avatar']): ?>
                                    <img alt="image" class="img-circle" src="<?php echo cmf_get_image_url($admin['avatar']); ?>" width="64" />
                                <?php else: ?>
                                    <img alt="image" class="img-circle" src="/themes/admin_h/public/assets/images/profile_small.jpg" />
                                <?php endif; ?>
                        </div>
                    </li>
                    <!-- nav开始-->
                    <?php echo getsubmenu($submenus); ?>
                </ul>
            </div>
        </nav>
        <!--左侧导航结束-->
        <!--右侧部分开始-->
        <div id="page-wrapper" class="gray-bg dashbard-1">
            <div class="row border-bottom">
                <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
                    <div class="navbar-header"><a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="#"><i class="fa fa-bars"></i> </a>

                    </div>
                    <ul class="nav navbar-top-links navbar-right">
                        <li>
                            <a href="/" target="_blank">
                                <i class="fa fa-home"></i>主页
                            </a>
                        </li>
                        <?php if(cmf_auth_check(cmf_get_current_admin_id(),'user/AdminAsset/index')): ?>
                            <li>
                                <a class="J_menuItem" href="<?php echo url('user/AdminAsset/index'); ?>">
                                    <i class="fa fa-file"></i>资源管理
                                </a>
                            </li>
                        <?php endif; if(cmf_auth_check(cmf_get_current_admin_id(),'admin/RecycleBin/index')): ?>
                            <li>
                                <a class="J_menuItem" href="<?php echo url('admin/RecycleBin/index'); ?>">
                                    <i class="fa fa-recycle"></i>回收站
                                </a>
                            </li>
                        <?php endif; if(APP_DEBUG): ?>
                            <li>
                                <a class="J_menuItem" href="<?php echo url('admin/Menu/index'); ?>">
                                    <i class="fa fa-list"></i><?php echo lang('ADMIN_MENU_INDEX'); ?>
                                </a>
                            </li>
                        <?php endif; if(cmf_auth_check(cmf_get_current_admin_id(),'admin/Setting/clearcache')): ?>
                            <li>
                                <a class="clearCache">
                                    <i class="fa fa-trash-o"></i><?php echo lang('ADMIN_SETTING_CLEARCACHE'); ?>
                                </a>
                            </li>
                        <?php endif; ?>
                        <li>
                            <a id="refresh-wrapper" href="javacript:void(0);" title="<?php echo lang('REFRESH_CURRENT_PAGE'); ?>">
                                     <i class="fa fa-refresh right_tool_icon"></i><?php echo lang('REFRESH_CURRENT_PAGE'); ?>
                                </a>
                        </li>
                        <li class="dropdown hidden-xs">
                            <a class="right-sidebar-toggle" aria-expanded="false">
                                <i class="fa fa-tasks"></i>主题
                            </a>
                        </li>
                    </ul>
                </nav>
            </div>
            <div class="row content-tabs">
                <button class="roll-nav roll-left J_tabLeft"><i class="fa fa-backward"></i>
                </button>
                <nav class="page-tabs J_menuTabs">
                    <div class="page-tabs-content">
                        <a href="javascript:;" class="active J_menuTab" data-id="<?php echo url('Main/index'); ?>"><?php echo lang('HOME'); ?></a>
                    </div>
                </nav>
                <button class="roll-nav roll-right J_tabRight"><i class="fa fa-forward"></i>
                </button>
                <div class="btn-group roll-nav roll-right">
                    <button class="dropdown J_tabClose" data-toggle="dropdown">关闭操作<span class="caret"></span>

                    </button>
                    <ul role="menu" class="dropdown-menu dropdown-menu-right">
                        <li class="J_tabShowActive"><a>定位当前选项卡</a>
                        </li>
                        <li class="divider"></li>
                        <li class="J_tabCloseAll"><a>关闭全部选项卡</a>
                        </li>
                        <li class="J_tabCloseOther"><a>关闭其他选项卡</a>
                        </li>
                    </ul>
                </div>
                <a href="<?php echo url('Public/logout'); ?>" class="roll-nav roll-right J_tabExit"><i class="fa fa fa-sign-out"></i> 退出</a>
            </div>
            <div class="row J_mainContent" id="content-main">
                <iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="<?php echo url('Main/index'); ?>" frameborder="0" data-id="<?php echo url('Main/index'); ?>" seamless></iframe>
            </div>
            <div class="footer">
                <div class="pull-left">Admin Panel
                </div>
            </div>
        </div>
        <!--右侧部分结束-->
        <!--右侧边栏开始-->
        <div id="right-sidebar">
            <div class="sidebar-container">
                <ul class="nav nav-tabs navs-3">
                    <li class="active">
                        <a data-toggle="tab" href="#tab-1">
                            <i class="fa fa-gear"></i> 主题
                        </a>
                    </li>
                </ul>

                <div class="tab-content">
                    <div id="tab-1" class="tab-pane active">
                        <div class="sidebar-title">
                            <h3> <i class="fa fa-comments-o"></i>主题设置</h3>
                            <small><i class="fa fa-tim"></i> 你可以从这里选择和预览主题的布局和样式，这些设置会被保存在本地，下次打开的时候会直接应用这些设置。</small>
                        </div>
                        <div class="skin-setttings">
                            <div class="title">主题设置</div>
                            <div class="setings-item">
                                <span>收起左侧菜单</span>
                                <div class="switch">
                                    <div class="onoffswitch">
                                        <input type="checkbox" name="collapsemenu" class="onoffswitch-checkbox" id="collapsemenu">
                                        <label class="onoffswitch-label" for="collapsemenu">
                                            <span class="onoffswitch-inner"></span>
                                            <span class="onoffswitch-switch"></span>
                                        </label>
                                    </div>
                                </div>
                            </div>
                            <div class="setings-item">
                                <span>固定顶部</span>

                                <div class="switch">
                                    <div class="onoffswitch">
                                        <input type="checkbox" name="fixednavbar" class="onoffswitch-checkbox" id="fixednavbar">
                                        <label class="onoffswitch-label" for="fixednavbar">
                                            <span class="onoffswitch-inner"></span>
                                            <span class="onoffswitch-switch"></span>
                                        </label>
                                    </div>
                                </div>
                            </div>
                            <div class="setings-item">
                                <span>
                        固定宽度
                    </span>

                                <div class="switch">
                                    <div class="onoffswitch">
                                        <input type="checkbox" name="boxedlayout" class="onoffswitch-checkbox" id="boxedlayout">
                                        <label class="onoffswitch-label" for="boxedlayout">
                                            <span class="onoffswitch-inner"></span>
                                            <span class="onoffswitch-switch"></span>
                                        </label>
                                    </div>
                                </div>
                            </div>
                            <div class="title">皮肤选择</div>
                            <div class="setings-item default-skin nb">
                                <span class="skin-name ">
                         <a href="#" class="s-skin-0">
                             默认皮肤
                         </a>
                    </span>
                            </div>
                            <div class="setings-item blue-skin nb">
                                <span class="skin-name ">
                        <a href="#" class="s-skin-1">
                            蓝色主题
                        </a>
                    </span>
                            </div>
                            <div class="setings-item yellow-skin nb">
                                <span class="skin-name ">
                        <a href="#" class="s-skin-3">
                            黄色/紫色主题
                        </a>
                    </span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!--右侧边栏结束-->
    </div>

    <!-- 全局js -->
    <script src="/themes/admin_h/public/assets/js/jquery-1.10.2.min.js"></script>
    <script src="/static/js/wind.js"></script>
    <script src="/themes/admin_h/public/assets/js/bootstrap.min.js?v=3.3.7"></script>
    <script src="/static/js/admin.js?v=1.1"></script>
    <script src="/themes/admin_h/public/assets/js/plugins/metisMenu/jquery.metisMenu.js"></script>
    <script src="/themes/admin_h/public/assets/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <script src="/themes/admin_h/public/assets/js/plugins/layer/layer.min.js"></script>
    <!-- 自定义js -->
    <script src="/themes/admin_h/public/assets/js/hplus.js?v=4.1.0"></script>
    <script type="text/javascript" src="/themes/admin_h/public/assets/js/contabs.js"></script>
    <script src="/themes/admin_h/public/assets/js/plugins/pace/pace.min.js"></script>
    <!-- 清理缓存 -->
    <script type="text/javascript">
        //清除缓存
    $(".clearCache").click(function(){
        $.ajax({
            url: '<?php echo url('admin/Setting/clearCache'); ?>',
            success:function(res){
                var index = layer.msg('清除缓存中，请稍候',{icon: 16,time:false,shade:0.8});
                setTimeout(function(){
                    layer.close(index);
                    layer.msg("缓存清除成功！",{icon: 1});
                },1000);
            }
        })
    })

    $("#refresh-wrapper").click(function () {
        var $currentIframe = $("#content-main iframe:visible");
        layer.load(2);
        setTimeout(function(){
        $currentIframe[0].contentWindow.location.reload();
          layer.closeAll('loading');
          return false;
        }, 500);
    });


    </script>
</body>

</html>
