aboutsummaryrefslogtreecommitdiffstats
path: root/day.php
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2002-09-29 01:39:27 +0000
committerChad Little <clittle@users.sourceforge.net>2002-09-29 01:39:27 +0000
commit27af6791b1e4cf02d0e47b60fa446c2396f21e4c (patch)
tree067956b5a1fe50d1c7563b4dcc53d578371a0f63 /day.php
parentce366dcff1289fbd3246536dd8cd2215faaa4dd1 (diff)
downloadphpicalendar-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.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/day.php b/day.php
index 7e1fd17..7a52675 100644
--- a/day.php
+++ b/day.php
@@ -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\">&nbsp;</td>\n";
+ if ($dayborder == 0) {
+ $class = " class=\"dayborder\"";
+ $dayborder++;
+ } else {
+ $class = "";
+ $dayborder = 0;
+ }
+ echo "<td bgcolor=\"#ffffff\" colspan=\"" . $nbrGridCols . "\" $class>&nbsp;</td>\n";
+
} else {
$emptyWidth = $nbrGridCols;
for ($i=0;$i<sizeof($event_length);$i++) {

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