]> git.mjollnir.org Git - moodle.git/commitdiff
Some tidying up of the code to display the comment editing page
authormoodler <moodler>
Fri, 17 Oct 2003 08:49:00 +0000 (08:49 +0000)
committermoodler <moodler>
Fri, 17 Oct 2003 08:49:00 +0000 (08:49 +0000)
mod/glossary/comment.php

index 026220a58637f76c732e09ca6ad51b08952ce473..4c1024d8a5963ab37f0e4309bb71335cab2df4bc 100644 (file)
 /// Info boxes
 
     if ( $glossary->intro ) {
-           print_simple_box_start("center","70%");
-        echo '<p>';
-        echo $glossary->intro;
-        echo '</p>';
-        print_simple_box_end();
+           print_simple_box(format_text($glossary->intro), "center","70%");
+        echo "<br />";
     }
 
-    echo "<p align=center>";
-    echo "<table class=\"generalbox\" width=\"70%\" align=\"center\" border=\"0\" cellpadding=\"5\" cellspacing=\"0\">";
-    echo "<tr bgcolor=$THEME->cellheading2><td align=center>";
-        echo "<b>$entry->concept</b>";
-    echo "</td></tr>";
-    echo "<tr><TD WIDTH=100% BGCOLOR=\"#FFFFFF\">";
-    if ($entry->attachment) {
-          $entry->course = $course->id;
-          echo "<table border=0 align=right><tr><td>";
-          echo glossary_print_attachments($entry,"html");
-          echo "</td></tr></table>";
-    }
-    echo format_text($entry->definition, $entry->format);
-    echo "</td>";
-    echo "</TR></table><p align=center>";
+    glossary_print_entry($course, $cm, $glossary, $entry);
+
+    echo "<center>";
+    echo "<br />";
 
 /// Input section
     if ( $action == "delete" ) {
     }
 /// Finish the page
     print_footer($course);
-?>
\ No newline at end of file
+?>