aboutsummaryrefslogtreecommitdiffstats
path: root/functions/template.php
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2007-05-19 16:18:13 +0000
committerJim Hu <jimhu@users.sourceforge.net>2007-05-19 16:18:13 +0000
commitcc3fc71a8aca6cbd6c6263b9b4e08eaebaa52a44 (patch)
treeb58eecf29add350a9be0399f874c640c9a3acc04 /functions/template.php
parentd2594889e58f17893f8a7dc4477b1723a6faf391 (diff)
downloadphpicalendar-cc3fc71a8aca6cbd6c6263b9b4e08eaebaa52a44.tar.gz
phpicalendar-cc3fc71a8aca6cbd6c6263b9b4e08eaebaa52a44.tar.bz2
phpicalendar-cc3fc71a8aca6cbd6c6263b9b4e08eaebaa52a44.zip
fix bug 1641928 change todo popup to be like event popup
Diffstat (limited to 'functions/template.php')
-rw-r--r--functions/template.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/functions/template.php b/functions/template.php
index 62c9edc..1353f75 100644
--- a/functions/template.php
+++ b/functions/template.php
@@ -779,7 +779,7 @@ class Page {
$important = trim($match2[1]);
$normal = trim($match3[1]);
$nugget2 = '';
-
+ $todo_popup_data_index = 0;
if (is_array($master_array['-2'])) {
foreach ($master_array['-2'] as $vtodo_times) {
foreach ($vtodo_times as $val) {
@@ -805,8 +805,17 @@ class Page {
'start_date' => $start_date,
'status' => $status,
'vtodo_text' => $vtodo_text);
+ $vtodo_array = base64_encode(urlencode(serialize($vtodo_array)));
+ $todo = "
+ <script language=\"Javascript\" type=\"text/javascript\"><!--
+ var todoData = new TodoData('$vtodo_array','$vtodo_text');
+ document.todo_popup_data[$todo_popup_data_index] = todoData;
+ // --></script>";
- $vtodo_array = base64_encode(serialize($vtodo_array));
+ $todo .= '<a class="psf" title="'.$title.'" href="#" onclick="openTodoInfo('.$todo_popup_data_index.'); return false;">';
+ $todo_popup_data_index++;
+ $vtodo_array = $todo;
+
$vtodo_text = word_wrap(strip_tags(str_replace('<br />',' ',$vtodo_text), '<b><i><u>'), 21, $tomorrows_events_lines);
$data = array ('{VTODO_TEXT}', '{VTODO_ARRAY}');
$rep = array ($vtodo_text, $vtodo_array);

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