diff options
author | drei <drei> | 2002-10-07 02:17:06 +0000 |
---|---|---|
committer | drei <drei> | 2002-10-07 02:17:06 +0000 |
commit | d03d65f3e6126da79c5090af66e2114d16a7c371 (patch) | |
tree | 088ba54b22f17daf7959f199dabb2266371b73dd /week.php | |
parent | 0bc10527fea4f7f59d1bd0f2743a3a19eb942387 (diff) | |
download | phpicalendar-d03d65f3e6126da79c5090af66e2114d16a7c371.tar.gz phpicalendar-d03d65f3e6126da79c5090af66e2114d16a7c371.tar.bz2 phpicalendar-d03d65f3e6126da79c5090af66e2114d16a7c371.zip |
Amended the drawing of the dummy row at the top of the main table to better assist the drawing of overlapping events.
Columns are way to wide still, probably some code must be added to prevent the display of the detailled text if
the event only occupies a small width...
Diffstat (limited to 'week.php')
-rw-r--r-- | week.php | 23 |
1 files changed, 15 insertions, 8 deletions
@@ -108,13 +108,20 @@ 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); + $thisday2 = localizeDate($dateFormat_week_list, $thisdate); + $colWidth = round(120 / $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 @@ -127,7 +134,7 @@ for ($i=0;$i<7;$i++) { do { $thisday = date("Ymd", $thisdate); $thisday2 = localizeDate($dateFormat_week_list, $thisdate); - echo "<td width=\"70\" colspan=\"" . $nbrGridCols[$thisday] . "\" valign=\"top\" align=\"center\" class=\"dateback\">\n"; + echo "<td width=\"120\" colspan=\"" . $nbrGridCols[$thisday] . "\" valign=\"top\" align=\"center\" class=\"dateback\">\n"; echo "<font class=\"V9\"><a class=\"psf\" href=\"day.php?cal=$cal&getdate=$thisday\">$thisday2</a></font>\n"; echo "</td>\n"; $thisdate = ($thisdate + (25 * 60 * 60)); |