From b941c90ce2d8f9a1248425087063257aacd615bc Mon Sep 17 00:00:00 2001 From: Chad Little Date: Thu, 20 Nov 2003 05:18:38 +0000 Subject: Added URL support to popup, re-wrote event.php for less code. --- week.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'week.php') diff --git a/week.php b/week.php index 81dbf76..bb14818 100644 --- a/week.php +++ b/week.php @@ -164,6 +164,7 @@ include (BASE.'includes/header.inc.php'); echo "\n"; $event_calno = $allday['calnumber']; $event_calna = $allday['calname']; + $event_url = $allday['url']; if ($event_calno < 1) $event_calno=1; if ($event_calno > 7) $event_calno=7; echo ''; @@ -175,7 +176,8 @@ include (BASE.'includes/header.inc.php'); 12, '', "", - "psf"); + "psf", + $event_url); echo "\n"; } echo "\n"; @@ -185,9 +187,7 @@ include (BASE.'includes/header.inc.php'); $i++; } while ($i < 7); echo "\n"; - } - // $master_array[($getdate)]["$day_time"] - + } $thisdate = $start_week_time; for ($i=0;$i<7;$i++) { $thisday = date("Ymd", $thisdate); @@ -308,7 +308,8 @@ include (BASE.'includes/header.inc.php'); if (isset($this_time_arr[($event_length[$thisday][$i]["key"])]['display_end'])) $event_end = strtotime ($this_time_arr[($event_length[$thisday][$i]["key"])]['display_end']); $event_end = date ($timeFormat, $event_end); - $event_calna = $this_time_arr[($event_length[$thisday][$i]["key"])]['calname']; + $event_calna = $this_time_arr[($event_length[$thisday][$i]["key"])]['calname']; + $event_url = $this_time_arr[($event_length[$thisday][$i]["key"])]['url']; openevent("$event_calna", "$event_start", "$event_end", @@ -317,7 +318,8 @@ include (BASE.'includes/header.inc.php'); 25, "", "", - "psf"); + "psf", + $event_url); echo "\n"; echo "\n"; echo "\n"; -- cgit v1.2.3