diff options
author | drei <drei> | 2002-10-07 02:09:34 +0000 |
---|---|---|
committer | drei <drei> | 2002-10-07 02:09:34 +0000 |
commit | 0bc10527fea4f7f59d1bd0f2743a3a19eb942387 (patch) | |
tree | fa59e1e9447c9d527ed5d3043ea7a88b8dca0703 /day.php | |
parent | 2dc5311afb4c78d98db72f160e0e066657e35367 (diff) | |
download | phpicalendar-0bc10527fea4f7f59d1bd0f2743a3a19eb942387.tar.gz phpicalendar-0bc10527fea4f7f59d1bd0f2743a3a19eb942387.tar.bz2 phpicalendar-0bc10527fea4f7f59d1bd0f2743a3a19eb942387.zip |
Tweaked the drawing of the gridlines to the right and inbetween overlapping events.
Diffstat (limited to 'day.php')
-rw-r--r-- | day.php | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -165,14 +165,14 @@ if (is_array($master_array[($getdate)])) { echo '<tr height="' . $gridLength . '">'."\n"; echo '<td width="1" height="' . $gridLength . '"></td>'."\n"; } + if ($dayborder == 0) { + $class = ' class="dayborder"'; + $dayborder++; + } else { + $class = ' class="dayborder2"'; + $dayborder = 0; + } if (sizeof($event_length) == 0) { - if ($dayborder == 0) { - $class = ' class="dayborder"'; - $dayborder++; - } else { - $class = ' class="dayborder2"'; - $dayborder = 0; - } echo '<td bgcolor="#ffffff" colspan="' . $nbrGridCols . '" '.$class.'> </td>'."\n"; } else { @@ -218,7 +218,7 @@ if (is_array($master_array[($getdate)])) { case 'started': break; case 'ended': - echo '<td bgcolor="#ffffff" colspan="' . $drawWidth . '"> </td>'."\n"; + echo '<td bgcolor="#ffffff" colspan="' . $drawWidth . '" ' . $class . '> </td>'."\n"; break; } $event_length[$i]['length']--; @@ -228,7 +228,7 @@ if (is_array($master_array[($getdate)])) { } //fill emtpy space on the right if ($emptyWidth > 0) { - echo '<td bgcolor="#ffffff" colspan="' . $emptyWidth . '"> </td>'."\n"; + echo '<td bgcolor="#ffffff" colspan="' . $emptyWidth . '" ' . $class . '> </td>'."\n"; } while ($event_length[(sizeof($event_length) - 1)]['state'] == 'ended') { array_pop($event_length); |