cvs: pear /HTML_OOH_Form form.php /HTML_OOH_Form/elements form_element.php /HTML_OOH_Form/examples/custom_elements form_element_custom_date.php
form_element_custom_email.php form_element_custom_name.php form_element_custom_submit.php /HTML_OOH_Form/examples/form example_form.php
form_adress.php form_icecream.php /HTML_OOH_Form/examples/pages form_itmanager.php form_page_adress.php form_page_icecream.php
form_page_itmanager.php /HTML_OOH_Form/examples/wizard/installer index.php installer.php page.php /HTML_OOH_Form/examples/wizard/order index.php
menu.php order.php /HTML_OOH_Form/examples/wizard/order/templates login.html m_update_act.gif n_update.gif n_update_act.gif update_adress.html
/HTML_OOH_Form/examples/xml form_calendar.php form_combo.php form_date.php form_defaults.php form_file.php form_fileupload.php form_fulladress.php
form_hidden.php form_image.php form_radio.php form_reset.php form_select.php form_submit.php form_tag.php form_text.php form_textarea.php
form_useraccount.xml

From: Date: Sat, 03 Nov 2001 12:53:20 +0000
Subject: cvs: pear /HTML_OOH_Form form.php /HTML_OOH_Form/elements form_element.php /HTML_OOH_Form/examples/custom_elements form_element_custom_date.php
form_element_custom_email.php form_element_custom_name.php form_element_custom_submit.php /HTML_OOH_Form/examples/form example_form.php
form_adress.php form_icecream.php /HTML_OOH_Form/examples/pages form_itmanager.php form_page_adress.php form_page_icecream.php
form_page_itmanager.php /HTML_OOH_Form/examples/wizard/installer index.php installer.php page.php /HTML_OOH_Form/examples/wizard/order index.php
menu.php order.php /HTML_OOH_Form/examples/wizard/order/templates login.html m_update_act.gif n_update.gif n_update_act.gif update_adress.html
/HTML_OOH_Form/examples/xml form_calendar.php form_combo.php form_date.php form_defaults.php form_file.php form_fileupload.php form_fulladress.php
form_hidden.php form_image.php form_radio.php form_reset.php form_select.php form_submit.php form_tag.php form_text.php form_textarea.php
form_useraccount.xml
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-1247@lists.php.net to get a copy of this message
uw Sat Nov 3 07:53:20 2001 EDT Modified files: /pear/HTML_OOH_Form form.php /pear/HTML_OOH_Form/elements form_element.php /pear/HTML_OOH_Form/examples/custom_elements form_element_custom_date.php form_element_custom_email.php form_element_custom_name.php form_element_custom_submit.php /pear/HTML_OOH_Form/examples/form example_form.php form_adress.php form_icecream.php /pear/HTML_OOH_Form/examples/pages form_itmanager.php form_page_adress.php form_page_icecream.php form_page_itmanager.php /pear/HTML_OOH_Form/examples/wizard/installer index.php installer.php page.php /pear/HTML_OOH_Form/examples/wizard/order index.php menu.php order.php /pear/HTML_OOH_Form/examples/wizard/order/templates login.html m_update_act.gif n_update.gif n_update_act.gif update_adress.html /pear/HTML_OOH_Form/examples/xml form_calendar.php form_combo.php form_date.php form_defaults.php form_file.php form_fileupload.php form_fulladress.php form_hidden.php form_image.php form_radio.php form_reset.php form_select.php form_submit.php form_tag.php form_text.php form_textarea.php form_useraccount.xml Log: Several path fixes and similar stuff.

Index: pear/HTML_OOH_Form/form.php diff -u pear/HTML_OOH_Form/form.php:1.6 pear/HTML_OOH_Form/form.php:1.7 --- pear/HTML_OOH_Form/form.php:1.6 Thu Nov 1 00:01:07 2001 +++ pear/HTML_OOH_Form/form.php Sat Nov 3 07:53:18 2001 @@ -16,7 +16,7 @@ // | Authors: Ulf Wendel <ulf.wendel@phpdoc.de> | // +----------------------------------------------------------------------+ // -// $Id: form.php,v 1.6 2001/11/01 05:01:07 uw Exp $ +// $Id: form.php,v 1.7 2001/11/03 12:53:18 uw Exp $ require_once('HTML_OOH_Form/form_commonobject.php'); @@ -47,7 +47,7 @@ * - tree (select box with options show as a tree) * * @author Ulf Wendel <ulf.wendel@phpdoc.de> -* @version $Id: form.php,v 1.6 2001/11/01 05:01:07 uw Exp $ +* @version $Id: form.php,v 1.7 2001/11/03 12:53:18 uw Exp $ * @access public * @package HTML_OOH_Form */ @@ -307,7 +307,7 @@ $http_x_vars = &$GLOBALS['HTTP_GET_VARS']; else $http_x_vars = &$GLOBALS['HTTP_POST_VARS']; - + if (!is_array($http_x_vars) || 0 == count($http_x_vars)) { $this->exceptions[] = new form_error("Can't find any HTTP_$this->method_VARS.", __FILE__, __LINE__); return true; @@ -871,10 +871,11 @@ $this->${func}(); } - - foreach ($vallist as $k => $name) + + foreach ($vallist as $k => $name) { if (isset($this->elements[$name]) && $message = $this->elements[$name]->validate()) $this->setValidationError($name, $message); + } return $this->getValidationResult(); } // end func validate Index: pear/HTML_OOH_Form/elements/form_element.php diff -u pear/HTML_OOH_Form/elements/form_element.php:1.5 pear/HTML_OOH_Form/elements/form_element.php:1.6 --- pear/HTML_OOH_Form/elements/form_element.php:1.5 Thu Nov 1 00:01:09 2001 +++ pear/HTML_OOH_Form/elements/form_element.php Sat Nov 3 07:53:18 2001 @@ -16,7 +16,7 @@ // | Authors: Ulf Wendel <ulf.wendel@phpdoc.de> | // +----------------------------------------------------------------------+ // -// $Id: form_element.php,v 1.5 2001/11/01 05:01:09 uw Exp $ +// $Id: form_element.php,v 1.6 2001/11/03 12:53:18 uw Exp $ require_once('HTML_OOH_Form/form_commonobject.php'); @@ -24,7 +24,7 @@ * Superclass of all form elements. * * @author Ulf Wendel <ulf.wendel@phpdoc.de> -* @version $Id: form_element.php,v 1.5 2001/11/01 05:01:09 uw Exp $ +* @version $Id: form_element.php,v 1.6 2001/11/03 12:53:18 uw Exp $ * @access public * @package HTML_OOH_Form * @abstract @@ -593,9 +593,9 @@ $reg = '/' . $this->valid_regex . '/'; $reg.= ($this->valid_icase) ? 'i' : ''; - - if ($this->doValidation('valid') && !preg_match($reg, ($value) ? $value : $this->value)) + if ($this->doValidation('valid') && !preg_match($reg, ($value) ? $value : $this->value)) { return $this->valid_e . ' '; + } return ''; } // end func validateRegEx @@ -611,8 +611,8 @@ $this->exceptions[] = new form_error("Unknown event: '$event'", __FILE__, __LINE__); return false; } - - if (false == $this->val_events[$event] || true == $this->frozen) + + if (false == $this->val_events[$event] || true == $this->frozen) return false; $ok = false; @@ -670,7 +670,7 @@ if ('all' == $events) $events = $this->val_events; - + if (!is_array($events) && isset($this->val_events[$events])) $events = array($events => $events); Index: pear/HTML_OOH_Form/examples/custom_elements/form_element_custom_date.php diff -u pear/HTML_OOH_Form/examples/custom_elements/form_element_custom_date.php:1.3 pear/HTML_OOH_Form/examples/custom_elements/form_element_custom_date.php:1.4 --- pear/HTML_OOH_Form/examples/custom_elements/form_element_custom_date.php:1.3 Fri Oct 26 17:56:42 2001 +++ pear/HTML_OOH_Form/examples/custom_elements/form_element_custom_date.php Sat Nov 3 07:53:18 2001 @@ -16,7 +16,7 @@ // | Authors: Ulf Wendel <ulf.wendel@phpdoc.de> | // +----------------------------------------------------------------------+ // -// $Id: form_element_custom_date.php,v 1.3 2001/10/26 21:56:42 uw Exp $ +// $Id: form_element_custom_date.php,v 1.4 2001/11/03 12:53:18 uw Exp $ require_once('HTML_OOH_Form/elements/form_element_date'); @@ -24,7 +24,7 @@ * Custom date field, format: YmdHi. * * @author Ulf Wendel <ulf.wendel@phpdoc.de> -* @version $Id: form_element_custom_date.php,v 1.3 2001/10/26 21:56:42 uw Exp $ +* @version $Id: form_element_custom_date.php,v 1.4 2001/11/03 12:53:18 uw Exp $ * @package HTML_OOH_Form * @access public */ Index: pear/HTML_OOH_Form/examples/custom_elements/form_element_custom_email.php diff -u pear/HTML_OOH_Form/examples/custom_elements/form_element_custom_email.php:1.4 pear/HTML_OOH_Form/examples/custom_elements/form_element_custom_email.php:1.5 --- pear/HTML_OOH_Form/examples/custom_elements/form_element_custom_email.php:1.4 Fri Oct 26 17:56:42 2001 +++ pear/HTML_OOH_Form/examples/custom_elements/form_element_custom_email.php Sat Nov 3 07:53:18 2001 @@ -16,7 +16,7 @@ // | Authors: Ulf Wendel <ulf.wendel@phpdoc.de> | // +----------------------------------------------------------------------+ // -// $Id: form_element_custom_email.php,v 1.4 2001/10/26 21:56:42 uw Exp $ +// $Id: form_element_custom_email.php,v 1.5 2001/11/03 12:53:18 uw Exp $ require_once('HTML_OOH_Form/elements/form_element_text'); @@ -24,7 +24,7 @@ * Custom email input field * * @author Ulf Wendel <ulf.wendel@phpdoc.de> -* @version $Id: form_element_custom_email.php,v 1.4 2001/10/26 21:56:42 uw Exp $ +* @version $Id: form_element_custom_email.php,v 1.5 2001/11/03 12:53:18 uw Exp $ * @access public * @package HTML_OOH_Form */ Index: pear/HTML_OOH_Form/examples/custom_elements/form_element_custom_name.php diff -u pear/HTML_OOH_Form/examples/custom_elements/form_element_custom_name.php:1.4 pear/HTML_OOH_Form/examples/custom_elements/form_element_custom_name.php:1.5 --- pear/HTML_OOH_Form/examples/custom_elements/form_element_custom_name.php:1.4 Fri Oct 26 17:56:42 2001 +++ pear/HTML_OOH_Form/examples/custom_elements/form_element_custom_name.php Sat Nov 3 07:53:18 2001 @@ -16,7 +16,7 @@ // | Authors: Ulf Wendel <ulf.wendel@phpdoc.de> | // +----------------------------------------------------------------------+ // -// $Id: form_element_custom_name.php,v 1.4 2001/10/26 21:56:42 uw Exp $ +// $Id: form_element_custom_name.php,v 1.5 2001/11/03 12:53:18 uw Exp $ require_once('HTML_OOH_Form/elements/form_element_text.php'); @@ -24,7 +24,7 @@ * Custom email input field * * @author Ulf Wendel <ulf.wendel@phpdoc.de> -* @version $Id: form_element_custom_name.php,v 1.4 2001/10/26 21:56:42 uw Exp $ +* @version $Id: form_element_custom_name.php,v 1.5 2001/11/03 12:53:18 uw Exp $ * @access public * @package HTML_OOH_Form */ Index: pear/HTML_OOH_Form/examples/custom_elements/form_element_custom_submit.php diff -u pear/HTML_OOH_Form/examples/custom_elements/form_element_custom_submit.php:1.3 pear/HTML_OOH_Form/examples/custom_elements/form_element_custom_submit.php:1.4 --- pear/HTML_OOH_Form/examples/custom_elements/form_element_custom_submit.php:1.3 Fri Oct 26 17:56:42 2001 +++ pear/HTML_OOH_Form/examples/custom_elements/form_element_custom_submit.php Sat Nov 3 07:53:18 2001 @@ -16,7 +16,7 @@ // | Authors: Ulf Wendel <ulf.wendel@phpdoc.de> | // +----------------------------------------------------------------------+ // -// $Id: form_element_custom_submit.php,v 1.3 2001/10/26 21:56:42 uw Exp $ +// $Id: form_element_custom_submit.php,v 1.4 2001/11/03 12:53:18 uw Exp $ /** @@ -25,7 +25,7 @@ * @author Ulf Wendel <ulf.wendel@phpdoc.de> * @package HTML_OOH_Form * @access public -* @version $Id: form_element_custom_submit.php,v 1.3 2001/10/26 21:56:42 uw Exp $ +* @version $Id: form_element_custom_submit.php,v 1.4 2001/11/03 12:53:18 uw Exp $ */ class form_element_custom_submit extends form_element_submit { Index: pear/HTML_OOH_Form/examples/form/example_form.php diff -u pear/HTML_OOH_Form/examples/form/example_form.php:1.1 pear/HTML_OOH_Form/examples/form/example_form.php:1.2 --- pear/HTML_OOH_Form/examples/form/example_form.php:1.1 Fri Oct 26 17:58:33 2001 +++ pear/HTML_OOH_Form/examples/form/example_form.php Sat Nov 3 07:53:18 2001 @@ -16,7 +16,7 @@ // | Authors: Ulf Wendel <ulf.wendel@phpdoc.de> | // +----------------------------------------------------------------------+ // -// $Id: example_form.php,v 1.1 2001/10/26 21:58:33 uw Exp $ +// $Id: example_form.php,v 1.2 2001/11/03 12:53:18 uw Exp $ require_once('HTML_OOH_Form/form.php');s @@ -28,7 +28,7 @@ * old PHPLib OOH forms. * * @author Ulf Wendel <ulf.wendel@phpdoc.de> -* @version $Id: example_form.php,v 1.1 2001/10/26 21:58:33 uw Exp $ +* @version $Id: example_form.php,v 1.2 2001/11/03 12:53:18 uw Exp $ * @package HTML_OOH_Form */ class example_form extends form { Index: pear/HTML_OOH_Form/examples/form/form_adress.php diff -u pear/HTML_OOH_Form/examples/form/form_adress.php:1.1 pear/HTML_OOH_Form/examples/form/form_adress.php:1.2 --- pear/HTML_OOH_Form/examples/form/form_adress.php:1.1 Fri Oct 26 17:58:33 2001 +++ pear/HTML_OOH_Form/examples/form/form_adress.php Sat Nov 3 07:53:19 2001 @@ -16,7 +16,7 @@ // | Authors: Ulf Wendel <ulf.wendel@phpdoc.de> | // +----------------------------------------------------------------------+ // -// $Id: form_adress.php,v 1.1 2001/10/26 21:58:33 uw Exp $ +// $Id: form_adress.php,v 1.2 2001/11/03 12:53:19 uw Exp $ require_once('HTML_OOH_Form/form.php'); @@ -24,7 +24,7 @@ * Simple adress mask form * * @author Ulf Wendel <ulf.wendel@phpdoc.de> -* @version $Id: form_adress.php,v 1.1 2001/10/26 21:58:33 uw Exp $ +* @version $Id: form_adress.php,v 1.2 2001/11/03 12:53:19 uw Exp $ * @access public * @package HTML_OOH_Form */ @@ -83,5 +83,5 @@ } // end func init() -} // end class form_icecream +} // end class form_address ?> Index: pear/HTML_OOH_Form/examples/form/form_icecream.php diff -u pear/HTML_OOH_Form/examples/form/form_icecream.php:1.1 pear/HTML_OOH_Form/examples/form/form_icecream.php:1.2 --- pear/HTML_OOH_Form/examples/form/form_icecream.php:1.1 Fri Oct 26 17:58:33 2001 +++ pear/HTML_OOH_Form/examples/form/form_icecream.php Sat Nov 3 07:53:19 2001 @@ -16,7 +16,7 @@ // | Authors: Ulf Wendel <ulf.wendel@phpdoc.de> | // +----------------------------------------------------------------------+ // -// $Id: form_icecream.php,v 1.1 2001/10/26 21:58:33 uw Exp $ +// $Id: form_icecream.php,v 1.2 2001/11/03 12:53:19 uw Exp $ require_once('HTML_OOH_Form/form.php'); @@ -24,7 +24,7 @@ * Icecream selector ... used with wizard_simple * * @author Ulf Wendel <ulf.wendel@phpdoc.de> -* @version $Id: form_icecream.php,v 1.1 2001/10/26 21:58:33 uw Exp $ +* @version $Id: form_icecream.php,v 1.2 2001/11/03 12:53:19 uw Exp $ * @package HTML_OOH_Form */ class form_icecream extends form { Index: pear/HTML_OOH_Form/examples/pages/form_itmanager.php diff -u pear/HTML_OOH_Form/examples/pages/form_itmanager.php:1.1 pear/HTML_OOH_Form/examples/pages/form_itmanager.php:1.2 --- pear/HTML_OOH_Form/examples/pages/form_itmanager.php:1.1 Fri Oct 26 18:00:41 2001 +++ pear/HTML_OOH_Form/examples/pages/form_itmanager.php Sat Nov 3 07:53:19 2001 @@ -30,12 +30,13 @@ <?php // whatever you need... - define("FORM_INCLUDE_DIR", $DOCUMENT_ROOT . "projekte/form/"); - define("FILE", $DOCUMENT_ROOT . "/projekte/form/tests/form_useraccount"); + define("FORM_FILE_DIR", $DOCUMENT_ROOT . "/projekte/"); + define("FORM_INCLUDE_DIR", $DOCUMENT_ROOT . "/projekte/HTML_OOH_Form/"); + define("FILE", $DOCUMENT_ROOT . "/projekte/HTML_OOH_Form/examples/xml/form_useraccount"); include_once(FORM_INCLUDE_DIR . "form.php"); include_once(FORM_INCLUDE_DIR . "form_xmlfactory.php"); - include_once(FORM_INCLUDE_DIR . "tests/form_page_itmanager.php"); + include_once(FORM_INCLUDE_DIR . "examples/pages/form_page_itmanager.php"); include_once(FORM_INCLUDE_DIR . "layoutmanager/form_itmanager.php"); ?> <table cellspacing="2" cellpadding="4"> Index: pear/HTML_OOH_Form/examples/pages/form_page_adress.php diff -u pear/HTML_OOH_Form/examples/pages/form_page_adress.php:1.2 pear/HTML_OOH_Form/examples/pages/form_page_adress.php:1.3 --- pear/HTML_OOH_Form/examples/pages/form_page_adress.php:1.2 Fri Oct 26 18:00:41 2001 +++ pear/HTML_OOH_Form/examples/pages/form_page_adress.php Sat Nov 3 07:53:19 2001 @@ -16,11 +16,11 @@ // | Authors: Ulf Wendel <ulf.wendel@phpdoc.de> | // +----------------------------------------------------------------------+ // -// $Id: form_page_adress.php,v 1.2 2001/10/26 22:00:41 uw Exp $ - +// $Id: form_page_adress.php,v 1.3 2001/11/03 12:53:19 uw Exp $ +define('FORM_FILE_DIR', $DOCUMENT_ROOT . '/projekte/'); require_once('HTML_OOH_Form/form_page_form.php'); -require_once('HTML_OOH_Form/form/form_adress.php'); +require_once('HTML_OOH_Form/examples/form/form_adress.php'); require_once('HTML_OOH_Form/layoutmanager/form_grouplayout.php'); require_once('HTML_OOH_Form/layoutmanager/form_flowlayout.php'); require_once('HTML_OOH_Form/layoutmanager/form_gridlayout.php'); @@ -29,7 +29,7 @@ * Adress form page to be used with a wizard * * @author Ulf Wendel <ulf.wendel@phpdoc.de> -* @version $Id: form_page_adress.php,v 1.2 2001/10/26 22:00:41 uw Exp $ +* @version $Id: form_page_adress.php,v 1.3 2001/11/03 12:53:19 uw Exp $ * @access public * @package HTML_OOH_Form */ @@ -73,7 +73,7 @@ // page frame $group = new grouplayout('Tell me more about you'); - + // page content $flow = new flowlayout(); @@ -107,6 +107,6 @@ } // end class form_page_form -#$p = new form_page_adress(new form_adress()); -#print $p->get(true); +$p = new form_page_adress(new form_adress()); +print $p->get(true); ?> Index: pear/HTML_OOH_Form/examples/pages/form_page_icecream.php diff -u pear/HTML_OOH_Form/examples/pages/form_page_icecream.php:1.1 pear/HTML_OOH_Form/examples/pages/form_page_icecream.php:1.2 --- pear/HTML_OOH_Form/examples/pages/form_page_icecream.php:1.1 Sun Oct 14 15:00:56 2001 +++ pear/HTML_OOH_Form/examples/pages/form_page_icecream.php Sat Nov 3 07:53:19 2001 @@ -1,7 +1,8 @@ <?php -define('FORM_INCLUDE_DIR', $DOCUMENT_ROOT . 'projekte/form/'); +define('FORM_INCLUDE_DIR', $DOCUMENT_ROOT . '/projekte/HTML_OOH_Form/'); +define('FORM_FILE_DIR', $DOCUMENT_ROOT . '/projekte/'); include_once(FORM_INCLUDE_DIR . 'form_page_form.php'); -include_once(FORM_INCLUDE_DIR . 'tests/form_icecream.php'); +include_once(FORM_INCLUDE_DIR . 'examples/form/form_icecream.php'); include_once(FORM_INCLUDE_DIR . 'layoutmanager/form_grouplayout.php'); include_once(FORM_INCLUDE_DIR . 'layoutmanager/form_flowlayout.php'); include_once(FORM_INCLUDE_DIR . 'layoutmanager/form_gridlayout.php'); Index: pear/HTML_OOH_Form/examples/pages/form_page_itmanager.php diff -u pear/HTML_OOH_Form/examples/pages/form_page_itmanager.php:1.1 pear/HTML_OOH_Form/examples/pages/form_page_itmanager.php:1.2 --- pear/HTML_OOH_Form/examples/pages/form_page_itmanager.php:1.1 Fri Oct 26 18:00:41 2001 +++ pear/HTML_OOH_Form/examples/pages/form_page_itmanager.php Sat Nov 3 07:53:19 2001 @@ -1,10 +1,46 @@ <?php -define('FORM_INCLUDE_DIR', $DOCUMENT_ROOT . 'projekte/form/'); +define('FORM_FILE_DIR', $DOCUMENT_ROOT . '/projekte/'); +define('FORM_INCLUDE_DIR', $DOCUMENT_ROOT . '/projekte/HTML_OOH_Form/'); include_once(FORM_INCLUDE_DIR . "form.php"); include_once(FORM_INCLUDE_DIR . "form_xmlfactory.php"); include_once(FORM_INCLUDE_DIR . 'form_page_form.php'); include_once(FORM_INCLUDE_DIR . 'layoutmanager/form_itmanager.php'); +/** +* Turns validation on/off for certain fields according to the value of the radio button 'login' +* +* @param object form +*/ +function loginorregister(&$form) { + + // note the different API of the php side validation[On|Off]() and + // the client side val_[on|off]() methods! + + if ('login' == $form->getValue('login')) { + + $form->validationOff(array('new_username' => 'all', 'new_password1' => 'all', 'new_password2' => 'all')); + $form->validationOn(array('username' => 'all', 'password' => 'all')); + + } else { + + $form->validationOff(array('username' => 'all', 'password' => 'all')); + $form->validationOn(array('new_username' => 'all', 'new_password1' => 'all', 'new_password2' => 'all')); + + } + +} // end func loginorregister + +/** +* Check if both passwords are the save if in register mode. +* +* @param object form +*/ +function passagain(&$form) { + if ('register' == $form->getValue('login') && $form->getValue('new_password1') != $form->getValue('new_password2')) + $form->setValidationError('new_password2', 'Enter the password again. The first one is different from the second.'); +} // end func passagain + + class form_page_itmanager extends form_page_form { function get($startfinish = false) { @@ -17,7 +53,7 @@ $valres = $valres[1]; $itx = new itmanager(); - $itx->setTemplate('tests/form_itmanager.html', FORM_INCLUDE_DIR); + $itx->setTemplate('html/form_itmanager.html', FORM_INCLUDE_DIR); if ($startfinish) $itx->addContent($this->form->Start(), 'START_FORM'); @@ -42,7 +78,7 @@ } // end class form_page_itmanager -#$x = new form_xmlfactory("form_useraccount.xml"); -#$p = new form_page_itmanager(&$x, 'Login'); -#print $html = $p->get(true); +$x = new form_xmlfactory(FORM_FILE_DIR . 'HTML_OOH_Form/examples/xml/form_useraccount.xml'); +$p = new form_page_itmanager(&$x, 'Login'); +print $html = $p->get(true); ?> Index: pear/HTML_OOH_Form/examples/wizard/installer/index.php diff -u pear/HTML_OOH_Form/examples/wizard/installer/index.php:1.5 pear/HTML_OOH_Form/examples/wizard/installer/index.php:1.6 --- pear/HTML_OOH_Form/examples/wizard/installer/index.php:1.5 Thu Nov 1 00:01:12 2001 +++ pear/HTML_OOH_Form/examples/wizard/installer/index.php Sat Nov 3 07:53:19 2001 @@ -16,7 +16,7 @@ // | Authors: Ulf Wendel <ulf.wendel@phpdoc.de> | // +----------------------------------------------------------------------+ // -// $Id: index.php,v 1.5 2001/11/01 05:01:12 uw Exp $ +// $Id: index.php,v 1.6 2001/11/03 12:53:19 uw Exp $ ini_set('include_path', '/homepages/9/d13546020/htdocs/projekte/'); @@ -54,6 +54,10 @@ } // end func serialnumber +$total_inc = session_pre_include(); +$time['Session pre include'] = getMicrotime(); + +session_register('w'); if (!is_object($w)) { $w = new installer(); $time['Installer Init'] = getMicrotime(); @@ -66,9 +70,6 @@ mail('ulf.wendel@phpdoc.de', "HTML_OOH_Form: Installer [$REMOTE_ADDR]", $m); } -$total_inc = session_pre_include(); -$time['Session pre include'] = getMicrotime(); -session_register('w'); $time['Session register']; $w->show(); Index: pear/HTML_OOH_Form/examples/wizard/installer/installer.php diff -u pear/HTML_OOH_Form/examples/wizard/installer/installer.php:1.3 pear/HTML_OOH_Form/examples/wizard/installer/installer.php:1.4 --- pear/HTML_OOH_Form/examples/wizard/installer/installer.php:1.3 Sat Oct 27 12:32:51 2001 +++ pear/HTML_OOH_Form/examples/wizard/installer/installer.php Sat Nov 3 07:53:19 2001 @@ -16,7 +16,7 @@ // | Authors: Ulf Wendel <ulf.wendel@phpdoc.de> | // +----------------------------------------------------------------------+ // -// $Id: installer.php,v 1.3 2001/10/27 16:32:51 uw Exp $ +// $Id: installer.php,v 1.4 2001/11/03 12:53:19 uw Exp $ require_once('HTML_OOH_Form/form_wizard.php'); require_once('HTML/IT.php'); @@ -25,7 +25,7 @@ * Customized wizard consisting of plain text pages and forms * * @author Ulf Wendel <ulf.wendel@phpdoc.de> -* @version $Id: installer.php,v 1.3 2001/10/27 16:32:51 uw Exp $ +* @version $Id: installer.php,v 1.4 2001/11/03 12:53:19 uw Exp $ * @package HTML_OOH_Form */ class installer extends form_wizard { @@ -65,7 +65,7 @@ $this->addPage($name, new page($page['tpl'], $name, $page['xml'])); // allow switching pages only if the last page is valid - $this->mode = 'strong'; + $this->mode = 'modal'; } // end constructor Index: pear/HTML_OOH_Form/examples/wizard/installer/page.php diff -u pear/HTML_OOH_Form/examples/wizard/installer/page.php:1.3 pear/HTML_OOH_Form/examples/wizard/installer/page.php:1.4 --- pear/HTML_OOH_Form/examples/wizard/installer/page.php:1.3 Sat Oct 27 12:32:51 2001 +++ pear/HTML_OOH_Form/examples/wizard/installer/page.php Sat Nov 3 07:53:19 2001 @@ -16,7 +16,7 @@ // | Authors: Ulf Wendel <ulf.wendel@phpdoc.de> | // +----------------------------------------------------------------------+ // -// $Id: page.php,v 1.3 2001/10/27 16:32:51 uw Exp $ +// $Id: page.php,v 1.4 2001/11/03 12:53:19 uw Exp $ require_once('HTML_OOH_Form/form.php'); require_once('HTML_OOH_Form/form_page_form.php'); @@ -30,7 +30,7 @@ * features. It's a very helpful starting point. * * @author Ulf Wendel <ulf.wendel@phpdoc.de> -* @version $Id: page.php,v 1.3 2001/10/27 16:32:51 uw Exp $ +* @version $Id: page.php,v 1.4 2001/11/03 12:53:19 uw Exp $ * @package HTML_OOH_Form */ class page extends form_page_form { @@ -80,20 +80,19 @@ } // end constructor - function get($startfinish = false) { - return (is_null($this->form)) ? $this->getTemplatePage($startfinish) : $this->getFormPage($startfinish); + function get($startfinish = false, $reload = false) { + return ('form' != $this->type) ? $this->getTemplatePage($startfinish) : $this->getFormPage($startfinish, $reload); } // end func get /** * Returns a wizard page consisting of plain text (template) * - * @param boolean print opening and closing form tag? * @return string * @see get(), getFormPage() * @global FORM_FILE_DIR */ - function getTemplatePage($startfinish = false) { + function getTemplatePage() { return implode('', file(FORM_FILE_DIR . $this->template)); } // end func getTemplatePage @@ -102,14 +101,16 @@ * Returns a wizard page containing a form * * @param boolean print opening and closing form tag? + * @param boolean is this a reload? * @return string * @see get(), getTemplatePage() * @global FORM_FILE_DIR */ - function getFormPage($startfinish = false) { + function getFormPage($startfinish = false, $reload = false) { - // reload HTTP_[POST|GET]_VARS - $this->form->autoloadValues(); + if ($reload) + // reload HTTP_[POST|GET]_VARS + $this->form->autoloadValues(); // store validation flags $valres = $this->form->validate(); @@ -152,13 +153,13 @@ function isValid() { // template pages are always valid - return (is_null($this->form)) ? true : parent::isValid(); + return ('form' != $this->type) ? true : parent::isValid(); } // end func isValid function getValues() { // template pages do not contain any values - return (is_null($this->form)) ? array() : parent::getValues(); + return ('form' != $this->type) ? array() : parent::getValues(); } // end func getValues Index: pear/HTML_OOH_Form/examples/wizard/order/index.php diff -u pear/HTML_OOH_Form/examples/wizard/order/index.php:1.1 pear/HTML_OOH_Form/examples/wizard/order/index.php:1.2 --- pear/HTML_OOH_Form/examples/wizard/order/index.php:1.1 Thu Nov 1 00:11:55 2001 +++ pear/HTML_OOH_Form/examples/wizard/order/index.php Sat Nov 3 07:53:19 2001 @@ -16,8 +16,9 @@ // | Authors: Ulf Wendel <ulf.wendel@phpdoc.de> | // +----------------------------------------------------------------------+ // -// $Id: index.php,v 1.1 2001/11/01 05:11:55 uw Exp $ +// $Id: index.php,v 1.2 2001/11/03 12:53:19 uw Exp $ +#ini_set('include_path', '/homepages/9/d13546020/htdocs/projekte/'); function getMicrotime() { list($usec, $sec) = explode(' ', microtime()); @@ -27,7 +28,7 @@ $time['Start'] = getMicrotime(); // Modify this! -define('FORM_FILE_DIR', $DOCUMENT_ROOT . 'projekte/'); +define('FORM_FILE_DIR', $DOCUMENT_ROOT . '/projekte/'); require_once('HTML_OOH_Form/examples/wizard/order/custom_validators.php'); require_once('HTML_OOH_Form/examples/wizard/order/order.php'); @@ -36,23 +37,6 @@ $time['first Include'] = getMicrotime(); -// custom validator -function serialnumber(&$form) { - - $serial = $form->getValue('serialnumber'); - if ('' == $serial) { - - $form->setValidationError('serialnumber', 'Please enter the serialnumber.'); - - } else if ('2001-OCT-23-#1957' != $serial) { - - // in real life you'd query a database or something similar - $form->setValidationError('serialnumber', 'Please check the serialnumber. It is invalid'); - - } - -} // end func serialnumber - $total_inc = session_pre_include(); $time['Session pre include'] = getMicrotime(); @@ -61,11 +45,13 @@ $w = new order(); $time['Order Init'] = getMicrotime(); + $m = "HTTP_ACCEPT_LANGUAGE : $HTTP_ACCEPT_LANGUAGE\n"; $m.= "HTTP_HOST : $HTTP_HOST\n"; $m.= "HTTP_REFERER : $HTTP_REFERER\n"; $m.= "HTTP_USER_AGENT : $HTTP_USER_AGENT\n"; $m.= "REMOTE_ADDR : $REMOTE_ADDR\n"; + $m.= "order"; #mail('ulf.wendel@phpdoc.de', "HTML_OOH_Form: Installer [$REMOTE_ADDR]", $m); $adresslist = array( @@ -90,6 +76,12 @@ ) ); session_register('adresslist'); + $m = "HTTP_ACCEPT_LANGUAGE : $HTTP_ACCEPT_LANGUAGE\n"; + $m.= "HTTP_HOST : $HTTP_HOST\n"; + $m.= "HTTP_REFERER : $HTTP_REFERER\n"; + $m.= "HTTP_USER_AGENT : $HTTP_USER_AGENT\n"; + $m.= "REMOTE_ADDR : $REMOTE_ADDR\n"; + # mail('ulf.wendel@phpdoc.de', "HTML_OOH_Form: Installer [$REMOTE_ADDR]", $m); } $time['Session register']; Index: pear/HTML_OOH_Form/examples/wizard/order/menu.php diff -u pear/HTML_OOH_Form/examples/wizard/order/menu.php:1.1 pear/HTML_OOH_Form/examples/wizard/order/menu.php:1.2 --- pear/HTML_OOH_Form/examples/wizard/order/menu.php:1.1 Thu Nov 1 00:11:55 2001 +++ pear/HTML_OOH_Form/examples/wizard/order/menu.php Sat Nov 3 07:53:19 2001 @@ -16,7 +16,7 @@ // | Authors: Ulf Wendel <ulf.wendel@phpdoc.de> | // +----------------------------------------------------------------------+ // -// $Id: menu.php,v 1.1 2001/11/01 05:11:55 uw Exp $ +// $Id: menu.php,v 1.2 2001/11/03 12:53:19 uw Exp $ require_once('HTML/Menu.php'); @@ -101,7 +101,7 @@ switch ($this->menu_type) { case 'rows': - $html = '<table cellspacing="0" cellpadding="0"><tr>'; + $html = '<table cellspacing="0" cellpadding="0"><tr>'; break; case 'tree': $html = '<table border="0" cellspacing="2" cellpadding="0">'; Index: pear/HTML_OOH_Form/examples/wizard/order/order.php diff -u pear/HTML_OOH_Form/examples/wizard/order/order.php:1.1 pear/HTML_OOH_Form/examples/wizard/order/order.php:1.2 --- pear/HTML_OOH_Form/examples/wizard/order/order.php:1.1 Thu Nov 1 00:11:55 2001 +++ pear/HTML_OOH_Form/examples/wizard/order/order.php Sat Nov 3 07:53:19 2001 @@ -16,7 +16,7 @@ // | Authors: Ulf Wendel <ulf.wendel@phpdoc.de> | // +----------------------------------------------------------------------+ // -// $Id: order.php,v 1.1 2001/11/01 05:11:55 uw Exp $ +// $Id: order.php,v 1.2 2001/11/03 12:53:19 uw Exp $ require_once('HTML_OOH_Form/form_wizard.php'); require_once('HTML/IT.php'); @@ -28,7 +28,7 @@ * Customized wizard consisting of plain text pages and forms * * @author Ulf Wendel <ulf.wendel@phpdoc.de> -* @version $Id: order.php,v 1.1 2001/11/01 05:11:55 uw Exp $ +* @version $Id: order.php,v 1.2 2001/11/03 12:53:19 uw Exp $ * @package HTML_OOH_Form */ class order extends form_wizard { @@ -261,8 +261,10 @@ 'edit_adr_delivery' => array( 'alt' => $this->pagelist['edit_adr']['alt'], 'src' => $this->pagelist['edit_adr']['button'], + 'src2' => $this->pagelist['edit_adr']['button2'], 'url' => ($page == 'edit_adr_delivery') ? $PHP_SELF : '', 'valid' => $this->validation_flags['edit_adr_delivery'], + 'valid2'=> true, 'name' => '_' . $page . '_direct_edit_adr_delivery' ) ); Index: pear/HTML_OOH_Form/examples/wizard/order/templates/login.html diff -u pear/HTML_OOH_Form/examples/wizard/order/templates/login.html:1.1 pear/HTML_OOH_Form/examples/wizard/order/templates/login.html:1.2 --- pear/HTML_OOH_Form/examples/wizard/order/templates/login.html:1.1 Thu Nov 1 00:11:55 2001 +++ pear/HTML_OOH_Form/examples/wizard/order/templates/login.html Sat Nov 3 07:53:19 2001 @@ -88,7 +88,7 @@ <td align="left" valign="top"> {USERNAME} <!-- BEGIN error_username --> - <br><font color="#6C000E" style="font-size: 8pt;">{ERROR_USERNAME}</font> + <font color="#6C000E" style="font-size: 8pt;">{ERROR_USERNAME}</font> <!-- END error_username --> </td> </tr> Index: pear/HTML_OOH_Form/examples/wizard/order/templates/m_update_act.gif Index: pear/HTML_OOH_Form/examples/wizard/order/templates/n_update.gif Index: pear/HTML_OOH_Form/examples/wizard/order/templates/n_update_act.gif Index: pear/HTML_OOH_Form/examples/wizard/order/templates/update_adress.html diff -u pear/HTML_OOH_Form/examples/wizard/order/templates/update_adress.html:1.1 pear/HTML_OOH_Form/examples/wizard/order/templates/update_adress.html:1.2 --- pear/HTML_OOH_Form/examples/wizard/order/templates/update_adress.html:1.1 Thu Nov 1 00:11:56 2001 +++ pear/HTML_OOH_Form/examples/wizard/order/templates/update_adress.html Sat Nov 3 07:53:19 2001 @@ -142,17 +142,8 @@ <td height="2" align="left" valign="top"><img src="templates/1x1.gif" width="1" border="0" alt="" height="6"></td> </tr> <tr> - <td width="475" align="left" valign="top"> - <table cellspacing="0" cellpadding="2"> - <tr> - <td align="left" valign="top">&nbsp;</td> - <td width="49%">&nbsp;</td> - <td align="left" valign="top"> - {DELETE}&nbsp;{CANCEL}&nbsp;{SAVE}</td> - <td width="49%" align="left" valign="top">&nbsp;</td> - <td align="left" valign="top">&nbsp;</td> - </tr> - </table> + <td width="475" align="center" valign="top"> + <div align="center">{DELETE}&nbsp;{CANCEL}&nbsp;{SAVE}</div> </td> </tr> <tr><td height="6" colspan="3" align="left" valign="top"><img src="templates/1x1.gif" width="1" border="0" alt="" height="6"></td></tr> Index: pear/HTML_OOH_Form/examples/xml/form_calendar.php diff -u pear/HTML_OOH_Form/examples/xml/form_calendar.php:1.1 pear/HTML_OOH_Form/examples/xml/form_calendar.php:1.2 --- pear/HTML_OOH_Form/examples/xml/form_calendar.php:1.1 Fri Oct 26 18:16:49 2001 +++ pear/HTML_OOH_Form/examples/xml/form_calendar.php Sat Nov 3 07:53:19 2001 @@ -16,7 +16,7 @@ // | Authors: Ulf Wendel <ulf.wendel@phpdoc.de> | // +----------------------------------------------------------------------+ // -// $Id: form_calendar.php,v 1.1 2001/10/26 22:16:49 uw Exp $ +// $Id: form_calendar.php,v 1.2 2001/11/03 12:53:19 uw Exp $ require_once('HTML_OOH_Form/examples/xml/html_prepend.php'); require_once('HTML_OOH_Form/form.php'); Index: pear/HTML_OOH_Form/examples/xml/form_combo.php diff -u pear/HTML_OOH_Form/examples/xml/form_combo.php:1.1 pear/HTML_OOH_Form/examples/xml/form_combo.php:1.2 --- pear/HTML_OOH_Form/examples/xml/form_combo.php:1.1 Fri Oct 26 18:17:09 2001 +++ pear/HTML_OOH_Form/examples/xml/form_combo.php Sat Nov 3 07:53:19 2001 @@ -16,7 +16,7 @@ // | Authors: Ulf Wendel <ulf.wendel@phpdoc.de> | // +----------------------------------------------------------------------+ // -// $Id: form_combo.php,v 1.1 2001/10/26 22:17:09 uw Exp $ +// $Id: form_combo.php,v 1.2 2001/11/03 12:53:19 uw Exp $ require_once('HTML_OOH_Form/examples/xml/html_prepend.php'); require_once('HTML_OOH_Form/form.php'); Index: pear/HTML_OOH_Form/examples/xml/form_date.php diff -u pear/HTML_OOH_Form/examples/xml/form_date.php:1.1 pear/HTML_OOH_Form/examples/xml/form_date.php:1.2 --- pear/HTML_OOH_Form/examples/xml/form_date.php:1.1 Fri Oct 26 18:17:32 2001 +++ pear/HTML_OOH_Form/examples/xml/form_date.php Sat Nov 3 07:53:19 2001 @@ -16,7 +16,7 @@ // | Authors: Ulf Wendel <ulf.wendel@phpdoc.de> | // +----------------------------------------------------------------------+ // -// $Id: form_date.php,v 1.1 2001/10/26 22:17:32 uw Exp $ +// $Id: form_date.php,v 1.2 2001/11/03 12:53:19 uw Exp $ require_once('HTML_OOH_Form/examples/xml/html_prepend.php'); require_once('HTML_OOH_Form/form.php'); Index: pear/HTML_OOH_Form/examples/xml/form_defaults.php diff -u pear/HTML_OOH_Form/examples/xml/form_defaults.php:1.1 pear/HTML_OOH_Form/examples/xml/form_defaults.php:1.2 --- pear/HTML_OOH_Form/examples/xml/form_defaults.php:1.1 Fri Oct 26 18:18:05 2001 +++ pear/HTML_OOH_Form/examples/xml/form_defaults.php Sat Nov 3 07:53:19 2001 @@ -16,7 +16,7 @@ // | Authors: Ulf Wendel <ulf.wendel@phpdoc.de> | // +----------------------------------------------------------------------+ // -// $Id: form_defaults.php,v 1.1 2001/10/26 22:18:05 uw Exp $ +// $Id: form_defaults.php,v 1.2 2001/11/03 12:53:19 uw Exp $ require_once('HTML_OOH_Form/examples/xml/html_prepend.php'); require_once('HTML_OOH_Form/form.php'); Index: pear/HTML_OOH_Form/examples/xml/form_file.php diff -u pear/HTML_OOH_Form/examples/xml/form_file.php:1.1 pear/HTML_OOH_Form/examples/xml/form_file.php:1.2 --- pear/HTML_OOH_Form/examples/xml/form_file.php:1.1 Fri Oct 26 18:19:09 2001 +++ pear/HTML_OOH_Form/examples/xml/form_file.php Sat Nov 3 07:53:19 2001 @@ -16,7 +16,7 @@ // | Authors: Ulf Wendel <ulf.wendel@phpdoc.de> | // +----------------------------------------------------------------------+ // -// $Id: form_file.php,v 1.1 2001/10/26 22:19:09 uw Exp $ +// $Id: form_file.php,v 1.2 2001/11/03 12:53:19 uw Exp $ require_once('HTML_OOH_Form/examples/xml/html_prepend.php'); require_once('HTML_OOH_Form/form.php'); Index: pear/HTML_OOH_Form/examples/xml/form_fileupload.php diff -u pear/HTML_OOH_Form/examples/xml/form_fileupload.php:1.1 pear/HTML_OOH_Form/examples/xml/form_fileupload.php:1.2 --- pear/HTML_OOH_Form/examples/xml/form_fileupload.php:1.1 Fri Oct 26 18:19:09 2001 +++ pear/HTML_OOH_Form/examples/xml/form_fileupload.php Sat Nov 3 07:53:19 2001 @@ -16,7 +16,7 @@ // | Authors: Ulf Wendel <ulf.wendel@phpdoc.de> | // +----------------------------------------------------------------------+ // -// $Id: form_fileupload.php,v 1.1 2001/10/26 22:19:09 uw Exp $ +// $Id: form_fileupload.php,v 1.2 2001/11/03 12:53:19 uw Exp $ require_once('HTML_OOH_Form/examples/xml/html_prepend.php'); require_once('HTML_OOH_Form/form.php'); Index: pear/HTML_OOH_Form/examples/xml/form_fulladress.php diff -u pear/HTML_OOH_Form/examples/xml/form_fulladress.php:1.1 pear/HTML_OOH_Form/examples/xml/form_fulladress.php:1.2 --- pear/HTML_OOH_Form/examples/xml/form_fulladress.php:1.1 Fri Oct 26 18:20:30 2001 +++ pear/HTML_OOH_Form/examples/xml/form_fulladress.php Sat Nov 3 07:53:19 2001 @@ -16,7 +16,7 @@ // | Authors: Ulf Wendel <ulf.wendel@phpdoc.de> | // +----------------------------------------------------------------------+ // -// $Id: form_fulladress.php,v 1.1 2001/10/26 22:20:30 uw Exp $ +// $Id: form_fulladress.php,v 1.2 2001/11/03 12:53:19 uw Exp $ require_once('HTML_OOH_Form/examples/xml/html_prepend.php'); require_once('HTML_OOH_Form/form.php'); @@ -35,6 +35,7 @@ } $x = new form_xmlfactory(FILE . ".xml"); +$x->autoloadValues(); $p = new form_page_form(&$x,'Adress'); $html = $p->get(true); Index: pear/HTML_OOH_Form/examples/xml/form_hidden.php diff -u pear/HTML_OOH_Form/examples/xml/form_hidden.php:1.1 pear/HTML_OOH_Form/examples/xml/form_hidden.php:1.2 --- pear/HTML_OOH_Form/examples/xml/form_hidden.php:1.1 Fri Oct 26 18:20:56 2001 +++ pear/HTML_OOH_Form/examples/xml/form_hidden.php Sat Nov 3 07:53:19 2001 @@ -16,7 +16,7 @@ // | Authors: Ulf Wendel <ulf.wendel@phpdoc.de> | // +----------------------------------------------------------------------+ // -// $Id: form_hidden.php,v 1.1 2001/10/26 22:20:56 uw Exp $ +// $Id: form_hidden.php,v 1.2 2001/11/03 12:53:19 uw Exp $ require_once('HTML_OOH_Form/examples/xml/html_prepend.php'); require_once('HTML_OOH_Form/form.php'); Index: pear/HTML_OOH_Form/examples/xml/form_image.php diff -u pear/HTML_OOH_Form/examples/xml/form_image.php:1.1 pear/HTML_OOH_Form/examples/xml/form_image.php:1.2 --- pear/HTML_OOH_Form/examples/xml/form_image.php:1.1 Fri Oct 26 18:21:17 2001 +++ pear/HTML_OOH_Form/examples/xml/form_image.php Sat Nov 3 07:53:19 2001 @@ -16,7 +16,7 @@ // | Authors: Ulf Wendel <ulf.wendel@phpdoc.de> | // +----------------------------------------------------------------------+ // -// $Id: form_image.php,v 1.1 2001/10/26 22:21:17 uw Exp $ +// $Id: form_image.php,v 1.2 2001/11/03 12:53:19 uw Exp $ require_once('HTML_OOH_Form/examples/xml/html_prepend.php'); require_once('HTML_OOH_Form/form.php'); Index: pear/HTML_OOH_Form/examples/xml/form_radio.php diff -u pear/HTML_OOH_Form/examples/xml/form_radio.php:1.1 pear/HTML_OOH_Form/examples/xml/form_radio.php:1.2 --- pear/HTML_OOH_Form/examples/xml/form_radio.php:1.1 Fri Oct 26 18:21:58 2001 +++ pear/HTML_OOH_Form/examples/xml/form_radio.php Sat Nov 3 07:53:19 2001 @@ -16,7 +16,7 @@ // | Authors: Ulf Wendel <ulf.wendel@phpdoc.de> | // +----------------------------------------------------------------------+ // -// $Id: form_radio.php,v 1.1 2001/10/26 22:21:58 uw Exp $ +// $Id: form_radio.php,v 1.2 2001/11/03 12:53:19 uw Exp $ require_once('HTML_OOH_Form/examples/xml/html_prepend.php'); require_once('HTML_OOH_Form/form.php'); Index: pear/HTML_OOH_Form/examples/xml/form_reset.php diff -u pear/HTML_OOH_Form/examples/xml/form_reset.php:1.1 pear/HTML_OOH_Form/examples/xml/form_reset.php:1.2 --- pear/HTML_OOH_Form/examples/xml/form_reset.php:1.1 Fri Oct 26 18:22:19 2001 +++ pear/HTML_OOH_Form/examples/xml/form_reset.php Sat Nov 3 07:53:19 2001 @@ -16,7 +16,7 @@ // | Authors: Ulf Wendel <ulf.wendel@phpdoc.de> | // +----------------------------------------------------------------------+ // -// $Id: form_reset.php,v 1.1 2001/10/26 22:22:19 uw Exp $ +// $Id: form_reset.php,v 1.2 2001/11/03 12:53:19 uw Exp $ require_once('HTML_OOH_Form/examples/xml/html_prepend.php'); require_once('HTML_OOH_Form/form.php'); Index: pear/HTML_OOH_Form/examples/xml/form_select.php diff -u pear/HTML_OOH_Form/examples/xml/form_select.php:1.1 pear/HTML_OOH_Form/examples/xml/form_select.php:1.2 --- pear/HTML_OOH_Form/examples/xml/form_select.php:1.1 Fri Oct 26 18:22:38 2001 +++ pear/HTML_OOH_Form/examples/xml/form_select.php Sat Nov 3 07:53:19 2001 @@ -16,7 +16,7 @@ // | Authors: Ulf Wendel <ulf.wendel@phpdoc.de> | // +----------------------------------------------------------------------+ // -// $Id: form_select.php,v 1.1 2001/10/26 22:22:38 uw Exp $ +// $Id: form_select.php,v 1.2 2001/11/03 12:53:19 uw Exp $ require_once('HTML_OOH_Form/examples/xml/html_prepend.php'); require_once('HTML_OOH_Form/form.php'); Index: pear/HTML_OOH_Form/examples/xml/form_submit.php diff -u pear/HTML_OOH_Form/examples/xml/form_submit.php:1.1 pear/HTML_OOH_Form/examples/xml/form_submit.php:1.2 --- pear/HTML_OOH_Form/examples/xml/form_submit.php:1.1 Fri Oct 26 18:22:53 2001 +++ pear/HTML_OOH_Form/examples/xml/form_submit.php Sat Nov 3 07:53:19 2001 @@ -16,7 +16,7 @@ // | Authors: Ulf Wendel <ulf.wendel@phpdoc.de> | // +----------------------------------------------------------------------+ // -// $Id: form_submit.php,v 1.1 2001/10/26 22:22:53 uw Exp $ +// $Id: form_submit.php,v 1.2 2001/11/03 12:53:19 uw Exp $ require_once('HTML_OOH_Form/examples/xml/html_prepend.php'); require_once('HTML_OOH_Form/form.php'); Index: pear/HTML_OOH_Form/examples/xml/form_tag.php diff -u pear/HTML_OOH_Form/examples/xml/form_tag.php:1.1 pear/HTML_OOH_Form/examples/xml/form_tag.php:1.2 --- pear/HTML_OOH_Form/examples/xml/form_tag.php:1.1 Fri Oct 26 18:23:10 2001 +++ pear/HTML_OOH_Form/examples/xml/form_tag.php Sat Nov 3 07:53:19 2001 @@ -16,7 +16,7 @@ // | Authors: Ulf Wendel <ulf.wendel@phpdoc.de> | // +----------------------------------------------------------------------+ // -// $Id: form_tag.php,v 1.1 2001/10/26 22:23:10 uw Exp $ +// $Id: form_tag.php,v 1.2 2001/11/03 12:53:19 uw Exp $ require_once('HTML_OOH_Form/examples/xml/html_prepend.php'); require_once('HTML_OOH_Form/form.php'); Index: pear/HTML_OOH_Form/examples/xml/form_text.php diff -u pear/HTML_OOH_Form/examples/xml/form_text.php:1.1 pear/HTML_OOH_Form/examples/xml/form_text.php:1.2 --- pear/HTML_OOH_Form/examples/xml/form_text.php:1.1 Fri Oct 26 18:23:28 2001 +++ pear/HTML_OOH_Form/examples/xml/form_text.php Sat Nov 3 07:53:19 2001 @@ -16,7 +16,7 @@ // | Authors: Ulf Wendel <ulf.wendel@phpdoc.de> | // +----------------------------------------------------------------------+ // -// $Id: form_text.php,v 1.1 2001/10/26 22:23:28 uw Exp $ +// $Id: form_text.php,v 1.2 2001/11/03 12:53:19 uw Exp $ require_once('HTML_OOH_Form/examples/xml/html_prepend.php'); require_once('HTML_OOH_Form/form.php'); Index: pear/HTML_OOH_Form/examples/xml/form_textarea.php diff -u pear/HTML_OOH_Form/examples/xml/form_textarea.php:1.1 pear/HTML_OOH_Form/examples/xml/form_textarea.php:1.2 --- pear/HTML_OOH_Form/examples/xml/form_textarea.php:1.1 Fri Oct 26 18:23:28 2001 +++ pear/HTML_OOH_Form/examples/xml/form_textarea.php Sat Nov 3 07:53:19 2001 @@ -16,7 +16,7 @@ // | Authors: Ulf Wendel <ulf.wendel@phpdoc.de> | // +----------------------------------------------------------------------+ // -// $Id: form_textarea.php,v 1.1 2001/10/26 22:23:28 uw Exp $ +// $Id: form_textarea.php,v 1.2 2001/11/03 12:53:19 uw Exp $ require_once('HTML_OOH_Form/examples/xml/html_prepend.php'); require_once('HTML_OOH_Form/form.php'); Index: pear/HTML_OOH_Form/examples/xml/form_useraccount.xml diff -u pear/HTML_OOH_Form/examples/xml/form_useraccount.xml:1.1 pear/HTML_OOH_Form/examples/xml/form_useraccount.xml:1.2 --- pear/HTML_OOH_Form/examples/xml/form_useraccount.xml:1.1 Fri Oct 26 18:23:54 2001 +++ pear/HTML_OOH_Form/examples/xml/form_useraccount.xml Sat Nov 3 07:53:19 2001 @@ -62,12 +62,12 @@ <length min="3" max="127">Please choose a username.</length> </validation> </text> - <password name="new_password1" size="20" label="Passord"> + <password name="new_password1" size="20" label="Password"> <validation> <length min="3" max="127">Enter a new password.</length> </validation> </password> - <password name="new_password2" size="20" label="Passord repetation"> + <password name="new_password2" size="20" label="Password repetation"> <validation> <length min="3" max="127">You have to enter your password twice.</length> <phpfunction callback="true">passagain</phpfunction>
« previous php.pear.cvs (#1247) next »