Jonlin 6 жил өмнө
parent
commit
73ce21d846

+ 19 - 17
application/admin/controller/HeadNav.php

@@ -63,23 +63,25 @@ class HeadNav extends AdminControl
             }
             $this->error(lang('add_fail'));
         } else {
-            $product = array(
-                'product_isjump' => 0,
-                'product_status' => 0,
-                'product_type' => '',
-                'product_usetime' => '',
-            );
-            $onlygs = array(
-                'member_id' => 0,
-                'member_name' =>"请选择所属公司",
-            );
-            $pic_list = model('pic')->getPicList(array('pic_id' => 0));
-            $allgs = model('member')->allcompany('');
-            $this->assign('allgs',$allgs);//所有开启的公司
-            $this->assign('product', $product);
-            $this->assign('onlygs',$onlygs);
-            $this->assign('product_pic_type', ['pic_type' => 'product']);
-            $this->assign('pic_list', $pic_list);
+//            $product = array(
+//                'product_isjump' => 0,
+//                'product_status' => 0,
+//                'product_type' => '',
+//                'product_usetime' => '',
+//            );
+//            $onlygs = array(
+//                'member_id' => 0,
+//                'member_name' =>"请选择所属公司",
+//            );
+//            $pic_list = model('pic')->getPicList(array('pic_id' => 0));
+//            $allgs = model('member')->allcompany('');
+//            $this->assign('allgs',$allgs);//所有开启的公司
+//            $this->assign('product', $product);
+//            $this->assign('onlygs',$onlygs);
+//            $this->assign('product_pic_type', ['pic_type' => 'product']);
+//            $this->assign('pic_list', $pic_list);
+            $headnav = array('status'=>1);
+            $this->assign('headnav', $headnav);
             $this->setAdminCurItem('add');
             return $this->fetch('form');
         }

+ 116 - 0
runtime/temp/1c9c0105fce52cca48a9090cf1ab68a4.php

@@ -0,0 +1,116 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:86:"C:\phpStudy\PHPTutorial\WWW\aqm-web\public/../application/admin\view\wlcome\index.html";i:1557480234;s:75:"C:\phpStudy\PHPTutorial\WWW\aqm-web\application\admin\view\layout\home.html";i:1557480234;}*/ ?>
+<!DOCTYPE html>
+<html>
+    <head>
+        <meta charset="utf-8">
+        <meta http-equiv="X-UA-Compatible" content="IE=edge">
+        <title>安全猫官网</title>
+        <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
+        <!-- Bootstrap 3.3.7 -->
+        <link rel="stylesheet" href="<?php echo PLUGINS_SITE_ROOT; ?>/layui/css/layui.css">
+        <link rel="stylesheet" href="<?php echo ADMIN_SITE_ROOT; ?>/css/admin.css">
+        <link rel="stylesheet" href="<?php echo ADMIN_SITE_ROOT; ?>/iconfont/iconfont.css">
+        <script src="<?php echo PLUGINS_SITE_ROOT; ?>/jquery-2.1.4.min.js"></script>
+        <script src="<?php echo ADMIN_SITE_ROOT; ?>/js/admin.js"></script>
+        <script type="text/javascript" src="<?php echo PLUGINS_SITE_ROOT; ?>/layui/layui.js"></script>
+        <script type="text/javascript">
+            var BASESITEROOT = "<?php echo BASE_SITE_ROOT; ?>";
+            var ADMINSITEROOT = "<?php echo ADMIN_SITE_ROOT; ?>";
+            var BASESITEURL = "<?php echo BASE_SITE_URL; ?>";
+            var HOMESITEURL = "<?php echo HOME_SITE_URL; ?>";
+            var ADMINSITEURL = "<?php echo ADMIN_SITE_URL; ?>";
+            layui.use('layer', function () {
+                var layer = layui.layer;
+            });
+        </script>
+    </head>
+    <body>
+        
+<div class="layui-tab-content page-tab-content">
+    <h1><?php echo \think\Lang::get('wel_version_info'); ?></h1>
+    <table class="layui-table lay-even">
+        <colgroup>
+            <col width="300">
+            <col width="530">
+        </colgroup>
+        <tbody>
+        <tr>
+            <td class="gray_bg"><?php echo \think\Lang::get('wel_version'); ?></td>
+            <td><?php echo $statistics['version']; ?></td>
+            <td class="gray_bg"><?php echo \think\Lang::get('wel_install_date'); ?></td>
+            <td><?php if(!(empty($statistics['setup_date']) || (($statistics['setup_date'] instanceof \think\Collection || $statistics['setup_date'] instanceof \think\Paginator ) && $statistics['setup_date']->isEmpty()))): ?>$statistics['setup_date']<?php else: ?><?php echo \think\Lang::get('temporary_installation'); endif; ?></td>
+        </tr>
+        <tr>
+            <td class="gray_bg"><?php echo \think\Lang::get('wel_program_development'); ?></td>
+            <td><?php echo \think\Lang::get('wel_deshangwangluo'); ?></td>
+            <td class="gray_bg"><?php echo \think\Lang::get('wel_all_right_reserved'); ?></td>
+            <td><?php echo \think\Lang::get('wel_piracy_must_be_studied'); ?></td>
+        </tr>
+        <tr>
+            <td class="gray_bg"><?php echo \think\Lang::get('wel_aboutus_website'); ?></td>
+            <td><a href="http://www.csdeshang.com" target="_blank"><?php echo \think\Lang::get('aboutus_website'); ?></a></td>
+            <td class="gray_bg"><?php echo \think\Lang::get('wel_aboutus_bbs'); ?></td>
+            <td><a href="http://bbs.csdeshang.com" target="_blank"><?php echo \think\Lang::get('wel_communication_bbs'); ?></a></td>
+        </tr>
+        </tbody>
+    </table>
+
+    <h1><?php echo \think\Lang::get('wel_sys_info'); ?></h1>
+    <table class="layui-table lay-even">
+        <colgroup>
+            <col width="300">
+            <col width="530">
+        </colgroup>
+        <tbody>
+        <tr>
+            <td class="gray_bg"><?php echo \think\Lang::get('wel_thinkphp_version'); ?></td>
+            <td><?php echo THINK_VERSION; ?></td>
+            <td class="gray_bg"><?php echo \think\Lang::get('wel_class_library_file_suffix'); ?></td>
+            <td><?php echo EXT; ?></td>
+        </tr>
+        <tr>
+            <td class="gray_bg"><?php echo \think\Lang::get('wel_server_os'); ?></td>
+            <td><?php echo $statistics['os']; ?></td>
+            <td class="gray_bg"><?php echo \think\Lang::get('wel_server_domain_ip'); ?></td>
+            <td><?php echo $statistics['domain']; ?> [ <?php echo $statistics['ip']; ?> ]</td>
+        </tr>
+        <tr>
+            <td class="gray_bg">WEB <?php echo \think\Lang::get('wel_server'); ?></td>
+            <td><?php echo $statistics['web_server']; ?></td>
+            <td class="gray_bg">PHP <?php echo \think\Lang::get('wel_version'); ?></td>
+            <td><?php echo $statistics['php_version']; ?></td>
+        </tr>
+        <tr>
+            <td class="gray_bg">MYSQL <?php echo \think\Lang::get('wel_version'); ?></td>
+            <td><?php echo $statistics['sql_version']; ?></td>
+            <td class="gray_bg">GD <?php echo \think\Lang::get('wel_version'); ?></td>
+            <td><?php echo $statistics['gdinfo']; ?></td>
+        </tr>
+        <tr>
+            <td class="gray_bg"><?php echo \think\Lang::get('wel_file_uplode_limit'); ?></td>
+            <td><?php echo $statistics['fileupload']; ?></td>
+            <td class="gray_bg"><?php echo \think\Lang::get('wel_max_occupied_memory'); ?></td>
+            <td><?php echo $statistics['memory_limit']; ?></td>
+        </tr>
+        <tr>
+            <td class="gray_bg"><?php echo \think\Lang::get('wel_max_ex_time'); ?></td>
+            <td><?php echo $statistics['max_ex_time']; ?></td>
+            <td class="gray_bg"><?php echo \think\Lang::get('wel_safe_mode'); ?></td>
+            <td><?php echo $statistics['safe_mode']; ?></td>
+        </tr>
+        <tr>
+            <td class="gray_bg">Zlib <?php echo \think\Lang::get('wel_support'); ?></td>
+            <td><?php echo $statistics['zlib']; ?></td>
+            <td class="gray_bg">Curl <?php echo \think\Lang::get('wel_support'); ?></td>
+            <td><?php echo $statistics['curl']; ?></td>
+        </tr>
+        </tbody>
+    </table>
+</div>
+
+
+    </body>
+</html>
+
+
+

+ 138 - 0
runtime/temp/5b4e6916dcb7713b8c85a074c4d04c3c.php

@@ -0,0 +1,138 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:87:"C:\phpStudy\PHPTutorial\WWW\aqm-web\public/../application/admin\view\head_nav\form.html";i:1557741493;s:75:"C:\phpStudy\PHPTutorial\WWW\aqm-web\application\admin\view\layout\home.html";i:1557480234;s:82:"C:\phpStudy\PHPTutorial\WWW\aqm-web\application\admin\view\layout\admin_items.html";i:1557480234;}*/ ?>
+<!DOCTYPE html>
+<html>
+    <head>
+        <meta charset="utf-8">
+        <meta http-equiv="X-UA-Compatible" content="IE=edge">
+        <title>安全猫官网</title>
+        <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
+        <!-- Bootstrap 3.3.7 -->
+        <link rel="stylesheet" href="<?php echo PLUGINS_SITE_ROOT; ?>/layui/css/layui.css">
+        <link rel="stylesheet" href="<?php echo ADMIN_SITE_ROOT; ?>/css/admin.css">
+        <link rel="stylesheet" href="<?php echo ADMIN_SITE_ROOT; ?>/iconfont/iconfont.css">
+        <script src="<?php echo PLUGINS_SITE_ROOT; ?>/jquery-2.1.4.min.js"></script>
+        <script src="<?php echo ADMIN_SITE_ROOT; ?>/js/admin.js"></script>
+        <script type="text/javascript" src="<?php echo PLUGINS_SITE_ROOT; ?>/layui/layui.js"></script>
+        <script type="text/javascript">
+            var BASESITEROOT = "<?php echo BASE_SITE_ROOT; ?>";
+            var ADMINSITEROOT = "<?php echo ADMIN_SITE_ROOT; ?>";
+            var BASESITEURL = "<?php echo BASE_SITE_URL; ?>";
+            var HOMESITEURL = "<?php echo HOME_SITE_URL; ?>";
+            var ADMINSITEURL = "<?php echo ADMIN_SITE_URL; ?>";
+            layui.use('layer', function () {
+                var layer = layui.layer;
+            });
+        </script>
+    </head>
+    <body>
+        
+<form class="layui-form" method="post" enctype="multipart/form-data" >
+    <div class="layui-tab layui-tab-card">
+        <?php if($admin_item): ?>
+<ul class="layui-tab-title">
+    <?php if(is_array($admin_item) || $admin_item instanceof \think\Collection || $admin_item instanceof \think\Paginator): if( count($admin_item)==0 ) : echo "" ;else: foreach($admin_item as $key=>$item): if(array_intersect(explode(" ",str_replace("/", ".",substr($item['url'],7,-5))),$allpower) || array_intersect(explode(" ",str_replace("/", ".",substr($item['url'],31,-16))),$allpower)): ?>
+    <li <?php if($item['name'] == $curitem): ?>class="layui-this" <?php endif; ?>>
+    <a href="<?php echo $item['url']; ?>"><?php echo $item['text']; ?></a>
+    <?php endif; ?>
+    </li>
+    <?php endforeach; endif; else: echo "" ;endif; ?>
+    <div class="tool-btns">
+        <a href="javascript:location.reload();" title="刷新当前页面" class="iconfont icon-reload"></i></a>
+    </div>
+</ul>
+<?php endif; ?>
+        <div class="layui-tab-content page-tab-content">
+            <div class="layui-tab-item layui-show ">
+
+                <div class="layui-collapse">
+                    <div class="layui-colla-item">
+                        <h2 class="layui-colla-title">基本设置</h2>
+                        <div class="layui-colla-content layui-show">
+                            <div class="layui-form-item">
+                                <label class="layui-form-label">导航栏名称</label>
+                                <div class="layui-input-inline">
+                                    <input type="text" class="layui-input field-name" name="nav_name" id="nav_name" value="<?php echo (isset($headnav['nav_name']) && ($headnav['nav_name'] !== '')?$headnav['nav_name']:''); ?>" lay-verify="nav_name" autocomplete="off" placeholder="<?php echo \think\Lang::get('ds_please_enter'); ?>导航栏名称" required />
+                                </div>
+                            </div>
+                            <div class="layui-form-item">
+                                <label class="layui-form-label">排序</label>
+                                <div class="layui-input-inline">
+                                    <input type="text" class="layui-input field-name" name="nav_sort" id="nav_sort" value="<?php echo (isset($headnav['nav_sort']) && ($headnav['nav_sort'] !== '')?$headnav['nav_sort']:''); ?>" lay-verify="nav_sort" autocomplete="off" placeholder="<?php echo \think\Lang::get('ds_please_enter'); ?>排序" required />
+                                </div>
+                            </div>
+
+                            <div class="layui-form-item">
+                                <label class="layui-form-label">状态</label>
+                                <div class="layui-input-inline">
+                                    <input type="checkbox" name="status" lay-skin="switch" lay-text="<?php echo \think\Lang::get('ds_yes'); ?>|<?php echo \think\Lang::get('ds_no'); ?>" value="1" <?php if($headnav['status'] == '1'): ?>checked<?php endif; ?>>
+                                </div>
+                            </div>
+                        </div>
+                    </div>
+
+                </div>
+
+                <div class="layui-form-item mt20">
+                    <div class="layui-input-inline">
+                        <input type="submit" class="layui-btn layui-btn-normal" lay-submit value="<?php echo lang('ds_submit'); ?>" />
+                    </div>
+                </div>
+            </div>
+        </div>
+    </div>
+</form>
+<script>
+    layui.use('form', function () {
+        var form = layui.form;
+    });
+    layui.use('element', function () {
+        var element = layui.element;
+    });
+    layui.use('laydate', function(){
+        var laydate = layui.laydate;
+        laydate.render({
+            elem: '#product_addtime'
+        });
+    });
+
+    function add_uploadedfile(file_data)
+    {
+        var newImg = '<li id="' + file_data.file_id + '"><img src="' + file_data.file_url + '"/><i class="delect layui-icon" title="插入编辑器" onclick="insert_editor(\''+file_data.file_url+'\')">&#xe654;</i><i class="insert layui-icon" title="删除图片" onclick="del_productpic(' + file_data.file_id + ')">&#xe640;</i></li>'
+        $('.selected_pic ul').prepend(newImg);
+    }
+
+
+    /**
+     * 插入编辑器
+     */
+    function insert_editor(file_path){
+        ue.execCommand('insertimage', {src:file_path});
+    }
+
+    function del_productpic(file_id)
+    {
+        layer.open({
+            content: '<?php echo \think\Lang::get('ds_confirm_cancel'); ?>',
+            yes: function(index, layero){
+                $.getJSON("<?php echo url('pic/del'); ?>",{file_id: + file_id,pic_type:'product'}, function(result){
+                    if(result){
+                        $('#' + file_id).remove();
+                        layer.msg('<?php echo \think\Lang::get('del_succ'); ?>');
+                        layer.close(index);
+                        return;
+                    }else{
+                        layer.msg('<?php echo \think\Lang::get('del_fail'); ?>');
+                        layer.close(index);
+                        return;
+                    }
+                });
+            }
+        });
+    }
+</script>
+
+    </body>
+</html>
+
+
+

+ 47 - 0
runtime/temp/a110d949b0dc53ec8bd6210a8df6a198.php

@@ -0,0 +1,47 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:66:"C:\phpStudy\PHPTutorial\WWW\aqm-web\thinkphp\tpl\dispatch_jump.tpl";i:1557480235;}*/ ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
+    <title>跳转提示</title>
+    <style type="text/css">
+        *{ padding: 0; margin: 0; }
+        body{ background: #fff; font-family: "Microsoft Yahei","Helvetica Neue",Helvetica,Arial,sans-serif; color: #333; font-size: 16px; }
+        .system-message{ padding: 24px 48px; }
+        .system-message h1{ font-size: 100px; font-weight: normal; line-height: 120px; margin-bottom: 12px; }
+        .system-message .jump{ padding-top: 10px; }
+        .system-message .jump a{ color: #333; }
+        .system-message .success,.system-message .error{ line-height: 1.8em; font-size: 36px; }
+        .system-message .detail{ font-size: 12px; line-height: 20px; margin-top: 12px; display: none; }
+    </style>
+</head>
+<body>
+    <div class="system-message">
+        <?php switch ($code) {case 1:?>
+            <h1>:)</h1>
+            <p class="success"><?php echo(strip_tags($msg));?></p>
+            <?php break;case 0:?>
+            <h1>:(</h1>
+            <p class="error"><?php echo(strip_tags($msg));?></p>
+            <?php break;} ?>
+        <p class="detail"></p>
+        <p class="jump">
+            页面自动 <a id="href" href="<?php echo($url);?>">跳转</a> 等待时间: <b id="wait"><?php echo($wait);?></b>
+        </p>
+    </div>
+    <script type="text/javascript">
+        (function(){
+            var wait = document.getElementById('wait'),
+                href = document.getElementById('href').href;
+            var interval = setInterval(function(){
+                var time = --wait.innerHTML;
+                if(time <= 0) {
+                    location.href = href;
+                    clearInterval(interval);
+                };
+            }, 1000);
+        })();
+    </script>
+</body>
+</html>

+ 87 - 0
runtime/temp/bfa59e1c5138f50307b54b7b66a51308.php

@@ -0,0 +1,87 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:88:"C:\phpStudy\PHPTutorial\WWW\aqm-web\public/../application/admin\view\head_nav\index.html";i:1557738638;s:75:"C:\phpStudy\PHPTutorial\WWW\aqm-web\application\admin\view\layout\home.html";i:1557480234;}*/ ?>
+<!DOCTYPE html>
+<html>
+    <head>
+        <meta charset="utf-8">
+        <meta http-equiv="X-UA-Compatible" content="IE=edge">
+        <title>安全猫官网</title>
+        <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
+        <!-- Bootstrap 3.3.7 -->
+        <link rel="stylesheet" href="<?php echo PLUGINS_SITE_ROOT; ?>/layui/css/layui.css">
+        <link rel="stylesheet" href="<?php echo ADMIN_SITE_ROOT; ?>/css/admin.css">
+        <link rel="stylesheet" href="<?php echo ADMIN_SITE_ROOT; ?>/iconfont/iconfont.css">
+        <script src="<?php echo PLUGINS_SITE_ROOT; ?>/jquery-2.1.4.min.js"></script>
+        <script src="<?php echo ADMIN_SITE_ROOT; ?>/js/admin.js"></script>
+        <script type="text/javascript" src="<?php echo PLUGINS_SITE_ROOT; ?>/layui/layui.js"></script>
+        <script type="text/javascript">
+            var BASESITEROOT = "<?php echo BASE_SITE_ROOT; ?>";
+            var ADMINSITEROOT = "<?php echo ADMIN_SITE_ROOT; ?>";
+            var BASESITEURL = "<?php echo BASE_SITE_URL; ?>";
+            var HOMESITEURL = "<?php echo HOME_SITE_URL; ?>";
+            var ADMINSITEURL = "<?php echo ADMIN_SITE_URL; ?>";
+            layui.use('layer', function () {
+                var layer = layui.layer;
+            });
+        </script>
+    </head>
+    <body>
+        
+<div class="layui-tab layui-tab-card">
+    <ul class="layui-tab-title">
+        <li>
+            <a href="index">管理</a>
+        </li>
+        <li class="layui-this">
+            <a href="addHeadNav">新增</a>
+        </li>
+        <div class="tool-btns">
+            <a href="javascript:location.reload();" title="刷新当前页面" class="iconfont icon-reload"></a>
+        </div>
+    </ul>
+    <div class="layui-tab-content page-tab-content">
+        <table class="layui-table lay-even">
+            <colgroup>
+                <col width="100">
+                <col width="150">
+                <col width="100">
+                <col width="200">
+                <col width="200">
+                <col>
+            </colgroup>
+            <thead>
+            <tr>
+                <th>id</th>
+                <th>导航栏名称</th>
+                <th>排序</th>
+                <th>添加时间</th>
+                <th>修改时间</th>
+                <th>状态</th>
+                <th><?php echo \think\Lang::get('ds_operation'); ?></th>
+            </tr>
+            </thead>
+            <tbody>
+            <?php if(is_array($headnav_list) || $headnav_list instanceof \think\Collection || $headnav_list instanceof \think\Paginator): $kk = 0; $__LIST__ = $headnav_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$headnav): $mod = ($kk % 2 );++$kk;?>
+            <tr>
+                <td><?php echo $headnav['id']; ?></td>
+                <td><?php echo $headnav['nav_name']; ?></td>
+                <td><?php echo $headnav['nav_sort']; ?></td>
+                <td><?php echo $headnav['nav_add_time']; ?></td>
+                <td><?php echo $headnav['nav_update_time']; ?></td>
+                <td><?php if($headnav['status']==1): ?>使用中<?php else: ?>未使用<?php endif; ?></td>
+                <td>
+                    <a href="<?php echo url('edit',['id'=>$headnav['id']]); ?>" class="layui-btn layui-btn-xs"><i class="layui-icon layui-icon-edit"></i><?php echo \think\Lang::get('ds_edit'); ?></a>
+                    <a class="layui-btn layui-btn-danger layui-btn-xs" href="javascript:dsLayerConfirm('<?php echo url('del',['id'=>$headnav['id']]); ?>','<?php echo \think\Lang::get('ds_confirm_cancel'); ?>')"><i class="layui-icon layui-icon-delete"></i><?php echo \think\Lang::get('ds_del'); ?></a>
+                </td>
+            </tr>
+            <?php endforeach; endif; else: echo "" ;endif; ?>
+            </tbody>
+        </table>
+    </div>
+</div>
+<script type="text/javascript" src="<?php echo ADMIN_SITE_ROOT; ?>/js/jquery.edit.js"></script>
+
+    </body>
+</html>
+
+
+

+ 196 - 0
runtime/temp/c19ac99b77135a08e0817e720be4a8c7.php

@@ -0,0 +1,196 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:85:"C:\phpStudy\PHPTutorial\WWW\aqm-web\public/../application/admin\view\index\index.html";i:1557717134;}*/ ?>
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/html">
+<head>
+    <meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <title>安全猫官网</title>
+    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
+    <!-- Bootstrap 3.3.7 -->
+    <link rel="stylesheet" href="<?php echo PLUGINS_SITE_ROOT; ?>/layui/css/layui.css">
+    <link rel="stylesheet" href="<?php echo ADMIN_SITE_ROOT; ?>/css/admin.css">
+    <link rel="stylesheet" href="<?php echo ADMIN_SITE_ROOT; ?>/iconfont/iconfont.css">
+    <script src="<?php echo PLUGINS_SITE_ROOT; ?>/jquery-2.1.4.min.js"></script>
+    <script src="<?php echo ADMIN_SITE_ROOT; ?>/js/admin.js"></script>
+    <script type="text/javascript" src="<?php echo PLUGINS_SITE_ROOT; ?>/layui/layui.js"></script>
+    <script type="text/javascript">
+        var BASESITEROOT = "<?php echo BASE_SITE_ROOT; ?>";
+        var ADMINSITEROOT = "<?php echo ADMIN_SITE_ROOT; ?>";
+        var BASESITEURL = "<?php echo BASE_SITE_URL; ?>";
+        var HOMESITEURL = "<?php echo HOME_SITE_URL; ?>";
+        var ADMINSITEURL = "<?php echo ADMIN_SITE_URL; ?>";
+    </script>
+</head>
+<body>
+<style type="text/css">
+    .layui-tab {
+        position: absolute;
+        left: 0;
+        top: 0;
+        height: 100%;
+        width: 100%;
+        z-index: 10;
+        margin: 0;
+        border: none;
+        overflow: hidden;
+    }
+
+    .layui-tab-content {
+        padding: 0;
+        height: 100%;
+    }
+
+    .layui-tab-item {
+        height: 100%;
+    }
+    .treeview .admin-nav-item{
+            color: #a7b1c2 !important;
+            padding-left: 5px;
+    }
+    .treeview .admin-nav-item:hover{
+            color: #fff !important;
+    }
+</style>
+<div class="admincp-header">
+    <div class="logo">
+        <img width="200" src="<?php echo ADMIN_SITE_ROOT; ?>/images/backlogo.png"/>
+    </div>
+    <div class="navbar">
+        <ul class="fr" style="float:right" id="nav">
+            <li>
+                <span><?php echo \think\Lang::get('ds_shalom'); ?>,<?php echo \think\Session::get('admin_name'); ?></span>
+                <dl class="layui-nav-child"> <!-- 二级菜单 -->
+                    <dd><a href="javascript:dsLayerOpen('<?php echo url('Index/modifypw'); ?>','<?php echo \think\Lang::get('ds_change_password'); ?>')"><?php echo \think\Lang::get('ds_change_password'); ?></a></dd>
+                    <dd><a href="<?php echo url('Login/logout'); ?>"><?php echo \think\Lang::get('ds_safe_withdrawing'); ?></a></dd>
+                </dl>
+            </li>
+            <li><a href="javascript:dsLayerConfirm('<?php echo url('Index/clear'); ?>','<?php echo \think\Lang::get('ds_clear_cache_confirm'); ?>')"><?php echo \think\Lang::get('ds_clear_cache'); ?></a></li>
+        </ul>
+    </div>
+</div>
+<div class="admincp-container">
+    <div class="admincp-container-left">
+        <ul class="sidebar-menu" id="gloMenu">
+            <?php if(is_array($menu_list) || $menu_list instanceof \think\Collection || $menu_list instanceof \think\Paginator): if( count($menu_list)==0 ) : echo "" ;else: foreach($menu_list as $fe_menu=>$menu): if(!empty($menu['children'])): ?>
+            <li class="treeview">
+                <div class="title" id="navT"><i class="iconfont icon-<?php echo $fe_menu; ?>"></i><span class="title-txt"> <?php echo $menu['text']; ?></span><span class="layui-nav-more"></span></div>
+                <ul class="treeview-menu" id="navC" style="display:none;">
+                    <?php if(is_array($menu['children']) || $menu['children'] instanceof \think\Collection || $menu['children'] instanceof \think\Paginator): if( count($menu['children'])==0 ) : echo "" ;else: foreach($menu['children'] as $fe_submenu=>$submenu): if(array_intersect(explode("/",substr($submenu['url'],7,-5)),$gupinfo)): ?>
+                        <li><a data-id="<?php echo $fe_menu; ?>-<?php echo $fe_submenu; ?>" href="<?php echo $submenu['url']; ?>" class="admin-nav-item"><?php echo $submenu['text']; ?></a></li>
+                    <?php endif; endforeach; endif; else: echo "" ;endif; ?>
+                </ul>
+            </li>
+            <?php else: ?>
+                <li class="treeview">
+                    <div class="title" id="navT"><i class="iconfont icon-<?php echo $fe_menu; ?>"></i><a data-id="<?php echo $fe_menu; ?>" href="<?php echo $menu['url']; ?>" class="admin-nav-item"><?php echo $menu['text']; ?></a></div>
+                </li>
+            <?php endif; endforeach; endif; else: echo "" ;endif; ?>
+        </ul>
+    </div>
+
+    <div class="admincp-container-right">
+        <div class="layui-tab layui-tab-card" lay-filter="dsTab" lay-allowclose="true">
+            <ul class="layui-tab-title">
+                <li class="layui-this" lay-id="0">
+                    <cite><?php echo \think\Lang::get('ds_welcome'); ?></cite>
+                </li>
+            </ul>
+            <div class="layui-tab-content">
+                <div class="layui-tab-item layui-show">
+                    <iframe lay-id="0" src="<?php echo url('Wlcome/index'); ?>" width="100%" height="100%" frameborder="0" scrolling="yes"></iframe>
+                </div>
+            </div>
+        </div>
+    </div>
+    
+</div>
+<script type="text/javascript">
+    var width =document.body.clientWidth;
+    var changesmall =function(){
+        if($(".admincp-container-left").css("width")=="200px"){
+            $(".admincp-container-left").css("width","55px");
+            $("#layout-center").css({"position":"absolute","left":"55px","width":(width-55)+"px"});
+            $(".title").attr('title',$(".title .title-txt").html())
+            $(".title .title-txt").css("display","none");
+            $('.admincp-container-right').css("left","55px");
+        }else{
+            $(".admincp-container-left").css("width","200px");
+            $("#layout-center").css({"position":"absolute","left":"130px","width":(width-130)+"px"});
+            $(".title").attr('title',"")
+            $(".title span").css("display","inline-block");
+            $('.admincp-container-right').css("left","200px");
+        }
+    }
+
+</script>
+<script type="text/javascript">
+    layui.use(['jquery', 'element', 'layer'], function () {
+        var $ = layui.jquery, element = layui.element, layer = layui.layer;
+        $('.layui-tab-content').height($(window).height() - 145);
+        var tab = {
+            add: function (title, url, id) {
+                element.tabAdd('dsTab', {
+                    title: title,
+                    content: '<iframe width="100%" height="100%" lay-id="' + id + '" frameborder="0" src="' + url + '" scrolling="yes" class="x-iframe"></iframe>',
+                    id: id
+                });
+            }, change: function (id) {
+                element.tabChange('dsTab', id);
+            }
+        };
+        $('.admin-nav-item').click(function (event) {
+            var that = $(this);
+            if ($('iframe[src="' + that.attr('href') + '"]')[0]) {
+                tab.change(that.attr('data-id'));
+                event.stopPropagation();
+                return false;
+            }
+            if ($('iframe').length == 20) {
+                layer.msg('最多可打开20个标签页');
+                return false;
+            }
+            that.css({color: '#fff'});
+            tab.add(that.text(), that.attr('href'), that.attr('data-id'));
+            tab.change(that.attr('data-id'));
+            event.stopPropagation();
+            return false;
+        });
+        $(document).on('click', '.layui-tab-close', function () {
+            $('.layui-nav-child a[data-id="' + $(this).parent('li').attr('lay-id') + '"]').css({color: 'rgba(255,255,255,.7)'});
+        });
+    });
+    $('#gloMenu').on('click', '#navT', function () {
+        var parent = $(this).closest('li');
+        var index = parent.index();
+        if (parent.find('#navC').find('li').length) {
+            if (parent.hasClass('open')) {
+                parent.find('#navC').stop(true).slideUp(300, function () {
+                    parent.removeClass('open')
+                });
+            } else {
+                var openLi = $('.sidebar-menu').find('li.open');
+                openLi.removeClass('open').find('#navC').stop(true).slideUp(300);
+                parent.addClass('open').find('#navC').stop(true).slideDown(300);
+            }
+        }
+    })
+    $('#nav').on('click', '#nav1', function () {
+        var parent = $(this).closest('li');
+        var index = parent.index();
+        if (parent.find('#nav2').find('li').length) {
+            if (parent.hasClass('open')) {
+                parent.find('#nav2').stop(true).slideUp(300, function () {
+                    parent.removeClass('open')
+                });
+            } else {
+                var openLi = $('.sidebar-menu').find('li.open');
+                openLi.removeClass('open').find('#nav2').stop(true).slideUp(300);
+                parent.addClass('open').find('#nav2').stop(true).slideDown(300);
+            }
+        }
+    })
+</script>
+</body>
+
+
+</html>