<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:87:"C:\phpStudy\PHPTutorial\WWW\aqm-web\public/../application/admin\view\message\index.html";i:1557480234;s:75:"C:\phpStudy\PHPTutorial\WWW\aqm-web\application\admin\view\layout\home.html";i:1557480234;s:82:"C:\phpStudy\PHPTutorial\WWW\aqm-web\application\admin\view\layout\admin_items.html";i:1557480234;}*/ ?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <title>安全猫官网</title>
        <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
        <!-- Bootstrap 3.3.7 -->
        <link rel="stylesheet" href="<?php echo PLUGINS_SITE_ROOT; ?>/layui/css/layui.css">
        <link rel="stylesheet" href="<?php echo ADMIN_SITE_ROOT; ?>/css/admin.css">
        <link rel="stylesheet" href="<?php echo ADMIN_SITE_ROOT; ?>/iconfont/iconfont.css">
        <script src="<?php echo PLUGINS_SITE_ROOT; ?>/jquery-2.1.4.min.js"></script>
        <script src="<?php echo ADMIN_SITE_ROOT; ?>/js/admin.js"></script>
        <script type="text/javascript" src="<?php echo PLUGINS_SITE_ROOT; ?>/layui/layui.js"></script>
        <script type="text/javascript">
            var BASESITEROOT = "<?php echo BASE_SITE_ROOT; ?>";
            var ADMINSITEROOT = "<?php echo ADMIN_SITE_ROOT; ?>";
            var BASESITEURL = "<?php echo BASE_SITE_URL; ?>";
            var HOMESITEURL = "<?php echo HOME_SITE_URL; ?>";
            var ADMINSITEURL = "<?php echo ADMIN_SITE_URL; ?>";
            layui.use('layer', function () {
                var layer = layui.layer;
            });
        </script>
    </head>
    <body>
        
<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>



