diff options
author | Wesley Miaw <josuah@users.sourceforge.net> | 2003-09-18 00:49:03 +0000 |
---|---|---|
committer | Wesley Miaw <josuah@users.sourceforge.net> | 2003-09-18 00:49:03 +0000 |
commit | 424a2597821fa097dc1762d48493ab2a5e9969b0 (patch) | |
tree | eeff99a47236fd9e2e38ed170313f47f329fc68a | |
parent | ca23245565ca0e85b88f50dcc4b1475a30640ca0 (diff) | |
download | phpicalendar-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.
-rw-r--r-- | day.php | 7 | ||||
-rw-r--r-- | images/cancelled.gif | bin | 0 -> 58 bytes | |||
-rw-r--r-- | images/confirmed.gif | bin | 0 -> 58 bytes | |||
-rw-r--r-- | images/tentative.gif | bin | 0 -> 59 bytes | |||
-rw-r--r-- | week.php | 7 |
5 files changed, 12 insertions, 2 deletions
@@ -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 ' '; + 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.'">'; diff --git a/images/cancelled.gif b/images/cancelled.gif Binary files differnew file mode 100644 index 0000000..6afc1a7 --- /dev/null +++ b/images/cancelled.gif diff --git a/images/confirmed.gif b/images/confirmed.gif Binary files differnew file mode 100644 index 0000000..9c09113 --- /dev/null +++ b/images/confirmed.gif diff --git a/images/tentative.gif b/images/tentative.gif Binary files differnew file mode 100644 index 0000000..d1dad95 --- /dev/null +++ b/images/tentative.gif @@ -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 ' '; + 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.'">'; |