This is the final version.

This commit is contained in:
skeeter 2001-03-18 18:32:22 +00:00
parent ecb54c6800
commit a497895d1a

View File

@ -236,15 +236,12 @@
// Participants // Participants
$accounts = $phpgw->acl->get_ids_for_location('run',1,'calendar'); $accounts = $phpgw->acl->get_ids_for_location('run',1,'calendar');
echo '<!-- count($accounts) = '.count($accounts).' -->'."\n";
$users = Array(); $users = Array();
for($i=0;$i<count($accounts);$i++) for($i=0;$i<count($accounts);$i++)
{ {
echo '<!-- account_id '.$accounts[$i].' should be valid -->'."\n";
if(intval($accounts[$i]) != $owner && !isset($users[$accounts[$i]])) if(intval($accounts[$i]) != $owner && !isset($users[$accounts[$i]]))
{ {
$users[intval($accounts[$i])] = $phpgw->common->grab_owner_name(intval($accounts[$i])); $users[intval($accounts[$i])] = $phpgw->common->grab_owner_name(intval($accounts[$i]));
echo '<!-- Setting account_id '.intval($accounts[$i]).' to '.$users[intval($accounts[$i])].' -->'."\n";
if($phpgw->accounts->get_type(intval($accounts[$i])) == 'g') if($phpgw->accounts->get_type(intval($accounts[$i])) == 'g')
{ {
$group_members = $phpgw->acl->get_ids_for_location(intval($accounts[$i]),1,'phpgw_group'); $group_members = $phpgw->acl->get_ids_for_location(intval($accounts[$i]),1,'phpgw_group');
@ -262,7 +259,6 @@
} }
} }
echo '<!-- count($users) = '.count($users).' -->'."\n";
$str = "\n".' <select name="participants[]" multiple size="5">'."\n"; $str = "\n".' <select name="participants[]" multiple size="5">'."\n";
for ($l=0;$l<count($event->participants);$l++) for ($l=0;$l<count($event->participants);$l++)
{ {
@ -277,7 +273,6 @@
$userid = intval($user[0]); $userid = intval($user[0]);
echo '<!-- USERID = '.$userid.' -->'."\n"; echo '<!-- USERID = '.$userid.' -->'."\n";
if($userid != $owner && $phpgw->accounts->exists($userid) == True) if($userid != $owner && $phpgw->accounts->exists($userid) == True)
// if($userid != $owner)
{ {
$str .= ' <option value="' . $userid . '"'.$parts[$userid].'>('.$phpgw->accounts->get_type($userid).') '.$user[1].'</option>'."\n"; $str .= ' <option value="' . $userid . '"'.$parts[$userid].'>('.$phpgw->accounts->get_type($userid).') '.$user[1].'</option>'."\n";
} }