forked from extern/egroupware
This should solve the problem with the matrix view. Also a little format fixing.
This commit is contained in:
parent
7bb5e67739
commit
0ce7166f26
@ -1849,8 +1849,8 @@
|
|||||||
for($k=0;$k<count($this->cached_events[$fulldate]);$k++)
|
for($k=0;$k<count($this->cached_events[$fulldate]);$k++)
|
||||||
{
|
{
|
||||||
$event = $this->cached_events[$fulldate][$k];
|
$event = $this->cached_events[$fulldate][$k];
|
||||||
$eventstart = $this->datetime->localdates($event->datetime);
|
$eventstart = $this->datetime->localdates($this->maketime($event['start']) - $this->datetime->tz_offset);
|
||||||
$eventend = $this->datetime->localdates($event->edatetime);
|
$eventend = $this->datetime->localdates($this->maketime($event['end']) - $this->datetime->tz_offset);
|
||||||
$start = ($eventstart['hour'] * 10000) + ($eventstart['minute'] * 100);
|
$start = ($eventstart['hour'] * 10000) + ($eventstart['minute'] * 100);
|
||||||
$starttemp = $this->splittime("$start",False);
|
$starttemp = $this->splittime("$start",False);
|
||||||
$subminute = 0;
|
$subminute = 0;
|
||||||
|
@ -440,23 +440,23 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
$var = Array(
|
$var = Array(
|
||||||
'printer_friendly' => $printer,
|
'printer_friendly' => $printer,
|
||||||
'bg_text' => $this->theme['bg_text'],
|
'bg_text' => $this->theme['bg_text'],
|
||||||
'small_calendar_prev' => $minical_prev,
|
'small_calendar_prev' => $minical_prev,
|
||||||
'prev_week_link' => $prev_week_link,
|
'prev_week_link' => $prev_week_link,
|
||||||
'small_calendar_this' => $minical_this,
|
'small_calendar_this' => $minical_this,
|
||||||
'week_identifier' => $this->bo->get_week_label(),
|
'week_identifier' => $this->bo->get_week_label(),
|
||||||
'next_week_link' => $next_week_link,
|
'next_week_link' => $next_week_link,
|
||||||
'username' => $GLOBALS['phpgw']->common->grab_owner_name($this->bo->owner),
|
'username' => $GLOBALS['phpgw']->common->grab_owner_name($this->bo->owner),
|
||||||
'small_calendar_next' => $minical_next,
|
'small_calendar_next' => $minical_next,
|
||||||
'week_display' => $this->display_weekly(
|
'week_display' => $this->display_weekly(
|
||||||
Array(
|
Array(
|
||||||
'date' => sprintf("%04d%02d%02d",$this->bo->year,$this->bo->month,$this->bo->day),
|
'date' => sprintf("%04d%02d%02d",$this->bo->year,$this->bo->month,$this->bo->day),
|
||||||
'showyear' => true,
|
'showyear' => true,
|
||||||
'owners' => $this->bo->owner
|
'owners' => $this->bo->owner
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'print' => $print
|
'print' => $print
|
||||||
);
|
);
|
||||||
|
|
||||||
$p = CreateObject('phpgwapi.Template',$this->template_dir);
|
$p = CreateObject('phpgwapi.Template',$this->template_dir);
|
||||||
@ -1599,7 +1599,7 @@
|
|||||||
switch($GLOBALS['HTTP_POST_VARS']['matrixtype'])
|
switch($GLOBALS['HTTP_POST_VARS']['matrixtype'])
|
||||||
{
|
{
|
||||||
case 'free/busy':
|
case 'free/busy':
|
||||||
$freetime = $this->datetime->makegmttime(0,0,0,$this->bo->month,$this->bo->day,$this->bo->year);
|
$freetime = $this->datetime->gmtdate(mktime(0,0,0,$this->bo->month,$this->bo->day,$this->bo->year));
|
||||||
echo $this->timematrix(
|
echo $this->timematrix(
|
||||||
Array(
|
Array(
|
||||||
'date' => $freetime,
|
'date' => $freetime,
|
||||||
@ -2316,11 +2316,11 @@
|
|||||||
$p->set_unknowns('keep');
|
$p->set_unknowns('keep');
|
||||||
|
|
||||||
$p->set_file(
|
$p->set_file(
|
||||||
Array (
|
Array (
|
||||||
'month_header' => 'month_header.tpl',
|
'month_header' => 'month_header.tpl',
|
||||||
'month_day' => 'month_day.tpl'
|
'month_day' => 'month_day.tpl'
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
$p->set_block('month_header','monthly_header','monthly_header');
|
$p->set_block('month_header','monthly_header','monthly_header');
|
||||||
$p->set_block('month_header','month_column','month_column');
|
$p->set_block('month_header','month_column','month_column');
|
||||||
$p->set_block('month_day','month_daily','month_daily');
|
$p->set_block('month_day','month_daily','month_daily');
|
||||||
@ -2430,7 +2430,7 @@
|
|||||||
{
|
{
|
||||||
if($this->debug)
|
if($this->debug)
|
||||||
{
|
{
|
||||||
echo '<!-- datetime:gmtdate = '.$this->datetime->gmtdate.' -->'."\n";
|
echo '<!-- datetime:gmtdate = '.$this->datetime->cv_gmtdate.' -->'."\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->bo->store_to_cache(
|
$this->bo->store_to_cache(
|
||||||
@ -2843,7 +2843,7 @@
|
|||||||
$templates = Array(
|
$templates = Array(
|
||||||
'day_cal' => 'day_cal.tpl'
|
'day_cal' => 'day_cal.tpl'
|
||||||
);
|
);
|
||||||
$p->set_file($templates);
|
$p->set_file($templates);
|
||||||
$p->set_block('day_cal','day','day');
|
$p->set_block('day_cal','day','day');
|
||||||
$p->set_block('day_cal','day_row','day_row');
|
$p->set_block('day_cal','day_row','day_row');
|
||||||
$p->set_block('day_cal','day_event_on','day_event_on');
|
$p->set_block('day_cal','day_event_on','day_event_on');
|
||||||
@ -2879,7 +2879,7 @@
|
|||||||
for($j=0;$j<(60 / intval($this->bo->prefs['calendar']['interval']));$j++)
|
for($j=0;$j<(60 / intval($this->bo->prefs['calendar']['interval']));$j++)
|
||||||
{
|
{
|
||||||
$rowspan_arr[$i][$j] = 0;
|
$rowspan_arr[$i][$j] = 0;
|
||||||
$time[$ind][$j] = '';
|
$time[$ind][$j] = '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2893,9 +2893,9 @@
|
|||||||
echo '<!-- Date to Eval : '.$date_to_eval.' -->'."\n";
|
echo '<!-- Date to Eval : '.$date_to_eval.' -->'."\n";
|
||||||
}
|
}
|
||||||
if($daily[$date_to_eval]['appts'])
|
if($daily[$date_to_eval]['appts'])
|
||||||
{
|
{
|
||||||
$starttime = 0;
|
$starttime = 0;
|
||||||
$endtime = 0;
|
$endtime = 0;
|
||||||
$events = $this->bo->cached_events[$date_to_eval];
|
$events = $this->bo->cached_events[$date_to_eval];
|
||||||
$c_events = count($events);
|
$c_events = count($events);
|
||||||
if($this->debug)
|
if($this->debug)
|
||||||
@ -3157,11 +3157,11 @@
|
|||||||
$GLOBALS['phpgw']->preferences->add('calendar','interval',15);
|
$GLOBALS['phpgw']->preferences->add('calendar','interval',15);
|
||||||
$GLOBALS['phpgw']->preferences->save_repository();
|
$GLOBALS['phpgw']->preferences->save_repository();
|
||||||
}
|
}
|
||||||
// $increment = $this->bo->prefs['calendar']['interval'];
|
$increment = $this->bo->prefs['calendar']['interval'];
|
||||||
$increment = 15;
|
// $increment = 15;
|
||||||
$interval = (int)(60 / $increment);
|
$interval = (int)(60 / $increment);
|
||||||
|
|
||||||
$pix = $GLOBALS['phpgw']->common->image('calendar','pix.gif');
|
$pix = $GLOBALS['phpgw']->common->image('calendar','pix');
|
||||||
|
|
||||||
$str = '<center>'.lang($GLOBALS['phpgw']->common->show_date($date['raw'],'l'))
|
$str = '<center>'.lang($GLOBALS['phpgw']->common->show_date($date['raw'],'l'))
|
||||||
. ', '.lang($GLOBALS['phpgw']->common->show_date($date['raw'],'F'))
|
. ', '.lang($GLOBALS['phpgw']->common->show_date($date['raw'],'F'))
|
||||||
|
Loading…
Reference in New Issue
Block a user