? patch.diff
Index: scripts.js
===================================================================
RCS file: /home/wine/appdb/scripts.js,v
retrieving revision 1.5
diff -u -p -r1.5 scripts.js
--- scripts.js 21 Jul 2006 19:18:10 -0000 1.5
+++ scripts.js 26 Jul 2007 05:20:46 -0000
@@ -1,3 +1,17 @@
+function validatePassword()
+{
+ var sPassword1 = document.getElementById("sUserPassword").value;
+ var sPassword2 = document.getElementById("sUserPassword2").value;
+ if( sPassword1 != sPassword2 )
+ {
+ document.getElementById("passwordErr").style.color="red";
+ document.getElementById("passwordErr").innerHTML="Passwords do not match!";
+ }
+ else
+ {
+ document.getElementById("passwordErr").innerHTML="";
+ }
+}
function openWin(fileToOpen,nameOfWindow,width,height) {
myWindow = window.open("",nameOfWindow,"menubar=no,scrollbars=yes,status=no,width="+width+",height="+height);
myWindow.document.open();
@@ -40,3 +54,4 @@ function DoNav(sUrl)
{
document.location.href = sUrl;
}
+
Index: include/form_edit.php
===================================================================
RCS file: /home/wine/appdb/include/form_edit.php,v
retrieving revision 1.13
diff -u -p -r1.13 form_edit.php
--- include/form_edit.php 23 Jul 2007 19:56:43 -0000 1.13
+++ include/form_edit.php 26 Jul 2007 05:20:46 -0000
@@ -17,22 +17,21 @@ function GetEditAccountFormRows($sUserEm
$aTableRows[] = $oTableRow;
$oTableRow = new TableRow();
- $oTableRow->AddTextCell(" Password");
- $oTableRow->AddTextCell('');
+ $oTableRow->AddTextCell(" Real Name");
+ $oTableRow->AddTextCell('');
$aTableRows[] = $oTableRow;
$oTableRow = new TableRow();
- $oTableRow->AddTextCell(" Password (again)");
- $oTableRow->AddTextCell('');
+ $oTableRow->AddTextCell(" Password");
+ $oTableRow->AddTextCell('');
$aTableRows[] = $oTableRow;
$oTableRow = new TableRow();
- $oTableRow->AddTextCell(" Real Name");
- $oTableRow->AddTextCell('');
+ $oTableRow->AddTextCell(" Password (again)");
+ $oTableRow->AddTextCell('');
$aTableRows[] = $oTableRow;
-
$oTableRow = new TableRow();
- $oTableRow->AddTextCell(" ");
+ $oTableRow->AddTextCell(" ");
$oTableRow->AddTextCell(" ");
$aTableRows[] = $oTableRow;