* * http://www.radix.net/~cknudsen * * -------------------------------------------- * * 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$ */ if ($friendly) { $phpgw_flags["noheader"] = True; } $phpgw_flags["currentapp"] = "calendar"; include("../header.inc.php"); if (strlen($date) > 0) { $thisyear = substr($date, 0, 4); $thismonth = substr($date, 4, 2); $thisday = substr($date, 6, 2); } else { if ($day == 0) $thisday = date("d"); else $thisday = $day; if ($month == 0) $thismonth = date("m"); else $thismonth = $month; if ($year == 0) $thisyear = date("Y"); else $thisyear = $year; } $next = mktime(2,0,0,$thismonth + 1,1,$thisyear); $nextyear = date("Y", $next); $nextmonth = date("m", $next); $nextdate = date("Ymd"); $prev = mktime(2,0,0,$thismonth - 1,1,$thisyear); $prevyear = date("Y",$prev); $prevmonth = date("m",$prev); $prevdate = date("Ymd"); if ($friendly) { echo ""; $view = "month"; } ?> "; display_small_month($prevmonth,$prevyear,True); } ?> '; display_small_month($nextmonth,$nextyear,True); } ?>

session->firstname) echo $phpgw->session->firstname . " "; if ($phpgw->session->lastname) echo $phpgw->session->lastname; ?>
sun = " . date("D, m-d-Y", $sun) . "
"; //echo "

monthstart = " . date("D, m-d-Y", $monthstart) . "
"; //echo "

monthend = " . date("D, m-d-Y", $monthend) . "
"; $today = mktime(2,0,0,date("m"),date("d"),date("Y")); for ($i = $sun; date("Ymd",$i) <= date("Ymd",$monthend); $i += (24 * 3600 * 7) ) { $CELLBG = $phpgw->nextmatchs->alternate_row_color($CELLBG); echo "

\n"; for ($j = 0; $j < 7; $j++) { $date = $i + ($j * 24 * 3600); if (date("Ymd",$date) >= date("Ymd",$monthstart) && date("Ymd",$date) <= date("Ymd",$monthend) ) { echo "\n"; } else { echo "\n"; } } print "\n"; } ?>
">"> ">"> ">"> ">"> ">"> ">"> ">">
"; } else { echo " BGCOLOR=\"$CELLBG\">"; } print_date_entries($date,$friendly,$phpgw->session->id); echo "

link($PHP_SELF,$param)."\">"; echo "[". lang_calendar("Printer Friendly") . "]"; include($phpgw_info["server"]["api_dir"] . "/footer.inc.php"); }