diff options
author | Chad Little <clittle@users.sourceforge.net> | 2004-02-01 04:16:36 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2004-02-01 04:16:36 +0000 |
commit | 42ec254f9caa7322073f3356c82560970a7e3d32 (patch) | |
tree | dca0f64512a6a4ce921870157fca0635947d5bb0 /functions | |
parent | 972908f8a0f06713db318770eb204579fa08a507 (diff) | |
download | phpicalendar-42ec254f9caa7322073f3356c82560970a7e3d32.tar.gz phpicalendar-42ec254f9caa7322073f3356c82560970a7e3d32.tar.bz2 phpicalendar-42ec254f9caa7322073f3356c82560970a7e3d32.zip |
Events now spawn popup on pages.
Diffstat (limited to 'functions')
-rw-r--r-- | functions/date_functions.php | 1 | ||||
-rw-r--r-- | functions/template.php | 4 |
2 files changed, 1 insertions, 4 deletions
diff --git a/functions/date_functions.php b/functions/date_functions.php index 02cfa77..ccd6bf6 100644 --- a/functions/date_functions.php +++ b/functions/date_functions.php @@ -196,7 +196,6 @@ function openevent($calendar_name, $start, $end, $arr, $lines, $wrap, $pre_text, // fix for URL-length bug in IE: populate and submit a hidden form on click static $popup_data_index = 0; $return = " - <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; diff --git a/functions/template.php b/functions/template.php index a59ea29..a84be3a 100644 --- a/functions/template.php +++ b/functions/template.php @@ -2,8 +2,6 @@ //print_r($master_array); - - class Page { var $page; function draw_month($template_p, $offset = '+0', $type) { @@ -21,7 +19,6 @@ class Page { $t_month[0] = trim($match3[1]); $t_month[1] = trim($match4[1]); $t_month[2] = trim($match5[1]); - $startweek = trim($match6[1]); $endweek = trim($match7[1]); if ($type != 'medium') { @@ -126,6 +123,7 @@ class Page { $return = preg_replace('!<\!-- loop weekday on -->(.*)<\!-- loop weekday off -->!is', $weekday_loop, $template_p); $return = ereg_replace('<!-- loop monthweeks on -->(.*)<!-- loop monthweeks off -->', $middle, $return); $return = str_replace('{MONTH_TITLE}', $month_title, $return); + $return = str_replace('{CAL}', $cal, $return); return $return; |