[php-todo-cvs] src ChangeLog,1.3,1.4 INSTALL,1.1.1.1,1.2 TODO,1.2,1.3 index.php,1.3,1.4 style.css,1.
Status: Pre-Alpha
Brought to you by:
mnordstr
|
From: <mno...@us...> - 2002-06-20 17:24:07
|
Update of /cvsroot/php-todo/src
In directory usw-pr-cvs1:/tmp/cvs-serv11681
Modified Files:
ChangeLog INSTALL TODO index.php style.css
Log Message:
Delete verification, INSTALL update, password error message updated, Todo listing wider
Index: ChangeLog
===================================================================
RCS file: /cvsroot/php-todo/src/ChangeLog,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** ChangeLog 20 Jun 2002 16:21:21 -0000 1.3
--- ChangeLog 20 Jun 2002 17:24:02 -0000 1.4
***************
*** 4,7 ****
--- 4,8 ----
- Valid XHTML 1.0 Transitional
- Valid CSS2
+ - Delete verification
0.1.0 (Initial release):
Index: INSTALL
===================================================================
RCS file: /cvsroot/php-todo/src/INSTALL,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** INSTALL 19 Jun 2002 18:45:28 -0000 1.1.1.1
--- INSTALL 20 Jun 2002 17:24:02 -0000 1.2
***************
*** 13,17 ****
- Type mysql DATABASE -u USER -p PASSWD < sql/phptodo.sql
! Where DATABASE it the newly created database, USER is the database user
and PASSWD is the user password.
--- 13,17 ----
- Type mysql DATABASE -u USER -p PASSWD < sql/phptodo.sql
! Where DATABASE is the newly created database, USER is the database user
and PASSWD is the user password.
***************
*** 19,23 ****
More info can be found inside the file.
! - Copy index.php to your http directory, where you want it to be hosted.
- Remember to change the password in index.php, the default password is test.
--- 19,33 ----
More info can be found inside the file.
! - Copy index.php, style.css and the img directory to your http directory, where you want it to be hosted.
- Remember to change the password in index.php, the default password is test.
+
+
+ Updating
+ =======
+
+ - From 0.1.0:
+ Install the new sources, keep a backup of the old index.php if you want to
+ remember the old configuration values.
+
+ The database layout is the same, the 0.1.0 database works with 0.1.1.
Index: TODO
===================================================================
RCS file: /cvsroot/php-todo/src/TODO,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** TODO 20 Jun 2002 16:21:21 -0000 1.2
--- TODO 20 Jun 2002 17:24:02 -0000 1.3
***************
*** 2,15 ****
- [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)
0.1.2:
--- 2,15 ----
- [DONE] All style 100% CSS
! - [DONE] Add delete verification
- [DONE] Fix JS bug
- GIFs -> PNGs
- [DONE] 100% XHTML 1.0 & CSS2 valid
! - [DONE] 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
! - [DONE] Fix stupid password error message
! - [DONE] Widen todo listing (configurable variable)
0.1.2:
Index: index.php
===================================================================
RCS file: /cvsroot/php-todo/src/index.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** index.php 20 Jun 2002 16:42:09 -0000 1.3
--- index.php 20 Jun 2002 17:24:02 -0000 1.4
***************
*** 84,87 ****
--- 84,97 ----
}
+ function delTodo(id)
+ {
+
+ var msg = "Are you sure you want to delete this Todo?";
+
+ if (confirm(msg))
+ location.replace("<?php echo $file ?>?delete=" + id);
+
+ }
+
</script>
***************
*** 121,125 ****
}
else
! $login_fail = 'Doh!';
}
--- 131,135 ----
}
else
! $login_fail = 'Password incorrect!';
}
***************
*** 296,301 ****
"<td class='list$list' 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$list'>" . $row['todo_short'] . "</td>\n\t\t\t</tr>\n\t\t\t";
--- 306,311 ----
"<td class='list$list' 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='javascript:delTodo(" . $row['todo_id'] . ")'>" .
! "<img src='img/delete.gif' border='0' alt='Delete' title='Delete' /></a></td>\n\t\t\t\t" .
"<td class='listLastTD$list'>" . $row['todo_short'] . "</td>\n\t\t\t</tr>\n\t\t\t";
***************
*** 317,321 ****
if (!empty($login_fail))
! print "$login_fail <br /><br />";
?>
--- 327,331 ----
if (!empty($login_fail))
! print "<font class='error'>$login_fail</font> <br /><br />";
?>
Index: style.css
===================================================================
RCS file: /cvsroot/php-todo/src/style.css,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** style.css 20 Jun 2002 16:42:09 -0000 1.3
--- style.css 20 Jun 2002 17:24:02 -0000 1.4
***************
*** 110,114 ****
.listTable
{
! width: 600px;
border-style: none;
border-collapse: collapse;
--- 110,114 ----
.listTable
{
! width: 700px;
border-style: none;
border-collapse: collapse;
***************
*** 117,121 ****
.listLastTD1
{
! width: 495px;
background-color: #f5f8ff;
color: #002674;
--- 117,121 ----
.listLastTD1
{
! width: 595px;
background-color: #f5f8ff;
color: #002674;
***************
*** 124,130 ****
.listLastTD2
{
! width: 495px;
background-color: #eef6ff;
color: #002674;
}
--- 124,137 ----
.listLastTD2
{
! width: 595px;
background-color: #eef6ff;
color: #002674;
+ }
+
+ .error
+ {
+ background-color: #f5f8ff;
+ font-weight: bold;
+ color: #ff0000;
}
|