95137f9c1a893037a26ed3555d0f1b9f.php 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:88:"C:\phpStudy\PHPTutorial\WWW\aqm-web\public/../application/admin\view\adminlog\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;}*/ ?>
  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>&nbsp;</div>
  43. <form method="get" class="layui-form layui-form-pane">
  44. <input type="hidden" name="delago" id="delago" value="">
  45. <div class="layui-form-item">
  46. <div class="layui-input-inline" style="width: 250px;">
  47. <label class="layui-form-label"><?php echo \think\Lang::get('admin_log_man'); ?></label>
  48. <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"
  49. style="display: inline-block;width: 50%;"/>
  50. </div>
  51. <div class="layui-input-inline" style="width: 440px;">
  52. <label class="layui-form-label"><?php echo \think\Lang::get('admin_log_dotime'); ?></label>
  53. <input value="<?php echo \think\Request::instance()->get('time_from'); ?>" id="time_from" name="time_from" type="text" class="layui-input field-name"
  54. style="display: inline-block;width: 30%;"/>
  55. <label for="time_to">~</label>
  56. <input value="<?php echo \think\Request::instance()->get('time_to'); ?>" id="time_to" name="time_to" type="text" class="layui-input field-name"
  57. style="display: inline-block;width: 30%;"/>
  58. </div>
  59. <div class="layui-input-inline">
  60. <input type="submit" class="layui-btn layui-btn-normal" lay-submit value="<?php echo lang('ds_search'); ?>"/>
  61. <input type="reset" class="layui-btn layui-btn-warm" value="<?php echo lang('ds_reset'); ?>"/>
  62. <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'); ?>"/>
  63. </div>
  64. </div>
  65. </form>
  66. <div class="layui-tab-content page-tab-content">
  67. <table class="layui-table lay-even">
  68. <colgroup>
  69. <col width="50">
  70. </colgroup>
  71. <thead>
  72. <tr>
  73. <th></th>
  74. <th><?php echo \think\Lang::get('admin_log_man'); ?></th>
  75. <th><?php echo \think\Lang::get('admin_log_do'); ?></th>
  76. <th class="align-center"><?php echo \think\Lang::get('admin_log_dotime'); ?></th>
  77. <th class="align-center">IP</th>
  78. </tr>
  79. </thead>
  80. <tbody>
  81. <?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;?>
  82. <tr>
  83. <td class="w24">
  84. <input type="checkbox" class="checkitem" value="<?php echo $v['adminlog_id']; ?>">
  85. </td>
  86. <td><?php echo $v['admin_name']; ?></td>
  87. <td><?php echo $v['content']; ?></td>
  88. <td class="align-center"><?php echo date("Y-m-d H:i:s",$v['createtime']); ?></td>
  89. <td class="align-center"><?php echo $v['ip']; ?></td>
  90. </tr>
  91. <?php endforeach; endif; else: echo "" ;endif; else: ?>
  92. <tr class="no_data">
  93. <td colspan="10"><?php echo \think\Lang::get('ds_no_record'); ?></td>
  94. </tr>
  95. <?php endif; ?>
  96. </tbody>
  97. <tfoot class="tfoot">
  98. <?php if(!(empty($list) || (($list instanceof \think\Collection || $list instanceof \think\Paginator ) && $list->isEmpty()))): ?>
  99. <tr class="tfoot">
  100. <td><input type="checkbox" class="checkall" id="checkallBottom" name="chkVal"></td>
  101. <td colspan="16"><label for="checkallBottom"><?php echo \think\Lang::get('ds_select_all'); ?></label>
  102. &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>
  103. </td>
  104. </tr>
  105. <?php endif; ?>
  106. </tfoot>
  107. </table>
  108. <?php echo $page; ?>
  109. </div>
  110. </div>
  111. <script>
  112. layui.use('laydate', function () {
  113. var laydate = layui.laydate;
  114. //执行一个laydate实例
  115. laydate.render({
  116. elem: '#time_from' //指定元素
  117. });
  118. //执行一个laydate实例
  119. laydate.render({
  120. elem: '#time_to' //指定元素
  121. });
  122. });
  123. function submit_delete(ids_str){
  124. _uri = ADMINSITEURL+"/Adminlog/list_del.html?adminlog_id=" + ids_str;
  125. dsLayerConfirm(_uri,'<?php echo \think\Lang::get('ds_confirm_cancel'); ?>');
  126. }
  127. </script>
  128. </body>
  129. </html>