* * 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"; } ?>
common->display_fullname($phpgw_info["user"]["userid"],$phpgw_info["user"]["firstname"],$phpgw_info["user"]["lastname"]); ?> |
";
display_small_month($nextmonth,$nextyear,True);
}
?>
">"> | ">"> | ">"> | ">"> | ">"> | ">"> | ">"> |
---|---|---|---|---|---|---|
"; } else { echo " bgcolor=\"$cellcolor\">"; } print_date_entries($date,$friendly,$phpgw_info["user"]["sessionid"]); $thirsday=$i+24*3600*4; if ($phpgw_info["user"]["preferences"]["weekdaystarts"] == "Sunday" && $j == 0) { echo "link("week.php","date=".date("Ymd",$date))."\">week " .(int)((date("z",$thirsday)+7)/7) . ""; } if ($phpgw_info["user"]["preferences"]["weekdaystarts"] == "Monday" && $j == 1) { echo "link("week.php","date=" . date("Ymd",$date)) . "\">week " . (int)((date("z",$thirsday)+7)/7) . ""; } echo " | \n"; } else { echo "\n"; } } print " |
link($PHP_SELF,$param)."\" target=\"cal_printer_friendly\" onMouseOver=\"window.status='" .lang("Generate printer-friendly version")."'>[" . lang("Printer Friendly") . "]"; $phpgw->common->phpgw_footer(); } ?>