]> git.mjollnir.org Git - moodle.git/commitdiff
Add some formatting to the answers
authormoodler <moodler>
Mon, 16 Feb 2004 05:59:20 +0000 (05:59 +0000)
committermoodler <moodler>
Mon, 16 Feb 2004 05:59:20 +0000 (05:59 +0000)
mod/lesson/view.php

index a124986c1c76c5868800d27cb4034261ecc6fbf0..3c8fa41a03cb2a5e234b56f0361a7dc3cbfcf8b2 100644 (file)
                 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";