From 3f6f7ff53991df9b9707c5cafbebae6ba22794a8 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 26 Feb 2014 14:54:06 +0000 Subject: [PATCH] Add calendar day view navigator for multiple selected users view --- calendar/inc/class.calendar_uiviews.inc.php | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/calendar/inc/class.calendar_uiviews.inc.php b/calendar/inc/class.calendar_uiviews.inc.php index 4cabae2ee0..91b1998584 100644 --- a/calendar/inc/class.calendar_uiviews.inc.php +++ b/calendar/inc/class.calendar_uiviews.inc.php @@ -984,8 +984,21 @@ class calendar_uiviews extends calendar_ui unset($holidays); $cols[0] =& $this->timeGridWidget($this->tagWholeDayOnTop($dayEvents),$this->cal_prefs['interval'],450,'','',$owner); - - + + if (count($users) > 1) + { + $navHeader = '
' + .html::a_href(html::image('phpgwapi','left',lang('previous'),$options=' alt="<<"'),array( + 'menuaction' => $this->view_menuaction, + 'date' => date('Ymd',$this->first-1), + )). '  '.$this->bo->long_date($this->first,0,false,true); + + $navHeader = $navHeader.'  '.html::a_href(html::image('phpgwapi','right',lang('next'),$options=' alt=">>"'),array( + 'menuaction' => $this->view_menuaction, + 'date' => date('Ymd',$this->last+1), + )).'
'; + } + // only show todo's for a single user if (count($users) == 1 && ($todos = $this->get_todos($todo_label)) !== false) { @@ -1010,9 +1023,10 @@ class calendar_uiviews extends calendar_ui } else { + $cols[0] = $navHeader . $cols[0]; echo $cols[0]; } - + } else {