diff options
author | Chad Little <clittle@users.sourceforge.net> | 2002-11-25 00:08:40 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2002-11-25 00:08:40 +0000 |
commit | c576f9f7a5f7d11f53b69e7ddbdcd86a7b6e0721 (patch) | |
tree | 49156b4eda5b4cf34f399a6b1ae3d3eefc223566 /week.php | |
parent | 2e0aca17e888b9c1c95bf8e2fd0b82fb13ec4d31 (diff) | |
download | phpicalendar-c576f9f7a5f7d11f53b69e7ddbdcd86a7b6e0721.tar.gz phpicalendar-c576f9f7a5f7d11f53b69e7ddbdcd86a7b6e0721.tar.bz2 phpicalendar-c576f9f7a5f7d11f53b69e7ddbdcd86a7b6e0721.zip |
Fixed spacers in week, removed date_add.php
Diffstat (limited to 'week.php')
-rw-r--r-- | week.php | 20 |
1 files changed, 13 insertions, 7 deletions
@@ -135,13 +135,19 @@ for ($i=0;$i<7;$i++) { <tr> <td width="60"><img src="images/spacer.gif" width="60" height="1" alt=""></td> <td width="1"></td> - <td width="70"><img src="images/spacer.gif" width="70" height="1" alt=""></td> - <td width="70"><img src="images/spacer.gif" width="70" height="1" alt=""></td> - <td width="70"><img src="images/spacer.gif" width="70" height="1" alt=""></td> - <td width="70"><img src="images/spacer.gif" width="70" height="1" alt=""></td> - <td width="70"><img src="images/spacer.gif" width="70" height="1" alt=""></td> - <td width="70"><img src="images/spacer.gif" width="70" height="1" alt=""></td> - <td width="70"><img src="images/spacer.gif" width="70" height="1" alt=""></td> + <?php + $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); + ?> </tr> <?php // The all day events returned here. |