<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="../../static/pkg/bootstrap-4.6.2-dist/css/bootstrap.min.css">
<script src="../../static/pkg/jquery3.7/jquery-3.7.1.min.js"></script>
<link rel="stylesheet" href="../../static/css/admin/index.css">
</head>
<body>
<!--导航栏:-->
<ul class="nav">
<li class="nav-item">
<a class="nav-link active" href="#">
<?php
include_once "../../models/core_mysql.php";
if(isset($_SESSION['adminName'])){
echo "管理员:" . $_SESSION['adminName'] . " 你好!";
}
else{
echo "<script>window.location.href='./login.html'</script>";
}
?>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./useradd.html">添加员工</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./logout.php">退出</a>
</li>
</ul>
<!---------------------------------------------------------------------------->
<!--表格:-->
<div class="container">
<table class="table table-striped">
<thead>
<tr>
<th scope="col">UID</th>
<th scope="col">姓名</th>
<th scope="col">是否打卡</th>
<th scope="col">打卡日期</th>
</tr>
</thead>
<tbody id="userList">
<!-- <tr>
<th scope="row">1</th>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
</tr> -->
</tbody>
</table>
</div>
<script src="../../static/pkg/bootstrap-4.6.2-dist/js/bootstrap.min.js"></script>
<script>
fetch('../../apis/admin/getUserList.php', {
method:'GET',
mode:'cors',
credentials:'include'
}).then(response => {
return response.json()
}).then(
data => {
let userList = document.querySelector('#userList')
data.forEach(v => {
if(v[2]==1){
isSign = '是';
}else{
isSign = '否';
}
userList.innerHTML += `
<tr>
<th scope="row">${v[0]}</th>
<td>${v[1]}</td>
<td>${isSign}</td>
<td>${v[3]}</td>
</tr>
`;
});
console.log(data[0])
}
)
</script>
</body>
</html>
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
云签到项目.zip (49个子文件)
云签到项目
2.签到成功页.png 123KB
6.数据库二.png 12KB
4.管理员页.png 47KB
5.数据库一.png 51KB
3.管理员登录页.png 115KB
1.首页.png 90KB
代码
controllers
admin
login.php 934B
getUserList.php 728B
useradd.php 704B
office
getSign.php 2KB
index.html 2KB
models
core_mysql.php 365B
apis
admin
getUserList.php 165B
static
js
css
admin
index.css 73B
common
commonIndex.css 72B
pkg
jquery3.7
jquery-3.7.1.min.js 85KB
popper
popper.min.js 21KB
bootstrap-4.6.2-dist
js
bootstrap.js 134KB
bootstrap.bundle.js.map 417KB
bootstrap.bundle.min.js.map 302KB
bootstrap.min.js 61KB
bootstrap.bundle.min.js 81KB
bootstrap.bundle.js 225KB
bootstrap.js.map 265KB
bootstrap.min.js.map 181KB
css
bootstrap-grid.css.map 160KB
bootstrap.min.css 158KB
bootstrap-grid.css 66KB
bootstrap-grid.min.css.map 112KB
bootstrap-reboot.min.css.map 32KB
bootstrap.css.map 504KB
bootstrap.css 196KB
bootstrap-reboot.css 5KB
bootstrap-reboot.css.map 76KB
bootstrap-grid.min.css 49KB
bootstrap.min.css.map 639KB
bootstrap-reboot.min.css 4KB
images
office
failed-stamp.jpg 486KB
790.jpeg 13KB
780.jpg 50KB
3.jpg 88KB
views
admin
logout.php 198B
feedback.html 844B
login.html 2KB
index.php 3KB
useradd.html 1KB
office
feedback.html 876B
failed.html 900B
PHP + mysql + bootstrap 小项目:云签到系统:.md 928B
共 49 条
- 1
资源评论
FranzYu_
- 粉丝: 234
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功