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. *
|
|
|
|
\**************************************************************************/
|
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
2001-01-11 02:10:08 +01:00
|
|
|
$phpgw_info["flags"] = array("currentapp" => "calendar", "enable_nextmatchs_class" => True);
|
|
|
|
|
2000-11-12 21:35:09 +01:00
|
|
|
if (isset($friendly) && $friendly){
|
2000-09-05 20:36:13 +02:00
|
|
|
$phpgw_info["flags"]["noheader"] = True;
|
2001-01-11 02:10:08 +01:00
|
|
|
$phpgw_info["flags"]["nonavbar"] = True;
|
|
|
|
$phpgw_info["flags"]["noappheader"] = True;
|
|
|
|
$phpgw_info["flags"]["noappfooter"] = True;
|
|
|
|
$phpgw_info["flags"]["nofooter"] = True;
|
2000-11-12 21:35:09 +01:00
|
|
|
} else {
|
|
|
|
$friendly = 0;
|
2000-08-18 05:24:22 +02:00
|
|
|
}
|
|
|
|
include("../header.inc.php");
|
|
|
|
|
2000-11-13 16:09:58 +01:00
|
|
|
$view = "year";
|
|
|
|
|
2000-08-18 05:24:22 +02:00
|
|
|
if ($friendly) {
|
2000-11-13 16:09:58 +01:00
|
|
|
echo '<body bgcolor="' . $phpgw_info["theme"]["bg_color"] . '">';
|
2000-08-18 05:24:22 +02:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
|
|
<center>
|
2000-12-01 04:36:39 +01:00
|
|
|
<table border="0" cellspacing="3" cellpadding="4">
|
2000-08-18 05:24:22 +02:00
|
|
|
<tr>
|
|
|
|
<?php
|
2000-11-12 21:35:09 +01:00
|
|
|
if (!$friendly)
|
2001-03-10 05:48:19 +01:00
|
|
|
echo "<td align=\"left\"><A HREF=\"" . $phpgw->link('/'.$phpgw_info['flags']['currentapp'].'/year.php',"year=" . ($year - 1)) . "\"><<</A>";
|
2000-08-18 05:24:22 +02:00
|
|
|
?>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
<td colspan="<?php echo ($friendly?"6":"4"); ?>" align="center">
|
|
|
|
<font face=\"".$phpgw_info["theme"][font]."\" size="+1"><? echo $year; ?></font>
|
|
|
|
</td>
|
|
|
|
<?php
|
|
|
|
if (! $friendly)
|
2001-03-10 05:48:19 +01:00
|
|
|
echo "<td align=\"right\"><A HREF=\"" . $phpgw->link('/'.$phpgw_info['flags']['currentapp'].'/year.php',"year=" . ($year + 1)) . "\">>></A>";
|
2000-08-18 05:24:22 +02:00
|
|
|
?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2000-11-12 21:35:09 +01:00
|
|
|
<tr valign="top">
|
|
|
|
<?php
|
|
|
|
if(!$friendly) $link = "day.php"; else $link = "";
|
|
|
|
for($i=1;$i<13;$i++) {
|
|
|
|
echo "<td valign=\"top\">";
|
|
|
|
if(!$friendly)
|
2001-01-14 20:30:11 +01:00
|
|
|
echo $phpgw->calendar->mini_calendar($i,$i,$year,"day.php");
|
2000-11-12 21:35:09 +01:00
|
|
|
else
|
2001-01-14 20:30:11 +01:00
|
|
|
echo $phpgw->calendar->mini_calendar($i,$i,$year);
|
2000-11-12 21:35:09 +01:00
|
|
|
echo "</td>";
|
|
|
|
if($i==6) echo "</tr><tr valign=\"top\">";
|
|
|
|
}
|
|
|
|
?>
|
2000-08-18 05:24:22 +02:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</center>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
if (! $friendly) {
|
2000-09-05 05:24:51 +02:00
|
|
|
echo " <A HREF=\"" . $phpgw->link("year.php","friendly=1&"
|
|
|
|
. "&year=$year") . "\"TARGET=\"cal_printer_friendly\" onMouseOver=\"window."
|
2000-09-07 22:49:55 +02:00
|
|
|
. "status = '" . lang("Generate printer-friendly version") . "'\">["
|
|
|
|
. lang("Printer Friendly") . "]</A>";
|
2000-08-18 05:24:22 +02:00
|
|
|
}
|
2001-04-15 01:54:19 +02:00
|
|
|
if(!isset($friendly) || $friendly == False)
|
|
|
|
{
|
|
|
|
$phpgw->common->phpgw_footer();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$phpgw->common->phpgw_exit();
|
|
|
|
}
|
2000-09-29 07:24:18 +02:00
|
|
|
?>
|