mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
c74a0ca5c2
cleanups along the way ...
64 lines
2.2 KiB
HTML
64 lines
2.2 KiB
HTML
<FORM name="theform" method="post" action="question.php">
|
|
<CENTER>
|
|
<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>
|
|
<INPUT type="text" name="name" size=50 value="<? p($question->name) ?>">
|
|
</TD>
|
|
</TR>
|
|
<TR valign=top>
|
|
<TD align=right><P><B><? print_string("question", "quiz") ?>:</B></P></TD>
|
|
<TD>
|
|
<textarea name="questiontext" rows=6 cols=50 wrap="virtual"><? p($question->questiontext)?></textarea>
|
|
<? helpbutton("text", get_string("helptext")); ?>
|
|
</TD>
|
|
</TR>
|
|
<TR valign=top>
|
|
<TD align=right><P><B><? print_string("imagedisplay", "quiz") ?>:</B></P></TD>
|
|
<TD>
|
|
<? if (!$images) {
|
|
print_string("noimagesyet");
|
|
} else {
|
|
choose_from_menu($images, "image", "$question->image", get_string("none"),"","");
|
|
}
|
|
?>
|
|
</TD>
|
|
</TR>
|
|
|
|
<TR valign=top>
|
|
<TD align=right><P><B><? print_string("correctanswer", "quiz") ?>:</B></P></TD>
|
|
<TD>
|
|
<? $menu[0] = get_string("false", "quiz");
|
|
$menu[1] = get_string("true", "quiz");
|
|
choose_from_menu($menu, "answer", "$question->answer", ""); ?>
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR valign=top>
|
|
<TD align=right><P><B><? print_string("feedback", "quiz") ?> (<? print_string("true", "quiz") ?>):</B></P></TD>
|
|
<TD>
|
|
<textarea name="feedbacktrue" rows=2 cols=50 wrap="virtual"><? p($true->feedback) ?></textarea>
|
|
</TD>
|
|
</TR>
|
|
<TR valign=top>
|
|
<TD align=right><P><B><? print_string("feedback", "quiz") ?> (<? print_string("false", "quiz") ?>):</B></P></TD>
|
|
<TD>
|
|
<textarea name="feedbackfalse" rows=2 cols=50 wrap="virtual"><? p($false->feedback) ?></textarea>
|
|
</TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<INPUT type="hidden" name=id value="<? p($question->id) ?>">
|
|
<INPUT type="hidden" name=type value="<? p($question->type) ?>">
|
|
<INPUT type="submit" value="<? print_string("savechanges") ?>">
|
|
|
|
</CENTER>
|
|
</FORM>
|