diff options
author | Chad Little <clittle@users.sourceforge.net> | 2003-09-20 20:53:13 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2003-09-20 20:53:13 +0000 |
commit | 6be0bb2987c333fc06d12c644a1ea31e4a7911c8 (patch) | |
tree | fb85c8ae0bc8a8cd8d98e306956ed85ed498f805 /week.php | |
parent | 7d820356800b15474acaa36b024e84e893c08546 (diff) | |
download | phpicalendar-6be0bb2987c333fc06d12c644a1ea31e4a7911c8.tar.gz phpicalendar-6be0bb2987c333fc06d12c644a1ea31e4a7911c8.tar.bz2 phpicalendar-6be0bb2987c333fc06d12c644a1ea31e4a7911c8.zip |
Cleaned up event_status displaying.
Diffstat (limited to 'week.php')
-rw-r--r-- | week.php | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -286,16 +286,17 @@ include (BASE.'includes/header.inc.php'); $event_start = date ($timeFormat, $event_start); $event_calno = $this_time_arr[($event_length[$thisday][$i]['key'])]['calnumber']; $event_status = strtolower($this_time_arr[($event_length[$thisday][$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[$thisday][$i]['length'] . '" colspan="' . $drawWidth . '" align="left" valign="top" class="eventbg2week_'.$event_calno.'">'."\n"; echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n"; echo "<tr>\n"; echo "<td class=\"eventborder\"><font class=\"V10WB\"><b>$event_start</b></font></td>\n"; - echo '<td class="eventborder" width="9" align="right" valign="center"><font class="eventfont">'; - if ($event_status == '') echo ' '; - 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"; |