aboutsummaryrefslogtreecommitdiffstats
path: root/functions/date_functions.php
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2004-01-31 07:07:37 +0000
committerChad Little <clittle@users.sourceforge.net>2004-01-31 07:07:37 +0000
commitc143f2891418cb0f0ae0f80f7d2d58e69879a722 (patch)
tree334840b988d61e27d5ae3ab1b9ee29a2cf0bdd0a /functions/date_functions.php
parent90f43e0c205d2e511bb0255fa20d422d15cffc64 (diff)
downloadphpicalendar-c143f2891418cb0f0ae0f80f7d2d58e69879a722.tar.gz
phpicalendar-c143f2891418cb0f0ae0f80f7d2d58e69879a722.tar.bz2
phpicalendar-c143f2891418cb0f0ae0f80f7d2d58e69879a722.zip
Many many changes. Faster templating.
Diffstat (limited to 'functions/date_functions.php')
-rw-r--r--functions/date_functions.php15
1 files changed, 8 insertions, 7 deletions
diff --git a/functions/date_functions.php b/functions/date_functions.php
index 72b9a9c..02cfa77 100644
--- a/functions/date_functions.php
+++ b/functions/date_functions.php
@@ -195,21 +195,22 @@ function openevent($calendar_name, $start, $end, $arr, $lines, $wrap, $pre_text,
$escaped_end = addslashes($end);
// fix for URL-length bug in IE: populate and submit a hidden form on click
static $popup_data_index = 0;
-echo <<<END
+$return = "
- <script language="Javascript" type="text/javascript"><!--
+ <script language=\"Javascript\" type=\"text/javascript\"><!--
var eventData = new EventData('$escaped_event', '$escaped_calendar', '$escaped_start', '$escaped_end', '$description', '$status', '$location', '$organizer', '$attendee', '$url');
document.popup_data[$popup_data_index] = eventData;
- // --></script>
+ // --></script>";
-END;
- echo '<a class="'.$link_class.'" href="#" onclick="openEventWindow('.$popup_data_index.'); return false;">';
+ $return .= '<a class="'.$link_class.'" href="#" onclick="openEventWindow('.$popup_data_index.'); return false;">';
$popup_data_index++;
} else {
- echo '<a class="'.$link_class.'" href="'.$res[1].'">';
+ $return .= '<a class="'.$link_class.'" href="'.$res[1].'">';
}
- echo $pre_text.$event_text.$post_text.'</a>'."\n";
+ $return .= $pre_text.$event_text.$post_text.'</a>'."\n";
}
+
+ return $return;
}

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