2023-10-24 15:02:42 +08:00
|
|
|
<!DOCTYPE html>
|
2023-10-25 14:04:49 +08:00
|
|
|
<html>
|
2023-10-24 15:02:42 +08:00
|
|
|
|
|
|
|
<head>
|
2023-10-25 14:04:49 +08:00
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="keywords" content="">
|
|
|
|
<title>历史操作表</title>
|
2023-10-24 15:02:42 +08:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2023-10-25 14:04:49 +08:00
|
|
|
<h1 align="center">历史操作表</h1>
|
|
|
|
<table id="arpTable" width="500" border="1" align="center">
|
|
|
|
<thead>
|
|
|
|
<th>用户名</th>
|
|
|
|
<th>操作指令</th>
|
|
|
|
<th>操作时间</th>
|
|
|
|
|
|
|
|
</thead>
|
|
|
|
<tbody id="arpBody" align="center">
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
window.onload = function () {
|
|
|
|
query("");
|
|
|
|
}
|
|
|
|
function query(val) {
|
|
|
|
fetch("/cgi-bin/router_showarp.cgi").then(resp =>
|
|
|
|
resp.json()).then(data => {
|
|
|
|
if (data.code == 0) {
|
|
|
|
arpBody.innerText = "";
|
|
|
|
|
|
|
|
data.data.forEach(rowData => {
|
|
|
|
let tr = document.createElement("tr");
|
|
|
|
let td1 = document.createElement("td");
|
|
|
|
let td2 = document.createElement("td");
|
|
|
|
|
|
|
|
td1.innerText = rowData.ip;
|
|
|
|
td2.innerText = rowData.mac;
|
|
|
|
|
|
|
|
tr.append(td1, td2);
|
|
|
|
arpBody.append(tr);
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
</script>
|
2023-10-24 15:02:42 +08:00
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|