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.
teamwk123/views/admin.ejs

68 lines
2.0 KiB

1 month ago
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="/stylesheets/main.css">
<link rel="stylesheet" type="text/css" href="/stylesheets/table.css">
<title><%= title %></title>
</head>
<body>
<h2><%= message %></h2>
<br /><br /><br /><br />
<form action="/getit" method="post" >
<h2>获取解码信息</h2>
<button type="submit" onclick="myFunction1()">
获取
</button>
<script>
function myFunction1() {
alert("点击确定获取!");
}
</script>
<br /><br />
</form>
<form action="/histroy" method="post">
<h2>获取系统日志</h2>
<button type="submit" onclick="myFunction2()">
系统日志
</button>
<script>
function myFunction2() {
alert("点击确定获取日志记录");
}
</script>
<br /><br />
</form>
<form action="/log" method="post">
<h2>获取登录日志</h2>
<button type="submit" onclick="myFunction3()">
登录日志
</button>
<script>
function myFunction3() {
alert("点击确定获取日志记录");
}
</script>
<br /><br /><br /><br />
</form>
<h2>对作战员1下达作战信息</h2>
<form action="/sendit" method="post">
作战内容:<input type="text" name="message"/><br></br>
<input type="submit" value="下达">
</form>
<h2>对作战员2下达作战信息</h2>
<form action="/sendit1" method="post">
作战内容:<input type="text" name="message"/><br></br>
<input type="submit" value="下达">
</form>
<script>
setInterval(function() {//setInterval() 方法用于设置定时器,它会按照指定的时间周期反复执行一个函数
window.location.reload(true);//window.location.reload(true)每隔 10 秒自动刷新页面
}, 10000);
</script>
</body>
</html>