feat: add date and time sorting controls

This commit is contained in:
Codex
2026-06-13 23:26:17 +08:00
parent 839149c258
commit ad77a19fbd
3 changed files with 133 additions and 6 deletions
+8 -4
View File
@@ -4,7 +4,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>新时空课程记录查询</title>
<link rel="stylesheet" href="/static/styles.css?v=20260611-weekend-shortcuts" />
<link rel="stylesheet" href="/static/styles.css?v=20260613-date-time-sort" />
</head>
<body>
<header class="topbar">
@@ -50,8 +50,12 @@
<table>
<thead>
<tr>
<th>日期</th>
<th>时间</th>
<th>
<button id="dateSortBtn" class="sort-header-button" type="button" aria-label="日期排序:升序排列,点击切换为降序排列">日期 升序排列</button>
</th>
<th>
<button id="timeSortBtn" class="sort-header-button" type="button" aria-label="时间排序:升序排列,点击切换为降序排列">时间 升序排列</button>
</th>
<th>学生</th>
<th>老师</th>
<th>科目</th>
@@ -112,6 +116,6 @@
</section>
</div>
<script src="/static/app.js?v=20260612-relative-shortcuts"></script>
<script src="/static/app.js?v=20260613-sort-labels"></script>
</body>
</html>