[php-todo-cvs] src ChangeLog,1.2,1.3 TODO,1.1.1.1,1.2 index.php,1.1.1.1,1.2 style.css,1.1.1.1,1.2
Status: Pre-Alpha
Brought to you by:
mnordstr
|
From: <mno...@us...> - 2002-06-20 16:21:25
|
Update of /cvsroot/php-todo/src
In directory usw-pr-cvs1:/tmp/cvs-serv25713
Modified Files:
ChangeLog TODO index.php style.css
Log Message:
Valid XHTML 1.0 and CSS2
Index: ChangeLog
===================================================================
RCS file: /cvsroot/php-todo/src/ChangeLog,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ChangeLog 20 Jun 2002 10:42:29 -0000 1.2
--- ChangeLog 20 Jun 2002 16:21:21 -0000 1.3
***************
*** 2,5 ****
--- 2,7 ----
- JavaScript bugs fixed
+ - Valid XHTML 1.0 Transitional
+ - Valid CSS2
0.1.0 (Initial release):
Index: TODO
===================================================================
RCS file: /cvsroot/php-todo/src/TODO,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** TODO 19 Jun 2002 18:45:28 -0000 1.1.1.1
--- TODO 20 Jun 2002 16:21:21 -0000 1.2
***************
*** 1,15 ****
0.1.1:
! - All style 100% CSS
- Add delete verification
- [DONE] Fix JS bug
- GIFs -> PNGs
! - 100% HTML 4.01 & CSS2 valid
- INSTALL: tell to copy img dir
- Check for empty todos (generate error, do not accept)
- Add a check to prevent dual todos to be added,
it is too easy to hit reload and post another (duplicate) todo
- - Make the difference between Todo/Description clearer,
- and the same for the different todos
- Fix stupid password error message
- Widen todo listing (configurable variable)
--- 1,13 ----
0.1.1:
! - [DONE] All style 100% CSS
- Add delete verification
- [DONE] Fix JS bug
- GIFs -> PNGs
! - [DONE] 100% XHTML 1.0 & CSS2 valid
- INSTALL: tell to copy img dir
- Check for empty todos (generate error, do not accept)
- Add a check to prevent dual todos to be added,
it is too easy to hit reload and post another (duplicate) todo
- Fix stupid password error message
- Widen todo listing (configurable variable)
Index: index.php
===================================================================
RCS file: /cvsroot/php-todo/src/index.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** index.php 19 Jun 2002 18:45:28 -0000 1.1.1.1
--- index.php 20 Jun 2002 16:21:21 -0000 1.2
***************
*** 5,9 ****
// $Id$
! // For more info and new releases go to http://phptodo.ftlight.net/
// This software is distributed under the GNU GPL.
--- 5,9 ----
// $Id$
! // For more info and new releases go to http://php-todo.sourceforge.net/
// This software is distributed under the GNU GPL.
***************
*** 39,50 ****
// $passwd = md5('cleartextpasswordhere');
! // Colors used by CSS. Here you can change the look of phpToDo.
! /*$color_header_bg = '#000000';
! $color_header_fg = '#ffffff';
! $color_bg = '#f5f8ff';
! $color_text = '#002674';
! $color_link = '#002674';
! $color_list_1 = '#f5f8ff';
! $color_list_2 = '#eef6ff';*/
// Priorities. The default priority is 3, 1 is most important.
--- 39,46 ----
// $passwd = md5('cleartextpasswordhere');
! // Colors used by CSS can now (0.1.1+) be found in style.css.
! // If you want to modify them, look in the source for the place you want to modify
! // and modify that class in style.css. As of version 0.1.1 phpToDo is XHTML 1.0 with
! // styles 100% CSS2.
// Priorities. The default priority is 3, 1 is most important.
***************
*** 64,72 ****
ob_start();
- ?>
<?php print "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n" ?>
<!DOCTYPE html
! PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
--- 60,68 ----
ob_start();
+ ?>
<?php print "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n" ?>
<!DOCTYPE html
! PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
***************
*** 78,82 ****
<script type="text/javascript">
- <![CDATA[
function doFocus()
--- 74,77 ----
***************
*** 89,93 ****
}
- ]]>
</script>
--- 84,87 ----
***************
*** 97,112 ****
<body onload="doFocus();">
! <table style="border-style: none; border-collapse: collapse; width: 100%;">
<tr>
! <td style="background-color: #000000; width: 6%; height: 20px;"> </td>
! <td style="background-color: #000000; width: 42%; height: 20px; vertical-align: middle; text-align: left;"><a href="<?php print 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'] ?>"><font class="pageHeader">phpToDo</font></a></td>
! <td style="background-color: #000000; width: 4%; height: 20px;"> </td>
! <td style="background-color: #000000; width: 42%; height: 20px; vertical-align: middle; text-align: right;"><a href="<?php echo $file ?>?forget=yes"><font class="forgetMe">Forget Me</font></a></td>
! <td style="background-color: #000000; width: 6%; height: 20px;"> </td>
</tr>
<tr>
! <td colspan=5 class="contentTD" align="center" valign="top">
! <br><center>
<?php
--- 91,106 ----
<body onload="doFocus();">
! <table class="contentTable">
<tr>
! <td class="headerTD" style="width: 6%;"> </td>
! <td class="headerTD" style="width: 42%; text-align: left;"><a href="<?php print 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'] ?>"><font class="pageHeader">phpToDo</font></a></td>
! <td class="headerTD" style="width: 4%;"> </td>
! <td class="headerTD" style="width: 42%; text-align: right;"><a href="<?php echo $file ?>?forget=yes"><font class="forgetMe">Forget Me</font></a></td>
! <td class="headerTD" style="width: 6%;"> </td>
</tr>
<tr>
! <td colspan="5" class="contentTD">
! <br /><center>
<?php
***************
*** 141,145 ****
{
setcookie('phptodo', md5($passwd . 'phptodo'), time()-3600, $script_path, $_SERVER['HTTP_HOST'], 0);
! print "Bye, bye! <form name='form'><input type='hidden' name='bye' /></form>";
$no_list = 1;
}
--- 135,139 ----
{
setcookie('phptodo', md5($passwd . 'phptodo'), time()-3600, $script_path, $_SERVER['HTTP_HOST'], 0);
! print "Bye, bye! <form name='form' action='' method='get'><input type='hidden' name='bye' /></form>";
$no_list = 1;
}
***************
*** 178,182 ****
$post_pr[1] = '';
$post_pr[2] = '';
! $post_pr[3] = ' selected';
$post_pr[4] = '';
$post_pr[5] = '';
--- 172,176 ----
$post_pr[1] = '';
$post_pr[2] = '';
! $post_pr[3] = " selected='selected'";
$post_pr[4] = '';
$post_pr[5] = '';
***************
*** 194,198 ****
$post_pr[3] = '';
! $post_pr[$row['todo_priority']] = ' selected';
$post_todo = $row['todo_short'];
--- 188,192 ----
$post_pr[3] = '';
! $post_pr[$row['todo_priority']] = " selected='selected'";
$post_todo = $row['todo_short'];
***************
*** 202,206 ****
else
{
! print 'No Todo item found by that ID!<br><br>';
}
}
--- 196,200 ----
else
{
! print 'No Todo item found by that ID!<br /><br />';
}
}
***************
*** 209,240 ****
<form name="form" action="<?php echo $file ?>" method="post">
! <input type="hidden" name="action" value="<?php echo $post_action ?>">
! <input type="hidden" name="edit_id" value="<?php echo @$_REQUEST['edit'] ?>">
! <table width=400 border=0 cellspacing=0 cellpadding=0>
! <tr align="left">
! <td width=100>Priority:</td>
! <td width='*'>
<select name="priority">
! <option value=1<?php echo $post_pr[1] ?>><?php echo $priority[1] ?></option>
! <option value=2<?php echo $post_pr[2] ?>><?php echo $priority[2] ?></option>
! <option value=3<?php echo $post_pr[3] ?>><?php echo $priority[3] ?></option>
! <option value=4<?php echo $post_pr[4] ?>><?php echo $priority[4] ?></option>
! <option value=5<?php echo $post_pr[5] ?>><?php echo $priority[5] ?></option>
</select>
</td>
</tr>
! <tr align="left">
<td>Todo:</td>
! <td><input type="text" name="todo" size=40 maxlength=255 value="<?php echo $post_todo ?>"></td>
</tr>
- <tr align="left">
- <td valign="top">Description:</td>
- <td><textarea name="description" rows=4 cols=40><?php echo $post_description ?></textarea></td>
- </tr
<tr>
! <td colspan=2 align="center"><input type="submit" name="add" value="<?php echo $post_button ?>"></td>
</tr>
</table>
! </form><br>
<?php
--- 203,234 ----
<form name="form" action="<?php echo $file ?>" method="post">
! <input type="hidden" name="action" value="<?php echo $post_action ?>" />
! <input type="hidden" name="edit_id" value="<?php echo @$_REQUEST['edit'] ?>" />
! <table class="inputTable">
! <tr style="text-align: left">
! <td style="width: 100px">Priority:</td>
! <td style="width: 300px">
<select name="priority">
! <option value="1"<?php echo $post_pr[1] ?>><?php echo $priority[1] ?></option>
! <option value="2"<?php echo $post_pr[2] ?>><?php echo $priority[2] ?></option>
! <option value="3"<?php echo $post_pr[3] ?>><?php echo $priority[3] ?></option>
! <option value="4"<?php echo $post_pr[4] ?>><?php echo $priority[4] ?></option>
! <option value="5"<?php echo $post_pr[5] ?>><?php echo $priority[5] ?></option>
</select>
</td>
</tr>
! <tr style="text-align: left">
<td>Todo:</td>
! <td><input type="text" name="todo" size="40" maxlength="255" value="<?php echo $post_todo ?>" /></td>
! </tr>
! <tr style="text-align: left">
! <td style="vertical-align: top">Description:</td>
! <td><textarea name="description" rows="4" cols="40"><?php echo $post_description ?></textarea></td>
</tr>
<tr>
! <td colspan="2" style="text-align: center"><input type="submit" name="add" value="<?php echo $post_button ?>" /></td>
</tr>
</table>
! </form><br />
<?php
***************
*** 281,287 ****
?>
! <table width=600 border=0 cellspacing=0 cellpadding=0>
<tr>
! <td colspan=3 class="priority"><?php echo $priority[$cur_pri] ?></td>
</tr>
--- 275,281 ----
?>
! <table class="listTable">
<tr>
! <td colspan="3" class="priority"><?php echo $priority[$cur_pri] ?></td>
</tr>
***************
*** 299,316 ****
modifyURL($row['todo_short']);
! print "<tr class='list$list'><td width=30 class='list1'> </td>" .
! "<td width=75 valign='top'><a href='" . $file . "?edit=" . $row['todo_id'] . "'><img src='img/edit.gif' border=0 alt='Edit' title='Edit'></a> " .
! "<a href='" . $file . "?delete=" . $row['todo_id'] . "'><img src='img/delete.gif' border=0 alt='Delete' title='Delete'></a></td>" .
! "<td width=495>" . $row['todo_short'] . '</td></tr>';
! print "<tr class='list$list'><td colspan=2 align='right' class='list1'></td><td width=495>" .
! $desc . "</td></tr>";
}
! print '</table><br>';
}
if (!$todos)
! print 'No Todos found.<br>';
}
}
--- 293,313 ----
modifyURL($row['todo_short']);
! print "\t\t\t<tr class='list$list'>\n\t\t\t\t<td class='list1' style='width: 30px'> </td>\n\t\t\t\t" .
! "<td style='width: 75px; vertical-align: top'><a href='" . $file . "?edit=" . $row['todo_id'] .
! "'><img src='img/edit.gif' border='0' alt='Edit' title='Edit' /></a> " .
! "<a href='" . $file . "?delete=" . $row['todo_id'] .
! "'><img src='img/delete.gif' border='0' alt='Delete' title='Delete' /></a></td>\n\t\t\t\t" .
! "<td class='listLastTD'>" . $row['todo_short'] . "</td>\n\t\t\t</tr>\n\t\t\t";
! print "<tr class='list$list'>\n\t\t\t\t<td colspan='2' class='list1' style='text-align: right'></td>" .
! "\n\t\t\t\t<td class='listLastTD'>" .
! $desc . "</td>\n\t\t\t</tr>\n\n";
}
! print "\t\t\t</table><br />";
}
if (!$todos)
! print 'No Todos found.<br />';
}
}
***************
*** 320,330 ****
if (!empty($login_fail))
! print "$login_fail <br><br>";
?>
<form name="form" action="<?php echo $file ?>" method="post">
! <input type="password" name="password" size="10"><br>
! <input type="submit" name="login" value="Login">
</form>
--- 317,327 ----
if (!empty($login_fail))
! print "$login_fail <br /><br />";
?>
<form name="form" action="<?php echo $file ?>" method="post">
! <input type="password" name="password" size="10" /><br />
! <input type="submit" name="login" value="Login" />
</form>
***************
*** 332,336 ****
}
! print "<br><br><center><a href='http://phptodo.ftlight.net/'>phpToDo</a> $version - Copyright © 2002 Mattias Nordstrom</center>";
?>
--- 329,333 ----
}
! print "\n\n\t<br /><br /><center><a href='http://phptodo.ftlight.net/'>phpToDo</a> $version - Copyright © 2002 Mattias Nordstrom</center>\n";
?>
Index: style.css
===================================================================
RCS file: /cvsroot/php-todo/src/style.css,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** style.css 19 Jun 2002 18:45:28 -0000 1.1.1.1
--- style.css 20 Jun 2002 16:21:22 -0000 1.2
***************
*** 6,14 ****
margin-right: 0px;
margin-top: 0px;
}
td
{
! font-family: Verdana, Helvetica, Arial;
font-size: 11pt;
font-weight: normal;
--- 6,16 ----
margin-right: 0px;
margin-top: 0px;
+ color: #002674;
}
td
{
! background-color: #f5f8ff;
! font-family: Verdana, Helvetica, Arial, sans-serif;
font-size: 11pt;
font-weight: normal;
***************
*** 18,22 ****
a
{
! font-family: Verdana, Helvetica, Arial;
font-size: 11pt;
font-weight: normal;
--- 20,25 ----
a
{
! background-color: #f5f8ff;
! font-family: Verdana, Helvetica, Arial, sans-serif;
font-size: 11pt;
font-weight: normal;
***************
*** 25,30 ****
--- 28,44 ----
}
+ input, select, textarea
+ {
+ background-color: #f5f8ff;
+ font-family: Verdana, Helvetica, Arial, sans-serif;
+ font-size: 9pt;
+ font-weight: normal;
+ text-decoration: none;
+ color: #002674;
+ }
+
.pageHeader
{
+ background-color: #000000;
font-size: 11pt;
font-weight: bold;
***************
*** 36,39 ****
--- 50,54 ----
.forgetMe
{
+ background-color: #000000;
text-align: right;
font-size: 11pt;
***************
*** 46,49 ****
--- 61,65 ----
{
background-color: #f5f8ff;
+ color: #002674;
}
***************
*** 51,54 ****
--- 67,78 ----
{
background-color: #eef6ff;
+ color: #002674;
+ }
+
+ .contentTable
+ {
+ border-style: none;
+ border-collapse: collapse;
+ width: 100%;
}
***************
*** 56,64 ****
{
background-color: #f5f8ff;
}
.priority
{
! font-family: Verdana, Helvetica, Arial;
font-size: 13pt;
font-weight: bold;
--- 80,92 ----
{
background-color: #f5f8ff;
+ vertical-align: top;
+ text-align: center;
+ color: #002674;
}
.priority
{
! background-color: #f5f8ff;
! font-family: Verdana, Helvetica, Arial, sans-serif;
font-size: 13pt;
font-weight: bold;
***************
*** 66,76 ****
}
! input, select, textarea
{
! font-family: Verdana, Helvetica, Arial;
! font-size: 9pt;
! font-weight: normal;
! text-decoration: none;
! color: #002674;
}
--- 94,121 ----
}
! .headerTD
{
! background-color: #000000;
! height: 20px;
! vertical-align: middle;
! color: #ffffff;
}
+ .inputTable
+ {
+ width: 400px;
+ border-style: none;
+ border-collapse: collapse;
+ }
+
+ .listTable
+ {
+ width: 600px;
+ border-style: none;
+ border-collapse: collapse;
+ }
+
+ .listLastTD
+ {
+ width: 495px;
+ }
|