From 02e44e7cf40139d6cdcf4a6219213745c08a66a8 Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 26 May 2003 07:54:34 +0000 Subject: [PATCH] Print better loggedin info at the top of the page --- user/index.php | 6 ++++-- user/view.php | 8 ++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/user/index.php b/user/index.php index aeed828c4e..857ac2f319 100644 --- a/user/index.php +++ b/user/index.php @@ -19,13 +19,15 @@ add_to_log($course->id, "user", "view all", "index.php?id=$course->id", ""); + $loggedinas = "

".user_login_string($course, $USER)."

"; + if ($course->category) { print_header("$course->shortname: ".get_string("participants"), "$course->fullname", "id>$course->shortname -> ". - get_string("participants"), ""); + get_string("participants"), "", "", true, " ", $loggedinas); } else { print_header("$course->shortname: ".get_string("participants"), "$course->fullname", - get_string("participants"), ""); + get_string("participants"), "", "", true, " ", $loggedinas); } $string->email = get_string("email"); diff --git a/user/view.php b/user/view.php index 369e9d901f..8804d584ee 100644 --- a/user/view.php +++ b/user/view.php @@ -29,12 +29,16 @@ $personalprofile = get_string("personalprofile"); $participants = get_string("participants"); + $loggedinas = "

".user_login_string($course, $USER)."

"; + if ($course->category) { print_header("$personalprofile: $fullname", "$personalprofile: $fullname", "id\">$course->shortname -> - id\">$participants -> $fullname", ""); + id\">$participants -> $fullname", + "", "", true, " ", $loggedinas); } else { - print_header("$course->fullname: $personalprofile: $fullname", "$course->fullname", "$fullname", ""); + print_header("$course->fullname: $personalprofile: $fullname", "$course->fullname", + "$fullname", "", "", true, " ", $loggedinas); } if ($course->category and ! isguest() ) { -- 2.39.5