You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.2 KiB
38 lines
1.2 KiB
2 months ago
|
<!DOCTYPE html>
|
||
|
<html lang="zh">
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
<link rel="stylesheet" href="{{ url_for('static', filename='styles.css') }}">
|
||
|
<title>积分排名</title>
|
||
|
</head>
|
||
|
<body>
|
||
|
<div class="container">
|
||
|
<h1>学生积分排名</h1>
|
||
|
<table>
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>排名</th>
|
||
|
<th>姓名</th>
|
||
|
<th>学号</th>
|
||
|
<th>积分</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
{% for student in rankings %}
|
||
|
<tr>
|
||
|
<td>{{ loop.index }}</td> <!-- 使用 loop.index -->
|
||
|
<td>{{ student.name }}</td>
|
||
|
<td>{{ student.id }}</td>
|
||
|
<td>{{ student.points }}</td>
|
||
|
</tr>
|
||
|
{% endfor %}
|
||
|
</tbody>
|
||
|
</table>
|
||
|
<div class="button-group">
|
||
|
<a href="{{ url_for('index') }}" class="btn">返回主页</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|