mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
This is the final version.
This commit is contained in:
parent
ecb54c6800
commit
a497895d1a
@ -236,15 +236,12 @@
|
||||
|
||||
// Participants
|
||||
$accounts = $phpgw->acl->get_ids_for_location('run',1,'calendar');
|
||||
echo '<!-- count($accounts) = '.count($accounts).' -->'."\n";
|
||||
$users = Array();
|
||||
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]]))
|
||||
{
|
||||
$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')
|
||||
{
|
||||
$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";
|
||||
for ($l=0;$l<count($event->participants);$l++)
|
||||
{
|
||||
@ -277,7 +273,6 @@
|
||||
$userid = intval($user[0]);
|
||||
echo '<!-- USERID = '.$userid.' -->'."\n";
|
||||
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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user