egroupware/calendar/year.php

98 lines
2.7 KiB
PHP
Raw Normal View History

2000-08-18 05:24:22 +02:00
<?php
/**************************************************************************\
* phpGroupWare - Calendar *
* http://www.phpgroupware.org *
* This file written by Joseph Engo <jengo@phpgroupware.org> *
* -------------------------------------------- *
* This program is free software; you can redistribute it and/or modify it *
* under the terms of the GNU General Public License as published by the *
* Free Software Foundation; either version 2 of the License, or (at your *
* option) any later version. *
\**************************************************************************/
2001-04-22 23:39:42 +02:00
/* $Id$ */
2000-08-18 05:24:22 +02:00
2001-04-22 23:39:42 +02:00
if (isset($friendly) && $friendly)
{
$phpgw_flags = Array(
'currentapp' => 'calendar',
'enable_nextmatchs_class' => True,
'noheader' => True,
'nonavbar' => True,
'noappheader' => True,
'noappfooter' => True,
'nofooter' => True
);
}
else
{
$friendly = 0;
$phpgw_flags = Array(
'currentapp' => 'calendar',
'enable_nextmatchs_class' => True
);
}
2000-08-18 05:24:22 +02:00
2001-04-22 23:39:42 +02:00
$phpgw_info['flags'] = $phpgw_flags;
include('../header.inc.php');
2001-04-22 23:39:42 +02:00
$view = 'year';
if ($friendly)
{
echo '<body bgcolor="'.$phpgw_info['theme']['bg_color'].'">';
}
2000-08-18 05:24:22 +02:00
?>
<center>
<table border="0" cellspacing="3" cellpadding="4" cols=4>
2000-08-18 05:24:22 +02:00
<tr>
<?php
2000-11-12 21:35:09 +01:00
if (!$friendly)
2001-04-22 23:39:42 +02:00
echo '<td align="left"><a href="'.$phpgw->link('/calendar/year.php','year='.($year-1)).'">&lt;&lt;</a>';
2000-08-18 05:24:22 +02:00
?>
</td>
</td>
<td align="center">
2001-04-22 23:39:42 +02:00
<font face=\"".$phpgw_info["theme"][font]."\" size="+1"><?php echo $year; ?></font>
2000-08-18 05:24:22 +02:00
</td>
<?php
if (! $friendly)
2001-04-22 23:39:42 +02:00
echo '<td align="right"><a href="'.$phpgw->link('/calendar/year.php','year='.($year+1)).'">&gt;&gt;</a>';
2000-08-18 05:24:22 +02:00
?>
</td>
</tr>
2000-11-12 21:35:09 +01:00
<tr valign="top">
<?php
2001-04-22 23:39:42 +02:00
if(!$friendly) $link = 'day.php'; else $link = '';
2000-11-12 21:35:09 +01:00
for($i=1;$i<13;$i++) {
2001-04-22 23:39:42 +02:00
echo '<td valign="top">';
2000-11-12 21:35:09 +01:00
if(!$friendly)
echo $phpgw->calendar->mini_calendar($i,$i,$year,'day.php','none',False);
2000-11-12 21:35:09 +01:00
else
echo $phpgw->calendar->mini_calendar($i,$i,$year,'','none',False);
2001-04-22 23:39:42 +02:00
echo '</td>';
if($i % 3 == 0) echo '</tr><tr valign="top">';
2000-11-12 21:35:09 +01:00
}
?>
2000-08-18 05:24:22 +02:00
</tr>
</table>
</center>
<?php
2001-04-22 23:39:42 +02:00
if (! $friendly)
{
echo '&nbsp;<a href="'.$phpgw->link('/calendar/year.php','friendly=1&year='.$year)
.'" target="cal_printer_friendly" onMouseOver="window.status = '."'"
.lang('Generate printer-friendly version')."'".'">['.lang('Printer Friendly').']</a>';
}
if(!isset($friendly) || $friendly == False)
{
$phpgw->common->phpgw_footer();
}
else
{
$phpgw->common->phpgw_exit();
}
?>