Jimy 6 years ago
parent
commit
64114c5c70

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

@@ -203,14 +203,6 @@ class AdminControl extends Controller
                         'text' => lang('ds_message'),
                         'url' => url('Message/index'),
                     ),
-                    // 'Service' => array(
-                    //     'text' => lang('ds_service'),
-                    //     'url' => url('Service/index'),
-                    // ),
-                    'records' => array(
-                        'text' => lang('ds_records'),
-                        'url' => url('Jobcv/index'),
-                    ),
                 ),
             ),
             

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

@@ -237,10 +237,6 @@ class Admingroup extends AdminControl
                 array('name' => lang('ds_kfchat'), 'action' => null, 'controller' => 'Service'),
                 array('name' => lang('ds_kfchat'), 'action' => "index", 'controller' => 'Service'),
             )),//对话平台
-            array('name' => lang('ds_records'), 'child' => array(
-                array('name' => lang('ds_records'), 'action' => null, 'controller' => 'Jobcv'),
-                array('name' => lang('ds_glrecords'), 'action' => "index", 'controller' => 'Jobcv'),
-            )),//历史记录
         );
 
         return $_limit;

+ 0 - 177
application/admin/controller/Jobcv.php

@@ -1,177 +0,0 @@
-<?php
-
-namespace app\admin\controller;
-
-use think\Lang;
-use think\Validate;
-
-class Jobcv extends AdminControl
-{
-    public function _initialize()
-    {
-        parent::_initialize();
-        Lang::load(APP_PATH . 'admin/lang/' . config('default_lang') . '/jobcv.lang.php');
-    }
-
-    /**
-     * 聊天历史管理
-     */
-    public function index()
-    {
-        $model_chatlog = Model('Chatlog');
-        $erwh = array();
-        $allkf = Model('service')->allkef($erwh = array(), $field = 'service_id,service_name');//所有客服
-        if(request()->isPost()){
-            $lyaddtime = $_POST['lyaddtime'];
-        }else{
-            $lyaddtime = 0;
-        }
-
-        if($lyaddtime==1){
-            $kstime = strtotime(date("Y-m-d 23:59:59",strtotime("-3 day")));
-        }elseif($lyaddtime==2){
-            $kstime = strtotime(date("Y-m-d 23:59:59",strtotime("-1 week")));
-        }elseif($lyaddtime==3){
-            $kstime = strtotime(date("Y-m-d",strtotime("-1 month")));
-        }else{
-            $kstime = "1546272000";
-        }
-        $endtime = TIMESTAMP;
-
-        if (input('post.kstime')) {
-            $kstime = strtotime(input('post.kstime'));
-        }
-        if (input('post.endtime')) {
-            $endtime = strtotime(input('post.endtime'));
-        }
-
-        $readok = input('post.record_readok');
-        $uid = input('post.record_uid');
-        $condition = array();
-        $condition['create_time'] = array('between', array($kstime, $endtime));
-        if($readok){
-            $condition['sid'] = $readok;
-        }
-        if($uid){
-            $condition['uid'] = $uid;
-        }
-        $record_list = $model_chatlog->getChatlogList($condition, '*', 10);
-
-        if($record_list){
-            for ($i=0; $i < count($record_list); $i++) { 
-                $where[' log_id'] = $record_list[$i]["id"];
-                $list[] = db('chat_message')->field('id,create_time,from')->where($where)->select();
-            }
-            if(!empty($list)){
-                for ($ii=0; $ii < count($list); $ii++) { 
-                    for ($ie=0; $ie < count($list[$ii]); $ie++) { 
-                        $who['id'] = $list[$ii][$ie]["id"];
-                        $cjtime[] = date("Y-m-d H:i:s",$list[$ii][$ie]["create_time"]);
-                        $conlist[] = db('chat_message_content')->where($who)->find();
-                    }
-                }
-            }
-            $this->assign('conlist',$conlist);
-            //所属公司
-            for ($i=0; $i < count($record_list); $i++) { 
-                $ere['member_id'] = $record_list[$i]["uid"];
-                $gslist[] = db('member')->field('member_name')->where($ere)->find();
-            }
-            $this->assign('gslist',$gslist);
-            //所属客服
-            for ($i=0; $i < count($record_list); $i++) { 
-                $sere['service_id'] = $record_list[$i]["sid"];
-                $kflist[] = db('service')->field('service_name')->where($sere)->find();
-            }
-            $this->assign('kflist',$kflist);
-        }
-
-        $allgs = Model('member')->allcompany('');
-        $allpower = $this->qxhans();
-        $this->assign('allgs',$allgs);
-        $this->assign('allpower',$allpower);
-        $this->assign('record_list', $record_list);
-        $this->assign('lyaddtime',$lyaddtime);
-        $this->assign('endtime',$endtime);
-        $this->assign('kstime',$kstime);
-        $this->assign('show_page', $model_chatlog->page_info->render());
-        $this->assign('allkf',$allkf);
-        $this->setAdminCurItem('index');
-        return $this->fetch();
-    }
-
-    //客服下的访问客户
-    public function kfvisitor(){
-        $pid = $_GET['uid'];//客服id
-        $kflist = model('Chatlog');
-        $visitorlist = $kflist->allvisitor($pid);
-        echo json_encode($visitorlist);
-    }
-
-    //客服客户聊天内容
-    public function chatcontent(){
-        $sid = $_GET['forWhat'];//客服id
-        $kname = $_GET['kname'];//客户名
-        $type = $_GET['type'];
-        $choicetime = $_GET['choicetime'];
-        if($type=="nearWeek"){
-            $begin = strtotime(date('Y-m-d', strtotime('-7 days')));
-        }else{
-            $begin = strtotime("-0 year -1 month -0 day");
-        }
-        $end = TIMESTAMP;
-        if(!empty($choicetime)){
-            $gap = explode(' - ', $choicetime);
-            $begin = strtotime($gap[0]);
-            $end = strtotime($gap[1]);
-        }
-
-        $ltlist = model('Chatlog');
-        $ltjt = $ltlist->chatdata($begin,$end,$kname,$sid);
-        if($ltjt){
-            for ($i=0; $i < count($ltjt); $i++) { 
-                $where[' log_id'] = $ltjt[$i]["id"];
-                $list[] = db('chat_message')->field('id,create_time,from')->where($where)->select();
-            }
-            if(!empty($list)){
-                for ($i=0; $i < count($list); $i++) { 
-                    for ($ie=0; $ie < count($list[$i]); $ie++) { 
-                        $who['id'] = $list[$i][$ie]["id"];
-                        $cjtime[] = date("Y-m-d H:i:s",$list[$i][$ie]["create_time"]);
-                        $conlist[] = db('chat_message_content')->where($who)->find();
-                    }
-                }
-            }
-        }
-        
-        if(!empty($cjtime) && !empty($conlist) && !empty($kname)){
-            $array = array(
-                'list'=>$list,
-                'cjtime'=>$cjtime,
-                'conlist'=>$conlist, 
-                'kname'=>$kname,
-            );
-        }else{
-            $array = array(
-                'list'=>'',
-                'cjtime'=>'',
-                'conlist'=>'',
-                'kname'=>'',
-            );
-        }
-        echo json_encode($array);
-    }
-
-    protected function getAdminItemList()
-    {
-        $menu_array = array(
-            array(
-                'name' => 'index', 'text' => lang('ds_manage'), 'url' => url('jobcv/index')
-            )
-        );
-        return $menu_array;
-    }
-
-}
-
-?>

+ 1 - 1
application/admin/controller/Member.php

@@ -70,7 +70,7 @@ class Member extends AdminControl
             $result = $model_member->addMember($data);
 
             if ($result) {
-                $cjglz =array('wlcome','wlcome.index','config','config.index','config.add','config.edit','config.del','admin','admin.index','admin.add','admin.edit','admin.del','admingroup','admingroup.index','admingroup.add','admingroup.edit','admingroup.del','product','product.index','product.add','product.edit','product.del','news','news.index','news.add','news.edit','news.del','message','message.index','message.reply','message.del','service','service.index','jobcv','jobcv.index','Visitkf','Visitkf.index','glservice','glservice.index');
+                $cjglz =array('wlcome','wlcome.index','config','config.index','config.add','config.edit','config.del','admin','admin.index','admin.add','admin.edit','admin.del','admingroup','admingroup.index','admingroup.add','admingroup.edit','admingroup.del','product','product.index','product.add','product.edit','product.del','news','news.index','news.add','news.edit','news.del','message','message.index','message.reply','message.del','service','service.index','Visitkf','Visitkf.index','glservice','glservice.index');
                 $limit_str = '';
                 if (is_array($cjglz)) {
                     $limit_str = implode('|', $cjglz);

+ 0 - 90
application/admin/view/jobcv/index.html

@@ -1,90 +0,0 @@
-{extend name="layout:home" /}
-{block name="container"}
-<div class="layui-tab layui-tab-card">
-    {include file="layout/admin_items" /}
-    <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 ="{$lyaddtime}">{if $lyaddtime==1}近三天{elseif $lyaddtime==2/}最近一周{elseif $lyaddtime==3/}最近一月{else}所有{/if}</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>
-                        {volist name="allgs" id="vv"}
-                            <option value="{$vv.member_id}">{$vv.member_name}</option>
-                        {/volist}
-                    </select>
-                </div>
-                <div class="layui-inline">
-                    <select name="record_readok" lay-verify="" class="layui-select layui-unselect layui-form-select">
-                        <option value="">请选择客服</option>
-                        {volist name="allkf" id="v"}
-                            <option value="{$v.service_id}">{$v.service_name}</option>
-                        {/volist}
-                    </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>
-            {if $record_list}
-            {volist name="record_list" id="record" key="k"}
-            <tr>
-                <td>{$gslist[$k-1]['member_name']}</td>
-                <td>{$kflist[$k-1]['service_name']}</td>
-                <td>{$record.vid}</td>
-                <td>{$record.create_time|date='Y-m-d H:i:s',###}</td>
-                <td>{$conlist[$k-1]['content'] ?: '暂未结果'}</td>
-            </tr>
-            {/volist}
-            {else}
-            <td>无数据</td>
-            {/if}
-        </tbody>
-        </table>
-        {$show_page}
-    </div>
-</div>
-<script type="text/javascript" src="{$Think.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>
-
-{/block}

+ 2 - 2
application/database.php

@@ -4,13 +4,13 @@ return [
 // 数据库类型
 'type'           => 'mysql',
 // 服务器地址
-'hostname'       => '127.0.0.1',
+'hostname'       => '192.168.2.186',
 // 数据库名
 'database'       => 'ds_cms',
 // 用户名
 'username'       => 'root',
 // 密码
-'password'       => 'root',
+'password'       => '',
 // 端口
 'hostport'       => '3306',
 // 连接dsn

+ 1 - 1
runtime/temp/094c7f39232d2b35db2512f32a91c017.php → runtime/temp/1457f248b94471e8202006f32a4153de.php

@@ -1,4 +1,4 @@
-<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:77:"D:\PHPTutorial\WWW\weblive\public/../application/admin\view\wlcome\index.html";i:1551234464;s:66:"D:\PHPTutorial\WWW\weblive\application\admin\view\layout\home.html";i:1550477639;}*/ ?>
+<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:75:"D:\PHPTutorial\WWW\newyq\public/../application/admin\view\wlcome\index.html";i:1551234464;s:64:"D:\PHPTutorial\WWW\newyq\application\admin\view\layout\home.html";i:1550477639;}*/ ?>
 <!DOCTYPE html>
 <html>
     <head>

+ 195 - 0
runtime/temp/172079bae4c7741a2bea903b7161944a.php

@@ -0,0 +1,195 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:68:"D:\PHPTutorial\WWW\newyq\public/../application/admin\view\db\db.html";i:1541734837;s:64:"D:\PHPTutorial\WWW\newyq\application\admin\view\layout\home.html";i:1550477639;s:71:"D:\PHPTutorial\WWW\newyq\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>
+
+
+

+ 121 - 0
runtime/temp/51b542b89f3bf17f6274619f57c5d188.php

@@ -0,0 +1,121 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:75:"D:\PHPTutorial\WWW\newyq\public/../application/admin\view\config\index.html";i:1550732461;s:64:"D:\PHPTutorial\WWW\newyq\application\admin\view\layout\home.html";i:1550477639;s:71:"D:\PHPTutorial\WWW\newyq\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>
+
+
+

+ 1 - 1
runtime/temp/6716c683b9d01be7c73d2278b7ecde94.php → runtime/temp/5699a31462d908f7c5c90550f7fd5e42.php

@@ -1,4 +1,4 @@
-<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:76:"D:\PHPTutorial\WWW\weblive\public/../application/admin\view\index\index.html";i:1551233614;}*/ ?>
+<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:74:"D:\PHPTutorial\WWW\newyq\public/../application/admin\view\index\index.html";i:1551233614;}*/ ?>
 <!DOCTYPE html>
 <html xmlns="http://www.w3.org/1999/html">
 <head>

+ 134 - 0
runtime/temp/9c29860d4504f533514928eea9681762.php

@@ -0,0 +1,134 @@
+<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:77:"D:\PHPTutorial\WWW\newyq\public/../application/admin\view\adminlog\index.html";i:1550641874;s:64:"D:\PHPTutorial\WWW\newyq\application\admin\view\layout\home.html";i:1550477639;s:71:"D:\PHPTutorial\WWW\newyq\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>
+
+
+

+ 8 - 8
runtime/temp/b8be67af43506d66e54ad5d3c5a68af6.php → runtime/temp/a63c18b0074f52a6f60e0932f38fad55.php

@@ -1,4 +1,4 @@
-<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:75:"D:\PHPTutorial\WWW\weblive\public/../application/home\view\login\index.html";i:1551088391;}*/ ?>
+<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:74:"D:\PHPTutorial\WWW\newyq\public/../application/admin\view\login\index.html";i:1551088391;}*/ ?>
 <!DOCTYPE html>
 <html>
 <head>
@@ -8,31 +8,31 @@
     <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 HOME_SITE_ROOT; ?>/css/admin.css">
+    <link rel="stylesheet" href="<?php echo ADMIN_SITE_ROOT; ?>/css/admin.css">
     <script src="<?php echo PLUGINS_SITE_ROOT; ?>/jquery-2.1.4.min.js"></script>
-    <script src="<?php echo HOME_SITE_ROOT; ?>/js/admin.js"></script>
+    <script src="<?php echo ADMIN_SITE_ROOT; ?>/js/admin.js"></script>
     <link rel="stylesheet" href="<?php echo PLUGINS_SITE_ROOT; ?>/font-awesome/css/font-awesome.min.css">
     <script type="text/javascript">
         var BASESITEROOT = "<?php echo BASE_SITE_ROOT; ?>";
-        var ADMINSITEROOT = "<?php echo HOME_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="background-image:url(<?php echo HOME_SITE_ROOT; ?>/wallpage/bg_<?php echo rand(0,8)?>.jpg);background-size: cover;">
+<body style="background-image:url(<?php echo ADMIN_SITE_ROOT; ?>/wallpage/bg_<?php echo rand(0,8)?>.jpg);background-size: cover;">
 <div class="login">
     <div class="login_body">
         <div class="login_header">
-            <img style="margin: 0px auto; display: block; margin-bottom: 10px;" src="<?php echo HOME_SITE_ROOT; ?>/images/logo.png"/>
+            <img style="margin: 0px auto; display: block; margin-bottom: 10px;" src="<?php echo ADMIN_SITE_ROOT; ?>/images/logo.png"/>
         </div>
         <div class="login_content">
             <form method="post">
                 <div class="form-group">
-                    <input type="text" name="service_name" placeholder="<?php echo lang('login_admin_name'); ?>" required class="text">
+                    <input type="text" name="admin_name" placeholder="<?php echo lang('login_admin_name'); ?>" required class="text">
                 </div>
                 <div class="form-group">
-                    <input type="password" name="service_password" placeholder="<?php echo lang('login_admin_password'); ?>" required class="text">
+                    <input type="password" name="admin_password" placeholder="<?php echo lang('login_admin_password'); ?>" required class="text">
                 </div>
                 <div class="form-group">
                     <input type="text" name="captcha" placeholder="<?php echo lang('login_captcha'); ?>" required class="text" style="width:60%;float:left;">

+ 0 - 132
runtime/temp/ec844be25bee4438304a6ffd62e26c4e.php

@@ -1,132 +0,0 @@
-<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:77:"D:\PHPTutorial\WWW\weblive\public/../application/admin\view\member\index.html";i:1550732461;s:66:"D:\PHPTutorial\WWW\weblive\application\admin\view\layout\home.html";i:1550477639;s:73:"D:\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>
-
-
-