19,7 → 19,7 |
// | License along with this library; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: bazar.fonct.formulaire.php,v 1.6 2005-11-07 17:30:36 florian Exp $ |
// CVS : $Id: bazar.fonct.formulaire.php,v 1.7 2005-11-07 17:51:06 florian Exp $ |
/** |
* Formulaire |
* |
31,7 → 31,7 |
//Autres auteurs : |
*@author Aleandre GRANIER <alexandre@tela-botanica.org> |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.6 $ $Date: 2005-11-07 17:30:36 $ |
*@version $Revision: 1.7 $ $Date: 2005-11-07 17:51:06 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
|
71,8 → 71,9 |
//gestion des champs obligatoire |
//$formtemplate->registerRule('saisir_liste','function','liste_choisir'); |
//$formtemplate->addRule($nom_bdd, BAZ_CHOISIR_OBLIGATOIRE , 'saisir_liste'); |
$formtemplate->addRule($nom_bdd, BAZ_CHOISIR_OBLIGATOIRE.' '.constant($label) , 'nonzero', '', 'client') ; |
if (isset($obligatoire)and($obligatoire==1)) {$formtemplate->addRule($nom_bdd, constant($label.'_REQUIS'), 'required', '', 'client') ;} |
if (isset($obligatoire)and($obligatoire==1)) { |
$formtemplate->addRule($nom_bdd, BAZ_CHOISIR_OBLIGATOIRE.' '.constant($label) , 'nonzero', '', 'client') ; |
$formtemplate->addRule($nom_bdd, constant($label.'_REQUIS'), 'required', '', 'client') ;} |
} |
|
|
187,6 → 188,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.6 2005/11/07 17:30:36 florian |
* ajout controle sur les listes pour la saisie |
* |
* Revision 1.5 2005/11/07 17:05:45 florian |
* amélioration validation conditions de saisie, ajout des règles spécifiques de saisie des formulaires |
* |