aboutsummaryrefslogtreecommitdiffstats
path: root/day.php
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2003-09-20 20:53:13 +0000
committerChad Little <clittle@users.sourceforge.net>2003-09-20 20:53:13 +0000
commit6be0bb2987c333fc06d12c644a1ea31e4a7911c8 (patch)
treefb85c8ae0bc8a8cd8d98e306956ed85ed498f805 /day.php
parent7d820356800b15474acaa36b024e84e893c08546 (diff)
downloadphpicalendar-6be0bb2987c333fc06d12c644a1ea31e4a7911c8.tar.gz
phpicalendar-6be0bb2987c333fc06d12c644a1ea31e4a7911c8.tar.bz2
phpicalendar-6be0bb2987c333fc06d12c644a1ea31e4a7911c8.zip
Cleaned up event_status displaying.
Diffstat (limited to 'day.php')
-rw-r--r--day.php13
1 files changed, 7 insertions, 6 deletions
diff --git a/day.php b/day.php
index 8a5a641..8ca7a8e 100644
--- a/day.php
+++ b/day.php
@@ -233,17 +233,18 @@ include (BASE.'includes/header.inc.php');
$event_end = date ($timeFormat, $event_end);
$event_calno = $this_time_arr[($event_length[$i]['key'])]['calnumber'];
$event_status = strtolower($this_time_arr[($event_length[$i]['key'])]['status']);
- if ($event_calno < 1) $event_calno=1;
- if ($event_calno > 7) $event_calno=7;
+ if ($event_calno < 1) $event_calno = 1;
+ if ($event_calno > 7) $event_calno = 7;
echo '<td rowspan="' . $event_length[$i]['length'] . '" colspan="' . $drawWidth . '" align="left" valign="top" class="eventbg2_'.$event_calno.'">'."\n";
echo '<table width="100%" border="0" cellspacing="0" cellpadding="2">'."\n";
echo '<tr>'."\n";
echo '<td class="eventborder"><font class="eventfont"><b>'.$event_start.'</b> - '.$event_end.'</font></td>'."\n";
- echo '<td class="eventborder" width="9" align="right" valign="center"><font class="eventfont">';
- if ($event_status == '') echo '&nbsp;';
- else echo '<img src="images/'.$event_status.'.gif" width="9" height="9" alt="" border="0" hspace="0" vspace="0">';
- echo '</font></td>'."\n";
+ if ($event_status != '') {
+ echo '<td class="eventborder" width="9" align="right" valign="center"><font class="eventfont">';
+ echo '<img src="images/'.$event_status.'.gif" width="9" height="9" alt="" border="0" hspace="0" vspace="0">';
+ echo '</font></td>'."\n";
+ }
echo '</tr>'."\n";
echo '<tr>'."\n";
echo '<td colspan="2">'."\n";

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