|                                                                              | 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 | <!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>
		<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="statchart_list.php" method="get">
					<input type="text" name="ip" class="admin-input-lg" placeholder="请输入地址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.created_hour/}点</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>
		<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_list.php?dopost=delete&aids=" + nid;
			}
		  </script>
	</body>
</html>
 |