Print better loggedin info at the top of the page

This commit is contained in:
moodler 2003-05-26 07:54:34 +00:00
parent 8df45f47bd
commit 02e44e7cf4
2 changed files with 10 additions and 4 deletions

View file

@ -19,13 +19,15 @@
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");

View file

@ -29,12 +29,16 @@
$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() ) {