Jonlin 6 years ago
parent
commit
2a28b542e2

+ 4 - 0
application/admin/controller/AdminControl.php

@@ -185,6 +185,10 @@ class AdminControl extends Controller
                 'name' => 'content_manage',
                 'text' => lang('ds_content_manage'),
                 'children' => array(
+                    'head_nav' => array(
+                        'text' => lang('ds_headnav'),
+                        'url' => url('HeadNav/index'),
+                    ),
                     'product' => array(
                         'text' => lang('ds_product'),
                         'url' => url('Product/index'),

+ 144 - 0
application/admin/controller/HeadNav.php

@@ -0,0 +1,144 @@
+<?php
+
+namespace app\admin\controller;
+use think\Lang;
+
+class HeadNav extends AdminControl
+{
+    public function _initialize()
+    {
+        parent::_initialize();
+        Lang::load(APP_PATH . 'admin/lang/' . config('default_lang') . '/product.lang.php');
+    }
+
+    /**
+     * 网站首页头部导航栏
+     */
+    public function index(){
+        $model_headnav = Model('HeadNav');
+        $headnav_keywords = input('post.product_keywords');
+        $headnav_type = input('post.product_type');
+        $condition = array();
+        if($headnav_keywords){
+            $condition['product_keywords'] = $headnav_keywords;
+        }
+        if($headnav_type){
+            $condition['product_type'] = $headnav_type;
+        }
+        $headnav_list = $model_headnav->getHeadNav($condition,'*',10);
+        for($i=0;$i<count($headnav_list);$i++){
+            $headnav_list[$i]['nav_add_time'] = date("Y-m-d h:i:s",$headnav_list[$i]['nav_add_time']);
+            $headnav_list[$i]['nav_update_time'] = date("Y-m-d h:i:s",$headnav_list[$i]['nav_update_time']);
+        }
+
+        $allpower = $this->qxhans();
+        $this->assign('allpower',$allpower);
+        $this->assign('headnav_list', $headnav_list);
+        //$this->assign('show_page', $headnav_list->page_info->render());
+        $this->setAdminCurItem('index');
+        return $this->fetch();
+
+    }
+
+    /**
+     * 添加头部导航
+     * @return mixed
+     */
+    public function addHeadNav()
+    {
+        $allpower = $this->qxhans();
+        $this->assign('allpower',$allpower);
+        if (request()->isPost()) {
+            $data = array(
+                'nav_name' => input('post.nav_name'),
+                'nav_sort' => input('post.nav_sort'),
+                'nav_add_time' => time(),
+                'nav_update_time' => time(),
+                'status' => input('post.status'),
+            );
+
+            $result = model('HeadNav')->addHeadNav($data);
+            if ($result){
+                $this->success(lang('add_succ'), url('HeadNav/index'));
+            }
+            $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);
+            $this->setAdminCurItem('add');
+            return $this->fetch('form');
+        }
+    }
+
+    /**
+     * 修改头部导航
+     * @return mixed
+     */
+    public function edit()
+    {
+        $allpower = $this->qxhans();
+        $this->assign('allpower',$allpower);
+        $id = input('param.id');
+        if ($id <= 0) {
+            $this->error('系统错误');
+        }
+        $condition['id'] = $id;
+        if (request()->isPost()) {
+            $data = array(
+                'nav_name' => input('post.nav_name'),
+                'nav_sort' => input('post.nav_sort'),
+                'nav_update_time' => time(),
+                'status' => input('post.status'),
+            );
+
+            $result = model('HeadNav')->editHeadNav(['id' => $id], $data);
+            if ($result >= 0) {
+                $this->success(lang('edit_succ'), 'HeadNav/index');
+            } else {
+                $this->error(lang('edit_fail'));
+            }
+        } else {
+
+            $headnav = model('HeadNav')->getOneHeadNav(['id' => $id]);
+            $this->assign('headnav', $headnav);
+            $this->setAdminCurItem('edit');
+            return $this->fetch('form');
+        }
+    }
+
+
+    /**
+     * 删除头部导航
+     * @return mixed
+     */
+    function del()
+    {
+        $id = intval(input('param.id'));
+        if ($id) {
+            $condition['id'] = $id;
+            $result = model('HeadNav')->delHeadNav($condition);
+            if ($result) {
+                ds_json_encode(10000, lang('del_succ'));
+            } else {
+                ds_json_encode(10001, lang('del_fail'));
+            }
+        } else {
+            ds_json_encode(10001, lang('param_error'));
+        }
+    }
+}

+ 1 - 0
application/admin/lang/zh-cn.php

@@ -64,6 +64,7 @@ $lang['ds_welcome'] = '欢迎界面';
 //基本设置
 $lang['ds_setting_manage'] = '系统设置';
 $lang['ds_config'] = '网站设置';
+$lang['ds_headnav'] = '网站头部导航栏设置';
 $lang['ds_wzconfig'] = '前台设置';
 $lang['ds_fzsconfig'] = '网站防灌水';
 $lang['ds_seoconfig'] = 'seo设置';

+ 98 - 0
application/admin/view/head_nav/form.html

@@ -0,0 +1,98 @@
+{extend name="layout:home" /}
+
+{block name="container"}
+<form class="layui-form" method="post" enctype="multipart/form-data" >
+    <div class="layui-tab layui-tab-card">
+        {include file="layout/admin_items" /}
+        <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="{$headnav.nav_name|default=''}" lay-verify="nav_name" autocomplete="off" placeholder="{$Think.lang.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="{$headnav.nav_sort|default=''}" lay-verify="nav_sort" autocomplete="off" placeholder="{$Think.lang.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="{$Think.lang.ds_yes}|{$Think.lang.ds_no}" value="1" {if condition="$headnav.status eq '1'"}checked{/if}>
+                                </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="{: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: '{$Think.lang.ds_confirm_cancel}',
+            yes: function(index, layero){
+                $.getJSON("{:url('pic/del')}",{file_id: + file_id,pic_type:'product'}, function(result){
+                    if(result){
+                        $('#' + file_id).remove();
+                        layer.msg('{$Think.lang.del_succ}');
+                        layer.close(index);
+                        return;
+                    }else{
+                        layer.msg('{$Think.lang.del_fail}');
+                        layer.close(index);
+                        return;
+                    }
+                });
+            }
+        });
+    }
+</script>
+{/block}
+
+

+ 56 - 0
application/admin/view/head_nav/index.html

@@ -0,0 +1,56 @@
+{extend name="layout:home" /}
+{block name="container"}
+<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>{$Think.lang.ds_operation}</th>
+            </tr>
+            </thead>
+            <tbody>
+            {volist name="headnav_list" id="headnav" key="kk"}
+            <tr>
+                <td>{$headnav.id}</td>
+                <td>{$headnav.nav_name}</td>
+                <td>{$headnav.nav_sort}</td>
+                <td>{$headnav.nav_add_time}</td>
+                <td>{$headnav.nav_update_time}</td>
+                <td>{if $headnav.status==1}使用中{else}未使用{/if}</td>
+                <td>
+                    <a href="{:url('edit',['id'=>$headnav.id])}" class="layui-btn layui-btn-xs"><i class="layui-icon layui-icon-edit"></i>{$Think.lang.ds_edit}</a>
+                    <a class="layui-btn layui-btn-danger layui-btn-xs" href="javascript:dsLayerConfirm('{:url('del',['id'=>$headnav.id])}','{$Think.lang.ds_confirm_cancel}')"><i class="layui-icon layui-icon-delete"></i>{$Think.lang.ds_del}</a>
+                </td>
+            </tr>
+            {/volist}
+            </tbody>
+        </table>
+    </div>
+</div>
+<script type="text/javascript" src="{$Think.ADMIN_SITE_ROOT}/js/jquery.edit.js"></script>
+{/block}

+ 1 - 1
application/admin/view/index/index.html

@@ -87,7 +87,7 @@
                     <div class="title" id="navT"><i class="iconfont icon-{$fe_menu}"></i><a data-id="{$fe_menu}" href="{$menu.url}" class="admin-nav-item">{$menu.text}</a></div>
                 </li>
             {/if}
-        
+
             {/foreach}
         </ul>
     </div>

+ 70 - 0
application/common/model/HeadNav.php

@@ -0,0 +1,70 @@
+<?php
+
+namespace app\common\model;
+
+use think\Model;
+
+class HeadNav extends Model
+{
+    public $page_info;
+
+    /**
+     * 获取单个导航栏内容
+     */
+    public function getOneHeadNav($condition, $field = '*')
+    {
+        return db('head_nav')->field($field)->where($condition)->find();
+    }
+
+
+
+    /**
+     * 头部导航栏列表
+     */
+    public function getHeadNav($condition, $field = '*', $page = 0, $order = 'nav_sort', $limit = '')
+    {
+        if ($limit) {
+            return db('head_nav')->where($condition)->field($field)->order($order)->page($page)->limit($limit)->select();
+        } else {
+            $res = db('head_nav')->where($condition)->field($field)->order($order)->paginate($page);
+            $this->page_info = $res;
+            return $res->items();
+        }
+    }
+    /**
+     * 新增导航栏
+     */
+    public function addHeadNav($param)
+    {
+        return db('head_nav')->insertGetId($param);
+    }
+
+    /**
+     * 修改导航栏
+     */
+    public function editHeadNav($condition, $update)
+    {
+        return db('head_nav')->where($condition)->update($update);
+    }
+
+    /**
+     * 删除导航栏
+     * @param unknown $condition
+     * @return boolean
+     */
+    public function delHeadNav($condition)
+    {
+        $headnav_array = $this->getHeadNav($condition, 'id');
+        $id_array = array();
+        foreach ($headnav_array as $value) {
+            $id_array[] = $value['id'];
+            // @unlink(BASE_UPLOAD_PATH . DS . ATTACH_PRODUCT . DS . $value['product_img']);
+        }
+        return db('head_nav')->where(array('id' => array('in', $id_array)))->delete();
+    }
+
+
+
+}
+
+?>

BIN
public/static/admin/images/backlogo.png


+ 0 - 132
runtime/temp/318ae878ab17461ecc348f375296dbae.php

@@ -1,132 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:86:"C:\phpStudy\PHPTutorial\WWW\weblive\public/../application/admin\view\member\index.html";i:1550732461;s:75:"C:\phpStudy\PHPTutorial\WWW\weblive\application\admin\view\layout\home.html";i:1557460112;s:82:"C:\phpStudy\PHPTutorial\WWW\weblive\application\admin\view\layout\admin_items.html";i:1547518688;}*/ ?>
-<!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">
-    <?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="search-form">
-        <form class="" method="post">
-            <div class="layui-form-item">
-                <div class="layui-inline">
-                    <input type="text" name="title"  placeholder="输入名称或联系人或电话" autocomplete="off" class="layui-input">
-                </div>
-                <div class="layui-inline">
-                    <input type="text" class="layui-input" name="timeRang" id="timeRang" placeholder="选择时间段" style="width: 170px;">
-                </div>
-                <div class="layui-inline">
-                    <button type="submit" class="layui-btn search-subBtn">搜索</button>
-                </div>
-            </div>
-        </form>
-        </div>
-        <!-- 搜索框结束 -->
-        <table class="layui-table lay-even">
-            <colgroup>
-                <col width="150">
-                <col width="200">
-                <col>
-            </colgroup>
-            <thead>
-            <tr>
-                <th><?php echo \think\Lang::get('member_name'); ?></th>
-                <th><?php echo \think\Lang::get('member_url'); ?></th>
-                <th><?php echo \think\Lang::get('member_mobile'); ?></th>
-                <th>邮箱</th>
-                <th><?php echo \think\Lang::get('member_contacts'); ?></th>
-                <th><?php echo \think\Lang::get('member_add_time'); ?></th>
-                <th><?php echo \think\Lang::get('member_usetime'); ?></th>
-                <th><?php echo \think\Lang::get('member_validitytime'); ?></th>
-                <th><?php echo \think\Lang::get('member_status'); ?></th>
-                <th>操作</th>
-            </tr>
-            </thead>
-            <tbody>
-            <?php if($member_list): if(is_array($member_list) || $member_list instanceof \think\Collection || $member_list instanceof \think\Paginator): $i = 0; $__LIST__ = $member_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$member): $mod = ($i % 2 );++$i;?>
-            <tr>
-                <td><?php echo $member['member_name']; ?></td>
-                <td><?php echo $member['member_url']; ?></td>
-                <td><?php echo $member['member_mobile']; ?></td>
-                <td><?php echo $member['member_mailbox']; ?></td>
-                <td><?php echo $member['member_contacts']; ?></td>
-                <td><?php echo date('Y-m-d H:i:s',$member['member_add_time']); ?></td>
-                <td><?php echo $member['member_usetime']; ?></td>
-                <td><?php echo date('Y-m-d H:i:s',$member['member_validitytime']); ?></td>
-                <td><?php if($member['member_status']==1): ?>通过<?php else: ?>拒绝<?php endif; ?></td>
-                <td>
-                    <?php if(array_intersect(explode(" ",str_replace("/", ".","member/edit")),$allpower)): ?>
-                        <a href="javascript:dsLayerOpen('<?php echo url('Member/edit',['member_id'=>$member['member_id']]); ?>','<?php echo \think\Lang::get('ds_edit'); ?>-<?php echo $member['member_name']; ?>')" class="layui-btn layui-btn-xs"><i class="layui-icon layui-icon-edit"></i><?php echo \think\Lang::get('ds_edit'); ?></a>
-                    <?php endif; if(array_intersect(explode(" ",str_replace("/", ".","member/del")),$allpower)): ?>
-                        <a href="javascript:dsLayerConfirm('<?php echo url('Member/del',['member_id'=>$member['member_id']]); ?>','<?php echo \think\Lang::get('member_confirm_del'); ?>')" class="layui-btn layui-btn-xs layui-btn-danger"><i class="layui-icon layui-icon-delete"></i><?php echo \think\Lang::get('ds_del'); ?></a>
-                    <?php endif; ?>
-                </td>
-            </tr>
-            <?php endforeach; endif; else: echo "" ;endif; else: ?>
-            <td>无数据</td>
-            <?php endif; ?>
-            </tbody>
-        </table>
-        <?php echo $show_page; ?>
-    </div>
-</div>
-<script type="text/javascript">
-    layui.use('laydate', function(){
-      var laydate = layui.laydate;
-      
-      //执行一个laydate实例
-      laydate.render({
-        elem: '#creatTime' //指定元素
-      });
-        laydate.render({
-            elem:'#timeRang',
-            range:true,
-            format: 'yyyy/MM/dd',
-            done: function(value, date){
-                /* 时间选择完成后的回调 */
-            }
-        })
-    });
-</script>
-
-    </body>
-</html>
-
-
-

+ 0 - 138
runtime/temp/4c03983da1c07a7a05f403d4aa8da5f0.php

@@ -1,138 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:85:"C:\phpStudy\PHPTutorial\WWW\weblive\public/../application/admin\view\admin\index.html";i:1551755984;s:75:"C:\phpStudy\PHPTutorial\WWW\weblive\application\admin\view\layout\home.html";i:1557460112;s:82:"C:\phpStudy\PHPTutorial\WWW\weblive\application\admin\view\layout\admin_items.html";i:1547518688;}*/ ?>
-<!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">
-    <?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="search-form">
-		<form action="" method="post" enctype="multipart/form-data" >
-			<div class="layui-form-item">
-				<div class="layui-inline">
-					<input type="text" name="title"  placeholder="输入管理员名称" autocomplete="off" class="layui-input">
-				</div>
-				<div class="layui-inline">
-					<select name="admingroupid" lay-verify="" class="layui-select layui-unselect layui-form-select">
-						<option value="">管理组</option>
-						<?php if(is_array($admin_group) || $admin_group instanceof \think\Collection || $admin_group instanceof \think\Paginator): if( count($admin_group)==0 ) : echo "" ;else: foreach($admin_group as $key=>$v): ?>
-							<option value="<?php echo $v['group_id']; ?>"><?php echo $v['group_name']; ?></option>
-						<?php endforeach; endif; else: echo "" ;endif; ?>
-					</select>
-				</div>
-				<div class="layui-inline">
-					<button type="submit" class="layui-btn search-subBtn">搜索</button>
-				</div>
-				<div class="layui-inline right-per" style="float: right;">
-					<div class="button-group">
-						<button type="button" class="layui-btn"><i class="layui-icon layui-icon-table"></i><span>导出数据</span></button>
-					</div>
-				</div>
-			</div>
-			
-		</form>
-		</div>
-        <table class="layui-table lay-even">
-            <colgroup>
-                <col width="150">
-                <col width="200">
-                <col>
-            </colgroup>
-            <thead>
-            <tr>
-                <th><?php echo \think\Lang::get('admin_name'); ?></th>
-                <th><?php echo \think\Lang::get('admin_lgoin_num'); ?></th>
-                <th><?php echo \think\Lang::get('admin_is_super'); ?></th>
-                <th><?php echo \think\Lang::get('admin_login_time'); ?></th>
-                <th><?php echo \think\Lang::get('admin_add_time'); ?></th>
-                <th>状态</th>
-                <th><?php echo \think\Lang::get('ds_operation'); ?></th>
-            </tr>
-            </thead>
-            <tbody>
-            <?php if($admin_list): if(is_array($admin_list) || $admin_list instanceof \think\Collection || $admin_list instanceof \think\Paginator): $i = 0; $__LIST__ = $admin_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$admin): $mod = ($i % 2 );++$i;?>
-            <tr>
-                <td><?php echo $admin['admin_name']; ?></td>
-                <td><?php echo $admin['admin_login_num']; ?></td>
-                <td><?php echo $admin['group_name']; ?></td>
-                <td><?php if($admin['admin_login_time'] == 0): ?><?php echo \think\Lang::get('ds_no_login'); else: ?><?php echo date('Y-m-d H:i:s',$admin['admin_login_time']); endif; ?>
-                </td>
-                <td><?php if($admin['admin_add_time'] == 0): ?><?php echo \think\Lang::get('ds_no_login'); else: ?><?php echo date('Y-m-d H:i:s',$admin['admin_add_time']); endif; ?></td>
-                <td><?php if($admin['admin_status'] == 0): ?>停用<?php else: ?>启用<?php endif; ?></td>
-                <td>
-                    <?php if($admin['admin_id'] == 1): ?>
-                    <?php echo \think\Lang::get('admin_non_editable'); else: if(array_intersect(explode(" ",str_replace("/", ".","admin/edit")),$allpower)){ ?>
-                        <a href="javascript:dsLayerOpen('<?php echo url('Admin/edit',['admin_id'=>$admin['admin_id']]); ?>','<?php echo \think\Lang::get('ds_edit'); ?>-<?php echo $admin['admin_name']; ?>')" class="layui-btn layui-btn-xs"><i class="layui-icon layui-icon-edit"></i><?php echo \think\Lang::get('ds_edit'); ?></a>
-                    <?php } if(array_intersect(explode(" ",str_replace("/", ".","admin/del")),$allpower)){ ?>
-                        <a href="javascript:dsLayerConfirm('<?php echo url('admin/del',['admin_id'=>$admin['admin_id']]); ?>','<?php echo \think\Lang::get('admin_confirm_del'); ?>')" class="layui-btn layui-btn-xs layui-btn-danger"><i class="layui-icon layui-icon-delete"></i><?php echo \think\Lang::get('ds_del'); ?></a>
-                    <?php } endif; ?>
-                </td>
-            </tr>
-            <?php endforeach; endif; else: echo "" ;endif; else: ?>
-            <td>无数据</td>
-            <?php endif; ?>
-            </tbody>
-        </table>
-        <?php echo $show_page; ?>
-    </div>
-</div>
-<script type="text/javascript">
-	layui.use('laydate', function(){
-	  var laydate = layui.laydate;
-	  
-	  //执行一个laydate实例
-	  laydate.render({
-		elem: '#creatTime' //指定元素
-	  });
-		laydate.render({
-			elem:'#timeRang',
-			range:true,
-			format: 'yyyy/MM/dd',
-			done: function(value, date){
-				/* 时间选择完成后的回调 */
-			}
-		})
-	});
-</script>
-
-    </body>
-</html>
-
-
-

+ 0 - 146
runtime/temp/57d50fb68b8fb27a9fe455a5d8c210e4.php

@@ -1,146 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:87:"C:\phpStudy\PHPTutorial\WWW\weblive\public/../application/admin\view\message\index.html";i:1550732461;s:75:"C:\phpStudy\PHPTutorial\WWW\weblive\application\admin\view\layout\home.html";i:1557460112;s:82:"C:\phpStudy\PHPTutorial\WWW\weblive\application\admin\view\layout\admin_items.html";i:1547518688;}*/ ?>
-<!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">
-    <?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">
-        <form action="" method="post" enctype="multipart/form-data" >
-            <div class="layui-form-item">
-                <div class="layui-inline">
-                    <select name="lyaddtime" lay-verify="" class="layui-select layui-unselect layui-form-select">
-                        <option value ="<?php echo $lyaddtime; ?>"><?php if($lyaddtime==1): ?>近三天<?php elseif($lyaddtime==2): ?>最近一周<?php elseif($lyaddtime==3): ?>最近一月<?php else: ?>所有<?php endif; ?></option>
-                        <option value ="0">所有</option>
-                        <option value ="1">近三天</option>
-                        <option value="2">最近一周</option>
-                        <option value="3">最近一月</option>
-                    </select>
-                </div>
-                <div class="layui-inline">
-                    <select name="message_sid" lay-verify="" class="layui-select layui-unselect layui-form-select">
-                        <option value="">请选择所属公司</option>
-                        <?php if(is_array($allgs) || $allgs instanceof \think\Collection || $allgs instanceof \think\Paginator): $i = 0; $__LIST__ = $allgs;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vv): $mod = ($i % 2 );++$i;?>
-                            <option value="<?php echo $vv['member_id']; ?>"><?php echo $vv['member_name']; ?></option>
-                        <?php endforeach; endif; else: echo "" ;endif; ?>
-                    </select>
-                </div>
-                <div class="layui-inline">
-                    <select name="message_readok" lay-verify="" class="layui-select layui-unselect layui-form-select">
-                        <option value="">请选择是否处理</option>
-                        <option value="1">已处理</option>
-                        <option value="2">未处理</option>
-                    </select>
-                </div>
-                <div class="layui-inline">
-                    <button type="submit" class="layui-btn search-subBtn">搜索</button>
-                </div>
-            </div>
-        </form>
-        <table class="layui-table lay-even">
-            <colgroup>
-                <col width="150">
-                <col>
-            </colgroup>
-            <thead>
-                <tr>
-                    <th><?php echo \think\Lang::get('message_customer'); ?></th>
-                    <th><?php echo \think\Lang::get('message_way'); ?></th>
-                    <th>留言内容</th>
-                    <th><?php echo \think\Lang::get('message_readok'); ?></th>
-                    <th><?php echo \think\Lang::get('message_useinfo'); ?></th>
-                    <th>处理结果</th>
-                    <th>回复者</th>
-                    <th><?php echo \think\Lang::get('message_addtime'); ?></th>
-                    <th>处理时间</th>
-                    <th><?php echo \think\Lang::get('ds_operation'); ?></th>
-                </tr>
-            </thead>
-            <tbody>
-            <?php if($message_list): if(is_array($message_list) || $message_list instanceof \think\Collection || $message_list instanceof \think\Paginator): $k = 0; $__LIST__ = $message_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$message): $mod = ($k % 2 );++$k;?>
-            <tr>
-                <td><?php echo !empty($message['message_customer'])?$message['message_customer']: '匿名'; ?></td>
-                <td><?php echo $message['message_way']; ?></td>
-                <td><?php echo $message['message_content']; ?></td>
-                <td><?php if($message['message_readok'] == 0): ?>否<?php else: ?>是<?php endif; ?></td>
-                <td><?php echo !empty($message['message_useinfo'])?$message['message_useinfo']: '暂未回复'; ?></td>
-                <td><?php echo !empty($message['message_result'])?$message['message_result']: '暂未结果'; ?></td>
-                <td><?php echo $admin_list[$k-1]['member_name']; ?></td>
-                <td><?php echo date('Y-m-d H:i:s',$message['message_addtime']); ?></td>
-                <td><?php echo date('Y-m-d H:i:s',$message['message_replytime']); ?></td>
-                <td>
-                    <?php if(array_intersect(explode(" ",str_replace("/", ".","message/reply")),$allpower)): ?>
-                        <a href="javascript:dsLayerOpen('<?php echo url('message/reply',['message_id'=>$message['message_id']]); ?>','留意着-<?php echo $message['message_way']; ?>')"class="layui-btn layui-btn-xs"><i class="layui-icon layui-icon-edit"></i><?php echo \think\Lang::get('ds_view'); ?></a>
-                    <?php endif; if(array_intersect(explode(" ",str_replace("/", ".","message/del")),$allpower)): ?>
-                        <a href="javascript:dsLayerConfirm('<?php echo url('message/del',['message_id'=>$message['message_id']]); ?>','<?php echo \think\Lang::get('ds_confirm_cancel'); ?>')" class="layui-btn layui-btn-danger layui-btn-xs"><i class="layui-icon layui-icon-delete"></i><?php echo \think\Lang::get('ds_del'); ?></a>
-                    <?php endif; ?>
-                </td>
-            </tr>
-            <?php endforeach; endif; else: echo "" ;endif; else: ?>
-            <td>无数据</td>
-            <?php endif; ?>
-        </tbody>
-        </table>
-        <?php echo $show_page; ?>
-    </div>
-</div>
-<script type="text/javascript" src="<?php echo ADMIN_SITE_ROOT; ?>/js/jquery.edit.js"></script>
-<script>
-    layui.use('form', function () {
-        var form = layui.form;
-    });
-    layui.use('laydate', function(){
-        var laydate = layui.laydate;
-        laydate.render({
-            elem: '#kstime'
-        });
-    });
-    layui.use('laydate', function(){
-        var laydate = layui.laydate;
-        laydate.render({
-            elem: '#endtime'
-        });
-    });
-</script>
-
-
-    </body>
-</html>
-
-
-

+ 0 - 121
runtime/temp/65a21295658d04c797a71ba2418bcf26.php

@@ -1,121 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:86:"C:\phpStudy\PHPTutorial\WWW\weblive\public/../application/admin\view\config\index.html";i:1557459487;s:75:"C:\phpStudy\PHPTutorial\WWW\weblive\application\admin\view\layout\home.html";i:1557460112;s:82:"C:\phpStudy\PHPTutorial\WWW\weblive\application\admin\view\layout\admin_items.html";i:1547518688;}*/ ?>
-<!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 layui-form-pane" method="post">
-    <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-form-item">
-                    <label class="layui-form-label"><?php echo \think\Lang::get('cache_open'); ?></label>
-                    <div class="layui-input-block">
-                        <input type="checkbox" name="cache_open" lay-skin="switch" lay-text="是|否" value="1" <?php if($list_config['cache_open'] == '1'): ?>checked<?php endif; ?>>
-                    </div>
-                </div>
-                <div class="layui-form-item">
-                    <label class="layui-form-label"><?php echo \think\Lang::get('allowed_visitors_consult'); ?></label>
-                    <div class="layui-input-block">
-                        <input type="checkbox" name="guest_comment" lay-skin="switch" lay-text="是|否" value="1" <?php if($list_config['guest_comment'] == '1'): ?>checked<?php endif; ?>>
-                    </div>
-                </div>
-                <!-- //////////////////// -->
-                <div class="layui-form-item">
-                    <label class="layui-form-label"><?php echo \think\Lang::get('words_open'); ?></label>
-                    <div class="layui-input-block">
-                        <input type="checkbox" name="words_open" lay-skin="switch" lay-text="是|否" value="1" <?php if($list_config['words_open'] == '1'): ?>checked<?php endif; ?>>
-                    </div>
-                </div>
-                <div class="layui-form-item">
-                    <label class="layui-form-label"><?php echo \think\Lang::get('img_open'); ?></label>
-                    <div class="layui-input-block">
-                        <input type="checkbox" name="img_open" lay-skin="switch" lay-text="是|否" value="1" <?php if($list_config['img_open'] == '1'): ?>checked<?php endif; ?>>
-                    </div>
-                </div>
-                <div class="layui-form-item">
-                    <label class="layui-form-label"><?php echo \think\Lang::get('voice_open'); ?></label>
-                    <div class="layui-input-block">
-                        <input type="checkbox" name="voice_open" lay-skin="switch" lay-text="是|否" value="1" <?php if($list_config['voice_open'] == '1'): ?>checked<?php endif; ?>>
-                    </div>
-                </div>
-                <div class="layui-form-item">
-                    <label class="layui-form-label"><?php echo \think\Lang::get('video_open'); ?></label>
-                    <div class="layui-input-block">
-                        <input type="checkbox" name="video_open" lay-skin="switch" lay-text="是|否" value="1" <?php if($list_config['video_open'] == '1'): ?>checked<?php endif; ?>>
-                    </div>
-                </div>
-                <div class="layui-form-item">
-                    <label class="layui-form-label"><?php echo \think\Lang::get('look_open'); ?></label>
-                    <div class="layui-input-block">
-                        <input type="checkbox" name="look_open" lay-skin="switch" lay-text="是|否" value="1" <?php if($list_config['look_open'] == '1'): ?>checked<?php endif; ?>>
-                    </div>
-                </div>
-                <div class="layui-form-item">
-                    <div class="layui-input-block">
-                        <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;
-    });
-</script>
-<script>
-    //Demo
-    layui.use('form', function () {
-        var form = layui.form;
-
-        //监听提交
-        form.on('submit(formDemo)', function (data) {
-            layer.msg(JSON.stringify(data.field));
-            return false;
-        });
-    });
-</script>
-
-
-    </body>
-</html>
-
-
-

+ 0 - 82
runtime/temp/703abeeb661c5cc9aaf036cf6a161898.php

@@ -1,82 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:90:"C:\phpStudy\PHPTutorial\WWW\weblive\public/../application/admin\view\admingroup\index.html";i:1550732461;s:75:"C:\phpStudy\PHPTutorial\WWW\weblive\application\admin\view\layout\home.html";i:1557460112;s:82:"C:\phpStudy\PHPTutorial\WWW\weblive\application\admin\view\layout\admin_items.html";i:1547518688;}*/ ?>
-<!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">
-    <?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">
-        <table class="layui-table lay-even">
-            <colgroup>
-                <col width="150">
-                <col width="200">
-                <col>
-            </colgroup>
-            <thead>
-            <tr>
-                <th><?php echo \think\Lang::get('admin_group_name'); ?></th>
-                <th>创建时间</th>
-                <th><?php echo \think\Lang::get('ds_operation'); ?></th>
-            </tr>
-            </thead>
-            <tbody>
-            <?php if($admin_group_list): if(is_array($admin_group_list) || $admin_group_list instanceof \think\Collection || $admin_group_list instanceof \think\Paginator): $i = 0; $__LIST__ = $admin_group_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$admin_group): $mod = ($i % 2 );++$i;?>
-            <tr>
-                <td><?php echo $admin_group['group_name']; ?></td>
-                <td><?php echo date("Y-m-d H:i:s",$admin_group['addtime']); ?></td>
-                <td>
-                    <?php if(array_intersect(explode(" ",str_replace("/", ".","admingroup/edit")),$allpower)): ?>
-                        <a href="javascript:dsLayerOpen('<?php echo url('Admingroup/edit',['group_id'=>$admin_group['group_id']]); ?>','<?php echo \think\Lang::get('ds_edit'); ?>-<?php echo $admin_group['group_name']; ?>')" class="layui-btn layui-btn-xs"><i class="layui-icon layui-icon-edit"></i><?php echo \think\Lang::get('ds_edit'); ?></a>
-                    <?php endif; if(array_intersect(explode(" ",str_replace("/", ".","admingroup/del")),$allpower)): ?>
-                        <a href="javascript:dsLayerConfirm('<?php echo url('Admingroup/del',['group_id'=>$admin_group['group_id']]); ?>','<?php echo \think\Lang::get('admin_group_confirm_del'); ?>')" class="layui-btn layui-btn-xs layui-btn-danger"><i class="layui-icon layui-icon-delete"></i><?php echo \think\Lang::get('ds_del'); ?></a>
-                    <?php endif; ?>
-                </td>
-            </tr>
-            <?php endforeach; endif; else: echo "" ;endif; else: ?>
-            <td>无数据</td>
-            <?php endif; ?>
-            </tbody>
-        </table>
-    </div>
-</div>
-
-    </body>
-</html>
-
-
-

+ 0 - 123
runtime/temp/a0f006d0cdab7e9e43f8469a629d8a2d.php

@@ -1,123 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:88:"C:\phpStudy\PHPTutorial\WWW\weblive\public/../application/admin\view\accesskf\index.html";i:1551088391;s:75:"C:\phpStudy\PHPTutorial\WWW\weblive\application\admin\view\layout\home.html";i:1557460112;s:82:"C:\phpStudy\PHPTutorial\WWW\weblive\application\admin\view\layout\admin_items.html";i:1547518688;}*/ ?>
-<!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">
-    <?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="search-form">
-        <form class="" method="post">
-            <div class="layui-form-item">
-                <div class="layui-inline">
-                    <input type="text" name="title"  placeholder="输入公司名或appid或接入名" autocomplete="off" class="layui-input">
-                </div>
-                <div class="layui-inline">
-                    <button type="submit" class="layui-btn search-subBtn">搜索</button>
-                </div>
-            </div>
-        </form>
-        </div>
-        <!-- 搜索框结束 -->
-        <table class="layui-table lay-even">
-            <colgroup>
-                <col width="150">
-                <col width="200">
-                <col>
-            </colgroup>
-            <thead>
-            <tr>
-                <th>公司名</th>
-                <th>接入名称</th>
-                <th>appid</th>
-                <th>appsecrect</th>
-                <th>域名</th>
-                <th>所属公司</th>
-                <th>操作</th>
-            </tr>
-            </thead>
-            <tbody>
-            <?php if($access_list): if(is_array($access_list) || $access_list instanceof \think\Collection || $access_list instanceof \think\Paginator): $k = 0; $__LIST__ = $access_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$access): $mod = ($k % 2 );++$k;?>
-            <tr>
-                <td><?php echo $access['access_gsname']; ?></td>
-                <td><?php echo $access['access_gsjrname']; ?></td>
-                <td><?php echo $access['access_appid']; ?></td>
-                <td><?php echo $access['access_appsecrect']; ?></td>
-                <td><?php echo $access['access_url']; ?></td>
-                <td><?php echo $member_list[$k-1]['member_name']; ?></td>
-                <td>
-                    <?php if(array_intersect(explode(" ",str_replace("/", ".","accesskf/edit")),$allpower)): ?>
-                        <a href="javascript:dsLayerOpen('<?php echo url('Accesskf/edit',['access_id'=>$access['access_id']]); ?>','<?php echo \think\Lang::get('ds_edit'); ?>-<?php echo $access['access_gsname']; ?>')" class="layui-btn layui-btn-xs"><i class="layui-icon layui-icon-edit"></i><?php echo \think\Lang::get('ds_edit'); ?></a>
-                    <?php endif; if(array_intersect(explode(" ",str_replace("/", ".","accesskf/del")),$allpower)): ?>
-                        <a href="javascript:dsLayerConfirm('<?php echo url('Accesskf/del',['access_id'=>$access['access_id']]); ?>','<?php echo \think\Lang::get('member_confirm_del'); ?>')" class="layui-btn layui-btn-xs layui-btn-danger"><i class="layui-icon layui-icon-delete"></i>删除</a>
-                    <?php endif; ?>
-                </td>
-            </tr>
-            <?php endforeach; endif; else: echo "" ;endif; else: ?>
-            <td>无数据</td>
-            <?php endif; ?>
-            </tbody>
-        </table>
-        <?php echo $show_page; ?>
-    </div>
-</div>
-<script type="text/javascript">
-    layui.use('laydate', function(){
-      var laydate = layui.laydate;
-      
-      //执行一个laydate实例
-      laydate.render({
-        elem: '#creatTime' //指定元素
-      });
-        laydate.render({
-            elem:'#timeRang',
-            range:true,
-            format: 'yyyy/MM/dd',
-            done: function(value, date){
-                /* 时间选择完成后的回调 */
-            }
-        })
-    });
-</script>
-
-    </body>
-</html>
-
-
-

+ 0 - 116
runtime/temp/a4286faeb0e9ebc937d98c7e9096aebc.php

@@ -1,116 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:86:"C:\phpStudy\PHPTutorial\WWW\weblive\public/../application/admin\view\wlcome\index.html";i:1557455325;s:75:"C:\phpStudy\PHPTutorial\WWW\weblive\application\admin\view\layout\home.html";i:1557460112;}*/ ?>
-<!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>
-
-
-

+ 0 - 122
runtime/temp/b9719bec99dca5117f29a948bb64b576.php

@@ -1,122 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:87:"C:\phpStudy\PHPTutorial\WWW\weblive\public/../application/admin\view\product\index.html";i:1550546078;s:75:"C:\phpStudy\PHPTutorial\WWW\weblive\application\admin\view\layout\home.html";i:1557460112;s:82:"C:\phpStudy\PHPTutorial\WWW\weblive\application\admin\view\layout\admin_items.html";i:1547518688;}*/ ?>
-<!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">
-    <?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="search-form">
-        <form class="" method="post">
-            <div class="layui-form-item">
-                <div class="layui-inline">
-                    <input type="text" name="product_keywords"  placeholder="输入关键字" autocomplete="off" class="layui-input">
-                </div>
-                <div class="layui-inline">
-                    <select name="product_type" lay-verify="" class="layui-select layui-unselect layui-form-select">
-                        <option value="">请选择类别</option>
-                        <option value="1">客服常用语</option>
-                        <option value="2">客户常用问题</option>
-                        <option value="3">客服快捷回复</option>
-                        <option value="4">自动回复</option>
-                        <option value="5">新闻</option>
-                    </select>
-                </div>
-                <div class="layui-inline">
-                    <button type="submit" class="layui-btn search-subBtn">搜索</button>
-                </div>
-            </div>
-        </form>
-        </div>
-        <!-- 搜索框结束 -->
-        <table class="layui-table lay-even">
-            <colgroup>
-                <col width="150">
-                <col width="200">
-                <col width="100">
-                <col width="100">
-                <col width="100">
-                <col>
-            </colgroup>
-            <thead>
-                <tr>
-                    <th><?php echo \think\Lang::get('product_title'); ?></th>
-                    <th>副标题</th>
-                    <th>内容</th>
-                    <th>关键字</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($product_list && $gsname_list): if(is_array($product_list) || $product_list instanceof \think\Collection || $product_list instanceof \think\Paginator): $kk = 0; $__LIST__ = $product_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$product): $mod = ($kk % 2 );++$kk;?>
-            <tr>
-                <td><?php echo $product['product_title']; ?></td>
-                <td><?php echo $product['product_ctitle']; ?></td>
-                <td><?php echo $conlist[$kk-1]; ?></td>
-                <td><?php echo $product['product_keywords']; ?></td>
-                <td style="width:80px;"><?php echo date('Y-m-d ',$product['product_addtime']); ?></td>
-                <td><?php echo $gsname_list[$kk-1]['member_name']; ?></td>
-                <td><?php if($product['product_type']==1): ?>客服常用语<?php elseif($product['product_type']==2): ?>客户常用问题<?php elseif($product['product_type']==3): ?>客服快捷回复<?php elseif($product['product_type']==4): ?>自动回复<?php else: ?>新闻<?php endif; ?></td>
-                <td><?php if($product['product_isjump']==1): ?>跳转<?php else: ?>不跳转<?php endif; ?></td>
-                <td><?php if($product['product_status']==1): ?>使用中<?php else: ?>未使用<?php endif; ?></td>
-                <td>
-                    <a href="<?php echo url('product/edit',['product_id'=>$product['product_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('product/del',['product_id'=>$product['product_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; else: ?>
-            <td>无数据</td>
-            <?php endif; ?>
-        </tbody>
-        </table>
-        <?php echo $show_page; ?>
-    </div>
-</div>
-<script type="text/javascript" src="<?php echo ADMIN_SITE_ROOT; ?>/js/jquery.edit.js"></script>
-
-    </body>
-</html>
-
-
-

+ 0 - 196
runtime/temp/bbea8ea18fe527ed4004488b7734d2d3.php

@@ -1,196 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:85:"C:\phpStudy\PHPTutorial\WWW\weblive\public/../application/admin\view\index\index.html";i:1557460112;}*/ ?>
-<!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>

+ 0 - 131
runtime/temp/ceb9680110da1b5d4f7dfadf5959b299.php

@@ -1,131 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:85:"C:\phpStudy\PHPTutorial\WWW\weblive\public/../application/admin\view\jobcv\index.html";i:1557476231;s:75:"C:\phpStudy\PHPTutorial\WWW\weblive\application\admin\view\layout\home.html";i:1557460112;s:82:"C:\phpStudy\PHPTutorial\WWW\weblive\application\admin\view\layout\admin_items.html";i:1547518688;}*/ ?>
-<!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">
-    <?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">
-        <form action="" method="post" enctype="multipart/form-data" >
-            <div class="layui-form-item">
-                <div class="layui-inline">
-                    <select name="lyaddtime" lay-verify="" class="layui-select layui-unselect layui-form-select">
-                        <option value ="<?php echo $lyaddtime; ?>"><?php if($lyaddtime==1): ?>近三天<?php elseif($lyaddtime==2): ?>最近一周<?php elseif($lyaddtime==3): ?>最近一月<?php else: ?>所有<?php endif; ?></option>
-                        <option value ="0">所有</option>
-                        <option value ="1">近三天</option>
-                        <option value="2">最近一周</option>
-                        <option value="3">最近一月</option>
-                    </select>
-                </div>
-                <div class="layui-inline">
-                    <select name="record_uid" lay-verify="" class="layui-select layui-unselect layui-form-select">
-                        <option value="">请选择所属公司</option>
-                        <?php if(is_array($allgs) || $allgs instanceof \think\Collection || $allgs instanceof \think\Paginator): $i = 0; $__LIST__ = $allgs;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vv): $mod = ($i % 2 );++$i;?>
-                            <option value="<?php echo $vv['member_id']; ?>"><?php echo $vv['member_name']; ?></option>
-                        <?php endforeach; endif; else: echo "" ;endif; ?>
-                    </select>
-                </div>
-                <div class="layui-inline">
-                    <select name="record_readok" lay-verify="" class="layui-select layui-unselect layui-form-select">
-                        <option value="">请选择客服</option>
-                        <?php if(is_array($allkf) || $allkf instanceof \think\Collection || $allkf instanceof \think\Paginator): $i = 0; $__LIST__ = $allkf;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
-                            <option value="<?php echo $v['service_id']; ?>"><?php echo $v['service_name']; ?></option>
-                        <?php endforeach; endif; else: echo "" ;endif; ?>
-                    </select>
-                </div>
-                <div class="layui-inline">
-                    <button type="submit" class="layui-btn search-subBtn">搜索</button>
-                </div>
-            </div>
-        </form>
-        <table class="layui-table lay-even">
-            <colgroup>
-                <col width="150">
-                <col>
-            </colgroup>
-            <thead>
-                <tr>
-                    <th>所属公司</th>
-                    <th>客服人员</th>
-                    <th>对话用户</th>
-                    <th>时间</th>
-                    <th>内容</th>
-                </tr>
-            </thead>
-            <tbody>
-            <?php if($record_list): if(is_array($record_list) || $record_list instanceof \think\Collection || $record_list instanceof \think\Paginator): $k = 0; $__LIST__ = $record_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$record): $mod = ($k % 2 );++$k;?>
-            <tr>
-                <td><?php echo $gslist[$k-1]['member_name']; ?></td>
-                <td><?php echo $kflist[$k-1]['service_name']; ?></td>
-                <td><?php echo $record['vid']; ?></td>
-                <td><?php echo date('Y-m-d H:i:s',$record['create_time']); ?></td>
-                <td><?php echo !empty($conlist[$k-1]['content'])?$conlist[$k-1]['content']: '暂未结果'; ?></td>
-            </tr>
-            <?php endforeach; endif; else: echo "" ;endif; else: ?>
-            <td>无数据</td>
-            <?php endif; ?>
-        </tbody>
-        </table>
-        <?php echo $show_page; ?>
-    </div>
-</div>
-<script type="text/javascript" src="<?php echo ADMIN_SITE_ROOT; ?>/js/jquery.edit.js"></script>
-<script>
-    layui.use('form', function () {
-        var form = layui.form;
-    });
-    layui.use('laydate', function(){
-        var laydate = layui.laydate;
-        laydate.render({
-            elem: '#kstime'
-        });
-    });
-    layui.use('laydate', function(){
-        var laydate = layui.laydate;
-        laydate.render({
-            elem: '#endtime'
-        });
-    });
-</script>
-
-
-    </body>
-</html>
-
-
-

+ 0 - 134
runtime/temp/d0d2ec465284f16bc8e365656d9deedd.php

@@ -1,134 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:88:"C:\phpStudy\PHPTutorial\WWW\weblive\public/../application/admin\view\adminlog\index.html";i:1550641874;s:75:"C:\phpStudy\PHPTutorial\WWW\weblive\application\admin\view\layout\home.html";i:1557460112;s:82:"C:\phpStudy\PHPTutorial\WWW\weblive\application\admin\view\layout\admin_items.html";i:1547518688;}*/ ?>
-<!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">
-    <?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>&nbsp;</div>
-    <form method="get" class="layui-form layui-form-pane">
-        <input type="hidden" name="delago" id="delago" value="">
-        <div class="layui-form-item">
-            <div class="layui-input-inline" style="width: 250px;">
-                <label class="layui-form-label"><?php echo \think\Lang::get('admin_log_man'); ?></label>
-                <input name="admin_name" value="<?php echo \think\Request::instance()->get('admin_name'); ?>" type="text" class="layui-input field-name float_input" id="admin_name"
-                       style="display: inline-block;width: 50%;"/>
-            </div>
-            <div class="layui-input-inline" style="width: 440px;">
-                <label class="layui-form-label"><?php echo \think\Lang::get('admin_log_dotime'); ?></label>
-                <input value="<?php echo \think\Request::instance()->get('time_from'); ?>" id="time_from" name="time_from" type="text" class="layui-input field-name"
-                       style="display: inline-block;width: 30%;"/>
-                <label for="time_to">~</label>
-                <input value="<?php echo \think\Request::instance()->get('time_to'); ?>" id="time_to" name="time_to" type="text" class="layui-input field-name"
-                       style="display: inline-block;width: 30%;"/>
-            </div>
-            <div class="layui-input-inline">
-                <input type="submit" class="layui-btn layui-btn-normal" lay-submit value="<?php echo lang('ds_search'); ?>"/>
-                <input type="reset" class="layui-btn layui-btn-warm" value="<?php echo lang('ds_reset'); ?>"/>
-                <input type="button" class="layui-btn laydate-day-next" onclick="location.href = '<?php echo url('Adminlog/export_step1'); ?>'" value="<?php echo \think\Lang::get('ds_export'); ?>"/>
-            </div>
-        </div>
-    </form>
-    <div class="layui-tab-content page-tab-content">
-        <table class="layui-table lay-even">
-            <colgroup>
-                <col width="50">
-            </colgroup>
-            <thead>
-            <tr>
-                <th></th>
-                <th><?php echo \think\Lang::get('admin_log_man'); ?></th>
-                <th><?php echo \think\Lang::get('admin_log_do'); ?></th>
-                <th class="align-center"><?php echo \think\Lang::get('admin_log_dotime'); ?></th>
-                <th class="align-center">IP</th>
-            </tr>
-            </thead>
-            <tbody>
-            <?php if(!(empty($list) || (($list instanceof \think\Collection || $list instanceof \think\Paginator ) && $list->isEmpty()))): 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;?>
-            <tr>
-                <td class="w24">
-                    <input type="checkbox" class="checkitem" value="<?php echo $v['adminlog_id']; ?>">
-                </td>
-                <td><?php echo $v['admin_name']; ?></td>
-                <td><?php echo $v['content']; ?></td>
-                <td class="align-center"><?php echo date("Y-m-d H:i:s",$v['createtime']); ?></td>
-                <td class="align-center"><?php echo $v['ip']; ?></td>
-            </tr>
-            <?php endforeach; endif; else: echo "" ;endif; else: ?>
-            <tr class="no_data">
-                <td colspan="10"><?php echo \think\Lang::get('ds_no_record'); ?></td>
-            </tr>
-            <?php endif; ?>
-            </tbody>
-            <tfoot class="tfoot">
-            <?php if(!(empty($list) || (($list instanceof \think\Collection || $list instanceof \think\Paginator ) && $list->isEmpty()))): ?>
-            <tr class="tfoot">
-                <td><input type="checkbox" class="checkall" id="checkallBottom" name="chkVal"></td>
-                <td colspan="16"><label for="checkallBottom"><?php echo \think\Lang::get('ds_select_all'); ?></label>
-                    &nbsp;&nbsp;<a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_delete_batch()"><span><?php echo \think\Lang::get('ds_del'); ?></span></a>
-                </td>
-            </tr>
-            <?php endif; ?>
-            </tfoot>
-        </table>
-        <?php echo $page; ?>
-    </div>
-</div>
-<script>
-    layui.use('laydate', function () {
-        var laydate = layui.laydate;
-        //执行一个laydate实例
-        laydate.render({
-            elem: '#time_from' //指定元素
-        });
-        //执行一个laydate实例
-        laydate.render({
-            elem: '#time_to' //指定元素
-        });
-    });
-    function submit_delete(ids_str){
-        _uri = ADMINSITEURL+"/Adminlog/list_del.html?adminlog_id=" + ids_str;
-        dsLayerConfirm(_uri,'<?php echo \think\Lang::get('ds_confirm_cancel'); ?>');
-    }
-</script>
-
-    </body>
-</html>
-
-
-

+ 0 - 195
runtime/temp/eb6d4b22212730d37ba53672bd420bf1.php

@@ -1,195 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:79:"C:\phpStudy\PHPTutorial\WWW\weblive\public/../application/admin\view\db\db.html";i:1541734837;s:75:"C:\phpStudy\PHPTutorial\WWW\weblive\application\admin\view\layout\home.html";i:1557460112;s:82:"C:\phpStudy\PHPTutorial\WWW\weblive\application\admin\view\layout\admin_items.html";i:1547518688;}*/ ?>
-<!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">
-    <?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="explanation" id="explanation">
-            <div class="title" id="checkZoom">
-                <h4 title="提示相关设置操作时应注意的要点">操作提示</h4>
-                <span id="explanationZoom" title="收起提示" class="arrow"></span>
-            </div>
-            <ul>
-                <li>1.会员相关信息。</li>
-            </ul>
-        </div>
-        <div class="mDiv">
-            <div class="ftitle">
-                <div style="width: 100px;float: left;line-height: 56px;"><h3>数据库表列表</h3></div>
-                <div style="width: 300px;float: left;line-height: 56px;"><h5>(共<?php echo $tableNum; ?>张记录,共计<?php echo $total; ?>)</h5></div>
-            </div>
-            <a id="export" class="layui-btn layui-btn-primary " style="background-color: #009688;color: #fff;margin-top: 10px;">数据备份</a>
-        </div>
-        <form method="post" id="export-form" action="<?php echo url('Admin/Db/export'); ?>">
-            <div class="layui-tab-content page-tab-content">
-                <table class="layui-table lay-even">
-                    <colgroup>
-                        <col width="80">
-                        <col width="200">
-                        <col width="100">
-                        <col width="200">
-                        <col width="200">
-                        <col width="150">
-                        <col>
-                    </colgroup>
-                    <thead>
-                    <tr>
-                        <th><input type="checkbox" onclick="javascript:$('input[name*=tables]').prop('checked', this.checked);">全选</th>
-                        <th>数据库表</th>
-                        <th>记录条数</th>
-                        <th>占用空间</th>
-                        <th>编码</th>
-                        <th>冗余</th>
-                        <th>创建时间</th>
-                        <th>备注</th>
-                        <th>操作</th>
-                    </tr>
-                    </thead>
-                    <tbody>
-                    <?php if(!(empty($list) || (($list instanceof \think\Collection || $list instanceof \think\Paginator ) && $list->isEmpty()))): 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=>$db): $mod = ($i % 2 );++$i;?>
-                    <tr data-id="<?php echo $db['Name']; ?>">
-                        <td>
-                            <input type="checkbox" name="tables[]" value="<?php echo $db['Name']; ?>">
-                        </td>
-                        <td class="align-center">
-                            <?php echo $db['Name']; ?>
-                        </td>
-                        <td class="align-center">
-                            <?php echo $db['Rows']; ?>
-                        </td>
-                        <td class="align-center">
-                            <?php echo format_bytes($db['Data_length']); ?>
-                        </td>
-                        <td class="align-center">
-                            <?php echo $db['Collation']; ?>
-                        </td>
-
-                        <td><?php echo $db['Data_free']/1024; ?> kb
-                        </td>
-                        <td class="align-center">
-                            <?php echo $db['Create_time']; ?>
-                        </td>
-                        <td><?php echo $db['Comment']; ?>
-                        </td>
-                        <td class="align-center">
-                            <div style="text-align: center;">
-                                <a href="<?php echo url('Admin/Db/optimize',array('tablename'=>$db['Name'])); ?>" class="layui-btn layui-btn-xs">优化</a>
-                                <a href="<?php echo url('Admin/Db/repair',array('tablename'=>$db['Name'])); ?>" class="layui-btn layui-btn-xs layui-btn-danger">修复</a>
-                            </div>
-                        </td>
-                    </tr>
-                    <?php endforeach; endif; else: echo "" ;endif; else: ?>
-                    <tr class="no_data">
-                        <td colspan="11"><?php echo \think\Lang::get('ds_no_record'); ?></td>
-                    </tr>
-                    <?php endif; ?>
-                    </tbody>
-                </table>
-
-            </div>
-        </form>
-    </div>
-</div>
-<script>
-    (function ($) {
-        var $form = $("#export-form"), $export = $("#export"), tables;
-        $export.click(function () {
-            if ($("input[name^='tables']:checked").length == 0) {
-                alert('请选中要备份的数据表');
-                return false;
-            }
-            $export.addClass("disabled");
-            $export.html("正在发送备份请求...");
-            $.post(
-                $form.attr("action"),
-                $form.serialize(),
-                function (data) {
-                    if (data.status) {
-                        tables = data.tables;
-                        $export.html(data.info + "开始备份,请不要关闭本页面!");
-                        backup(data.tab);
-                        window.onbeforeunload = function () {
-                            return "正在备份数据库,请不要关闭!"
-                        }
-                    } else {
-                        alert(data.info);
-                        $export.removeClass("disabled");
-                        $export.html("立即备份");
-                    }
-                },
-                "json"
-            );
-            return false;
-        });
-
-        function backup(tab, status) {
-            status && showmsg(tab.id, "开始备份...(0%)");
-            $.get($form.attr("action"), tab, function (data) {
-                if (data.status) {
-                    showmsg(tab.id, data.info);
-                    if (!$.isPlainObject(data.tab)) {
-                        $export.removeClass("disabled");
-                        $export.html("备份完成,点击重新备份");
-                        window.onbeforeunload = function () {
-                            return null
-                        }
-                        return;
-                    }
-                    backup(data.tab, tab.id != data.tab.id);
-                } else {
-                    $export.removeClass("disabled");
-                    $export.html("立即备份");
-                }
-            }, "json");
-
-        }
-
-        function showmsg(id, msg) {
-            $("input[value=" + tables[id] + "]").closest("tr").find(".info").html(msg);
-//                            $("input[value=" + tables[id] + "]").closest("tr").hide(3000);
-        }
-    })(jQuery);
-</script>
-
-    </body>
-</html>
-
-
-