From 19cac1259321933ee407ed6b077ef3d2aa9e9e58 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Wed, 19 Nov 2003 07:54:09 +0000 Subject: Checked in a new popup system. Also added calname to calendar for popup reference. --- includes/event.php | 38 +++++++++++++++++++------------------- includes/header.inc.php | 14 +++++++++++++- includes/sidebar.php | 7 +++---- 3 files changed, 35 insertions(+), 24 deletions(-) (limited to 'includes') diff --git a/includes/event.php b/includes/event.php index c8492f0..b847c5b 100644 --- a/includes/event.php +++ b/includes/event.php @@ -3,48 +3,48 @@ define('BASE', '../'); include (BASE.'functions/init.inc.php'); // Load vars -if (isset($HTTP_GET_VARS['event']) && ($HTTP_GET_VARS['event'] !== '') ) { - $event=$HTTP_GET_VARS['event']; +if (isset($HTTP_POST_VARS['event']) && ($HTTP_POST_VARS['event'] !== '') ) { + $event=$HTTP_POST_VARS['event']; } else { $event=''; } -if (isset($HTTP_GET_VARS['description']) && ($HTTP_GET_VARS['description'] !== '') ) { - $description=$HTTP_GET_VARS['description']; +if (isset($HTTP_POST_VARS['description']) && ($HTTP_POST_VARS['description'] !== '') ) { + $description=$HTTP_POST_VARS['description']; } else { $description=''; } -if (isset($HTTP_GET_VARS['cal']) && ($HTTP_GET_VARS['cal'] !== '') ) { - $calendar_name=$HTTP_GET_VARS['cal']; +if (isset($HTTP_POST_VARS['cal']) && ($HTTP_POST_VARS['cal'] !== '') ) { + $calendar_name=$HTTP_POST_VARS['cal']; } else { $calendar_name=''; } -if (isset($HTTP_GET_VARS['start']) && ($HTTP_GET_VARS['start'] !== '') ) { - $start=$HTTP_GET_VARS['start']; +if (isset($HTTP_POST_VARS['start']) && ($HTTP_POST_VARS['start'] !== '') ) { + $start=$HTTP_POST_VARS['start']; } else { $start=''; } -if (isset($HTTP_GET_VARS['end']) && ($HTTP_GET_VARS['end'] !== '') ) { - $end=$HTTP_GET_VARS['end']; +if (isset($HTTP_POST_VARS['end']) && ($HTTP_POST_VARS['end'] !== '') ) { + $end=$HTTP_POST_VARS['end']; } else { $end=''; } -if (isset($HTTP_GET_VARS['status']) && ($HTTP_GET_VARS['status'] !== '') ) { - $status=$HTTP_GET_VARS['status']; +if (isset($HTTP_POST_VARS['status']) && ($HTTP_POST_VARS['status'] !== '') ) { + $status=$HTTP_POST_VARS['status']; } else { $status=''; } -if (isset($HTTP_GET_VARS['location']) && ($HTTP_GET_VARS['location'] !== '') ) { - $location=$HTTP_GET_VARS['location']; +if (isset($HTTP_POST_VARS['location']) && ($HTTP_POST_VARS['location'] !== '') ) { + $location=$HTTP_POST_VARS['location']; } else { $location=''; } -if (isset($HTTP_GET_VARS['organizer']) && ($HTTP_GET_VARS['organizer'] !== '') ) { - $organizer=$HTTP_GET_VARS['organizer']; +if (isset($HTTP_POST_VARS['organizer']) && ($HTTP_POST_VARS['organizer'] !== '') ) { + $organizer=$HTTP_POST_VARS['organizer']; } else { $organizer=''; } -if (isset($HTTP_GET_VARS['attendee']) && ($HTTP_GET_VARS['attendee'] !== '') ) { - $attendee=$HTTP_GET_VARS['attendee']; +if (isset($HTTP_POST_VARS['attendee']) && ($HTTP_POST_VARS['attendee'] !== '') ) { + $attendee=$HTTP_POST_VARS['attendee']; } else { $attendee=''; } @@ -179,4 +179,4 @@ if ($location) { - \ No newline at end of file + diff --git a/includes/header.inc.php b/includes/header.inc.php index 6c35d0d..3c15bc5 100644 --- a/includes/header.inc.php +++ b/includes/header.inc.php @@ -12,7 +12,19 @@ echo ""; } if (isset($master_array['-2'])) include (BASE.'functions/todo.js'); + include (BASE.'functions/event.js'); ?> - \ No newline at end of file + + diff --git a/includes/sidebar.php b/includes/sidebar.php index 4b7d5b8..0a08412 100644 --- a/includes/sidebar.php +++ b/includes/sidebar.php @@ -102,20 +102,19 @@ $search_box = '
< $description = addslashes(urlencode($val["description"])); $event_start = @$val["event_start"]; $event_end = @$val["event_end"]; + $event_calna = @$val["calname"]; $event_start = date ($timeFormat, @strtotime ("$event_start")); $event_end = date ($timeFormat, @strtotime ("$event_end")); - $calendar_name2 = addslashes($calendar_name); - $calendar_name2 = urlencode($calendar_name2); $event_text = word_wrap($event_text, 21, $tomorrows_events_lines); if (!isset($val["event_start"])) { $event_start = $all_day_lang; $event_end = ''; - openevent($calendar_name2, $event_start, + openevent($event_calna, $event_start, $event_end, $val, $tomorrows_events_lines, 21, '', '', 'psf'); echo "
\n"; } else { - openevent($calendar_name2, $event_start, + openevent($event_calna, $event_start, $event_end, $val, $tomorrows_events_lines, 21, '• ', '', 'psf'); echo "
\n"; } -- cgit v1.2.3