This moves the calendar to use the n-tier layering. Old files are still here for continuity for .12 RC versions.

This commit is contained in:
skeeter 2001-07-22 00:01:49 +00:00
parent 636666d306
commit 83f61d1767
2 changed files with 3 additions and 10 deletions

View File

@ -234,8 +234,9 @@
if (!$this->bo->printer_friendly)
{
unset($phpgw_info['flags']['noheader']);
unset($phpgw_info['flags']['nonavbar']);
$phpgw->common->phpgw_header();
echo parse_navbar();
$printer = '';
$param = '&year='.$this->bo->year.'&month='.$this->bo->month.'&friendly=1';
$print = '<a href="'.$this->page('month'.$param)."\" TARGET=\"cal_printer_friendly\" onMouseOver=\"window.status = '".lang('Generate printer-friendly version')."'\">[".lang('Printer Friendly').']</a>';

View File

@ -27,14 +27,6 @@
include('../header.inc.php');
$newpage = $phpgw_info['user']['preferences']['calendar']['defaultcalendar'];
if ($newpage=='index.php' || ($newpage != 'day.php' && $newpage != 'week.php' && $newpage != 'month.php' && $newpage != 'year.php'))
{
$newpage = 'month.php';
$phpgw->preferences->add('calendar','defaultcalendar','month.php');
$phpgw->preferences->save_repository();
}
Header('Location: '.$newpage.'?'.$QUERY_STRING);
Header('Location: '.$phpgw->link('/index.php','menuaction=calendar.uicalendar.index'));
$phpgw->common->phpgw_exit();
?>