国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

117 lines
4.5KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="<?php echo $cfg_soft_lang; ?>">
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  6. <title>采集内容管理</title>
  7. <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  8. <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  9. <link rel="stylesheet" href="../static/web/css/admin.css">
  10. <script>
  11. //获得选中文件的文件名
  12. function getCheckboxItem() {
  13. var allSel = "";
  14. if (document.form1.logs.value) return document.form1.logs.value;
  15. for (i = 0; i < document.form1.logs.length; i++) {
  16. if (document.form1.logs[i].checked) {
  17. if (allSel == "")
  18. allSel = document.form1.logs[i].value;
  19. else
  20. allSel = allSel + "`" + document.form1.logs[i].value;
  21. }
  22. }
  23. return allSel;
  24. }
  25. function ReSel() {
  26. for (i = 0; i < document.form1.logs.length; i++) {
  27. if (document.form1.logs[i].checked) document.form1.logs[i].checked = false;
  28. else document.form1.logs[i].checked = true;
  29. }
  30. }
  31. function DelSel() {
  32. var nid = getCheckboxItem();
  33. if (nid == "") {
  34. alert("请选择项目");
  35. return;
  36. }
  37. location.href = "log_edit.php?dopost=del&ids=" + nid;
  38. }
  39. function ClearLog() {
  40. location.href = "log_edit.php?dopost=clear";
  41. }
  42. </script>
  43. </head>
  44. <body>
  45. <table width="98%" cellpadding="2" cellspacing="1" align="center" class="table maintable mt-3 mb-3">
  46. <tr>
  47. <td bgcolor="#f8f8f8" colspan="7">
  48. <table width="98%" cellpadding="0" cellspacing="0" class="table table-borderless">
  49. <tr>
  50. <td width="30%">管理系统日志</td>
  51. <td width="70%" align="right"></td>
  52. </tr>
  53. </table>
  54. </td>
  55. </tr>
  56. <tr align="center">
  57. <td colspan="7">
  58. <table width="100%" cellspacing="0" cellpadding="0" class="table-borderless">
  59. <form name="formsearch">
  60. <tr>
  61. <td width="180" align="center">
  62. <select name="adminid" id="adminid" style="width:160px">
  63. <option value="0" selected>全部</option>
  64. <?php echo $adminlist?>
  65. </select>
  66. </td>
  67. <td width="170"><input type="text" name="cip" id="cip" placeholder="请输入IP地址" style="width:160px"></td>
  68. <td width="170">
  69. <select name="dtime" id="dtime" style="width:160px">
  70. <option value="0" selected>全部</option>
  71. <option value="7">一周内</option>
  72. <option value="15">15天内</option>
  73. <option value="30">30天以内</option>
  74. <option value="60">60天以内</option>
  75. </select>
  76. </td>
  77. <td><button type="submit" class="btn btn-success btn-sm">搜索</button></td>
  78. </tr>
  79. </form>
  80. </table>
  81. </td>
  82. </tr>
  83. <tr bgcolor="#FBFCE2" align="center">
  84. <td width="8%">选择</td>
  85. <td width="11%">管理员</td>
  86. <td width="15%">访问文件</td>
  87. <td width="8%">方式</td>
  88. <td width="14%">访问IP</td>
  89. <td width="16%">时间</td>
  90. <td width="28%">Query参数</td>
  91. </tr>
  92. <form name="form1">
  93. {dede:datalist empty='<tr><td colspan="7"><center>暂无内容</center></td></tr>'}
  94. <tr align="center" onmousemove="javascript:this.bgColor='#FBFCE2';" onmouseout="javascript:this.bgColor='#ffffff';">
  95. <td><input type="checkbox" name="logs" id="logs" value="{dede:field.lid/}"></td>
  96. <td>{dede:field.userid/}</td>
  97. <td><input type="text" value="{dede:field.filename/}" name="t0" style="width:100px"></td>
  98. <td>{dede:field.method/}</td>
  99. <td>{dede:field.cip/}</td>
  100. <td>{dede:field.dtime function="MyDate('y/m/d H:i:s',@me)"/}</td>
  101. <td><input type="text" value="{dede:field.query/}" name="t1" style="width:280px"></td>
  102. </tr>
  103. {/dede:datalist}
  104. </form>
  105. <tr>
  106. <td colspan="7">
  107. <button type="button" onClick="ReSel();" class="btn btn-success btn-sm">反选</button>
  108. <button type="button" onClick="DelSel();" class="btn btn-danger btn-sm">删除</button>
  109. <button type="button" onClick="ClearLog();" class="btn btn-success btn-sm">清空所有日志</button>
  110. </td>
  111. </tr>
  112. <tr>
  113. <td height="36" bgcolor="#f8f8f8" colspan="7" align="center">{dede:pagelist listsize='6'/}</td>
  114. </tr>
  115. </table>
  116. </body>
  117. </html>