From: <jo...@us...> - 2003-09-18 00:49:17
|
Update of /cvsroot/phpicalendar/phpicalendar In directory sc8-pr-cvs1:/tmp/cvs-serv27979 Modified Files: day.php week.php Log Message: 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. Index: day.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/day.php,v retrieving revision 1.95 retrieving revision 1.96 diff -C2 -d -r1.95 -r1.96 *** day.php 17 Sep 2003 05:18:23 -0000 1.95 --- day.php 18 Sep 2003 00:49:03 -0000 1.96 *************** *** 233,236 **** --- 233,237 ---- $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; *************** *** 240,246 **** echo '<tr>'."\n"; echo '<td class="eventborder"><font class="eventfont"><b>'.$event_start.'</b> - '.$event_end.'</font></td>'."\n"; echo '</tr>'."\n"; echo '<tr>'."\n"; ! echo '<td>'."\n"; echo '<table width="100%" border="0" cellpadding="1" cellspacing="0">'."\n"; echo '<tr>'."\n"; --- 241,251 ---- 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 colspan="2">'."\n"; echo '<table width="100%" border="0" cellpadding="1" cellspacing="0">'."\n"; echo '<tr>'."\n"; Index: week.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/week.php,v retrieving revision 1.96 retrieving revision 1.97 diff -C2 -d -r1.96 -r1.97 *** week.php 17 Sep 2003 05:18:23 -0000 1.96 --- week.php 18 Sep 2003 00:49:03 -0000 1.97 *************** *** 286,289 **** --- 286,290 ---- $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; *************** *** 292,298 **** echo "<tr>\n"; echo "<td class=\"eventborder\"><font class=\"V10WB\"><b>$event_start</b></font></td>\n"; echo "</tr>\n"; echo "<tr>\n"; ! echo "<td>\n"; echo "<table width=\"100%\" border=\"0\" cellpadding=\"1\" cellspacing=\"0\">\n"; echo "<tr>\n"; --- 293,303 ---- 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 colspan=\"2\">\n"; echo "<table width=\"100%\" border=\"0\" cellpadding=\"1\" cellspacing=\"0\">\n"; echo "<tr>\n"; |