|
- <!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">
- </head>
- <body>
- <form name="form1" action="statchart.php" method="get">
- <table class="table shadow-sm my-3">
- <tr>
- <td>
- <input type="text" name="ip" class="admin-input-lg mr-3" placeholder="请输入地址ip">
- <button type="submit" class="btn btn-success btn-sm">搜索</button>
- </td>
- </tr>
- </table>
- </form>
- <form name="form2">
- <table class="table shadow-sm mb-3">
- <tr>
- <td colspan="9">流量统计列表</td>
- </tr>
- <tr align="center">
- <td width="6%">选择</td>
- <td width="6%">序号</td>
- <td width="16%">用户</td>
- <td width="10%">地址</td>
- <td width="10%">浏览器</td>
- <td width="10%">终端</td>
- <td width="10%">创建时间</td>
- <td width="16%">访问时间</td>
- <td width="16%">访问日期</td>
- </tr>
- {dede:datalist}
- <tr align="center">
- <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.created_hour/}</td>
- <td>{dede:field.t function="MyDate('Y-m-d H:i:s',@me)"/}</td>
- <td>{dede:field.created_date/}</td>
- </tr>
- {/dede:datalist}
- <tr>
- <td colspan="9">
- <a href="javascript:ReSel();" class="btn btn-success btn-sm">反选</a>
- <a href="javascript:DelSel();" class="btn btn-danger btn-sm">删除</a>
- </td>
- </tr>
- <tr>
- <td colspan="9" align="center">
- {dede:pagelist listitem="info,pre,next,pageno" listsize="5"/}
- </td>
- </tr>
- </table>
- </form>
- <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 == "") {
- alert("请选择要删除的信息");
- return;
- }
- location.href = "statchart.php?dopost=delete&aids=" + nid;
- }
- </script>
- </body>
- </html>
|