1. 历史记录:批次合并视图新增"批量反撤销"(需反撤销权限);单条/批量撤销与反撤销提示更明确(说明记录去向,不会删除);操作列权限门控补充 restore_records 2. 操作日志:批量撤销/反撤销写入日志;单条撤销/反撤销/加减分日志详情补充学生姓名(学号)、分值变动、原因;新增"详情关键词"筛选(学生姓名/原因等) 3. 节假日接口:证书校验失败自动回退重试,提高服务器兼容性 4. 作业按次登记:默认列出全部学生、缺交次数默认0(0=已交),支持全员已交登记;后端允许空缺交名单
82 lines
2.5 KiB
PHP
82 lines
2.5 KiB
PHP
<?php
|
|
/**
|
|
* 班级操行分管理系统 - 管理端操作日志
|
|
*
|
|
* 开发者: Canglan
|
|
* 联系方式: admin@sea-studio.top
|
|
* 版权归属: Sea Network Technology Studio
|
|
* 许可证: MIT License
|
|
*
|
|
* 版权所有 © Sea Network Technology Studio
|
|
*/
|
|
|
|
require_once __DIR__ . '/../config.php';
|
|
|
|
if (!isset($_SESSION['user_id']) || $_SESSION['user_type'] !== 'admin') {
|
|
header('Location: /index.php');
|
|
exit();
|
|
}
|
|
|
|
$page_title = '操作日志';
|
|
$role = current_group_name();
|
|
require_perm('view_logs');
|
|
|
|
include __DIR__ . '/../includes/header.php';
|
|
?>
|
|
|
|
<?php include __DIR__ . '/../includes/nav.php'; ?>
|
|
|
|
<div class="container">
|
|
<div class="card">
|
|
<div class="filter-bar">
|
|
<div class="filter-group">
|
|
<label>操作类型</label>
|
|
<select id="logTypeFilter">
|
|
<option value="">全部</option>
|
|
</select>
|
|
</div>
|
|
<div class="filter-group">
|
|
<label>操作人 / 角色</label>
|
|
<input type="text" id="logOperatorFilter" placeholder="关键词">
|
|
</div>
|
|
<div class="filter-group">
|
|
<label>详情关键词</label>
|
|
<input type="text" id="logKeywordFilter" placeholder="学生 / 原因等">
|
|
</div>
|
|
<div class="filter-group">
|
|
<label>开始日期</label>
|
|
<input type="date" id="logStartDate">
|
|
</div>
|
|
<div class="filter-group">
|
|
<label>结束日期</label>
|
|
<input type="date" id="logEndDate">
|
|
</div>
|
|
<div class="filter-group" style="flex: 0 0 auto;">
|
|
<button class="btn btn-primary" onclick="loadLogs(1)">查询</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="table-wrapper">
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th style="white-space: nowrap;">时间</th>
|
|
<th>操作人</th>
|
|
<th>角色</th>
|
|
<th>操作</th>
|
|
<th>对象</th>
|
|
<th>详情</th>
|
|
<th>IP</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="logList"></tbody>
|
|
</table>
|
|
</div>
|
|
<div class="pagination" id="logPagination"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="<?php echo asset_url('/assets/js/logs.js'); ?>"></script>
|
|
|
|
<?php include __DIR__ . '/../includes/footer.php'; ?>
|