57d50fb68b8fb27a9fe455a5d8c210e4.php 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <?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;}*/ ?>
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <title>安全猫官网</title>
  8. <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  9. <!-- Bootstrap 3.3.7 -->
  10. <link rel="stylesheet" href="<?php echo PLUGINS_SITE_ROOT; ?>/layui/css/layui.css">
  11. <link rel="stylesheet" href="<?php echo ADMIN_SITE_ROOT; ?>/css/admin.css">
  12. <link rel="stylesheet" href="<?php echo ADMIN_SITE_ROOT; ?>/iconfont/iconfont.css">
  13. <script src="<?php echo PLUGINS_SITE_ROOT; ?>/jquery-2.1.4.min.js"></script>
  14. <script src="<?php echo ADMIN_SITE_ROOT; ?>/js/admin.js"></script>
  15. <script type="text/javascript" src="<?php echo PLUGINS_SITE_ROOT; ?>/layui/layui.js"></script>
  16. <script type="text/javascript">
  17. var BASESITEROOT = "<?php echo BASE_SITE_ROOT; ?>";
  18. var ADMINSITEROOT = "<?php echo ADMIN_SITE_ROOT; ?>";
  19. var BASESITEURL = "<?php echo BASE_SITE_URL; ?>";
  20. var HOMESITEURL = "<?php echo HOME_SITE_URL; ?>";
  21. var ADMINSITEURL = "<?php echo ADMIN_SITE_URL; ?>";
  22. layui.use('layer', function () {
  23. var layer = layui.layer;
  24. });
  25. </script>
  26. </head>
  27. <body>
  28. <div class="layui-tab layui-tab-card">
  29. <?php if($admin_item): ?>
  30. <ul class="layui-tab-title">
  31. <?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)): ?>
  32. <li <?php if($item['name'] == $curitem): ?>class="layui-this" <?php endif; ?>>
  33. <a href="<?php echo $item['url']; ?>"><?php echo $item['text']; ?></a>
  34. <?php endif; ?>
  35. </li>
  36. <?php endforeach; endif; else: echo "" ;endif; ?>
  37. <div class="tool-btns">
  38. <a href="javascript:location.reload();" title="刷新当前页面" class="iconfont icon-reload"></i></a>
  39. </div>
  40. </ul>
  41. <?php endif; ?>
  42. <div class="layui-tab-content page-tab-content">
  43. <form action="" method="post" enctype="multipart/form-data" >
  44. <div class="layui-form-item">
  45. <div class="layui-inline">
  46. <select name="lyaddtime" lay-verify="" class="layui-select layui-unselect layui-form-select">
  47. <option value ="<?php echo $lyaddtime; ?>"><?php if($lyaddtime==1): ?>近三天<?php elseif($lyaddtime==2): ?>最近一周<?php elseif($lyaddtime==3): ?>最近一月<?php else: ?>所有<?php endif; ?></option>
  48. <option value ="0">所有</option>
  49. <option value ="1">近三天</option>
  50. <option value="2">最近一周</option>
  51. <option value="3">最近一月</option>
  52. </select>
  53. </div>
  54. <div class="layui-inline">
  55. <select name="message_sid" lay-verify="" class="layui-select layui-unselect layui-form-select">
  56. <option value="">请选择所属公司</option>
  57. <?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;?>
  58. <option value="<?php echo $vv['member_id']; ?>"><?php echo $vv['member_name']; ?></option>
  59. <?php endforeach; endif; else: echo "" ;endif; ?>
  60. </select>
  61. </div>
  62. <div class="layui-inline">
  63. <select name="message_readok" lay-verify="" class="layui-select layui-unselect layui-form-select">
  64. <option value="">请选择是否处理</option>
  65. <option value="1">已处理</option>
  66. <option value="2">未处理</option>
  67. </select>
  68. </div>
  69. <div class="layui-inline">
  70. <button type="submit" class="layui-btn search-subBtn">搜索</button>
  71. </div>
  72. </div>
  73. </form>
  74. <table class="layui-table lay-even">
  75. <colgroup>
  76. <col width="150">
  77. <col>
  78. </colgroup>
  79. <thead>
  80. <tr>
  81. <th><?php echo \think\Lang::get('message_customer'); ?></th>
  82. <th><?php echo \think\Lang::get('message_way'); ?></th>
  83. <th>留言内容</th>
  84. <th><?php echo \think\Lang::get('message_readok'); ?></th>
  85. <th><?php echo \think\Lang::get('message_useinfo'); ?></th>
  86. <th>处理结果</th>
  87. <th>回复者</th>
  88. <th><?php echo \think\Lang::get('message_addtime'); ?></th>
  89. <th>处理时间</th>
  90. <th><?php echo \think\Lang::get('ds_operation'); ?></th>
  91. </tr>
  92. </thead>
  93. <tbody>
  94. <?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;?>
  95. <tr>
  96. <td><?php echo !empty($message['message_customer'])?$message['message_customer']: '匿名'; ?></td>
  97. <td><?php echo $message['message_way']; ?></td>
  98. <td><?php echo $message['message_content']; ?></td>
  99. <td><?php if($message['message_readok'] == 0): ?>否<?php else: ?>是<?php endif; ?></td>
  100. <td><?php echo !empty($message['message_useinfo'])?$message['message_useinfo']: '暂未回复'; ?></td>
  101. <td><?php echo !empty($message['message_result'])?$message['message_result']: '暂未结果'; ?></td>
  102. <td><?php echo $admin_list[$k-1]['member_name']; ?></td>
  103. <td><?php echo date('Y-m-d H:i:s',$message['message_addtime']); ?></td>
  104. <td><?php echo date('Y-m-d H:i:s',$message['message_replytime']); ?></td>
  105. <td>
  106. <?php if(array_intersect(explode(" ",str_replace("/", ".","message/reply")),$allpower)): ?>
  107. <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>
  108. <?php endif; if(array_intersect(explode(" ",str_replace("/", ".","message/del")),$allpower)): ?>
  109. <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>
  110. <?php endif; ?>
  111. </td>
  112. </tr>
  113. <?php endforeach; endif; else: echo "" ;endif; else: ?>
  114. <td>无数据</td>
  115. <?php endif; ?>
  116. </tbody>
  117. </table>
  118. <?php echo $show_page; ?>
  119. </div>
  120. </div>
  121. <script type="text/javascript" src="<?php echo ADMIN_SITE_ROOT; ?>/js/jquery.edit.js"></script>
  122. <script>
  123. layui.use('form', function () {
  124. var form = layui.form;
  125. });
  126. layui.use('laydate', function(){
  127. var laydate = layui.laydate;
  128. laydate.render({
  129. elem: '#kstime'
  130. });
  131. });
  132. layui.use('laydate', function(){
  133. var laydate = layui.laydate;
  134. laydate.render({
  135. elem: '#endtime'
  136. });
  137. });
  138. </script>
  139. </body>
  140. </html>