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

statistics_list.htm 3.4KB

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