aboutsummaryrefslogtreecommitdiffstats
path: root/includes
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2003-05-28 04:19:25 +0000
committerChad Little <clittle@users.sourceforge.net>2003-05-28 04:19:25 +0000
commit015920d1d0228907f9815c02f388021fb3a5bfc5 (patch)
tree4558f14e170c51f706603dc63e9936bbdae77458 /includes
parent9e07f4f2019973e0a42d6b1e21534572efee8013 (diff)
downloadphpicalendar-015920d1d0228907f9815c02f388021fb3a5bfc5.tar.gz
phpicalendar-015920d1d0228907f9815c02f388021fb3a5bfc5.tar.bz2
phpicalendar-015920d1d0228907f9815c02f388021fb3a5bfc5.zip
Started migration of javascript to function, added improved event.php for location, status, organizer, and attendees.
Updated english language include.
Diffstat (limited to 'includes')
-rw-r--r--includes/event.php84
1 files changed, 77 insertions, 7 deletions
diff --git a/includes/event.php b/includes/event.php
index bccce01..8cc84fb 100644
--- a/includes/event.php
+++ b/includes/event.php
@@ -34,6 +34,24 @@ if (isset($HTTP_GET_VARS['status']) && ($HTTP_GET_VARS['status'] !== '') ) {
$status = '';
}
+if (isset($HTTP_GET_VARS['location']) && ($HTTP_GET_VARS['location'] !== '') ) {
+ $location = $HTTP_GET_VARS['location'];
+} else {
+ $location = '';
+}
+
+if (isset($HTTP_GET_VARS['organizer']) && ($HTTP_GET_VARS['organizer'] !== '') ) {
+ $organizer = $HTTP_GET_VARS['organizer'];
+} else {
+ $organizer = '';
+}
+
+if (isset($HTTP_GET_VARS['attendee']) && ($HTTP_GET_VARS['attendee'] !== '') ) {
+ $attendee = $HTTP_GET_VARS['attendee'];
+} else {
+ $attendee = '';
+}
+
$event = rawurldecode($event);
$event = stripslashes($event);
$event = str_replace('\\', '', $event);
@@ -41,6 +59,17 @@ $event = htmlspecialchars($event);
$description = rawurldecode($description);
$description = stripslashes($description);
$description = str_replace('\\', '', $description);
+$organizer = rawurldecode($organizer);
+$organizer = stripslashes($organizer);
+$organizer = str_replace('\\', '', $organizer);
+$organizer = unserialize ($organizer);
+$attendee = rawurldecode($attendee);
+$attendee = stripslashes($attendee);
+$attendee = str_replace('\\', '', $attendee);
+$attendee = unserialize ($attendee);
+$location = rawurldecode($location);
+$location = stripslashes($location);
+$location = str_replace('\\', '', $location);
//$description = htmlspecialchars($description);
$calendar_name2 = rawurldecode($calendar_name);
$calendar_name2 = stripslashes($calendar_name2);
@@ -85,14 +114,55 @@ $calendar_name2 = str_replace('\\', '', $calendar_name2);
'<a target="_new" href="\0">\0</a>', $description); ?></td>
</tr>
<?php } ?>
+
+ <?php
+
+ if ($organizer) {
+ $i = 0;
+ echo '<tr>';
+ echo '<td width="1%"><img src="images/spacer.gif" width="6" height="1" alt=" "></td>';
+ echo '<td align="left" colspan="2" class="V12">';
+ echo $organizer_lang.' - ';
+ foreach ($organizer as $val) {
+ $organizers .= $organizer[$i]["name"].', ';
+ $i++;
+ }
+ $organizers = substr ($organizers, 0, -2);
+ echo $organizers.'</td></tr>';
+ }
+
+ if ($attendee) {
+ $i = 0;
+ echo '<tr>';
+ echo '<td width="1%"><img src="images/spacer.gif" width="6" height="1" alt=" "></td>';
+ echo '<td align="left" colspan="2" class="V12">';
+ echo $attendee_lang.' - ';
+ foreach ($attendee as $val) {
+ $attendees .= $attendee[$i]["name"].', ';
+ $i++;
+ }
+ $attendees = substr ($attendees, 0, -2);
+ echo $attendees.'</td></tr>';
+ }
- <?php if ($status) { ?>
- <tr>
- <td width="1%"><img src="images/spacer.gif" width="6" height="1" alt=" "></td>
- <td align="left" colspan="2" class="V12">
- <?php echo "$status"; ?></td>
- </tr>
- <?php } ?>
+ if ($status) {
+ echo '<tr>';
+ echo '<td width="1%"><img src="images/spacer.gif" width="6" height="1" alt=" "></td>';
+ echo '<td align="left" colspan="2" class="V12">';
+ echo $status_lang.' - '.$status.'</td>';
+ echo '</tr>';
+ }
+
+ if ($location) {
+ echo '<tr>';
+ echo '<td width="1%"><img src="images/spacer.gif" width="6" height="1" alt=" "></td>';
+ echo '<td align="left" colspan="2" class="V12">';
+ echo $location_lang.' - '.$location.'</td>';
+ echo '</tr>';
+ }
+
+
+ ?>
</table>
</td>

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