diff options
author | Chad Little <clittle@users.sourceforge.net> | 2002-11-24 18:35:46 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2002-11-24 18:35:46 +0000 |
commit | 2f2aa4a790c2827c3e6145cd44020c49ecc6b95a (patch) | |
tree | 657aee577650e2436d91ffcd0e2ebd9b82d916c3 /week.php | |
parent | ac62b5bc2658e26dfa3f044fb682cc9d0c83e651 (diff) | |
download | phpicalendar-2f2aa4a790c2827c3e6145cd44020c49ecc6b95a.tar.gz phpicalendar-2f2aa4a790c2827c3e6145cd44020c49ecc6b95a.tar.bz2 phpicalendar-2f2aa4a790c2827c3e6145cd44020c49ecc6b95a.zip |
Added patches for VTODO.
Diffstat (limited to 'week.php')
-rw-r--r-- | week.php | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -58,7 +58,8 @@ for ($i=0;$i<7;$i++) { <title><?php echo "$calendar_name - $display_date"; ?></title> <link rel="stylesheet" type="text/css" href="styles/<?php echo "$style_sheet/default.css"; ?>"> <link rel="alternate" type="application/rss+xml" title="RSS" href="<?php echo $default_path.'/rss/rss.php?cal='.$cal.'&rssview=week'; ?>"> - <?php include BASE.'functions/event.js'; ?> + <?php include (BASE.'functions/event.js'); ?> + <?php if (is_array($master_array['-2'])) include (BASE.'functions/todo.js'); ?> </head> <body bgcolor="#FFFFFF"> <?php include (BASE.'header.inc.php'); ?> @@ -108,10 +109,12 @@ for ($i=0;$i<7;$i++) { $thisdate = $start_week_time; $i = 0; do { + $thisday = date("Ymd", $thisdate); $colWidth = round(70 / $nbrGridCols[$thisday]); for ($j=0;$j < $nbrGridCols[$thisday];$j++) { echo "<td width=\"" . $colWidth . "\"><img src=\"images/spacer.gif\" width=\"" . $colWidth . "\" height=\"1\" alt=\"\"></td>\n"; } + $thisdate = ($thisdate + (25 * 60 * 60)); $i++; } while ($i < 7); ?> |