Add some formatting to the answers

This commit is contained in:
moodler
2004-02-16 05:59:20 +00:00
parent bbcbc0fecc
commit 7b608def7e
+5 -2
View File
@@ -139,12 +139,15 @@
echo "<input type=\"hidden\" name=\"action\" value=\"continue\">\n";
echo "<input type=\"hidden\" name=\"pageid\" value=\"$pageid\">\n";
print_simple_box_start("center");
echo '<table width="100%">';
foreach ($answers as $answer) {
echo "<p><input type=\"radio\" name=\"answerid\" value=\"{$answer->id}\"> \n";
echo "<tr><td><input type=\"radio\" name=\"answerid\" value=\"{$answer->id}\"></td>\n";
echo "<td>\n";
$options->para = false; // no <p></p>
echo format_text(trim($answer->answer), FORMAT_MOODLE, $options);
echo "</p>\n";
echo "</td></tr>\n";
}
echo '</table>';
print_simple_box_end();
echo "<p align=\"center\"><input type=\"submit\" name=\"continue\" value=\"".
get_string("pleasecheckoneanswer", "lesson")."\"></p>\n";