aboutsummaryrefslogtreecommitdiffstats
path: root/includes
diff options
context:
space:
mode:
authorGreg Westin <westin@users.sourceforge.net>2003-02-08 04:47:57 +0000
committerGreg Westin <westin@users.sourceforge.net>2003-02-08 04:47:57 +0000
commit1abdce2be8b964f28768e663e84359eb321a369c (patch)
tree424c341ff7bff2b17470207011c92bb496f9d7e7 /includes
parent7738ba2742cfd2232c9bf78e0a98ba79c85c9456 (diff)
downloadphpicalendar-1abdce2be8b964f28768e663e84359eb321a369c.tar.gz
phpicalendar-1abdce2be8b964f28768e663e84359eb321a369c.tar.bz2
phpicalendar-1abdce2be8b964f28768e663e84359eb321a369c.zip
-Changes to functions/todo.js and functions/event.js fix bug 654486.
-Other miscellaneous changes to event and todo popups. -Changed a variable name to avoid confusion with other similarly-named var
Diffstat (limited to 'includes')
-rw-r--r--includes/event.php6
-rw-r--r--includes/sidebar.php17
-rw-r--r--includes/todo.php4
3 files changed, 16 insertions, 11 deletions
diff --git a/includes/event.php b/includes/event.php
index d7ac996..3d95c0a 100644
--- a/includes/event.php
+++ b/includes/event.php
@@ -12,8 +12,8 @@ if (isset($HTTP_GET_VARS['description']) && ($HTTP_GET_VARS['description'] !== '
} else {
$description = '';
}
-if (isset($HTTP_GET_VARS['calendar_name']) && ($HTTP_GET_VARS['calendar_name'] !== '') ) {
- $calendar_name = $HTTP_GET_VARS['calendar_name'];
+if (isset($HTTP_GET_VARS['cal']) && ($HTTP_GET_VARS['cal'] !== '') ) {
+ $calendar_name = $HTTP_GET_VARS['cal'];
} else {
$calendar_name = '';
}
@@ -62,7 +62,7 @@ $calendar_name2 = str_replace('\\', '', $calendar_name2);
</tr>
<tr>
<td colspan="3">
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
+ <table width="430" border="0" cellspacing="0" cellpadding="0">
<?php
if (($start) && ($end)) $event_times = ' - <font class="V9">(<i>'.$start.' - '.$end.'</i>)</font>';
if ($start == '' && $end == '' && isset($start, $end)) $event_times = ' - <font class="V9">(<i>'.$all_day_lang.'</i>)</font>';
diff --git a/includes/sidebar.php b/includes/sidebar.php
index a2e7cf4..4fa48cc 100644
--- a/includes/sidebar.php
+++ b/includes/sidebar.php
@@ -213,10 +213,10 @@ if ((isset($master_array['-2'])) && ($show_todos == 'yes')) { ?>
echo "<tr>\n";
echo "<td width=\"1%\"><img src=\"images/spacer.gif\" width=\"4\" height=\"1\" alt=\" \"></td>";
echo "<td colspan=\"6\" class=\"G10B\" align=\"left\">\n";
+ echo "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\n";
foreach ($master_array['-2'] as $vtodo_times) {
foreach ($vtodo_times as $val) {
$vtodo_text = stripslashes(urldecode($val["vtodo_text"]));
- $vtodo_text = strip_tags($vtodo_text, '<b><i><u>');
if ($vtodo_text != "") {
$description = $val["description"];
$completed_date = $val['completed_date'];
@@ -225,7 +225,7 @@ if ((isset($master_array['-2'])) && ($show_todos == 'yes')) { ?>
$start_date = $val["start_date"];
$due_date = $val['due_date'];
$vtodo_array = array(
- 'calendar_name' => $calendar_name,
+ 'cal' => $calendar_name,
'completed_date'=> $completed_date,
'description' => $description,
'due_date' => $due_date,
@@ -236,21 +236,26 @@ if ((isset($master_array['-2'])) && ($show_todos == 'yes')) { ?>
$vtodo_array = base64_encode(serialize($vtodo_array));
- $vtodo_text = word_wrap($vtodo_text, 21, $tomorrows_events_lines);
+ $vtodo_text = word_wrap(strip_tags(str_replace('<br>',' ',$vtodo_text), '<b><i><u>'), 21, $tomorrows_events_lines);
+ $vtodo_link = "<a class=\"psf\" href=\"javascript:openTodoInfo('$vtodo_array')\">";
if ($status == 'COMPLETED' || (isset($val['completed_date']) && isset($val['completed_time']))) {
if ($show_completed == 'yes') {
$vtodo_text = "<S>$vtodo_text</S>";
- echo "<a class=\"psf\" href=\"javascript:openTodoInfo('$vtodo_array')\"><font class=\"G10B\"><img src=\"images/completed.gif\" alt=\" \" width=\"13\" height=\"11\" border=\"0\" align=\"middle\"> $vtodo_text</font></a><br>\n";
+ echo "<tr><td>$vtodo_link<img src=\"images/completed.gif\" alt=\" \" width=\"13\" height=\"11\" border=\"0\" align=\"middle\"></a></td>\n";
+ echo "<td><img src=\"images/spacer.gif\" width=\"2\" height=\"1\" border\"0\" /></td><td>$vtodo_link<font class=\"G10B\"> $vtodo_text</font></a></td></tr>\n";
}
} elseif (isset($val['priority']) && ($val['priority'] != 0) && ($val['priority'] <= 5)) {
- echo "<a class=\"psf\" href=\"javascript:openTodoInfo('$vtodo_array')\"><font class=\"G10B\"><img src=\"images/important.gif\" alt=\" \" width=\"13\" height=\"11\" border=\"0\" align=\"middle\"> $vtodo_text</font></a><br>\n";
+ echo "<tr><td>$vtodo_link<img src=\"images/important.gif\" alt=\" \" width=\"13\" height=\"11\" border=\"0\" align=\"middle\"></a></td>\n";
+ echo "<td><img src=\"images/spacer.gif\" width=\"2\" height=\"1\" border\"0\" /></td><td>$vtodo_link<font class=\"G10B\"> $vtodo_text</font></a></td></tr>\n";
} else {
- echo "<a class=\"psf\" href=\"javascript:openTodoInfo('$vtodo_array')\"><font class=\"G10B\"><img src=\"images/not_completed.gif\" alt=\" \" width=\"13\" height=\"11\" border=\"0\" align=\"middle\"> $vtodo_text</font></a><br>\n";
+ echo "<tr><td>$vtodo_link<img src=\"images/not_completed.gif\" alt=\" \" width=\"13\" height=\"11\" border=\"0\" align=\"middle\"></a></td>\n";
+ echo "<td><img src=\"images/spacer.gif\" width=\"2\" height=\"1\" border\"0\" /></td><td>$vtodo_link<font class=\"G10B\"> $vtodo_text</font></a></td></tr>\n";
}
}
}
}
+ echo "</table>\n";
echo "</td>\n";
echo "</tr>\n";
?>
diff --git a/includes/todo.php b/includes/todo.php
index 5bcf20b..3c39515 100644
--- a/includes/todo.php
+++ b/includes/todo.php
@@ -35,8 +35,8 @@ if ((!isset($status) || $status == "COMPLETED") && isset($completed_date)) {
$status = $unfinished_lang;
}
-if (isset($vtodo_array['calendar_name']) && ($vtodo_array['calendar_name'] !== '') ) {
- $calendar_name = $vtodo_array['calendar_name'];
+if (isset($vtodo_array['cal']) && ($vtodo_array['cal'] !== '') ) {
+ $calendar_name = $vtodo_array['cal'];
} else {
$calendar_name = '';
}

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