ec844be25bee4438304a6ffd62e26c4e.php 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <?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;}*/ ?>
  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. <!-- 搜索框开始 -->
  44. <div class="search-form">
  45. <form class="" method="post">
  46. <div class="layui-form-item">
  47. <div class="layui-inline">
  48. <input type="text" name="title" placeholder="输入名称或联系人或电话" autocomplete="off" class="layui-input">
  49. </div>
  50. <div class="layui-inline">
  51. <input type="text" class="layui-input" name="timeRang" id="timeRang" placeholder="选择时间段" style="width: 170px;">
  52. </div>
  53. <div class="layui-inline">
  54. <button type="submit" class="layui-btn search-subBtn">搜索</button>
  55. </div>
  56. </div>
  57. </form>
  58. </div>
  59. <!-- 搜索框结束 -->
  60. <table class="layui-table lay-even">
  61. <colgroup>
  62. <col width="150">
  63. <col width="200">
  64. <col>
  65. </colgroup>
  66. <thead>
  67. <tr>
  68. <th><?php echo \think\Lang::get('member_name'); ?></th>
  69. <th><?php echo \think\Lang::get('member_url'); ?></th>
  70. <th><?php echo \think\Lang::get('member_mobile'); ?></th>
  71. <th>邮箱</th>
  72. <th><?php echo \think\Lang::get('member_contacts'); ?></th>
  73. <th><?php echo \think\Lang::get('member_add_time'); ?></th>
  74. <th><?php echo \think\Lang::get('member_usetime'); ?></th>
  75. <th><?php echo \think\Lang::get('member_validitytime'); ?></th>
  76. <th><?php echo \think\Lang::get('member_status'); ?></th>
  77. <th>操作</th>
  78. </tr>
  79. </thead>
  80. <tbody>
  81. <?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;?>
  82. <tr>
  83. <td><?php echo $member['member_name']; ?></td>
  84. <td><?php echo $member['member_url']; ?></td>
  85. <td><?php echo $member['member_mobile']; ?></td>
  86. <td><?php echo $member['member_mailbox']; ?></td>
  87. <td><?php echo $member['member_contacts']; ?></td>
  88. <td><?php echo date('Y-m-d H:i:s',$member['member_add_time']); ?></td>
  89. <td><?php echo $member['member_usetime']; ?></td>
  90. <td><?php echo date('Y-m-d H:i:s',$member['member_validitytime']); ?></td>
  91. <td><?php if($member['member_status']==1): ?>通过<?php else: ?>拒绝<?php endif; ?></td>
  92. <td>
  93. <?php if(array_intersect(explode(" ",str_replace("/", ".","member/edit")),$allpower)): ?>
  94. <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>
  95. <?php endif; if(array_intersect(explode(" ",str_replace("/", ".","member/del")),$allpower)): ?>
  96. <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>
  97. <?php endif; ?>
  98. </td>
  99. </tr>
  100. <?php endforeach; endif; else: echo "" ;endif; else: ?>
  101. <td>无数据</td>
  102. <?php endif; ?>
  103. </tbody>
  104. </table>
  105. <?php echo $show_page; ?>
  106. </div>
  107. </div>
  108. <script type="text/javascript">
  109. layui.use('laydate', function(){
  110. var laydate = layui.laydate;
  111. //执行一个laydate实例
  112. laydate.render({
  113. elem: '#creatTime' //指定元素
  114. });
  115. laydate.render({
  116. elem:'#timeRang',
  117. range:true,
  118. format: 'yyyy/MM/dd',
  119. done: function(value, date){
  120. /* 时间选择完成后的回调 */
  121. }
  122. })
  123. });
  124. </script>
  125. </body>
  126. </html>