<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"> <title>流量统计表</title> <link rel="stylesheet" href="/static/web/css/font-awesome.min.css"> <link rel="stylesheet" href="/static/web/css/bootstrap.min.css"> <link rel="stylesheet" href="/static/web/css/admin.css"> <script src="/static/web/js/jquery.min.js"></script> <script src="/static/web/js/bootstrap.min.js"></script> <script src="/static/web/js/admin.main.js"></script> </head> <body> <div class="container-fluid"> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li> <li class="breadcrumb-item active">流量统计表</li> </ol> <div class="card shadow-sm mb-3"> <div class="card-body"> <form name="form1" action="statistics_list.php" method="get"> <input type="text" name="ip" class="admin-input-lg" placeholder="请输入地址ip" value="<?php echo !empty($ip)? $ip : '';?>"> <button type="submit" class="btn btn-success btn-sm">搜索</button> </form> </div> </div> <div class="card shadow-sm"> <div class="card-header">流量统计表</div> <div class="card-body"> <form name="form2"> <div class="table-responsive"> <table class="table table-borderless table-hover"> <thead> <tr> <td scope="col">选择</td> <td scope="col">序号</td> <td scope="col">用户</td> <td scope="col">地址</td> <td scope="col">浏览器内核</td> <td scope="col">操作系统</td> <td scope="col">浏览类型</td> <td scope="col">浏览时间</td> </tr> </thead> <tbody> {dede:datalist} <tr> <td><input type="checkbox" name="aids" value="{dede:field.id/}"></td> <td>{dede:field.id/}</td> <td>{dede:field.dduuid/}</td> <td>{dede:field.ip/}</td> <td>{dede:field.browser/}</td> <td>{dede:field.os/}</a></td> <td>{dede:field.url_type function="RenderUrlType(@me)"/}</td> <td>{dede:field.t function="MyDate('Y-m-d H:i:s',@me)"/}</td> </tr> {/dede:datalist} <tr> <td colspan="8"> <a href="javascript:ReSel();" class="btn btn-success btn-sm">反选</a> <a href="javascript:DelSel();" class="btn btn-danger btn-sm">删除</a> </td> </tr> </tbody> </table> </div> </form> {dede:pagelist listsize='6'/} </div> </div> </div> <script> function getCheckboxItem() { var allSel = ""; if (document.form2.aids.value) return document.form2.aids.value; for (i = 0; i < document.form2.aids.length; i++) { if (document.form2.aids[i].checked) { if (allSel == "") allSel = document.form2.aids[i].value; else allSel = allSel + "`" + document.form2.aids[i].value; } } return allSel; } function ReSel() { for (i = 0; i < document.form2.aids.length; i++) { if (document.form2.aids[i].checked) document.form2.aids[i].checked = false; else document.form2.aids[i].checked = true; } } function DelSel() { var nid = getCheckboxItem(); if (nid == "") { ShowMsg("请选择要删除的信息"); return; } location.href = "statistics_list.php?dopost=delete&aids=" + nid; } </script> </body> </html>