更新考试配置表单,添加考场号输入字段

This commit is contained in:
MKStoler 2025-01-30 17:18:48 +08:00
parent 432ffb8e5b
commit a1a7c2ef63

View File

@ -12,7 +12,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$newConfig = [
'examName' => $_POST['examName'],
'message' => $_POST['message'],
'room' => ' ',
'room' => $_POST['room'],
'examInfos' => []
];
@ -136,6 +136,10 @@ if (!empty($id) && file_exists("../configs/{$id}.json")) {
<label>考试提示语:</label>
<input type="text" name="message" value="<?= htmlspecialchars($config['message']) ?>">
</div>
<div>
<label>考场号:</label>
<input type="text" name="room" value="<?= htmlspecialchars($config['room'] ?? '') ?>" required>
</div>
<h3>考试科目安排</h3>
<div id="subjects">