aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--day.php13
-rw-r--r--week.php13
2 files changed, 14 insertions, 12 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";
diff --git a/week.php b/week.php
index 09c65af..04e8d58 100644
--- a/week.php
+++ b/week.php
@@ -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 '&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