[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: calendar/inc class.uicalendar.inc.php,1.66.2.55
From: |
Bettina Gille <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: calendar/inc class.uicalendar.inc.php,1.66.2.55.2.5,1.66.2.55.2.6 |
Date: |
Wed, 30 Apr 2003 22:59:01 -0400 |
Update of /cvsroot/phpgroupware/calendar/inc
In directory subversions:/tmp/cvs-serv15196
Modified Files:
Tag: Version-0_9_16-branch
class.uicalendar.inc.php
Log Message:
added stuff for accounts popup
Index: class.uicalendar.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/calendar/inc/class.uicalendar.inc.php,v
retrieving revision 1.66.2.55.2.5
retrieving revision 1.66.2.55.2.6
diff -C2 -r1.66.2.55.2.5 -r1.66.2.55.2.6
*** class.uicalendar.inc.php 30 Apr 2003 00:03:43 -0000 1.66.2.55.2.5
--- class.uicalendar.inc.php 1 May 2003 02:58:58 -0000 1.66.2.55.2.6
***************
*** 83,87 ****
'header' => True,
'footer' => True,
! 'css' => True
);
--- 83,88 ----
'header' => True,
'footer' => True,
! 'css' => True,
! 'accounts_popup' => True
);
***************
*** 3796,3799 ****
--- 3797,3805 ----
}
+ function accounts_popup()
+ {
+ $GLOBALS['phpgw']->accounts->accounts_popup('calendar');
+ }
+
function edit_form($param)
{
***************
*** 3834,3837 ****
--- 3840,3844 ----
'bg_color' =>
$this->theme['bg_text'],
'action_url' =>
$GLOBALS['phpgw']->link('/index.php',Array('menuaction'=>'calendar.bocalendar.update')),
+ 'accounts_link' =>
$GLOBALS['phpgw']->link('/index.php','menuaction=calendar.uicalendar.accounts_popup'),
'common_hidden' => '<input type="hidden"
name="cal[id]" value="'.$event['id'].'">'."\n"
. '<input type="hidden" name="cal[owner]" value="'.$event['owner'].'">'."\n"
***************
*** 3953,3968 ****
@asort($users);
@reset($users);
! while (list($id,$user_array) = each($users))
{
! if($id != intval($event['owner']))
! {
! $str .= ' <option value="' .
$id.$event['participants'][$id] . '"'.($event['participants'][$id]?'
selected':'').'>('.$user_array['type'].')
'.$user_array['name'].'</option>'."\n";
! }
! }
! $var[] = Array(
! 'field' => lang('Participants'),
! 'data' => "\n".' <select
name="participants[]" multiple size="5">'."\n".$str.' </select>'
! );
// I Participate
if((($event['id'] > 0) &&
isset($event['participants'][$event['owner']])) || !$event['id'])
--- 3960,4000 ----
@asort($users);
@reset($users);
!
!
switch($GLOBALS['phpgw_info']['server']['account_selection'])
{
! case 'popup':
! while
(is_array($event['participants']) && list($bla,) = each($event['participants']))
! {
! if($bla !=
intval($this->bo->owner))
! //if($id !=
intval($event['owner']))
! {
! $str .=
'<option value="' . $bla . '"'.($event['participants'][$bla]?'
selected':'').'>('.$GLOBALS['phpgw']->accounts->get_type($bla)
!
.') ' . $GLOBALS['phpgw']->common->grab_owner_name($bla) . '</option>' . "\n";
+ //$str .= '
<option value="' . $id.$event['participants'][$id] .
'"'.($event['participants'][$id]?' selected':'').'>('.$user_array['type'].')
'.$user_array['name'].'</option>'."\n";
+ }
+ }
+ $var[] = array
+ (
+ 'field' => '<input
type="button" value="' . lang('Participants') . '"
onClick="accounts_popup();">' . "\n"
+ .
'<input type="hidden" name="accountid" value="' . $accountid . '">',
+ 'data' => "\n".'
<select name="participants[]" multiple size="19">' . "\n" . $str . '</select>'
+ );
+ break;
+ default:
+ while (list($id,$user_array) =
each($users))
+ {
+ if($id !=
intval($event['owner']))
+ {
+ $str .= '
<option value="' . $id.$event['participants'][$id] .
'"'.($event['participants'][$id]?' selected':'').'>('.$user_array['type'].')
'.$user_array['name'].'</option>'."\n";
+ }
+ }
+ $var[] = array
+ (
+ 'field' =>
lang('Participants'),
+ 'data' => "\n".'
<select name="participants[]" multiple size="7">'."\n".$str.' </select>'
+ );
+ break;
+ }
// I Participate
if((($event['id'] > 0) &&
isset($event['participants'][$event['owner']])) || !$event['id'])
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: calendar/inc class.uicalendar.inc.php,1.66.2.55.2.5,1.66.2.55.2.6,
Bettina Gille <address@hidden> <=