keys-list.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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 ($allKeys as $key => $keyName) {
  57. ?>
  58. <tr>
  59. <td class="hidden-xs"><input name="uId" value="<?=$key+1 ?>" type="checkbox"></td>
  60. <td><?=$key+1 ?></td>
  61. <td><?=$keyName ?></td>
  62. <td>
  63. <button target="dialog" data-url="/clean-cache/single-clean?key=<?=$keyName?>" data-msg="确定清除" class="btn btn-secondary btn-sm btn-icon icon-left">清除</button>
  64. </td>
  65. </tr>
  66. <?php } ?>
  67. <tbody>
  68. </tbody>
  69. </table>
  70. <div style="text-align:center;">
  71. <div class="form-group" style="margin:0 auto;">
  72. <a href="javascript:void(0)" onclick="history.go(-1)" class="btn btn-secondary btn-single">返回</a>
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. <!-- footer -->
  78. <?php
  79. use backend\widgets\FooterWidget;
  80. ?>
  81. <?= FooterWidget::widget()?>
  82. <!-- footer -->
  83. <script>
  84. $(document).ready(function() {
  85. $('#example-1').DataTable({
  86. "oLanguage": {
  87. //"sProcessing": "<img src='/images/datatable_loading.gif'> 努力加载数据中.",
  88. "sLengthMenu": "每页显示 _MENU_ 条记录",
  89. "sZeroRecords": "抱歉, 没有找到",
  90. "sInfo": "从 _START_ 到 _END_ /共 _TOTAL_ 条数据",
  91. "sInfoEmpty": "没有数据",
  92. "sInfoFiltered": "(从 _MAX_ 条数据中检索)",
  93. "sZeroRecords": "没有检索到数据",
  94. "sSearch": "模糊查询: ",
  95. "oPaginate": {
  96. "sFirst": "首页",
  97. "sPrevious": "前一页",
  98. "sNext": "后一页",
  99. "sLast": "尾页"
  100. }
  101. },
  102. });
  103. } );
  104. //初始化-操作按钮
  105. initUI("<?=Yii::$app->request->csrfToken ?>", true);
  106. </script>