Files
SharedClassManager/frontend/student/homework.php
2026-05-28 15:38:32 +08:00

51 lines
1.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'] !== 'student') {
header('Location: /index.php');
exit();
}
$page_title = '作业情况';
$student_id = $_SESSION['student_id'];
include __DIR__ . '/../includes/header.php';
?>
<div class="nav">
<a href="/student/dashboard.php" class="nav-item">首页</a>
<a href="/student/conduct_history.php" class="nav-item">操行分</a>
<a href="/student/homework.php" class="nav-item active">作业</a>
<a href="/student/attendance.php" class="nav-item">考勤</a>
<a href="/student/password.php" class="nav-item">修改密码</a>
</div>
<div class="container">
<div class="card">
<div class="card-title">作业列表</div>
<div class="table-wrapper">
<table class="table">
<thead>
<tr><th>时间</th><th>分值</th><th>原因</th><th>操作人</th></tr>
</thead>
<tbody id="homeworkList"></tbody>
</table>
</div>
</div>
</div>
<script>window.PAGE_CONFIG = { studentId: <?php echo $student_id; ?> };</script>
<script src="/assets/js/student.js"></script>
<script src="/assets/js/student-homework.js"></script>
<?php include __DIR__ . '/../includes/footer.php'; ?>