aboutsummaryrefslogtreecommitdiffstats
path: root/week.php
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2002-11-25 00:08:40 +0000
committerChad Little <clittle@users.sourceforge.net>2002-11-25 00:08:40 +0000
commitc576f9f7a5f7d11f53b69e7ddbdcd86a7b6e0721 (patch)
tree49156b4eda5b4cf34f399a6b1ae3d3eefc223566 /week.php
parent2e0aca17e888b9c1c95bf8e2fd0b82fb13ec4d31 (diff)
downloadphpicalendar-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.php20
1 files changed, 13 insertions, 7 deletions
diff --git a/week.php b/week.php
index bf90f90..9838c4a 100644
--- a/week.php
+++ b/week.php
@@ -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.

© 2014-2024 Faster IT GmbH | imprint | privacy policy