diff options
author | Chad Little <clittle@users.sourceforge.net> | 2002-09-29 01:39:27 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2002-09-29 01:39:27 +0000 |
commit | 27af6791b1e4cf02d0e47b60fa446c2396f21e4c (patch) | |
tree | 067956b5a1fe50d1c7563b4dcc53d578371a0f63 /day.php | |
parent | ce366dcff1289fbd3246536dd8cd2215faaa4dd1 (diff) | |
download | phpicalendar-27af6791b1e4cf02d0e47b60fa446c2396f21e4c.tar.gz phpicalendar-27af6791b1e4cf02d0e47b60fa446c2396f21e4c.tar.bz2 phpicalendar-27af6791b1e4cf02d0e47b60fa446c2396f21e4c.zip |
Inegrated drei's code with new look of day.php
Diffstat (limited to 'day.php')
-rw-r--r-- | day.php | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -41,6 +41,8 @@ $display_month3 = strftime ($dateFormat_month, strtotime("+1 month", $date)); $parse_month = date ("Ym", $date); $thisday2 = strftime($dateFormat_week_list, $date); +$dayborder = 0; + $nbrGridCols = 1; if ($master_array[($getdate)]) { foreach($master_array[($getdate)] as $ovlKey => $ovlValue) { @@ -120,7 +122,15 @@ if ($master_array[($getdate)]) { echo "<td width=\"1\" height=\"" . $gridLength . "\"></td>\n"; } if (sizeof($event_length) == 0) { - echo "<td bgcolor=\"#ffffff\" colspan=\"" . $nbrGridCols . "\" class=\"dayborder\"> </td>\n"; + if ($dayborder == 0) { + $class = " class=\"dayborder\""; + $dayborder++; + } else { + $class = ""; + $dayborder = 0; + } + echo "<td bgcolor=\"#ffffff\" colspan=\"" . $nbrGridCols . "\" $class> </td>\n"; + } else { $emptyWidth = $nbrGridCols; for ($i=0;$i<sizeof($event_length);$i++) { |