1. 月度分排行:管理端首页支持总分/月度分切换与月份选择,新增排行榜导出CSV 2. 数据报表:新增考勤/作业统计页(日期范围、汇总与每人明细、CSV导出) 3. 操作日志:新增查看页(操作类型/操作人/日期筛选,分页) 4. 系统设置:密码策略可配置(长度/字符种类),全站改密与重置统一校验、前端提示同步;策略通过公开配置下发 5. 学期归档对比:查看归档时展示与上一学期的分数变化与名次升降 6. 历史记录导出支持按学生分表(每人一段,便于发家长) 7. 移动端适配:导航横向滚动、表格触控滚动、字号与弹窗优化 8. 版本升级至4.4(无数据库结构变更)
105 lines
3.5 KiB
PHP
105 lines
3.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_all_records');
|
|
|
|
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>
|
|
<input type="date" id="reportStartDate">
|
|
</div>
|
|
<div class="filter-group">
|
|
<label>结束日期</label>
|
|
<input type="date" id="reportEndDate">
|
|
</div>
|
|
<div class="filter-group" style="flex: 0 0 auto;">
|
|
<button class="btn btn-primary" onclick="loadReports()">查询</button>
|
|
</div>
|
|
</div>
|
|
<p style="font-size: 12px; color: var(--color-text-secondary);" id="reportRangeHint">
|
|
默认统计当前学期范围;考勤按记录日期统计,作业按作业截止日期统计
|
|
</p>
|
|
</div>
|
|
|
|
<div class="card">
|
|
<div class="card-title" style="display:flex; justify-content:space-between; align-items:center;">
|
|
<span>考勤统计</span>
|
|
<button class="btn btn-sm btn-secondary" onclick="exportReport('attendance')">导出</button>
|
|
</div>
|
|
<div id="attendanceSummary" class="report-summary"></div>
|
|
<div class="table-wrapper">
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>序号</th>
|
|
<th>学号</th>
|
|
<th>姓名</th>
|
|
<th>出勤</th>
|
|
<th>缺勤</th>
|
|
<th>迟到</th>
|
|
<th>请假</th>
|
|
<th>记录数</th>
|
|
<th>出勤率</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="attendanceReportList"></tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card">
|
|
<div class="card-title" style="display:flex; justify-content:space-between; align-items:center;">
|
|
<span>作业统计</span>
|
|
<button class="btn btn-sm btn-secondary" onclick="exportReport('homework')">导出</button>
|
|
</div>
|
|
<div id="homeworkSummary" class="report-summary"></div>
|
|
<div class="table-wrapper">
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>序号</th>
|
|
<th>学号</th>
|
|
<th>姓名</th>
|
|
<th>已交</th>
|
|
<th>未交</th>
|
|
<th>迟交</th>
|
|
<th>记录数</th>
|
|
<th>未交率</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="homeworkReportList"></tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script>window.PAGE_CONFIG = { role: '<?php echo htmlspecialchars($role, ENT_QUOTES, 'UTF-8'); ?>' };</script>
|
|
<script src="/assets/js/reports.js"></script>
|
|
|
|
<?php include __DIR__ . '/../includes/footer.php'; ?>
|