From c7be82ea2d4f48af3d2866c77b25b0adb4b48edb Mon Sep 17 00:00:00 2001 From: skeeter Date: Fri, 19 Oct 2001 02:07:48 +0000 Subject: [PATCH] Fixes for the layout problems. --- calendar/inc/hook_home.inc.php | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/calendar/inc/hook_home.inc.php b/calendar/inc/hook_home.inc.php index 4387a37ef7..534fe6f29d 100755 --- a/calendar/inc/hook_home.inc.php +++ b/calendar/inc/hook_home.inc.php @@ -28,7 +28,7 @@ $time = time() - ((60*60) * intval($GLOBALS['phpgw_info']['user']['preferences']['common']['tz_offset'])); $date = $GLOBALS['phpgw']->common->show_date($time,'Ymd'); $cal = CreateObject('calendar.uicalendar'); - $extra_data = "\n".'
' + $extra_data = "\n".''."\n".'
' . $cal->mini_calendar( Array( 'day' => $cal->bo->day, @@ -38,14 +38,14 @@ ) ).'' . '
'.lang($GLOBALS['phpgw']->common->show_date($time,'F')).' '.$cal->bo->day.', ' - .$cal->bo->year.'
'.$cal->print_day( Array( 'year' => $cal->bo->year, 'month' => $cal->bo->month, 'day' => $cal->bo->day ) - ).'
'."\n".'
'."\n"; + ).'
'."\n".''."\n".''."\n".''."\n".''."\n"; $title = ''.lang('Calendar').''; @@ -61,12 +61,13 @@ ) ); + $app_id = $GLOBALS['phpgw']->applications->name2id('calendar'); $var = Array( - 'up' => Array('url' => '/set_box.php', 'app' => 'calendar'), - 'down' => Array('url' => '/set_box.php', 'app' => 'calendar'), - 'close' => Array('url' => '/set_box.php', 'app' => 'calendar'), - 'question' => Array('url' => '/set_box.php', 'app' => 'calendar'), - 'edit' => Array('url' => '/set_box.php', 'app' => 'calendar') + 'up' => Array('url' => '/set_box.php', 'app' => $app_id, 'order' => $GLOBALS['order_seq']), + 'down' => Array('url' => '/set_box.php', 'app' => $app_id, 'order' => $GLOBALS['order_seq']), + 'close' => Array('url' => '/set_box.php', 'app' => $app_id, 'order' => $GLOBALS['order_seq']), + 'question' => Array('url' => '/set_box.php', 'app' => $app_id, 'order' => $GLOBALS['order_seq']), + 'edit' => Array('url' => '/set_box.php', 'app' => $app_id, 'order' => $GLOBALS['order_seq']) ); while(list($key,$value) = each($var)) @@ -74,7 +75,9 @@ $portalbox->set_controls($key,$value); } - echo ''."\n".$portalbox->draw($extra_data)."\n".''."\n"; + $portalbox->data = Array(); + + echo "\n".''."\n".$portalbox->draw($extra_data)."\n".''."\n"; unset($cal); } flush();