]> git.mjollnir.org Git - moodle.git/commitdiff
No changes, just rearranges
authormoodler <moodler>
Sat, 26 Apr 2003 12:38:53 +0000 (12:38 +0000)
committermoodler <moodler>
Sat, 26 Apr 2003 12:38:53 +0000 (12:38 +0000)
mod/journal/index.php

index ed63bd8763aeef77db311aa9c7ef8b1b7220b75d..9504d388795907719cba7af453fc377d7fdb5a55 100644 (file)
@@ -49,8 +49,6 @@
 
     foreach ($journals as $journal) {
 
-        $entrytext = get_field("journal_entries", "text", "userid", $USER->id, "journal", $journal->id);
-
         $journal->timestart  = $course->startdate + (($journal->section - 1) * 608400);
         if (!empty($journal->daysopen)) {
             $journal->timefinish = $journal->timestart + (3600 * 24 * $journal->daysopen);
         }
         $journalopen = ($journal->timestart < $timenow && $timenow < $journal->timefinish);
 
+        $entrytext = get_field("journal_entries", "text", "userid", $USER->id, "journal", $journal->id);
+
+        $text = text_to_html($entrytext)."<p align=right><a href=\"view.php?id=$journal->coursemodule\">";
 
-        $text = text_to_html($entrytext)."<P ALIGN=right><A HREF=\"view.php?id=$journal->coursemodule\">";
         if ($journalopen) {
-            $text .= "$stredit</A></P>";
+            $text .= "$stredit</a></p>";
         } else {
-            $text .= "$strview</A></P>";
+            $text .= "$strview</a></p>";
         }
         if (!empty($journal->section)) {
             $section = "$journal->section";
@@ -81,7 +81,7 @@
         }
     }
 
-    echo "<BR>";
+    echo "<br />";
 
     print_table($table);