<center>
<form name="theform" method="post" action="question.php">
<table cellpadding="5">
<tr valign="top">
    <td align="right"><b><?php  print_string("category", "quiz") ?>:</b></td>
    <td align="left">
    <?php   quiz_category_select_menu($course->id, true, true, $question->category); ?>
    </td>
</tr>
<tr valign="top">
    <td align="right"><b><?php  print_string("questionname", "quiz") ?>:</b></td>
    <td align="left">
        <?php  if (empty($question->name)) {
               $question->name = get_string("random", "quiz");
           } ?>
        <input type="text" name="name" size="40" value="<?php  p($question->name) ?>" alt="<?php  print_string("questionname", "quiz") ?>" />
        <?php  if (isset($err["name"])) formerr($err["name"]); ?>
    </td>
</tr>
<tr valign="top">
    <td align="right"><b><?php  print_string("recurse", "quiz") ?>:</b></td>
    <td align="left">
        <?php  if (!isset($question->questiontext)) {
            $question->questiontext = "0";
        } ?>
        <input type="hidden" name="questiontext" value="0" />
        <input type="checkbox" name="questiontext" value="1" <?php echo ($question->questiontext == "1") ? 'checked="checked"' : '' ?> />
    </td>
</tr>
</table>
<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey; ?>" />
<input type="hidden" name="questiontextformat" value="0" />
<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") ?>" />
</form>
</center>
