diff options
author | Chad Little <clittle@users.sourceforge.net> | 2002-11-26 05:53:50 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2002-11-26 05:53:50 +0000 |
commit | 1d1640f4cf55a7142ae1b9acd00454e60fe9dba4 (patch) | |
tree | 951927b0707799514cb923011767c41609ed6d2f /includes/sidebar.php | |
parent | 65e13529dbfb308ff709cd5023177e6a4fa77965 (diff) | |
download | phpicalendar-1d1640f4cf55a7142ae1b9acd00454e60fe9dba4.tar.gz phpicalendar-1d1640f4cf55a7142ae1b9acd00454e60fe9dba4.tar.bz2 phpicalendar-1d1640f4cf55a7142ae1b9acd00454e60fe9dba4.zip |
todo change
Diffstat (limited to 'includes/sidebar.php')
-rw-r--r-- | includes/sidebar.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/includes/sidebar.php b/includes/sidebar.php index c0b0140..6619997 100644 --- a/includes/sidebar.php +++ b/includes/sidebar.php @@ -223,7 +223,10 @@ if ((isset($master_array['-2'])) && ($show_todos == 'yes')) { ?> $completed = $val['completed_date']; if(isset($completed)) $completed = localizeDate($dateFormat_day, strtotime($completed)); $status = $val["status"]; - if ((!isset($status) || $status == "COMPLETED") && isset($completed)) $status = "Completed on " . $completed; + if ((!isset($status) || $status == "COMPLETED") && isset($completed)) $status = $completed_lang . $completed; + + $priority = $val['priority']; + $start_date = $val["start_date"]; $start_date = localizeDate ($dateFormat_day, strtotime($start_date)); if(isset($val['due_date']) && strtotime($val['due_date']) != strtotime("+1 year",strtotime($start_date))) $due_date = localizeDate ($dateFormat_day, strtotime($val['due_date'])); @@ -235,12 +238,12 @@ if ((isset($master_array['-2'])) && ($show_todos == 'yes')) { ?> 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_text2', '$calendar_name2', '$start_date', '$due_date', '$description', '$status')\"><font class=\"G10B\"><img src=\"images/completed.gif\" alt=\"\" width=\"13\" height=\"11\" border=\"0\" align=\"middle\"> $vtodo_text</font></a><br>\n"; + echo "<a class=\"psf\" href=\"javascript:openTodoInfo('$vtodo_text2', '$calendar_name2', '$start_date', '$due_date', '$description', '$status', '$priority')\"><font class=\"G10B\"><img src=\"images/completed.gif\" alt=\"\" width=\"13\" height=\"11\" border=\"0\" align=\"middle\"> $vtodo_text</font></a><br>\n"; } } elseif (isset($val['priority']) && ($val['priority'] != 0) && ($val['priority'] <= 5)) { - echo "<a class=\"psf\" href=\"javascript:openTodoInfo('$vtodo_text2', '$calendar_name2', '$start_date', '$due_date', '$description', '$status')\"><font class=\"G10B\"><img src=\"images/important.gif\" alt=\"\" width=\"13\" height=\"11\" border=\"0\" align=\"middle\"> $vtodo_text</font></a><br>\n"; + echo "<a class=\"psf\" href=\"javascript:openTodoInfo('$vtodo_text2', '$calendar_name2', '$start_date', '$due_date', '$description', '$status', '$priority')\"><font class=\"G10B\"><img src=\"images/important.gif\" alt=\"\" width=\"13\" height=\"11\" border=\"0\" align=\"middle\"> $vtodo_text</font></a><br>\n"; } else { - echo "<a class=\"psf\" href=\"javascript:openTodoInfo('$vtodo_text2', '$calendar_name2', '$start_date', '$due_date', '$description', '$status')\"><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 "<a class=\"psf\" href=\"javascript:openTodoInfo('$vtodo_text2', '$calendar_name2', '$start_date', '$due_date', '$description', '$status', '$priority')\"><font class=\"G10B\"><img src=\"images/not_completed.gif\" alt=\"\" width=\"13\" height=\"11\" border=\"0\" align=\"middle\"> $vtodo_text</font></a><br>\n"; } } } |