aboutsummaryrefslogtreecommitdiffstats
path: root/week.php
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2003-03-10 19:48:22 +0000
committerChad Little <clittle@users.sourceforge.net>2003-03-10 19:48:22 +0000
commitac1b58f573dbf1ee088528f1e232ca6e04cfa76a (patch)
treeba2f7e3645e45f6ac5e2422f2b8cd2f3fb88d358 /week.php
parentf35b2a9d4c0e7b7674316e29c0a0381c27f4f27d (diff)
downloadphpicalendar-ac1b58f573dbf1ee088528f1e232ca6e04cfa76a.tar.gz
phpicalendar-ac1b58f573dbf1ee088528f1e232ca6e04cfa76a.tar.bz2
phpicalendar-ac1b58f573dbf1ee088528f1e232ca6e04cfa76a.zip
Support for displaying event STATUS in the java pop-up.
Diffstat (limited to 'week.php')
-rw-r--r--week.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/week.php b/week.php
index cdebc64..7185e1c 100644
--- a/week.php
+++ b/week.php
@@ -182,10 +182,11 @@ for ($i=0;$i<7;$i++) {
$event_text2 = urlencode(addslashes($all_day_text));
$all_day_text = word_wrap($all_day_text, 12, $allday_week_lines);
$description = addslashes(urlencode($allday["description"]));
+ $status = $allday["status"];
$event_start = '';
$event_end = '';
echo "<tr>\n";
- echo "<td valign=\"top\" align=\"center\" class=\"eventbg\"><a class=\"psf\" href=\"javascript:openEventInfo('$event_text2', '$calendar_name', '$event_start', '$event_end', '$description')\"><font color=\"#ffffff\">$all_day_text</font></a></td>\n";
+ echo "<td valign=\"top\" align=\"center\" class=\"eventbg\"><a class=\"psf\" href=\"javascript:openEventInfo('$event_text2', '$calendar_name', '$event_start', '$event_end', '$description', '$status')\"><font color=\"#ffffff\">$all_day_text</font></a></td>\n";
echo "</tr>\n";
}
echo "</table>\n";
@@ -303,6 +304,7 @@ for ($i=0;$i<7;$i++) {
$event_start = date ($timeFormat, $event_start);
$event_end = date ($timeFormat, $event_end);
$calendar_name2 = urlencode(addslashes($calendar_name));
+ $status = $this_time_arr[($event_length[$thisday][$i]["key"])]["status"];
echo "<td rowspan=\"" . $event_length[$thisday][$i]["length"] . "\" colspan=\"" . $drawWidth . "\" align=\"left\" valign=\"top\" class=\"eventbg2week\">\n";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n";
echo "<tr>\n";
@@ -312,7 +314,7 @@ for ($i=0;$i<7;$i++) {
echo "<td>\n";
echo "<table width=\"100%\" border=\"0\" cellpadding=\"1\" cellspacing=\"0\">\n";
echo "<tr>\n";
- echo "<td class=\"eventbg\"><a class=\"psf\" href=\"javascript:openEventInfo('$event_text2', '$calendar_name2', '$event_start', '$event_end', '$description')\"><font class=\"V10W\">$event_text</font></a></td>\n";
+ echo "<td class=\"eventbg\"><a class=\"psf\" href=\"javascript:openEventInfo('$event_text2', '$calendar_name2', '$event_start', '$event_end', '$description', '$status')\"><font class=\"V10W\">$event_text</font></a></td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "</td>\n";

© 2014-2024 Faster IT GmbH | imprint | privacy policy