aboutsummaryrefslogtreecommitdiffstats
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
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.
-rw-r--r--day.php7
-rw-r--r--images/cancelled.gifbin0 -> 58 bytes
-rw-r--r--images/confirmed.gifbin0 -> 58 bytes
-rw-r--r--images/tentative.gifbin0 -> 59 bytes
-rw-r--r--week.php7
5 files changed, 12 insertions, 2 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.'">';
diff --git a/images/cancelled.gif b/images/cancelled.gif
new file mode 100644
index 0000000..6afc1a7
--- /dev/null
+++ b/images/cancelled.gif
Binary files differ
diff --git a/images/confirmed.gif b/images/confirmed.gif
new file mode 100644
index 0000000..9c09113
--- /dev/null
+++ b/images/confirmed.gif
Binary files differ
diff --git a/images/tentative.gif b/images/tentative.gif
new file mode 100644
index 0000000..d1dad95
--- /dev/null
+++ b/images/tentative.gif
Binary files differ
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