Subversion Repositories Applications.bazar

Compare Revisions

Ignore whitespace Rev 66 → Rev 67

/trunk/bibliotheque/bazar.fonct.formulaire.php
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.11 2006-01-02 13:24:07 alexandre_tb Exp $
// CVS : $Id: bazar.fonct.formulaire.php,v 1.12 2006-01-05 16:28:24 alexandre_tb Exp $
/**
* Formulaire
*
31,7 → 31,7
//Autres auteurs :
*@author Aleandre GRANIER <alexandre@tela-botanica.org>
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.11 $ $Date: 2006-01-02 13:24:07 $
*@version $Revision: 1.12 $ $Date: 2006-01-05 16:28:24 $
// +------------------------------------------------------------------------------------------------------+
*/
 
95,19 → 95,20
if (DB::isError ($resultat)) {
die ($GLOBALS['_BAZAR_']['db']->getMessage().$GLOBALS['_BAZAR_']['db']->getDebugInfo()) ;
}
$tableau_info_jointure = explode (',', $nom_bdd) ;
$nom_table_jointure = $tableau_info_jointure[0] ;
require_once 'HTML/QuickForm/advcheckbox.php' ;
$i=0;
while ($ligne = $resultat->fetchRow()) {
//$chkbox[$ligne[0]] = $ligne[1] ;
if ($i==0) $labelchkbox=constant($label) ; else $labelchkbox='&nbsp;' ;
$checkbox[]= & HTML_Quickform::createElement('checkbox', $ligne[0], $labelchkbox, $ligne[1], array ('style'=>'display:inline;margin-left:2px;')) ;
$checkbox[]= & HTML_Quickform::createElement('checkbox', '', $labelchkbox, $ligne[1],
array ('style'=>'display:inline;margin-left:2px;')) ;
$i++;
}
//if (isset($obligatoire)and($obligatoire==1)) {
//$formtemplate->addRule($nom_bdd.'$i', BAZ_CHOISIR_OBLIGATOIRE.' '.constant($label) , 'nonzero', '', 'client') ;
//$formtemplate->addRule($nom_bdd.'$i', constant($label.'_REQUIS'), 'required', '', 'client') ;
//}
$formtemplate->addGroup($checkbox, $nom_bdd, constant($label), '<br />'."\n");
 
$formtemplate->addGroup($checkbox, $nom_table_jointure, constant($label), '<br />'."\n");
}
 
 
221,6 → 222,9
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.11 2006/01/02 13:24:07 alexandre_tb
* correction de bug d'un mauvais retour en erreur
*
* Revision 1.10 2005/12/01 16:05:41 florian
* changement des chemins pour appli Pear
*