* * 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_info["flags"]["noheader"] = True; } $phpgw_info["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); } ?>

common->display_fullname($phpgw_info["user"]["userid"],$phpgw_info["user"]["firstname"],$phpgw_info["user"]["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_info["user"]["sessionid"]); $thirsday=$i+24*3600*4; if ($phpgw_info["user"]["preferences"]["weekdaystarts"] == "Sunday" && $j == 0) { echo 'week ' .(int)((date("z",$thirsday)+7)/7) . ''; } if ($phpgw_info["user"]["preferences"]["weekdaystarts"] == "Monday" && $j == 1) { echo 'week ' . (int)((date("z",$thirsday)+7)/7) . ''; } echo "

link($PHP_SELF,$param)."\">"; echo "[". lang("Printer Friendly") . "]"; $phpgw->common->phpgw_footer(); } ?>