国内流行的内容管理系统(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.

94 lines
2.9KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
  6. <title>流量统计列表</title>
  7. <link rel="stylesheet" href="/static/web/css/font-awesome.min.css">
  8. <link rel="stylesheet" href="/static/web/css/bootstrap.min.css">
  9. <link rel="stylesheet" href="/static/web/css/admin.css">
  10. </head>
  11. <body>
  12. <form name="form1" action="statchart.php" method="get">
  13. <table class="table shadow-sm my-3">
  14. <tr>
  15. <td>
  16. <input type="text" name="ip" class="admin-input-lg mr-3" placeholder="请输入地址ip">
  17. <button type="submit" class="btn btn-success btn-sm">搜索</button>
  18. </td>
  19. </tr>
  20. </table>
  21. </form>
  22. <form name="form2">
  23. <table class="table shadow-sm mb-3">
  24. <tr>
  25. <td colspan="9">流量统计列表</td>
  26. </tr>
  27. <tr align="center">
  28. <td width="6%">选择</td>
  29. <td width="6%">序号</td>
  30. <td width="16%">用户</td>
  31. <td width="10%">地址</td>
  32. <td width="10%">浏览器</td>
  33. <td width="10%">终端</td>
  34. <td width="10%">创建时间</td>
  35. <td width="16%">访问时间</td>
  36. <td width="16%">访问日期</td>
  37. </tr>
  38. {dede:datalist}
  39. <tr align="center">
  40. <td><input type="checkbox" name="aids" value="{dede:field.id/}"></td>
  41. <td>{dede:field.id/}</td>
  42. <td>{dede:field.dduuid/}</td>
  43. <td>{dede:field.ip/}</td>
  44. <td>{dede:field.browser/}</td>
  45. <td>{dede:field.os/}</a></td>
  46. <td>{dede:field.created_hour/}</td>
  47. <td>{dede:field.t function="MyDate('Y-m-d H:i:s',@me)"/}</td>
  48. <td>{dede:field.created_date/}</td>
  49. </tr>
  50. {/dede:datalist}
  51. <tr>
  52. <td colspan="9">
  53. <a href="javascript:ReSel();" class="btn btn-success btn-sm">反选</a>
  54. <a href="javascript:DelSel();" class="btn btn-danger btn-sm">删除</a>
  55. </td>
  56. </tr>
  57. <tr>
  58. <td colspan="9" align="center">
  59. {dede:pagelist listitem="info,pre,next,pageno" listsize="5"/}
  60. </td>
  61. </tr>
  62. </table>
  63. </form>
  64. <script>
  65. function getCheckboxItem() {
  66. var allSel = "";
  67. if (document.form2.aids.value) return document.form2.aids.value;
  68. for (i = 0; i < document.form2.aids.length; i++) {
  69. if (document.form2.aids[i].checked) {
  70. if (allSel == "")
  71. allSel = document.form2.aids[i].value;
  72. else
  73. allSel = allSel + "`" + document.form2.aids[i].value;
  74. }
  75. }
  76. return allSel;
  77. }
  78. function ReSel() {
  79. for (i = 0; i < document.form2.aids.length; i++) {
  80. if (document.form2.aids[i].checked) document.form2.aids[i].checked = false;
  81. else document.form2.aids[i].checked = true;
  82. }
  83. }
  84. function DelSel() {
  85. var nid = getCheckboxItem();
  86. if (nid == "") {
  87. alert("请选择要删除的信息");
  88. return;
  89. }
  90. location.href = "statchart.php?dopost=delete&aids=" + nid;
  91. }
  92. </script>
  93. </body>
  94. </html>