From aa5fb168f01ac015cbe9bca66cb1950660369019 Mon Sep 17 00:00:00 2001 From: tooley Date: Fri, 1 Sep 2000 07:55:24 +0000 Subject: [PATCH] blah blah blah. can you read this. bad joke this is. fixing up the groups to accounts changes. --- calendar/view.php | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/calendar/view.php b/calendar/view.php index 89c1aed253..800fbf6336 100755 --- a/calendar/view.php +++ b/calendar/view.php @@ -16,15 +16,6 @@ $phpgw_flags["currentapp"] = "calendar"; include("../header.inc.php"); - // This will take the loginid and convert it into firstname and lastname. - // This function will be moved out of here someday and be used through out - // the program. - function convert_login_name($db,$l) - { - $db->query("select firstname,lastname from accounts where loginid='$l'"); - $db->next_record(); - return array($db->f("firstname"),$db->f("lastname")); - } function grab_group($db,$id) { @@ -123,12 +114,7 @@ " . lang_common("Created by") . ":\n"; - // Isn't there a function somewhere to do this ?? - list($fn,$ln) = convert_login_name($phpgw->db,$phpgw->db->f(0)); - if ($fn && $ln) - echo "$fn $ln\n"; - else - echo "" . $phpgw->db->f(0) . "\n"; + echo "" . $phpgw_info["user"]["fullname"] . "\n"; ?> : @@ -137,9 +123,12 @@ groups->convert_string_to_names(grab_group($phpgw->db,$id)); + $cal_groups_temp = $phpgw->accounts->read_group_names($id); + for($i = 0; $i < count($cal_groups_temp); $i++) { + $cal_groups .= $cal_groups_temp[$i][1] . "
\n"; + } if ($cal_groups) - echo "" . lang_common("Groups") . ":$cal_groups"; + echo "" . lang_common("Groups") . ":".$cal_groups.""; ?>