parent
5b7e639583
commit
8b1f837e8e
@ -0,0 +1,43 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns:th="http://www.thymeleaf.org">
|
||||
<head>
|
||||
<title>课堂点名系统</title>
|
||||
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container mt-4">
|
||||
<h1>课堂点名系统</h1>
|
||||
|
||||
<!-- 上传成功消息 -->
|
||||
<div class="alert alert-success" th:if="${message}">
|
||||
<span th:text="${message}"></span>
|
||||
</div>
|
||||
|
||||
<!-- 随机点名 -->
|
||||
<form method="post" action="/pick">
|
||||
<button type="submit" class="btn btn-success">下一步</button>
|
||||
</form>
|
||||
|
||||
<hr>
|
||||
|
||||
<!-- 显示所有学生信息 -->
|
||||
<h2>学生名单:</h2>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>姓名</th>
|
||||
<th>学号</th>
|
||||
<th>积分</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr th:each="student : ${students}">
|
||||
<td th:text="${student.name}"></td>
|
||||
<td th:text="${student.studentId}"></td>
|
||||
<td th:text="${student.points}"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in new issue