ADD file via upload

main
p8xfa5jzv 1 month ago
parent d06633e14d
commit c00e78eb3a

@ -0,0 +1,37 @@
<!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>
Loading…
Cancel
Save