diff --git a/calendar/matrixselect.php b/calendar/matrixselect.php index f21c86842d..c7e81d09f5 100755 --- a/calendar/matrixselect.php +++ b/calendar/matrixselect.php @@ -23,28 +23,26 @@ include('../header.inc.php'); - $datetime = mktime(0,0,0,$thismonth,$thisday,$thisyear) - ((60 * 60) * intval($phpgw_info['user']['preferences']['common']['tz_offset'])); + $datetime = mktime(0,0,0,$thismonth,$thisday,$thisyear) - $phpgw->calendar->datetime->tz_offset; $sb = CreateObject('phpgwapi.sbox'); $p = CreateObject('phpgwapi.Template',$phpgw->calendar->template_dir); $templates = Array( - 'matrix_query_begin' => 'matrix_query.tpl', - 'list' => 'list.tpl', - 'matrix_query_end' => 'matrix_query.tpl', - 'form_button' => 'form_button_script.tpl' + 'mq' => 'matrix_query.tpl', + 'form_button' => 'form_button_script.tpl' ); - $p->set_file($templates); + $p->set_block('mq','matrix_query','matrix_query'); + $p->set_block('mq','list','list'); $var = Array( 'matrix_action' => lang('Daily Matrix View'), - 'action_url' => $phpgw->link('/'.$phpgw_info['flags']['currentapp'].'/viewmatrix.php') + 'action_url' => $phpgw->link('/calendar/viewmatrix.php') ); $p->set_var($var); - $p->parse('out','matrix_query_begin'); // Date $day_html = $sb->getDays('day',intval($phpgw->common->show_date($datetime,'d'))); @@ -57,7 +55,7 @@ ); $p->set_var($var); - $p->parse('output','list',True); + $p->parse('rows','list',True); // View type $str = ' {cancel_button} - - + + + + {field}: + {data} + + diff --git a/calendar/viewmatrix.php b/calendar/viewmatrix.php index b7959574e1..537bf64323 100755 --- a/calendar/viewmatrix.php +++ b/calendar/viewmatrix.php @@ -65,7 +65,7 @@ switch($matrixtype) { case 'free/busy': - $freetime = $phpgw->calendar->makegmttime(0,0,0,$thismonth,$thisday,$thisyear); + $freetime = $phpgw->calendar->datetime->makegmttime(0,0,0,$thismonth,$thisday,$thisyear); echo $phpgw->calendar->timematrix($freetime,$phpgw->calendar->splittime('000000',False),0,$participants); break; case 'weekly':