diff --git a/calendar/inc/class.calendar_ui.inc.php b/calendar/inc/class.calendar_ui.inc.php
index f146332d76..10183541b6 100644
--- a/calendar/inc/class.calendar_ui.inc.php
+++ b/calendar/inc/class.calendar_ui.inc.php
@@ -447,6 +447,10 @@ class calendar_ui
{
$icons[] = html::image('calendar','alarm',lang('alarm'));
}
+ if($event['participants'][$this->user][0] == 'U')
+ {
+ $icons[] = html::image('calendar','cnr-pending',lang('Needs action'));
+ }
return $icons;
}
diff --git a/calendar/inc/class.calendar_uiviews.inc.php b/calendar/inc/class.calendar_uiviews.inc.php
index f24209807a..4a496892ae 100644
--- a/calendar/inc/class.calendar_uiviews.inc.php
+++ b/calendar/inc/class.calendar_uiviews.inc.php
@@ -1175,6 +1175,30 @@ class calendar_uiviews extends calendar_ui
$bodybgcolor1 = $this->brighter($headerbgcolor,$headerbgcolor == '#808080' ? 100 : 170);
$bodybgcolor2 = $this->brighter($headerbgcolor,220);
+ // mark event as invitation, by NOT using category based backgrond color, but plain white
+ if ($event['participants'][$this->user][0] == 'U')
+ {
+ $bodybgcolor1 = $bodybgcolor2 = 'white';
+ }
+
+ // get status class of event: calEventAllAccepted, calEventAllAnswered or calEventSomeUnknown
+ $status_class = 'calEventAllAccepted';
+ foreach($event['participants'] as $id => $status)
+ {
+ calendar_so::split_status($status,$quantity,$role);
+
+ switch ($status)
+ {
+ case 'A':
+ break;
+ case 'U':
+ $status_class = 'calEventSomeUnknown';
+ break 2; // break foreach
+ default:
+ $status_class = 'calEventAllAnswered';
+ break;
+ }
+ }
// seperate each participant types
$part_array = array();
if ($this->allowEdit)
@@ -1238,6 +1262,7 @@ class calendar_uiviews extends calendar_ui
'&width='.$width.') repeat-y '.$bodybgcolor2),
'Small' => $small ? 'Small' : '', // to use in css class-names
'indent' => $indent."\t",
+ 'status_class' => $status_class,
));
/* not used at the moment
foreach(array(
@@ -1260,7 +1285,7 @@ class calendar_uiviews extends calendar_ui
$view_link = $GLOBALS['egw']->link('/index.php',array('menuaction'=>'calendar.calendar_uiforms.edit','cal_id'=>$event['id'],'date'=>$this->bo->date2string($event['start'])));
- if ($event['recur_type']!= MCAL_RECUR_NONE)
+ if ($event['recur_type'] != MCAL_RECUR_NONE)
{
$view_link_confirm_abort = $GLOBALS['egw']->link('/index.php',array('menuaction'=>'calendar.calendar_uiforms.edit','cal_id'=>$event['id'],'date'=>$this->bo->date2string($event['start']),'exception'=>1));
$view_link_confirm_text=lang('do you want to edit serialevent als exception? - Ok = Edit Exception, Abort = Edit Serial');
@@ -1271,8 +1296,6 @@ class calendar_uiviews extends calendar_ui
$popup = ($is_private || ! $this->allowEdit) ? '' : ' onclick="'.$this->popup($view_link).'; return false;"';
}
//_debug_array($event);
- //echo $event['id']."?
";
-
if ($return_array)
{
@@ -1310,14 +1333,14 @@ class calendar_uiviews extends calendar_ui
$draggableID = 'drag_'.$event['id'].'_O'.$event['owner'].'_C'.$owner;
- $html = $indent.'