Changeset 946
- Timestamp:
- 05/27/08 17:29:06 (6 months ago)
- Files:
-
- branches/1.0.x/lib/jelix/CREDITS (modified) (1 diff)
- branches/1.0.x/lib/jelix/CREDITS (modified) (1 diff)
- branches/1.0.x/lib/jelix/CREDITS (modified) (1 diff)
- branches/1.0.x/lib/jelix/CREDITS (modified) (1 diff)
- branches/1.0.x/lib/jelix/forms/jFormsBuilderBase.class.php (modified) (1 diff)
- branches/1.0.x/lib/jelix/forms/jFormsBuilderBase.class.php (modified) (1 diff)
- branches/1.0.x/lib/jelix/forms/jFormsBuilderBase.class.php (modified) (1 diff)
- branches/1.0.x/lib/jelix/forms/jFormsBuilderBase.class.php (modified) (1 diff)
- branches/1.0.x/lib/jelix/plugins/tpl/html/block.form.php (modified) (2 diffs)
- branches/1.0.x/lib/jelix/plugins/tpl/html/block.form.php (modified) (2 diffs)
- branches/1.0.x/lib/jelix/plugins/tpl/html/block.form.php (modified) (2 diffs)
- branches/1.0.x/lib/jelix/plugins/tpl/html/block.form.php (modified) (2 diffs)
- branches/1.0.x/lib/jelix/plugins/tpl/html/cfunction.formfull.php (modified) (2 diffs)
- branches/1.0.x/lib/jelix/plugins/tpl/html/cfunction.formfull.php (modified) (2 diffs)
- branches/1.0.x/lib/jelix/plugins/tpl/html/cfunction.formfull.php (modified) (2 diffs)
- branches/1.0.x/lib/jelix/plugins/tpl/html/cfunction.formfull.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.0.x/lib/jelix/CREDITS
r940 r946 72 72 - jForms html shouldn't generate readonly attribute on select (#550) 73 73 - jResponseZip : on windows files are view like folders (#538) 74 - form plugin create always a form with method post (#592) 74 75 75 76 Bastien Jaillot (aka bastnic) branches/1.0.x/lib/jelix/CREDITS
r940 r946 72 72 - jForms html shouldn't generate readonly attribute on select (#550) 73 73 - jResponseZip : on windows files are view like folders (#538) 74 - form plugin create always a form with method post (#592) 74 75 75 76 Bastien Jaillot (aka bastnic) branches/1.0.x/lib/jelix/CREDITS
r940 r946 72 72 - jForms html shouldn't generate readonly attribute on select (#550) 73 73 - jResponseZip : on windows files are view like folders (#538) 74 - form plugin create always a form with method post (#592) 74 75 75 76 Bastien Jaillot (aka bastnic) branches/1.0.x/lib/jelix/CREDITS
r940 r946 72 72 - jForms html shouldn't generate readonly attribute on select (#550) 73 73 - jResponseZip : on windows files are view like folders (#538) 74 - form plugin create always a form with method post (#592) 74 75 75 76 Bastien Jaillot (aka bastnic) branches/1.0.x/lib/jelix/forms/jFormsBuilderBase.class.php
r943 r946 111 111 public function outputHeader($params){ 112 112 $url = jUrl::get($this->_action, $this->_actionParams, 2); // retourne le jurl correspondant 113 echo '<form action="',$url->getPath(),'" method="'.$params[2].'" id="', $this->_name,'" onsubmit="return jForms.verifyForm(this)"'; 113 $method = (strtolower($params[2])=='get')?'get':'post'; 114 echo '<form action="',$url->getPath(),'" method="'.$method.'" id="', $this->_name,'" onsubmit="return jForms.verifyForm(this)"'; 114 115 if($this->_form->hasUpload()) 115 116 echo ' enctype="multipart/form-data">'; branches/1.0.x/lib/jelix/forms/jFormsBuilderBase.class.php
r943 r946 111 111 public function outputHeader($params){ 112 112 $url = jUrl::get($this->_action, $this->_actionParams, 2); // retourne le jurl correspondant 113 echo '<form action="',$url->getPath(),'" method="'.$params[2].'" id="', $this->_name,'" onsubmit="return jForms.verifyForm(this)"'; 113 $method = (strtolower($params[2])=='get')?'get':'post'; 114 echo '<form action="',$url->getPath(),'" method="'.$method.'" id="', $this->_name,'" onsubmit="return jForms.verifyForm(this)"'; 114 115 if($this->_form->hasUpload()) 115 116 echo ' enctype="multipart/form-data">'; branches/1.0.x/lib/jelix/forms/jFormsBuilderBase.class.php
r943 r946 111 111 public function outputHeader($params){ 112 112 $url = jUrl::get($this->_action, $this->_actionParams, 2); // retourne le jurl correspondant 113 echo '<form action="',$url->getPath(),'" method="'.$params[2].'" id="', $this->_name,'" onsubmit="return jForms.verifyForm(this)"'; 113 $method = (strtolower($params[2])=='get')?'get':'post'; 114 echo '<form action="',$url->getPath(),'" method="'.$method.'" id="', $this->_name,'" onsubmit="return jForms.verifyForm(this)"'; 114 115 if($this->_form->hasUpload()) 115 116 echo ' enctype="multipart/form-data">'; branches/1.0.x/lib/jelix/forms/jFormsBuilderBase.class.php
r943 r946 111 111 public function outputHeader($params){ 112 112 $url = jUrl::get($this->_action, $this->_actionParams, 2); // retourne le jurl correspondant 113 echo '<form action="',$url->getPath(),'" method="'.$params[2].'" id="', $this->_name,'" onsubmit="return jForms.verifyForm(this)"'; 113 $method = (strtolower($params[2])=='get')?'get':'post'; 114 echo '<form action="',$url->getPath(),'" method="'.$method.'" id="', $this->_name,'" onsubmit="return jForms.verifyForm(this)"'; 114 115 if($this->_form->hasUpload()) 115 116 echo ' enctype="multipart/form-data">'; branches/1.0.x/lib/jelix/plugins/tpl/html/block.form.php
r924 r946 4 4 * @subpackage jtpl_plugin 5 5 * @author Jouanneau Laurent 6 * @contributor Julien Issler 6 7 * @copyright 2006-2007 Jouanneau laurent 8 * @copyright 2008 Julien Issler 7 9 * @link http://www.jelix.org 8 10 * @licence GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html … … 58 60 $helpdecorator = "'jFormsHelpDecoratorAlert'"; 59 61 60 $method = strtolower(isset($param[5])?$param[5]:'post'); 61 if($method!='get' && $method!='post') 62 $method='post'; 62 $method = isset($param[5])?$param[5]:'\'post\''; 63 63 64 64 $content = ' $t->_privateVars[\'__form\'] = '.$param[0].'; 65 65 $t->_privateVars[\'__formbuilder\'] = $t->_privateVars[\'__form\']->getBuilder(\'html\', '.$param[1].','.$param[2].'); 66 $t->_privateVars[\'__formbuilder\']->outputHeader(array('.$errdecorator.','.$helpdecorator.', \''.$method.'\'));66 $t->_privateVars[\'__formbuilder\']->outputHeader(array('.$errdecorator.','.$helpdecorator.','.$method.')); 67 67 $t->_privateVars[\'__displayed_ctrl\'] = array(); 68 68 '; branches/1.0.x/lib/jelix/plugins/tpl/html/block.form.php
r924 r946 4 4 * @subpackage jtpl_plugin 5 5 * @author Jouanneau Laurent 6 * @contributor Julien Issler 6 7 * @copyright 2006-2007 Jouanneau laurent 8 * @copyright 2008 Julien Issler 7 9 * @link http://www.jelix.org 8 10 * @licence GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html … … 58 60 $helpdecorator = "'jFormsHelpDecoratorAlert'"; 59 61 60 $method = strtolower(isset($param[5])?$param[5]:'post'); 61 if($method!='get' && $method!='post') 62 $method='post'; 62 $method = isset($param[5])?$param[5]:'\'post\''; 63 63 64 64 $content = ' $t->_privateVars[\'__form\'] = '.$param[0].'; 65 65 $t->_privateVars[\'__formbuilder\'] = $t->_privateVars[\'__form\']->getBuilder(\'html\', '.$param[1].','.$param[2].'); 66 $t->_privateVars[\'__formbuilder\']->outputHeader(array('.$errdecorator.','.$helpdecorator.', \''.$method.'\'));66 $t->_privateVars[\'__formbuilder\']->outputHeader(array('.$errdecorator.','.$helpdecorator.','.$method.')); 67 67 $t->_privateVars[\'__displayed_ctrl\'] = array(); 68 68 '; branches/1.0.x/lib/jelix/plugins/tpl/html/block.form.php
r924 r946 4 4 * @subpackage jtpl_plugin 5 5 * @author Jouanneau Laurent 6 * @contributor Julien Issler 6 7 * @copyright 2006-2007 Jouanneau laurent 8 * @copyright 2008 Julien Issler 7 9 * @link http://www.jelix.org 8 10 * @licence GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html … … 58 60 $helpdecorator = "'jFormsHelpDecoratorAlert'"; 59 61 60 $method = strtolower(isset($param[5])?$param[5]:'post'); 61 if($method!='get' && $method!='post') 62 $method='post'; 62 $method = isset($param[5])?$param[5]:'\'post\''; 63 63 64 64 $content = ' $t->_privateVars[\'__form\'] = '.$param[0].'; 65 65 $t->_privateVars[\'__formbuilder\'] = $t->_privateVars[\'__form\']->getBuilder(\'html\', '.$param[1].','.$param[2].'); 66 $t->_privateVars[\'__formbuilder\']->outputHeader(array('.$errdecorator.','.$helpdecorator.', \''.$method.'\'));66 $t->_privateVars[\'__formbuilder\']->outputHeader(array('.$errdecorator.','.$helpdecorator.','.$method.')); 67 67 $t->_privateVars[\'__displayed_ctrl\'] = array(); 68 68 '; branches/1.0.x/lib/jelix/plugins/tpl/html/block.form.php
r924 r946 4 4 * @subpackage jtpl_plugin 5 5 * @author Jouanneau Laurent 6 * @contributor Julien Issler 6 7 * @copyright 2006-2007 Jouanneau laurent 8 * @copyright 2008 Julien Issler 7 9 * @link http://www.jelix.org 8 10 * @licence GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html … … 58 60 $helpdecorator = "'jFormsHelpDecoratorAlert'"; 59 61 60 $method = strtolower(isset($param[5])?$param[5]:'post'); 61 if($method!='get' && $method!='post') 62 $method='post'; 62 $method = isset($param[5])?$param[5]:'\'post\''; 63 63 64 64 $content = ' $t->_privateVars[\'__form\'] = '.$param[0].'; 65 65 $t->_privateVars[\'__formbuilder\'] = $t->_privateVars[\'__form\']->getBuilder(\'html\', '.$param[1].','.$param[2].'); 66 $t->_privateVars[\'__formbuilder\']->outputHeader(array('.$errdecorator.','.$helpdecorator.', \''.$method.'\'));66 $t->_privateVars[\'__formbuilder\']->outputHeader(array('.$errdecorator.','.$helpdecorator.','.$method.')); 67 67 $t->_privateVars[\'__displayed_ctrl\'] = array(); 68 68 '; branches/1.0.x/lib/jelix/plugins/tpl/html/cfunction.formfull.php
r924 r946 4 4 * @subpackage jtpl_plugin 5 5 * @author Laurent Jouanneau 6 * @contributor Dominique Papin 6 * @contributor Dominique Papin, Julien Issler 7 7 * @copyright 2007 Laurent Jouanneau, 2007 Dominique Papin 8 * @copyright 2008 Julien Issler 8 9 * @link http://www.jelix.org 9 10 * @licence GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html … … 52 53 $helpdecorator = "'jFormsHelpDecoratorAlert'"; 53 54 54 $method = strtolower(isset($params[5])?$params[5]:'post'); 55 if($method!='get' && $method!='post') 56 $method='post'; 55 $method = isset($param[5])?$param[5]:'\'post\''; 57 56 58 57 $content = ' $formfull = '.$params[0].'; 59 58 $formfullBuilder = $formfull->getBuilder(\'html\', '.$params[1].','.$params[2].'); 60 $formfullBuilder->outputHeader(array('.$errdecorator.','.$helpdecorator.', \''.$method.'\'));59 $formfullBuilder->outputHeader(array('.$errdecorator.','.$helpdecorator.','.$method.')); 61 60 echo \'<table class="jforms-table" border="0">\'; 62 61 branches/1.0.x/lib/jelix/plugins/tpl/html/cfunction.formfull.php
r924 r946 4 4 * @subpackage jtpl_plugin 5 5 * @author Laurent Jouanneau 6 * @contributor Dominique Papin 6 * @contributor Dominique Papin, Julien Issler 7 7 * @copyright 2007 Laurent Jouanneau, 2007 Dominique Papin 8 * @copyright 2008 Julien Issler 8 9 * @link http://www.jelix.org 9 10 * @licence GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html … … 52 53 $helpdecorator = "'jFormsHelpDecoratorAlert'"; 53 54 54 $method = strtolower(isset($params[5])?$params[5]:'post'); 55 if($method!='get' && $method!='post') 56 $method='post'; 55 $method = isset($param[5])?$param[5]:'\'post\''; 57 56 58 57 $content = ' $formfull = '.$params[0].'; 59 58 $formfullBuilder = $formfull->getBuilder(\'html\', '.$params[1].','.$params[2].'); 60 $formfullBuilder->outputHeader(array('.$errdecorator.','.$helpdecorator.', \''.$method.'\'));59 $formfullBuilder->outputHeader(array('.$errdecorator.','.$helpdecorator.','.$method.')); 61 60 echo \'<table class="jforms-table" border="0">\'; 62 61 branches/1.0.x/lib/jelix/plugins/tpl/html/cfunction.formfull.php
r924 r946 4 4 * @subpackage jtpl_plugin 5 5 * @author Laurent Jouanneau 6 * @contributor Dominique Papin 6 * @contributor Dominique Papin, Julien Issler 7 7 * @copyright 2007 Laurent Jouanneau, 2007 Dominique Papin 8 * @copyright 2008 Julien Issler 8 9 * @link http://www.jelix.org 9 10 * @licence GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html … … 52 53 $helpdecorator = "'jFormsHelpDecoratorAlert'"; 53 54 54 $method = strtolower(isset($params[5])?$params[5]:'post'); 55 if($method!='get' && $method!='post') 56 $method='post'; 55 $method = isset($param[5])?$param[5]:'\'post\''; 57 56 58 57 $content = ' $formfull = '.$params[0].'; 59 58 $formfullBuilder = $formfull->getBuilder(\'html\', '.$params[1].','.$params[2].'); 60 $formfullBuilder->outputHeader(array('.$errdecorator.','.$helpdecorator.', \''.$method.'\'));59 $formfullBuilder->outputHeader(array('.$errdecorator.','.$helpdecorator.','.$method.')); 61 60 echo \'<table class="jforms-table" border="0">\'; 62 61 branches/1.0.x/lib/jelix/plugins/tpl/html/cfunction.formfull.php
r924 r946 4 4 * @subpackage jtpl_plugin 5 5 * @author Laurent Jouanneau 6 * @contributor Dominique Papin 6 * @contributor Dominique Papin, Julien Issler 7 7 * @copyright 2007 Laurent Jouanneau, 2007 Dominique Papin 8 * @copyright 2008 Julien Issler 8 9 * @link http://www.jelix.org 9 10 * @licence GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html … … 52 53 $helpdecorator = "'jFormsHelpDecoratorAlert'"; 53 54 54 $method = strtolower(isset($params[5])?$params[5]:'post'); 55 if($method!='get' && $method!='post') 56 $method='post'; 55 $method = isset($param[5])?$param[5]:'\'post\''; 57 56 58 57 $content = ' $formfull = '.$params[0].'; 59 58 $formfullBuilder = $formfull->getBuilder(\'html\', '.$params[1].','.$params[2].'); 60 $formfullBuilder->outputHeader(array('.$errdecorator.','.$helpdecorator.', \''.$method.'\'));59 $formfullBuilder->outputHeader(array('.$errdecorator.','.$helpdecorator.','.$method.')); 61 60 echo \'<table class="jforms-table" border="0">\'; 62 61
