aboutsummaryrefslogtreecommitdiffstats
path: root/day.php
diff options
context:
space:
mode:
authorWesley Miaw <josuah@users.sourceforge.net>2003-09-18 00:49:03 +0000
committerWesley Miaw <josuah@users.sourceforge.net>2003-09-18 00:49:03 +0000
commit424a2597821fa097dc1762d48493ab2a5e9969b0 (patch)
treeeeff99a47236fd9e2e38ed170313f47f329fc68a /day.php
parentca23245565ca0e85b88f50dcc4b1475a30640ca0 (diff)
downloadphpicalendar-424a2597821fa097dc1762d48493ab2a5e9969b0.tar.gz
phpicalendar-424a2597821fa097dc1762d48493ab2a5e9969b0.tar.bz2
phpicalendar-424a2597821fa097dc1762d48493ab2a5e9969b0.zip
Feature Request [795115] Graphical Event Status
Events which have one of the RFC defined status values of confirmed, tentative, or cancelled will display a small icon in the upper-right corner of the event block shown on the calendar. Only applies to non-all-day events on the day and week views.
Diffstat (limited to 'day.php')
-rw-r--r--day.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/day.php b/day.php
index 2b6ed59..1e01091 100644
--- a/day.php
+++ b/day.php
@@ -232,6 +232,7 @@ include (BASE.'includes/header.inc.php');
$event_start = date ($timeFormat, $event_start);
$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;
@@ -239,9 +240,13 @@ include (BASE.'includes/header.inc.php');
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";
echo '</tr>'."\n";
echo '<tr>'."\n";
- echo '<td>'."\n";
+ echo '<td colspan="2">'."\n";
echo '<table width="100%" border="0" cellpadding="1" cellspacing="0">'."\n";
echo '<tr>'."\n";
echo '<td class="eventbg_'.$event_calno.'">';

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