mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-15 05:00:49 +08:00
[exam] add progress do update the same time
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user