<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   question_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">
        <input type="text" name="name" size="50" value="<?php  p($question->name); ?>" />
        <input type="hidden" name="questiontext" value="" />
        <input type="hidden" name="questiontextformat" value="0" />
        <input type="hidden" name="image" value="" />
        <?php
            if (isset($err['name'])) {
                formerr($err['name']);
            }
        ?>
    </td>
</tr>

<tr valign="top">
    <td align="right"><b><?php  print_string('itemsource', 'quiz'); ?>:</b>
    </td>
    <td align="left">
    <?php
        print_textarea(false, 20, 60, 630, 300, "source", $question->options->source);
        echo "<br />\n";
        if (isset($err['source'])) {
            formerr($err['source']);
        }
    ?>
    </td>
</tr>
<!-- Keep it simple for the moment
<tr valign="top">
    <td align="right"><b><?php  print_string('itemsourceformat', 'quiz'); ?></b>
    </td>
    <td align="left"><input name="format" type="text" size="50" maxLength="255" value="<?php p($question->options->format); ?>" />
    <?php
        if (isset($err['format'])) {
            formerr($err['format']);
        }
    ?>
    </td>
</tr>
-->
<?php
    $QTYPES[$question->qtype]->print_replacement_options($question, $course, $contextquiz);
    $QTYPES[$question->qtype]->print_question_form_end($question);
?>
</table>
<input type="hidden" name="type" value="<?php echo($type->id); ?>" />
</form>
