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