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

statchart_list.htm 3.1KB

11 months ago
10 months ago
10 months ago
10 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. <ol class="breadcrumb">
  13. <li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
  14. <li class="breadcrumb-item active">流量统计表</li>
  15. </ol>
  16. <div class="card shadow-sm mb-3">
  17. <div class="card-body">
  18. <form name="form1" action="statchart_list.php" method="get">
  19. <input type="text" name="ip" class="admin-input-lg" placeholder="请输入地址ip">
  20. <button type="submit" class="btn btn-success btn-sm">搜索</button>
  21. </form>
  22. </div>
  23. </div>
  24. <div class="card shadow-sm">
  25. <div class="card-header">流量统计表</div>
  26. <div class="card-body">
  27. <form name="form2">
  28. <div class="table-responsive">
  29. <table class="table table-borderless table-hover">
  30. <thead>
  31. <tr>
  32. <td scope="col">选择</td>
  33. <td scope="col">序号</td>
  34. <td scope="col">用户</td>
  35. <td scope="col">地址</td>
  36. <td scope="col">浏览器内核</td>
  37. <td scope="col">操作系统</td>
  38. <td scope="col">浏览特征</td>
  39. <td scope="col">浏览时间</td>
  40. </tr>
  41. </thead>
  42. <tbody>
  43. {dede:datalist}
  44. <tr>
  45. <td><input type="checkbox" name="aids" value="{dede:field.id/}"></td>
  46. <td>{dede:field.id/}</td>
  47. <td>{dede:field.dduuid/}</td>
  48. <td>{dede:field.ip/}</td>
  49. <td>{dede:field.browser/}</td>
  50. <td>{dede:field.os/}</a></td>
  51. <td>{dede:field.created_hour/}点</td>
  52. <td>{dede:field.t function="MyDate('Y-m-d H:i:s',@me)"/}</td>
  53. </tr>
  54. {/dede:datalist}
  55. <tr>
  56. <td colspan="8">
  57. <a href="javascript:ReSel();" class="btn btn-success btn-sm">反选</a>
  58. <a href="javascript:DelSel();" class="btn btn-danger btn-sm">删除</a>
  59. </td>
  60. </tr>
  61. </tbody>
  62. </table>
  63. </div>
  64. </form>
  65. {dede:pagelist listsize='6'/}
  66. </div>
  67. </div>
  68. <script>
  69. function getCheckboxItem() {
  70. var allSel = "";
  71. if (document.form2.aids.value) return document.form2.aids.value;
  72. for (i = 0; i < document.form2.aids.length; i++) {
  73. if (document.form2.aids[i].checked) {
  74. if (allSel == "")
  75. allSel = document.form2.aids[i].value;
  76. else
  77. allSel = allSel + "`" + document.form2.aids[i].value;
  78. }
  79. }
  80. return allSel;
  81. }
  82. function ReSel() {
  83. for (i = 0; i < document.form2.aids.length; i++) {
  84. if (document.form2.aids[i].checked) document.form2.aids[i].checked = false;
  85. else document.form2.aids[i].checked = true;
  86. }
  87. }
  88. function DelSel() {
  89. var nid = getCheckboxItem();
  90. if (nid == "") {
  91. alert("请选择要删除的信息");
  92. return;
  93. }
  94. location.href = "statchart_list.php?dopost=delete&aids=" + nid;
  95. }
  96. </script>
  97. </body>
  98. </html>