From 1d1640f4cf55a7142ae1b9acd00454e60fe9dba4 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Tue, 26 Nov 2002 05:53:50 +0000 Subject: todo change --- includes/sidebar.php | 11 +++++++---- includes/todo.php | 44 +++++++++++++++++++++++++++----------------- 2 files changed, 34 insertions(+), 21 deletions(-) (limited to 'includes') 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 = "$vtodo_text"; - echo "\"\" $vtodo_text
\n"; + echo "\"\" $vtodo_text
\n"; } } elseif (isset($val['priority']) && ($val['priority'] != 0) && ($val['priority'] <= 5)) { - echo "\"\" $vtodo_text
\n"; + echo "\"\" $vtodo_text
\n"; } else { - echo "\"\" $vtodo_text
\n"; + echo "\"\" $vtodo_text
\n"; } } } diff --git a/includes/todo.php b/includes/todo.php index d9dca39..a47e3e0 100644 --- a/includes/todo.php +++ b/includes/todo.php @@ -18,7 +18,7 @@ if (isset($HTTP_GET_VARS['description']) && ($HTTP_GET_VARS['description'] !== ' if (isset($HTTP_GET_VARS['status']) && ($HTTP_GET_VARS['status'] !== '') ) { $status = $HTTP_GET_VARS['status']; } else { - $status = ''; + $status = $unfinished_lang; } if (isset($HTTP_GET_VARS['calendar_name']) && ($HTTP_GET_VARS['calendar_name'] !== '') ) { @@ -39,6 +39,12 @@ if (isset($HTTP_GET_VARS['due']) && ($HTTP_GET_VARS['due'] !== '') ) { $due = ''; } +if (isset($HTTP_GET_VARS['priority']) && ($HTTP_GET_VARS['priority'] !== '') && ($HTTP_GET_VARS['priority'] < 10)) { + $priority = $HTTP_GET_VARS['priority']; +} else { + $priority = $no_priority_lang; +} + $vtodo = rawurldecode($vtodo); $vtodo = stripslashes($vtodo); $vtodo = str_replace('\\', '', $vtodo); @@ -47,24 +53,28 @@ $description = rawurldecode($description); $description = stripslashes($description); $description = str_replace('\\', '', $description); //$description = htmlspecialchars($description); -$calendar_name2 = rawurldecode($calendar_name); -$calendar_name2 = stripslashes($calendar_name2); -$calendar_name2 = str_replace('\\', '', $calendar_name2); -//$calendar_name2 = htmlspecialchars($calendar_name2); +$calendar_name = rawurldecode($calendar_name); +$calendar_name = stripslashes($calendar_name); +$calendar_name = str_replace('\\', '', $calendar_name); +//$calendar_name = htmlspecialchars($calendar_name); +$status = rawurldecode($status); +$status = stripslashes($status); +$status = str_replace('\\', '', $status); +//$status = htmlspecialchars($status); ?> - <?php echo $calendar_name2; ?> + <?php echo $calendar_name; ?> ">
- + @@ -73,40 +83,40 @@ $calendar_name2 = str_replace('\\', '', $calendar_name2);
- ('.$start.' - '.$end.')'; -// if ($start == '' && $end == '' && isset($start, $end)) $vtodo_times = ' - ('.$all_day_lang.')'; - ?> - + + [:space:]]+[[:alnum:]/]", '\0', $description); ?> - + - + + + + + + - + -- cgit v1.2.3
[:space:]]+[[:alnum:]/]",'\0',$vtodo).' '.$vtodo_times.'

'; ?>
[:space:]]+[[:alnum:]/]",'\0',$vtodo).'

'; ?>
- [:space:]]+[[:alnum:]/]", - '\0', $description); ?>
Status:
Created:
Due: