]> git.mjollnir.org Git - moodle.git/commitdiff
Print better loggedin info at the top of the page
authormoodler <moodler>
Mon, 26 May 2003 07:54:34 +0000 (07:54 +0000)
committermoodler <moodler>
Mon, 26 May 2003 07:54:34 +0000 (07:54 +0000)
user/index.php
user/view.php

index aeed828c4efd0b90293f18450173eee443fde78c..857ac2f319ced021ac9897d45c93d10d94fe3e05 100644 (file)
 
     add_to_log($course->id, "user", "view all", "index.php?id=$course->id", "");
 
+    $loggedinas = "<p class=\"logininfo\">".user_login_string($course, $USER)."</p>";
+
     if ($course->category) {
         print_header("$course->shortname: ".get_string("participants"), "$course->fullname",
                      "<A HREF=../course/view.php?id=$course->id>$course->shortname</A> -> ".
-                      get_string("participants"), "");
+                      get_string("participants"), "", "", true, "&nbsp;", $loggedinas);
     } else {
         print_header("$course->shortname: ".get_string("participants"), "$course->fullname", 
-                      get_string("participants"), "");
+                      get_string("participants"), "", "", true, "&nbsp;", $loggedinas);
     }
 
     $string->email       = get_string("email");
index 369e9d901fe5175715dae5b61071593406e5ec28..8804d584ee79d28d737a2740c4ecef47ea26a3b9 100644 (file)
     $personalprofile = get_string("personalprofile");
     $participants = get_string("participants");
 
+    $loggedinas = "<p class=\"logininfo\">".user_login_string($course, $USER)."</p>";
+
     if ($course->category) {
         print_header("$personalprofile: $fullname", "$personalprofile: $fullname", 
                      "<A HREF=\"../course/view.php?id=$course->id\">$course->shortname</A> -> 
-                      <A HREF=\"index.php?id=$course->id\">$participants</A> -> $fullname", "");
+                      <A HREF=\"index.php?id=$course->id\">$participants</A> -> $fullname",
+                      "", "", true, "&nbsp;", $loggedinas);
     } else {
-        print_header("$course->fullname: $personalprofile: $fullname", "$course->fullname", "$fullname", "");
+        print_header("$course->fullname: $personalprofile: $fullname", "$course->fullname", 
+                     "$fullname", "", "", true, "&nbsp;", $loggedinas);
     }
 
     if ($course->category and ! isguest() ) {