aboutsummaryrefslogtreecommitdiffstats
path: root/includes
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2003-11-19 07:54:09 +0000
committerChad Little <clittle@users.sourceforge.net>2003-11-19 07:54:09 +0000
commit19cac1259321933ee407ed6b077ef3d2aa9e9e58 (patch)
tree0be77a87ce554c71c61e8c61e7e4f27da9580a17 /includes
parentc5dca58b0b5707155d732a9f43894513bfc23b5c (diff)
downloadphpicalendar-19cac1259321933ee407ed6b077ef3d2aa9e9e58.tar.gz
phpicalendar-19cac1259321933ee407ed6b077ef3d2aa9e9e58.tar.bz2
phpicalendar-19cac1259321933ee407ed6b077ef3d2aa9e9e58.zip
Checked in a new popup system. Also added calname to calendar for popup reference.
Diffstat (limited to 'includes')
-rw-r--r--includes/event.php38
-rw-r--r--includes/header.inc.php14
-rw-r--r--includes/sidebar.php7
3 files changed, 35 insertions, 24 deletions
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) {
</body>
<!-- End PAGE -->
-</html> \ No newline at end of file
+</html>
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 "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"RSS\" href=\"".$default_path."/rss/rss.php?cal=".$cal."&amp;rssview=week\">";
}
if (isset($master_array['-2'])) include (BASE.'functions/todo.js');
+ include (BASE.'functions/event.js');
?>
</head>
-<body bgcolor="#FFFFFF"> \ No newline at end of file
+<body bgcolor="#FFFFFF">
+<form name="eventPopupForm" id="eventPopupForm" method="post" action="includes/event.php" style="display: none;">
+ <input type="hidden" name="event" id="event" value="">
+ <input type="hidden" name="cal" id="cal" value="">
+ <input type="hidden" name="start" id="start" value="">
+ <input type="hidden" name="end" id="end" value="">
+ <input type="hidden" name="description" id="description" value="">
+ <input type="hidden" name="status" id="status" value="">
+ <input type="hidden" name="location" id="location" value="">
+ <input type="hidden" name="organizer" id="organizer" value="">
+ <input type="hidden" name="attendee" id="attendee" value="">
+</form>
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 = '<form style="margin-bottom:0;" action="search.php" method="GET"><
$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, '<i>', '</i>', 'psf');
echo "<br>\n";
} else {
- openevent($calendar_name2, $event_start,
+ openevent($event_calna, $event_start,
$event_end, $val, $tomorrows_events_lines, 21, '<font class="G10B">&#149; ', '</font>', 'psf');
echo "<br>\n";
}

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