From 803b2c76061d6e5154fb411f14f3588d87cbc8ef Mon Sep 17 00:00:00 2001 From: martin Date: Sat, 27 Jul 2002 10:23:45 +0000 Subject: [PATCH] Altered buttons from index and view pages --- user/index.php | 6 ++---- user/view.php | 19 ++++++++++++++++--- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/user/index.php b/user/index.php index e4a6779eab..fa6a8e68cf 100644 --- a/user/index.php +++ b/user/index.php @@ -54,7 +54,7 @@ function print_user($user, $course, $teacherlinks) { - global $COUNTRIES; + global $USER, $COUNTRIES; echo "
"; echo ""; @@ -80,13 +80,11 @@ function print_user($user, $course, $teacherlinks) { if ($teacherlinks) { $timemidnight = usergetmidnight(time()); echo "id&user=$user->id\">".get_string("activity")."
"; - echo "id&user=$user->id&date=$timemidnight\">".get_string("todaylogs")."
"; - echo "id&user=$user->id\">".get_string("alllogs")."
"; echo "id&user=$user->id\">".get_string("unenrol")."
"; if (isstudent($course->id, $user->id)) { echo "id&user=$user->id\">".get_string("loginas")."
"; } - } + } echo "id&course=$course->id\">".get_string("fullprofile")."..."; echo ""; diff --git a/user/view.php b/user/view.php index dd2fe22f45..21704ed0d8 100644 --- a/user/view.php +++ b/user/view.php @@ -116,14 +116,27 @@ echo "
"; // Print other functions - if ($user->id == $USER->id and !isguest() ) { - echo "
"; + echo "
"; + if (isteacher($course->id) or ($user->id == $USER->id and !isguest()) ) { echo ""; - echo "

"; echo "id\">"; + echo "id\">"; echo "shortname)."\">"; echo "

\n"; } + if (isteacher($course->id)) { + echo "

"; + echo "id\">"; + echo "id\">"; + echo ""; + echo "

"; + echo "

"; + echo "id\">"; + echo "id\">"; + echo ""; + echo "

"; + } + echo "\n"; print_user_discussions($course, $user); -- 2.39.5