mirror of
https://github.com/moodle/moodle.git
synced 2025-04-19 07:25:30 +02:00
Fixed alignment of form elements in IE
This commit is contained in:
parent
56b5d16a4d
commit
6e218d24ce
@ -3,13 +3,13 @@
|
||||
<table cellpadding="5">
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("category", "quiz") ?>:</b></td>
|
||||
<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>
|
||||
<td align="left">
|
||||
<input type="text" name="name" size="50" value="<?php p($question->name) ?>" alt="<?php print_string("questionname", "quiz") ?>" />
|
||||
<?php if (isset($err["name"])) formerr($err["name"]); ?>
|
||||
</td>
|
||||
@ -29,7 +29,7 @@
|
||||
?>
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<?php if (isset($err["questiontext"])) {
|
||||
formerr($err["questiontext"]);
|
||||
echo "<br />";
|
||||
@ -55,7 +55,7 @@
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("imagedisplay", "quiz") ?>:</b></td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<?php if (empty($images)) {
|
||||
print_string("noimagesyet");
|
||||
} else {
|
||||
@ -66,7 +66,7 @@
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("penaltyfactor", "quiz") ?>:</b></td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<input type="text" name="penalty" size="3" value="<?php p($question->penalty) ?>" alt="<?php print_string("penaltyfactor", "quiz") ?>" />
|
||||
<?php helpbutton('penalty', get_string('penalty', 'quiz'), 'quiz'); ?>
|
||||
<?php if (isset($err["penalty"])) formerr($err["penalty"]); ?>
|
||||
@ -74,27 +74,27 @@
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("correctanswerformula", "quiz") ?>:</b></td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<input align="left" type="text" id="formula0" name="answers[]" size="20" value="<?php p($answers[0]->answer) ?>" alt="<?php print_string("correctanswerformula", "quiz") ?>" />
|
||||
<input type="hidden" name="fraction[]" value="1.0" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("tolerance", "quiz"); ?>:</b></td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<input align="left" type="text" id="tolerance0" name="tolerance[]" size="15" value="<?php p($answers[0]->tolerance) ?>" alt="<?php print_string("tolerance", "quiz"); ?>" />±
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("tolerancetype", "quiz"); ?>:</b></td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<?php choose_from_menu($qtypeobj->tolerance_types(),
|
||||
'tolerancetype[]', $answers[0]->tolerancetype, false); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("correctanswershows", "quiz"); ?>:</b></td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<?php choose_from_menu(array('0' => ' 0 ',
|
||||
'1' => ' 1 ', '2' => ' 2 ', '3' => ' 3 ',
|
||||
'4' => ' 4 ', '5' => ' 5 ', '6' => ' 6 ',
|
||||
@ -109,13 +109,13 @@
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("feedback", "quiz") ?>:</b></td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<textarea name="feedback[]" rows="2" cols="50"><?php p($answers[0]->feedback) ?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("unit", "quiz") ?>:</b></td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<input type="hidden" name="multiplier[]" value="1.0" />
|
||||
<input align="left" type="text" id="defaultunit" name="unit[]"
|
||||
size="5" value="<?php p($units[0]->unit) ?>"
|
||||
@ -124,9 +124,9 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td></td>
|
||||
<td align="left"></td>
|
||||
<td align="left"><b><?php print_string("alternativeunits", "quiz") ?>:</b></td>
|
||||
<td></td>
|
||||
<td align="left"></td>
|
||||
</tr>
|
||||
<?php
|
||||
for ($i=1; $i<count($units); $i++) {
|
||||
|
@ -3,13 +3,13 @@
|
||||
<table cellpadding="5">
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("category", "quiz") ?>:</b></td>
|
||||
<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>
|
||||
<td align="left">
|
||||
<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>
|
||||
@ -29,7 +29,7 @@
|
||||
?>
|
||||
</font>
|
||||
</td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<?php if (isset($err["questiontext"])) {
|
||||
formerr($err["questiontext"]);
|
||||
echo "<br />";
|
||||
@ -53,7 +53,7 @@
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("imagedisplay", "quiz") ?>:</b></td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<?php if (empty($images)) {
|
||||
print_string("noimagesyet");
|
||||
} else {
|
||||
|
@ -3,13 +3,13 @@
|
||||
<table cellpadding="5">
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("category", "quiz") ?>:</b></td>
|
||||
<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>
|
||||
<td align="left">
|
||||
<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>
|
||||
@ -29,7 +29,7 @@
|
||||
?>
|
||||
</font>
|
||||
</td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<?php if (isset($err["questiontext"])) {
|
||||
formerr($err["questiontext"]);
|
||||
echo "<br />";
|
||||
@ -53,7 +53,7 @@
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("imagedisplay", "quiz") ?>:</b></td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<?php if (empty($images)) {
|
||||
print_string("noimagesyet");
|
||||
} else {
|
||||
@ -64,7 +64,7 @@
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("penaltyfactor", "quiz") ?>:</b></td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<input type="text" name="penalty" size="3" value="<?php p($question->penalty) ?>" alt="<?php print_string("penaltyfactor", "quiz") ?>" />
|
||||
<?php helpbutton('penalty', get_string('penalty', 'quiz'), 'quiz'); ?>
|
||||
<?php if (isset($err["penalty"])) formerr($err["penalty"]); ?>
|
||||
@ -72,7 +72,7 @@
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("choices", "quiz") ?></b>:</td>
|
||||
<td><?php print_string("filloutthreequestions", "quiz") ?>
|
||||
<td align="left"><?php print_string("filloutthreequestions", "quiz") ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
@ -80,7 +80,7 @@
|
||||
?>
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php echo get_string("question", "quiz")." $i"; ?> :</b></td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<textarea name="subquestions[]" rows="5" cols="50"><?php p($subquestions[$i-1]) ?></textarea>
|
||||
<br />
|
||||
<?php echo get_string("matchanswer", "quiz")." $i"; ?>
|
||||
|
@ -3,20 +3,20 @@
|
||||
<table cellpadding="5">
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("category", "quiz") ?>:</b></td>
|
||||
<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>
|
||||
<td align="left">
|
||||
<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("question", "quiz") ?>:</b></td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<?php if (isset($err["questiontext"])) {
|
||||
formerr($err["questiontext"]);
|
||||
echo "<br />";
|
||||
@ -32,7 +32,7 @@
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("imagedisplay", "quiz") ?>:</b></td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<?php if (empty($images)) {
|
||||
print_string("noimagesyet");
|
||||
} else {
|
||||
@ -43,7 +43,7 @@
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("penaltyfactor", "quiz") ?>:</b></td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<input type="text" name="penalty" size="3" value="<?php p($question->penalty) ?>" alt="<?php print_string("penaltyfactor", "quiz") ?>" />
|
||||
<?php helpbutton('penalty', get_string('penalty', 'quiz'), 'quiz'); ?>
|
||||
<?php if (isset($err["penalty"])) formerr($err["penalty"]); ?>
|
||||
|
@ -9,14 +9,14 @@
|
||||
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("category", "quiz") ?>:</b></td>
|
||||
<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>
|
||||
<td align="left">
|
||||
<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>
|
||||
@ -34,7 +34,7 @@
|
||||
?>
|
||||
</font>
|
||||
</td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<?php
|
||||
if (isset($err["questiontext"])) {
|
||||
formerr($err["questiontext"]);
|
||||
@ -60,7 +60,7 @@
|
||||
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("imagedisplay", "quiz") ?>:</b></td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<?php
|
||||
if (empty($images)) {
|
||||
print_string("noimagesyet");
|
||||
@ -72,7 +72,7 @@
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("penaltyfactor", "quiz") ?>:</b></td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<input type="text" name="penalty" size="3" value="<?php p($question->penalty) ?>" alt="<?php print_string("penaltyfactor", "quiz") ?>" />
|
||||
<?php helpbutton('penalty', get_string('penalty', 'quiz'), 'quiz'); ?>
|
||||
<?php if (isset($err["penalty"])) formerr($err["penalty"]); ?>
|
||||
@ -80,7 +80,7 @@
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("answerhowmany", "quiz") ?>:</b></td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<?php
|
||||
$menu[0] = get_string("answersingleno", "quiz");
|
||||
$menu[1] = get_string("answersingleyes", "quiz");
|
||||
@ -92,7 +92,7 @@
|
||||
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("choices", "quiz") ?></b>:</td>
|
||||
<td><?php print_string("fillouttwochoices", "quiz") ?></td>
|
||||
<td align="left"><?php print_string("fillouttwochoices", "quiz") ?></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
@ -106,7 +106,7 @@
|
||||
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php echo get_string("choice", "quiz")." $i"; ?>:</b></td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<input type="text" name="answer[]" size="50" value="<?php p($answers[$i-1]->answer) ?>" alt="<?php echo get_string("choice", "quiz")." $i"; ?>"/>
|
||||
<?php
|
||||
print_string("grade");
|
||||
@ -119,7 +119,7 @@
|
||||
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("feedback", "quiz") ?>:</b></td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<textarea name="feedback[]" rows="2" cols="50"><?php p($answers[$i-1]->feedback) ?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -3,13 +3,13 @@
|
||||
<table cellpadding="5">
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("category", "quiz") ?>:</b></td>
|
||||
<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>
|
||||
<td align="left">
|
||||
<input type="text" name="name" size="50" value="<?php p($question->name) ?>" alt="<?php print_string("questionname", "quiz") ?>" />
|
||||
<?php if (isset($err["name"])) formerr($err["name"]); ?>
|
||||
</td>
|
||||
@ -29,7 +29,7 @@
|
||||
?>
|
||||
</font>
|
||||
</td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<?php if (isset($err["questiontext"])) {
|
||||
formerr($err["questiontext"]);
|
||||
echo "<br />";
|
||||
@ -55,7 +55,7 @@
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("imagedisplay", "quiz") ?>:</b></td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<?php if (empty($images)) {
|
||||
print_string("noimagesyet");
|
||||
} else {
|
||||
@ -66,7 +66,7 @@
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("penaltyfactor", "quiz") ?>:</b></td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<input type="text" name="penalty" size="3" value="<?php p($question->penalty) ?>" alt="<?php print_string("penaltyfactor", "quiz") ?>" />
|
||||
<?php helpbutton('penalty', get_string('penalty', 'quiz'), 'quiz'); ?>
|
||||
<?php if (isset($err["penalty"])) formerr($err["penalty"]); ?>
|
||||
@ -74,26 +74,26 @@
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("correctanswer", "quiz") ?>:</b></td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<input align="left" type="text" id="correct0" name="answer[]" size="10" value="<?php p($answer->answer) ?>" alt="<?php print_string("correctanswer", "quiz") ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("acceptederror", "quiz"); ?>:</b></td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<input align="left" type="text" id="acceptederror0" name="tolerance[]" size="10" value="<?php p($tolerance); ?>" alt="<?php print_string("acceptederror", "quiz"); ?>" />±
|
||||
<input type="hidden" name="fraction[]" value="1" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("feedback", "quiz") ?>:</b></td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<textarea name="feedback[]" rows="2" cols="50"><?php p($answer->feedback); ?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("unit", "quiz") ?>:</b></td>
|
||||
<td><?php
|
||||
<td align="left"><?php
|
||||
if (isset($units[0]) && 1.0 === (float)$units[0]->multiplier) {
|
||||
$unit = $units[0]->unit;
|
||||
} else {
|
||||
|
@ -3,13 +3,13 @@
|
||||
<table cellpadding="5">
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("category", "quiz") ?>:</b></td>
|
||||
<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>
|
||||
<td align="left">
|
||||
<?php if (empty($question->name)) {
|
||||
$question->name = get_string("random", "quiz");
|
||||
} ?>
|
||||
@ -19,7 +19,7 @@
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("recurse", "quiz") ?>:</b></td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<?php if (!isset($question->questiontext)) {
|
||||
$question->questiontext = "0";
|
||||
} ?>
|
||||
|
@ -3,14 +3,14 @@
|
||||
<table cellpadding="5">
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("category", "quiz") ?>:</b></td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<?php echo $categories[$question->category]; ?>
|
||||
<input type="hidden" name="category" value="<?php echo "$question->category"; ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("questionname", "quiz") ?>:</b></td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<?php
|
||||
if (empty($question->name)) {
|
||||
$question->name = get_string("randomsamatch", "quiz");
|
||||
@ -33,7 +33,7 @@
|
||||
?>
|
||||
</font>
|
||||
</td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<?php if (isset($err["questiontext"])) {
|
||||
formerr($err["questiontext"]);
|
||||
echo "<br />";
|
||||
@ -60,7 +60,7 @@
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("penaltyfactor", "quiz") ?>:</b></td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<input type="text" name="penalty" size="3" value="<?php p($question->penalty) ?>" alt="<?php print_string("penaltyfactor", "quiz") ?>" />
|
||||
<?php helpbutton('penalty', get_string('penalty', 'quiz'), 'quiz'); ?>
|
||||
<?php if (isset($err["penalty"])) formerr($err["penalty"]); ?>
|
||||
@ -68,7 +68,7 @@
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("randomsamatchnumber", "quiz") ?>:</b></td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<?php
|
||||
if ($numberavailable < 2) {
|
||||
echo get_string('createfirst', 'quiz');
|
||||
|
@ -3,14 +3,14 @@
|
||||
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string('category', 'quiz'); ?>:</b></td>
|
||||
<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>
|
||||
<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" />
|
||||
@ -26,7 +26,7 @@
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string('itemsource', 'quiz'); ?>:</b>
|
||||
</td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<?php
|
||||
print_textarea(false, 20, 60, 630, 300, "source", $question->options->source);
|
||||
echo "<br />\n";
|
||||
@ -40,7 +40,7 @@
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string('itemsourceformat', 'quiz'); ?></b>
|
||||
</td>
|
||||
<td><input name="format" type="text" size="50" maxLength="255" value="<?php p($question->options->format); ?>" />
|
||||
<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']);
|
||||
|
@ -3,13 +3,13 @@
|
||||
<table cellpadding="5">
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("category", "quiz") ?>:</b></td>
|
||||
<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>
|
||||
<td align="left">
|
||||
<input type="text" name="name" size="50" value="<?php p($question->name) ?>" alt="<?php print_string("questionname", "quiz") ?>" />
|
||||
<?php if (isset($err["name"])) formerr($err["name"]); ?>
|
||||
</td>
|
||||
@ -29,7 +29,7 @@
|
||||
?>
|
||||
</font>
|
||||
</td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<?php if (isset($err["questiontext"])) {
|
||||
formerr($err["questiontext"]);
|
||||
echo "<br />";
|
||||
@ -53,7 +53,7 @@
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("imagedisplay", "quiz") ?>:</b></td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<?php if (empty($images)) {
|
||||
print_string("noimagesyet");
|
||||
} else {
|
||||
@ -64,7 +64,7 @@
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("casesensitive", "quiz") ?>:</b></td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<?php
|
||||
unset($menu);
|
||||
$menu[0] = get_string("caseno", "quiz");
|
||||
@ -75,7 +75,7 @@
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("penaltyfactor", "quiz") ?>:</b></td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<input type="text" name="penalty" size="3" value="<?php p($question->penalty) ?>" alt="<?php print_string("penaltyfactor", "quiz") ?>" />
|
||||
<?php helpbutton('penalty', get_string('penalty', 'quiz'), 'quiz'); ?>
|
||||
<?php if (isset($err["penalty"])) formerr($err["penalty"]); ?>
|
||||
@ -83,7 +83,7 @@
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("correctanswers", "quiz") ?></b>:</td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<?php print_string("filloutoneanswer", "quiz") ?>
|
||||
</td>
|
||||
</tr>
|
||||
@ -92,7 +92,7 @@
|
||||
?>
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php echo get_string("answer", "quiz")." $i"; ?>:</b></td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<?php
|
||||
if (empty($answers[$i-1]->answer)) {
|
||||
$answertext = '';
|
||||
@ -113,7 +113,7 @@
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("feedback", "quiz") ?>:</b></td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<textarea name="feedback[]" rows="2" cols="50"><?php p($feedbacktext) ?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -3,13 +3,13 @@
|
||||
<table cellpadding="5">
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("category", "quiz") ?>:</b></td>
|
||||
<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>
|
||||
<td align="left">
|
||||
<input type="text" name="name" size="50" value="<?php p($question->name) ?>" alt="<?php print_string("questionname", "quiz") ?>"/>
|
||||
<?php if (isset($err["name"])) formerr($err["name"]); ?>
|
||||
</td>
|
||||
@ -29,7 +29,7 @@
|
||||
?>
|
||||
</font>
|
||||
</td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<?php if (isset($err["questiontext"])) {
|
||||
formerr($err["questiontext"]);
|
||||
echo "<br />";
|
||||
@ -53,7 +53,7 @@
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("imagedisplay", "quiz") ?>:</b></td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<?php if (empty($images)) {
|
||||
print_string("noimagesyet");
|
||||
} else {
|
||||
@ -64,7 +64,7 @@
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("penaltyfactor", "quiz") ?>:</b></td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<input type="text" name="penalty" size="3" value="<?php p($question->penalty) ?>" alt="<?php print_string("penaltyfactor", "quiz") ?>" />
|
||||
<?php helpbutton('penalty', get_string('penalty', 'quiz'), 'quiz'); ?>
|
||||
<?php if (isset($err["penalty"])) formerr($err["penalty"]); ?>
|
||||
@ -72,7 +72,7 @@
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("correctanswer", "quiz") ?>:</b></td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<?php $menu[0] = get_string("false", "quiz");
|
||||
$menu[1] = get_string("true", "quiz");
|
||||
choose_from_menu($menu, "answer", "$question->answer", ""); ?>
|
||||
@ -81,13 +81,13 @@
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("feedback", "quiz") ?> (<?php print_string("true", "quiz") ?>):</b></td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<textarea name="feedbacktrue" rows="2" cols="50" wrap="virtual"><?php p($true->feedback) ?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("feedback", "quiz") ?> (<?php print_string("false", "quiz") ?>):</b></td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<textarea name="feedbackfalse" rows="2" cols="50"><?php p($false->feedback) ?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -8,7 +8,7 @@
|
||||
<tr><td align="right"><?php print_string("reviewclosed", "quiz") ?>:</td></tr>
|
||||
</table>
|
||||
</td>
|
||||
<td>
|
||||
<td align="left">
|
||||
<table>
|
||||
<tr valign="top">
|
||||
<td align="center"><?php print_string('responses', 'quiz') ?></td>
|
||||
|
Loading…
x
Reference in New Issue
Block a user