cvs: pear /HTML_AJAX/examples/login/inc login.css login.js
| From: | David Coallier | Date: | Mon, 07 Nov 2005 18:45:31 +0000 |
| Subject: | cvs: pear /HTML_AJAX/examples/login/inc login.css login.js | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-36136@lists.php.net to get a copy of this message | ||
davidc Mon Nov 7 13:45:31 2005 EDT
Modified files:
/pear/HTML_AJAX/examples/login/inc login.css login.js
Log:
Latest version from local developement
view svn.bluga.net for more infos.
http://cvs.php.net/diff.php/pear/HTML_AJAX/examples/login/inc/login.css?r1=1.1&r2=1.2&ty=u
Index: pear/HTML_AJAX/examples/login/inc/login.css
diff -u pear/HTML_AJAX/examples/login/inc/login.css:1.1
pear/HTML_AJAX/examples/login/inc/login.css:1.2
--- pear/HTML_AJAX/examples/login/inc/login.css:1.1 Wed Oct 26 12:45:31 2005
+++ pear/HTML_AJAX/examples/login/inc/login.css Mon Nov 7 13:45:31 2005
@@ -1,72 +1,72 @@
-/*
--------------------------------------------------------------------------------------------------
- General styles
--------------------------------------------------------------------------------------------------
*/
-body, table {
- color: #000000;
- font-size: 70%;
- font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
-}
-
-table, fieldset {
- font-size: 1em;
-}
-
-body, td, th {
- line-height: 140%;
-}
-
-td, th {
- vertical-align: top;
-}
-
-form, ul {
- margin: 0;
- padding: 0;
-}
-
-legend {
- color: #0046D5;
- font-weight: bold;
- padding-right: 8px;
- margin-bottom: 5px;
-}
-
-ol, ul {
- margin-left: 6px;
- padding-left: 15px;
-}
-
-/*
--------------------------------------------------------------------------------------------------
- Custom styles
--------------------------------------------------------------------------------------------------
*/
-label.normal {
- color: #006fcc;
- font-weight: normal;
-}
-
-label.error {
- color: #ff0000;
- font-weight: bold;
-}
-
-input.normal, input.error {
- padding: 1px 3px 1px 3px;
- border: 1px solid #B3B3B3;
-
- color: #000000;
- background-color: #ffffff;
-}
-
-input.error {
- color: #000000;
- background-color: #ffcccc;
-}
-
-.errorbox {
- border: 1px solid #ff0000;
- display: none;
-
- padding: 8px;
- margin-top: 1em;
- margin-bottom: 1em;
+/*
--------------------------------------------------------------------------------------------------
+ General styles
+-------------------------------------------------------------------------------------------------
*/
+body, table {
+ color: #000000;
+ font-size: 70%;
+ font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
+}
+
+table, fieldset {
+ font-size: 1em;
+}
+
+body, td, th {
+ line-height: 140%;
+}
+
+td, th {
+ vertical-align: top;
+}
+
+form, ul {
+ margin: 0;
+ padding: 0;
+}
+
+legend {
+ color: #0046D5;
+ font-weight: bold;
+ padding-right: 8px;
+ margin-bottom: 5px;
+}
+
+ol, ul {
+ margin-left: 6px;
+ padding-left: 15px;
+}
+
+/*
--------------------------------------------------------------------------------------------------
+ Custom styles
+-------------------------------------------------------------------------------------------------
*/
+label.normal {
+ color: #006fcc;
+ font-weight: normal;
+}
+
+label.error {
+ color: #ff0000;
+ font-weight: bold;
+}
+
+input.normal, input.error {
+ padding: 1px 3px 1px 3px;
+ border: 1px solid #B3B3B3;
+
+ color: #000000;
+ background-color: #ffffff;
+}
+
+input.error {
+ color: #000000;
+ background-color: #ffcccc;
+}
+
+.errorbox {
+ border: 1px solid #ff0000;
+ display: none;
+
+ padding: 8px;
+ margin-top: 1em;
+ margin-bottom: 1em;
}
\ No newline at end of file
http://cvs.php.net/diff.php/pear/HTML_AJAX/examples/login/inc/login.js?r1=1.1&r2=1.2&ty=u
Index: pear/HTML_AJAX/examples/login/inc/login.js
diff -u pear/HTML_AJAX/examples/login/inc/login.js:1.1
pear/HTML_AJAX/examples/login/inc/login.js:1.2
--- pear/HTML_AJAX/examples/login/inc/login.js:1.1 Wed Oct 26 12:45:31 2005
+++ pear/HTML_AJAX/examples/login/inc/login.js Mon Nov 7 13:45:31 2005
@@ -1,69 +1,69 @@
-function setNormal(sID) {
- try {
- document.getElementById('lbl_' + sID).className = 'normal';
- document.getElementById('txt_' + sID).className = 'normal';
- } catch (e) {
- // blub
- }
-}
-
-function setError(sID) {
- try {
- document.getElementById('lbl_' + sID).className = 'error';
- document.getElementById('txt_' + sID).className = 'error';
- } catch (e) {
- // blub
- }
-}
-
-// callback hash, outputs the results of the login class
-callback = {
- checklogin: function(result) {
- var iMessage;
- var sMessages;
- var iID;
- var sID;
-
- // Reset the form colors
- setNormal('username');
- setNormal('password');
- setNormal('email');
-
- // If the form validated, bail this function
- if (result[0] == true) {
- alert('the form was succesfully filled in!');
- exit;
- }
-
- // Create a new list out of the error messages
- sMessages = '<strong>The following errors occured:</strong><br>';
- sMessages+= '<ul>';
- for (iMessage in result[1]) {
- if (iMessage != '______array') {
- sMessages+= '<li>' + result[1][iMessage] + '</li>';
- }
- }
- sMessages+= '</ul>';
-
- // Assign the message string
- document.getElementById('messages').innerHTML = sMessages;
- document.getElementById('messages').style.display = 'block';
-
- // Loop the array of ID's which we need to colorize
- for (iID in result[2]) {
- setError(result[2][iID]);
- }
- }
-}
-
-// setup our remote object
-var remoteObject = new login(callback);
-
-// The function which will be called when the form is submitted.
-// !!! Be sure to create a version for browsers which do not support ajax. !!!
-function processLogin() {
- var sUsername = document.getElementById('txt_username').value;
- var sPassword = document.getElementById('txt_password').value;
- var sEmail = document.getElementById('txt_email').value;
- remoteObject.checklogin(sUsername, sPassword, sEmail);
+function setNormal(sID) {
+ try {
+ document.getElementById('lbl_' + sID).className = 'normal';
+ document.getElementById('txt_' + sID).className = 'normal';
+ } catch (e) {
+ // blub
+ }
+}
+
+function setError(sID) {
+ try {
+ document.getElementById('lbl_' + sID).className = 'error';
+ document.getElementById('txt_' + sID).className = 'error';
+ } catch (e) {
+ // blub
+ }
+}
+
+// callback hash, outputs the results of the login class
+callback = {
+ checklogin: function(result) {
+ var iMessage;
+ var sMessages;
+ var iID;
+ var sID;
+
+ // Reset the form colors
+ setNormal('username');
+ setNormal('password');
+ setNormal('email');
+
+ // If the form validated, bail this function
+ if (result[0] == true) {
+ alert('the form was succesfully filled in!');
+ exit;
+ }
+
+ // Create a new list out of the error messages
+ sMessages = '<strong>The following errors occured:</strong><br>';
+ sMessages+= '<ul>';
+ for (iMessage in result[1]) {
+ if (iMessage != '______array') {
+ sMessages+= '<li>' + result[1][iMessage] + '</li>';
+ }
+ }
+ sMessages+= '</ul>';
+
+ // Assign the message string
+ document.getElementById('messages').innerHTML = sMessages;
+ document.getElementById('messages').style.display = 'block';
+
+ // Loop the array of ID's which we need to colorize
+ for (iID in result[2]) {
+ setError(result[2][iID]);
+ }
+ }
+}
+
+// setup our remote object
+var remoteObject = new login(callback);
+
+// The function which will be called when the form is submitted.
+// !!! Be sure to create a version for browsers which do not support ajax. !!!
+function processLogin() {
+ var sUsername = document.getElementById('txt_username').value;
+ var sPassword = document.getElementById('txt_password').value;
+ var sEmail = document.getElementById('txt_email').value;
+ remoteObject.checklogin(sUsername, sPassword, sEmail);
}
\ No newline at end of file