[exam] add progress do update the same time

This commit is contained in:
xiaomlove
2021-04-27 02:44:44 +08:00
parent 465fd2bca8
commit d1b7561aae
17 changed files with 97 additions and 81 deletions

View File

@@ -2601,7 +2601,7 @@ if ($msgalert)
$exam = new \Nexus\Exam\Exam();
$examHtml = $exam->render($CURUSER['id']);
if (!empty($examHtml)) {
msgalert("messages.php", $examHtml, "green");
msgalert("messages.php", $examHtml, "blue");
}
}
if ($offlinemsg)

View File

@@ -533,3 +533,10 @@ function formatDatetime($datetime, $format = 'Y-m-d H:i:s')
}
return $datetime;
}
function formatTtl($seconds)
{
if ($seconds < 60) {
return $seconds . "seconds";
}
}