v2.1更新

This commit is contained in:
2026-05-26 13:47:01 +08:00
parent c575d711ee
commit f84c9d3efb
26 changed files with 1482 additions and 567 deletions

View File

@@ -37,8 +37,8 @@ include __DIR__ . '/../includes/header.php';
border-bottom: 2px solid transparent;
}
.nav .nav-item.active {
color: #667eea;
border-bottom-color: #667eea;
color: var(--color-primary);
border-bottom-color: var(--color-primary);
font-weight: bold;
}
.semester-card {
@@ -54,7 +54,7 @@ include __DIR__ . '/../includes/header.php';
align-items: center;
margin-bottom: 12px;
padding-bottom: 12px;
border-bottom: 1px solid #eee;
border-bottom: 1px solid var(--color-border-light);
}
.semester-name {
font-size: 18px;
@@ -77,7 +77,7 @@ include __DIR__ . '/../includes/header.php';
.semester-stat-value {
font-size: 24px;
font-weight: bold;
color: #667eea;
color: var(--color-primary);
}
.semester-stat-label {
font-size: 12px;
@@ -169,18 +169,18 @@ async function loadSemesterRecords() {
<div style="margin-top: 12px; padding-top: 12px; border-top: 1px solid #eee;">
<div style="font-size: 12px; color: #999; margin-bottom: 8px;">考勤统计</div>
<div style="display: flex; gap: 8px; flex-wrap: wrap;">
<span style="background: #e8f5e9; color: #388e3c; padding: 2px 8px; border-radius: 10px; font-size: 12px;">出勤 ${record.attendance_present || 0}</span>
<span style="background: #ffebee; color: #c62828; padding: 2px 8px; border-radius: 10px; font-size: 12px;">缺勤 ${record.attendance_absent || 0}</span>
<span style="background: #fff3e0; color: #e65100; padding: 2px 8px; border-radius: 10px; font-size: 12px;">迟到 ${record.attendance_late || 0}</span>
<span style="background: #e3f2fd; color: #1565c0; padding: 2px 8px; border-radius: 10px; font-size: 12px;">请假 ${record.attendance_leave || 0}</span>
<span class="tag tag-success">出勤 ${record.attendance_present || 0}</span>
<span class="tag tag-danger">缺勤 ${record.attendance_absent || 0}</span>
<span class="tag tag-warning">迟到 ${record.attendance_late || 0}</span>
<span class="tag tag-info">请假 ${record.attendance_leave || 0}</span>
</div>
</div>
<div style="margin-top: 8px;">
<div style="font-size: 12px; color: #999; margin-bottom: 8px;">作业统计</div>
<div style="display: flex; gap: 8px; flex-wrap: wrap;">
<span style="background: #e8f5e9; color: #388e3c; padding: 2px 8px; border-radius: 10px; font-size: 12px;">已交 ${record.homework_submitted || 0}</span>
<span style="background: #ffebee; color: #c62828; padding: 2px 8px; border-radius: 10px; font-size: 12px;">未交 ${record.homework_not_submitted || 0}</span>
<span style="background: #fff3e0; color: #e65100; padding: 2px 8px; border-radius: 10px; font-size: 12px;">迟交 ${record.homework_late || 0}</span>
<span class="tag tag-success">已交 ${record.homework_submitted || 0}</span>
<span class="tag tag-danger">未交 ${record.homework_not_submitted || 0}</span>
<span class="tag tag-warning">迟交 ${record.homework_late || 0}</span>
</div>
</div>
</div>