moodle/mod/quiz/random.html
moodler 34d52ad7d2 First implementation of completely random questions.
When you add a random question to a quiz, then a question
is chosen randomly from the same category.

Questions are not repeated in a particular quiz attempt.

This still needs more testing, but it's looking OK so far.
2003-04-09 06:32:51 +00:00

31 lines
984 B
HTML

<center>
<form name="theform" method="post" action="question.php">
<table cellpadding=5>
<tr valign=top>
<td align=right><P><B><? print_string("category", "quiz") ?>:</B></P></TD>
<td>
<? choose_from_menu($categories, "category", "$question->category", ""); ?>
</td>
</tr>
<tr valign=top>
<td align=right><P><B><? print_string("questionname", "quiz") ?>:</B></P></TD>
<td>
<? if (empty($question->name)) {
$question->name = get_string("random", "quiz");
} ?>
<input type="text" name="name" size=40 value="<? p($question->name) ?>">
<? if (isset($err["name"])) formerr($err["name"]); ?>
</td>
</tr>
</table>
<input type="hidden" name=questiontext value="---">
<input type="hidden" name=id value="<? p($question->id) ?>">
<input type="hidden" name=qtype value="<? p($question->qtype) ?>">
<input type="submit" value="<? print_string("savechanges") ?>">
</form>
</center>