aboutsummaryrefslogtreecommitdiffstats
path: root/includes/todo.php
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2002-11-26 05:53:50 +0000
committerChad Little <clittle@users.sourceforge.net>2002-11-26 05:53:50 +0000
commit1d1640f4cf55a7142ae1b9acd00454e60fe9dba4 (patch)
tree951927b0707799514cb923011767c41609ed6d2f /includes/todo.php
parent65e13529dbfb308ff709cd5023177e6a4fa77965 (diff)
downloadphpicalendar-1d1640f4cf55a7142ae1b9acd00454e60fe9dba4.tar.gz
phpicalendar-1d1640f4cf55a7142ae1b9acd00454e60fe9dba4.tar.bz2
phpicalendar-1d1640f4cf55a7142ae1b9acd00454e60fe9dba4.zip
todo change
Diffstat (limited to 'includes/todo.php')
-rw-r--r--includes/todo.php44
1 files changed, 27 insertions, 17 deletions
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);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8">
- <title><?php echo $calendar_name2; ?></title>
+ <title><?php echo $calendar_name; ?></title>
<link rel="stylesheet" type="text/css" href="<?php echo BASE."styles/$style_sheet/default.css"; ?>">
</head>
<body bgcolor="#eeeeee"><center>
<table border="0" width="430" cellspacing="0" cellpadding="0" class="calborder">
<tr>
<td align="left" valign="top" width="1%" class="sideback"><img src="images/spacer.gif" width="1" height="20"></td>
- <td align="center" width="98%" class="sideback"><font class="G10BOLD"><?php echo "$calendar_name2 $calendar_lang"; ?></font></td>
+ <td align="center" width="98%" class="sideback"><font class="G10BOLD"><?php echo "$calendar_name $calendar_lang"; ?></font></td>
<td align="right" valign="top" width="1%" class="sideback"></td>
</tr>
<tr>
@@ -73,40 +83,40 @@ $calendar_name2 = str_replace('\\', '', $calendar_name2);
<tr>
<td colspan="3">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
- <?php
-// if (($start) && ($end)) $vtodo_times = ' - <font class="V9">(<i>'.$start.' - '.$end.'</i>)</font>';
-// if ($start == '' && $end == '' && isset($start, $end)) $vtodo_times = ' - <font class="V9">(<i>'.$all_day_lang.'</i>)</font>';
- ?>
<tr>
<td width="1%"><img src="images/spacer.gif" width="6" height="1"></td>
- <td align="left" colspan="2" class="V12"><?php echo ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]",'<a target="_new" href="\0">\0</a>',$vtodo).' '.$vtodo_times.'<br /><br />'; ?></td>
+ <td align="left" colspan="2" class="V12"><?php echo ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]",'<a target="_new" href="\0">\0</a>',$vtodo).'<br /><br />'; ?></td>
</tr>
<?php if ($description) { ?>
<tr>
<td width="1%"><img src="images/spacer.gif" width="6" height="1"></td>
<td align="left" colspan="2" class="V12">
- <?php echo ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]",
- '<a target="_new" href="\0">\0</a>', $description); ?></td>
+ <?php echo ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", '<a target="_new" href="\0">\0</a>', $description); ?></td>
</tr>
<?php } ?>
<?php if ($status) { ?>
<tr>
<td></td>
- <td align="left" colspan="2" class="V12">Status: <? echo $status; ?></td>
+ <td align="left" colspan="2" class="V12"><?php echo $status_lang . $status; ?></td>
</tr>
<?php } ?>
<tr>
<td></td>
- <td align="left" colspan="2" class="V12">Created: <? echo $start; ?></td>
+ <td align="left" colspan="2" class="V12"><?php echo $priority_lang . $priority; ?></td>
+ </tr>
+
+ <tr>
+ <td></td>
+ <td align="left" colspan="2" class="V12"><?php echo $created_lang . $start; ?></td>
</tr>
<?php if ($due) { ?>
<tr>
<td></td>
- <td align="left" colspan="2" class="V12">Due: <? echo $due; ?></td>
+ <td align="left" colspan="2" class="V12"><?php echo $due_lang . $due; ?></td>
</tr>
<?php } ?>

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