aboutsummaryrefslogtreecommitdiffstats
path: root/week.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 /week.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 'week.php')
-rw-r--r--week.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/week.php b/week.php
index 9cb77c1..768bb1d 100644
--- a/week.php
+++ b/week.php
@@ -285,15 +285,20 @@ include (BASE.'includes/header.inc.php');
$event_start = $this_time_arr[($event_length[$thisday][$i]["key"])]["start_unixtime"];
$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;
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";
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-2024 Faster IT GmbH | imprint | privacy policy