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. --- day.php | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) (limited to 'day.php') diff --git a/day.php b/day.php index 4fcfeae..8a34cfe 100644 --- a/day.php +++ b/day.php @@ -91,18 +91,11 @@ 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 ''; - openevent("$event_calna", - "", - "", - $allday, - 0, - "", - '', - "", - "psf"); + openevent($event_calna, '', '', $allday, 0, '', '', '', 'psf', $url); echo "\n\n"; } echo ''."\n"; @@ -253,16 +246,9 @@ include (BASE.'includes/header.inc.php'); echo ''."\n"; echo ''."\n"; echo ''."\n"; echo '
'; - $event_calna = $this_time_arr[($event_length[$i]['key'])]['calname']; - openevent("$event_calna", - "$event_start", - "$event_end", - $this_time_arr[($event_length[$i]['key'])], - "", - 0, - "", - "", - "psf"); + $event_calna = $this_time_arr[($event_length[$i]['key'])]['calname']; + $event_url = $this_time_arr[($event_length[$i]['key'])]['url']; + openevent($event_calna, $event_start, $event_end, $this_time_arr[($event_length[$i]['key'])], '', 0, '', '', 'psf', $event_url); echo '
'."\n"; echo ''."\n"; -- cgit v1.2.3