* * 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 (! $friendly) { $phpgw->common->phpgw_header(); } else echo "
"; $view = "week"; ?> 0) { $thisyear = substr($date, 0, 4); $thismonth = substr($date, 4, 2); $thisday = substr($date, 6, 2); } else { if ($month == 0) $thismonth = date("m"); else $thismonth = $month; if ($year == 0) $thisyear = date("Y"); else $thisyear = $year; if ($day == 0) $thisday = date("d"); else $thisday = $day; } $next = mktime(2, 0, 0, $thismonth, $thisday + 7, $thisyear); $nextyear = date("Y", $next); $nextmonth = date("m", $next); $nextday = date("d", $next); $prev = mktime(2, 0, 0, $thismonth, $thisday - 7, $thisyear); $prevyear = date("Y", $prev); $prevmonth = date("m", $prev); $prevday = date("d", $prev); // We add 2 hours on to the time so that the switch to DST doesn't // throw us off. So, all our dates are 2AM for that day. $sun = get_sunday_before($thisyear, $thismonth, $thisday) + 7200; $sat = $sun + (3600 * 24 * 7); ?>&year=&month=&day="><< |
db->query("SELECT account_lastname, account_firstname FROM accounts WHERE account_lid='"
. $phpgw_info["user"]["account_lid"]. "'");
echo " \n"; if ($phpgw->db->next_record()) { if (strlen($phpgw->db->f(0)) || strlen($phpgw->db->f(1))) { if (strlen($phpgw->db->f(1))) echo $phpgw->db->f(1) . " "; if (strlen($phpgw->db->f(0))) echo $phpgw->db->f(0) . " "; } else echo $user; } ?> |
link("week.php","&year=$nextyear&month=$nextmonth&day=$nextday")
. "\">>>";
}
?>
"> | "> | "> | "> | "> | "> | "> |
---|---|---|---|---|---|---|
"; else echo "BGCOLOR=\"$CELLBG\">"; print_date_entries($date,$hide_icons,$phpgw_info["user"]["sessionid"]); //$date = $i + ($j * 24 * 3600); /* $thirsday=$j+24*3600*4; if ($phpgw_info["user"]["preferences"]["calendar"]["weekdaystarts"] == "Sunday" && $j == 0) { echo 'week ' .(int)((date("z",$thirsday)+7)/7) . ''; } if ($phpgw_info["user"]["preferences"]["calendar"]["weekdaystarts"] == "Monday" && $j == 1) { echo 'week ' . (int)((date("z",$thirsday)+7)/7) . ''; }*/ echo " | \n"; } ?>