From 424a2597821fa097dc1762d48493ab2a5e9969b0 Mon Sep 17 00:00:00 2001 From: Wesley Miaw Date: Thu, 18 Sep 2003 00:49:03 +0000 Subject: 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. --- week.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'week.php') 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 ''."\n"; echo "\n"; echo "\n"; echo "\n"; + echo '\n"; echo "\n"; echo "\n"; - echo "
$event_start'; + if ($event_status == '') echo ' '; + else echo ''; + echo "
\n"; + echo "\n"; echo "\n"; echo "\n"; echo '
'; -- cgit v1.2.3