index.php 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <?php
  2. ?>
  3. <link href="/js/datatables/dataTables.bootstrap.css" rel="stylesheet" type="text/css" />
  4. <script src="/js/datatables/js/jquery.dataTables.js" type="text/javascript"></script>
  5. <script src="/js/datatables/dataTables.bootstrap.js" type="text/javascript"></script>
  6. <script src="/js/datatables/yadcf/jquery.dataTables.yadcf.js" type="text/javascript"></script>
  7. <script src="/js/datatables/tabletools/dataTables.tableTools.min.js" type="text/javascript"></script>
  8. <script src="/js/platform/public/public.js" type="text/javascript"></script>
  9. <div class="page-title">
  10. <div class="title-env">
  11. <h1 class="title">系统管理</h1>
  12. </div>
  13. <div class="breadcrumb-env">
  14. <ol class="breadcrumb bc-1">
  15. <li>
  16. <a href="/"><i class="fa-home"></i>Home</a>
  17. </li>
  18. <li>
  19. <a href="javascript:void(0)">系统管理</a>
  20. </li>
  21. <li class="active">
  22. <strong>缓存清除</strong>
  23. </li>
  24. </ol>
  25. </div>
  26. </div>
  27. <!-- Table exporting -->
  28. <div class="panel panel-default">
  29. <div class="panel-heading">
  30. <h3 class="panel-title">redis缓存键</h3>
  31. <div class="panel-options">
  32. <a href="#" data-toggle="panel">
  33. <span class="collapse-icon">&ndash;</span>
  34. <span class="expand-icon">+</span>
  35. </a>
  36. <!--<a href="#" data-toggle="remove">
  37. &times;
  38. </a>-->
  39. </div>
  40. </div>
  41. <div class="panel-body">
  42. <table id="example-1" class="table table-striped table-bordered" cellspacing="0" width="100%">
  43. <thead>
  44. <tr>
  45. <th data-sortable="false"></th>
  46. <th>ID</th>
  47. <th>键名</th>
  48. <!--<th>角色名称</th>
  49. <th>角色概述</th>
  50. <th>角色创建日期</th>
  51. <th>角色修改日期</th>-->
  52. <th data-sortable="false">操作</th>
  53. </tr>
  54. </thead>
  55. <?php
  56. foreach ($cacheKeys as $key => $val) {
  57. ?>
  58. <tr>
  59. <td class="hidden-xs"><input name="uId" value="<?=$val['id'] ?>" type="checkbox"></td>
  60. <td><?=$val['id'] ?></td>
  61. <td><?=$val['keyName'] ?></td>
  62. <td>
  63. <button target="dialog" data-url="/clean-cache/all-clean?keyName=<?=$val['keyName']?>" data-msg="确定清除" class="btn btn-secondary btn-sm btn-icon icon-left">全清除</button>
  64. <a href="/clean-cache/keys-list?keyName=<?=$val['keyName']?>" class="btn btn-secondary btn-sm btn-icon icon-left">选择清除</>
  65. </td>
  66. </tr>
  67. <?php } ?>
  68. <!--<tfoot>
  69. <tr>
  70. <th data-sortable="false"></th>
  71. <th>ID</th>
  72. <th>键名</th>
  73. <th data-sortable="false">操作</th>
  74. </tr>
  75. </tfoot>-->
  76. <tbody>
  77. </tbody>
  78. </table>
  79. </div>
  80. </div>
  81. <!-- footer -->
  82. <?php
  83. use backend\widgets\FooterWidget;
  84. ?>
  85. <?= FooterWidget::widget()?>
  86. <!-- footer -->
  87. <script>
  88. $(document).ready(function() {
  89. $('#example-1').DataTable({
  90. "oLanguage": {
  91. //"sProcessing": "<img src='/images/datatable_loading.gif'> 努力加载数据中.",
  92. "sLengthMenu": "每页显示 _MENU_ 条记录",
  93. "sZeroRecords": "抱歉, 没有找到",
  94. "sInfo": "从 _START_ 到 _END_ /共 _TOTAL_ 条数据",
  95. "sInfoEmpty": "没有数据",
  96. "sInfoFiltered": "(从 _MAX_ 条数据中检索)",
  97. "sZeroRecords": "没有检索到数据",
  98. "sSearch": "模糊查询: ",
  99. "oPaginate": {
  100. "sFirst": "首页",
  101. "sPrevious": "前一页",
  102. "sNext": "后一页",
  103. "sLast": "尾页"
  104. }
  105. },
  106. });
  107. });
  108. //初始化-操作按钮
  109. initUI("<?=Yii::$app->request->csrfToken ?>", true);
  110. </script>