]> git.mjollnir.org Git - moodle.git/commitdiff
Cleaned up output to user. Still needs a lot of work.
authormark-nielsen <mark-nielsen>
Sat, 9 Sep 2006 02:10:40 +0000 (02:10 +0000)
committermark-nielsen <mark-nielsen>
Sat, 9 Sep 2006 02:10:40 +0000 (02:10 +0000)
mod/lesson/action/continue.html
mod/lesson/action/continue.php

index 0a3f50a62c4f902637d2566be84a2349d8ec746c..e1743b3a2e9cf592766e323944901cc33d9c5f40 100644 (file)
@@ -25,7 +25,7 @@ if ($lesson->displayleft) {
             </div>
             </div>
         </td>
-        <td align="center" width="100%">';
+        <td align="center" width="100%">
         <a name="maincontent" id="maincontent" title="<?php print_string('anchortitle', 'lesson') ?>"></a>
 <?php 
     }  // End if($firstpageid = get...
@@ -51,7 +51,7 @@ if ($lesson->displayleft) {
                     </script>
                 </td>
             </tr>
-        </table>";
+        </table>
         <?php print_simple_box_end(); ?>
         <br /><br /><br /><br />
 <?php } //end if($lesson->timed) {
@@ -66,6 +66,7 @@ if ($lesson->ongoing) {
         <td><?php echo $feedback ?></td>
     </tr>
 </table>
+
 <form name="pageform" method ="post" action="view.php">
 <input type="hidden" name="id" value="<?php echo $cm->id ?>" />
 <input type="hidden" name="action" value="navigation" />
index 1ae0b1c2ee7f63126c58511ef36d4e2283106cfe..35b7a2467104cc47fa2e0d25babc31dcc45cdc67 100644 (file)
                 }
                 $options = new stdClass;
                 $options->noclean = true;
-                $options->para = false;
-                $feedback = format_text($page->contents, FORMAT_MOODLE, $options);
+                $options->para = true;
+                $feedback = print_simple_box(format_text($page->contents, FORMAT_MOODLE, $options), 'center', '', '', 5, 'generalbox', '', true);
                 $feedback .= '<em>'.get_string("youranswer", "lesson").'</em> : '.format_text($studentanswer, FORMAT_MOODLE, $options).
                                  "<div class=\"$class\">".format_text($response, FORMAT_MOODLE, $options).'</div>';
             }