Skip to content

Commit

Permalink
- fix EOL
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Wiesemann committed Dec 26, 2008
1 parent bfcbc30 commit cca497f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 23 deletions.
8 changes: 4 additions & 4 deletions HTML/QuickForm/DHTMLRulesTableless.php
Expand Up @@ -4,7 +4,7 @@
* validation
*
* LICENSE:
*
*
* Copyright (c) 2005-2007, Mark Wiesemann <wiesemann@php.net>
* All rights reserved.
*
Expand All @@ -15,9 +15,9 @@
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * The names of the authors may not be used to endorse or promote products
* * The names of the authors may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
Expand Down Expand Up @@ -190,7 +190,7 @@ function getValidationScript()
if (errorDiv) {
errorDiv.parentNode.removeChild(errorDiv);
}
// do not remove the error style from the div tag if there is still an error
// message
if (div.firstChild.innerHTML != "") {
Expand Down
10 changes: 5 additions & 5 deletions HTML/QuickForm/PageDHTMLRulesTableless.php
Expand Up @@ -4,7 +4,7 @@
* validation
*
* LICENSE:
*
*
* Copyright (c) 2005-2007, Mark Wiesemann <wiesemann@php.net>
* All rights reserved.
*
Expand All @@ -15,9 +15,9 @@
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * The names of the authors may not be used to endorse or promote products
* * The names of the authors may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
Expand Down Expand Up @@ -65,7 +65,7 @@ class HTML_QuickForm_PageDHTMLRulesTableless extends HTML_QuickForm_Page
{
/**
* Class constructor
*
*
* @access public
*/
function HTML_QuickForm_PageDHTMLRulesTableless($formName, $method = 'post',
Expand Down Expand Up @@ -202,7 +202,7 @@ function getValidationScript()
if (errorDiv) {
errorDiv.parentNode.removeChild(errorDiv);
}
// do not remove the error style from the div tag if there is still an error
// message
if (div.firstChild.innerHTML != "") {
Expand Down
28 changes: 14 additions & 14 deletions docs/examples/contact_dhtmlrules.php
Expand Up @@ -75,7 +75,7 @@
padding: 0;
}
form li.reqnote {
font-size: 80%;
font-size: 80%;
margin: 5px 0 0 10px;
}
form span.error, form span.required {
Expand All @@ -102,18 +102,18 @@

$form->addElement('header', 'header', 'Tableless renderer example (using DHTMLRules)');

$id['lastname'] = &HTML_QuickForm::createElement('text', 'lastname', 'Name', array('size' => 30));
$id['code'] = &HTML_QuickForm::createElement('text', 'code', 'Code', array('size' => 5, 'maxlength' => 4));
$form->addGroup($id, 'id', 'ID:', ',&nbsp');

$form->addGroupRule('id', array(
'lastname' => array(
array('Name is required', 'required', null, 'client'),
array('Name is letters only', 'lettersonly', null, 'client')
),
'code' => array(
array('Code must be numeric', 'numeric', null, 'client')
)
$id['lastname'] = &HTML_QuickForm::createElement('text', 'lastname', 'Name', array('size' => 30));
$id['code'] = &HTML_QuickForm::createElement('text', 'code', 'Code', array('size' => 5, 'maxlength' => 4));
$form->addGroup($id, 'id', 'ID:', ',&nbsp');

$form->addGroupRule('id', array(
'lastname' => array(
array('Name is required', 'required', null, 'client'),
array('Name is letters only', 'lettersonly', null, 'client')
),
'code' => array(
array('Code must be numeric', 'numeric', null, 'client')
)
));

$form->addElement('text', 'name', 'Your name:', array('style' => 'width: 300px;'));
Expand All @@ -132,7 +132,7 @@
$radio[] = &HTML_QuickForm::createElement('radio', 'country', null, 'Austria', 'austria');
$radio[] = &HTML_QuickForm::createElement('radio', 'country', null, 'Other', 'other');
$form->addGroup($radio, 'group1', 'Choose a country:', ' ');
$form->addGroupRule('group1', 'Please select a country', 'required', null, 1, client);
$form->addGroupRule('group1', 'Please select a country', 'required', null, 1, client);

$form->addElement('date', 'date', 'Date:', array('format' => 'Y-m-d H:i', 'optionIncrement' => array('i' => 5)));

Expand Down

0 comments on commit cca497f

Please sign in to comment.