exam add backgrond color

This commit is contained in:
xiaomlove
2024-08-23 04:52:53 +08:00
parent 9b83793c93
commit b8c044d546
8 changed files with 47 additions and 7 deletions

View File

@@ -2899,9 +2899,9 @@ if ($msgalert)
//show the exam info
$exam = new \Nexus\Exam\Exam();
$examHtml = $exam->render($CURUSER['id']);
if (!empty($examHtml)) {
msgalert("messages.php", $examHtml, "blue");
$currentExam = $exam->getCurrent($CURUSER['id']);
if (!empty($currentExam['html'])) {
msgalert("messages.php", $currentExam['html'], $currentExam['exam']->background_color ?? 'blue');
}
}
if ($offlinemsg)