aboutsummaryrefslogtreecommitdiffstats
path: root/day.php
diff options
context:
space:
mode:
authordrei <drei>2002-10-07 02:09:34 +0000
committerdrei <drei>2002-10-07 02:09:34 +0000
commit0bc10527fea4f7f59d1bd0f2743a3a19eb942387 (patch)
treefa59e1e9447c9d527ed5d3043ea7a88b8dca0703 /day.php
parent2dc5311afb4c78d98db72f160e0e066657e35367 (diff)
downloadphpicalendar-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.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/day.php b/day.php
index f0b4884..ed445a9 100644
--- a/day.php
+++ b/day.php
@@ -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.'>&nbsp;</td>'."\n";
} else {
@@ -218,7 +218,7 @@ if (is_array($master_array[($getdate)])) {
case 'started':
break;
case 'ended':
- echo '<td bgcolor="#ffffff" colspan="' . $drawWidth . '">&nbsp;</td>'."\n";
+ echo '<td bgcolor="#ffffff" colspan="' . $drawWidth . '" ' . $class . '>&nbsp;</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 . '">&nbsp;</td>'."\n";
+ echo '<td bgcolor="#ffffff" colspan="' . $emptyWidth . '" ' . $class . '>&nbsp;</td>'."\n";
}
while ($event_length[(sizeof($event_length) - 1)]['state'] == 'ended') {
array_pop($event_length);

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