Line 17... |
Line 17... |
17 |
// | |
|
17 |
// | |
|
18 |
// | You should have received a copy of the GNU Lesser General Public |
|
18 |
// | You should have received a copy of the GNU Lesser General Public |
|
19 |
// | License along with this library; if not, write to the Free Software |
|
19 |
// | License along with this library; if not, write to the Free Software |
|
20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
21 |
// +------------------------------------------------------------------------------------------------------+
|
21 |
// +------------------------------------------------------------------------------------------------------+
|
22 |
// CVS : $Id: bazar.fonct.formulaire.php,v 1.14 2006-01-19 17:42:11 florian Exp $
|
22 |
// CVS : $Id: bazar.fonct.formulaire.php,v 1.15 2006-01-23 16:57:03 alexandre_tb Exp $
|
23 |
/**
|
23 |
/**
|
24 |
* Formulaire
|
24 |
* Formulaire
|
25 |
*
|
25 |
*
|
26 |
* Les fonctions de mise en page des formulaire
|
26 |
* Les fonctions de mise en page des formulaire
|
27 |
*
|
27 |
*
|
Line 29... |
Line 29... |
29 |
//Auteur original :
|
29 |
//Auteur original :
|
30 |
*@author Florian SCHMITT <florian@ecole-et-nature.org>
|
30 |
*@author Florian SCHMITT <florian@ecole-et-nature.org>
|
31 |
//Autres auteurs :
|
31 |
//Autres auteurs :
|
32 |
*@author Aleandre GRANIER <alexandre@tela-botanica.org>
|
32 |
*@author Aleandre GRANIER <alexandre@tela-botanica.org>
|
33 |
*@copyright Tela-Botanica 2000-2004
|
33 |
*@copyright Tela-Botanica 2000-2004
|
34 |
*@version $Revision: 1.14 $ $Date: 2006-01-19 17:42:11 $
|
34 |
*@version $Revision: 1.15 $ $Date: 2006-01-23 16:57:03 $
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
36 |
*/
|
36 |
*/
|
Line 37... |
Line 37... |
37 |
|
37 |
|
Line 87... |
Line 87... |
87 |
*/
|
87 |
*/
|
88 |
function checkbox(&$formtemplate, $id_liste , $label, $limite1, $limite2, $defaut, $source, $obligatoire) {
|
88 |
function checkbox(&$formtemplate, $id_liste , $label, $limite1, $limite2, $defaut, $source, $obligatoire) {
|
89 |
$requete = 'SELECT * FROM bazar_liste_valeurs WHERE blv_ce_liste='.$id_liste.' AND blv_ce_i18n="'.$GLOBALS['_BAZAR_']['langue'].'"';
|
89 |
$requete = 'SELECT * FROM bazar_liste_valeurs WHERE blv_ce_liste='.$id_liste.' AND blv_ce_i18n="'.$GLOBALS['_BAZAR_']['langue'].'"';
|
90 |
$resultat = & $GLOBALS['_BAZAR_']['db'] -> query($requete) ;
|
90 |
$resultat = & $GLOBALS['_BAZAR_']['db'] -> query($requete) ;
|
91 |
if (DB::isError ($resultat)) {
|
91 |
if (DB::isError ($resultat)) {
|
92 |
die ($GLOBALS['_BAZAR_']['db']->getMessage().$GLOBALS['_BAZAR_']['db']->getDebugInfo()) ;
|
92 |
die ($resultat->getMessage().$resultat->getDebugInfo()) ;
|
93 |
}
|
93 |
}
|
94 |
require_once 'HTML/QuickForm/checkbox.php' ;
|
94 |
require_once 'HTML/QuickForm/checkbox.php' ;
|
95 |
$i=0;
|
95 |
$i=0;
|
96 |
if (isset($defaut)) $tab=split(', ', $defaut);
|
96 |
if (isset($defaut)) $tab=split(', ', $defaut);
|
97 |
while ($ligne = $resultat->fetchRow()) {
|
97 |
while ($ligne = $resultat->fetchRow()) {
|
Line 222... |
Line 222... |
222 |
}
|
222 |
}
|
Line 223... |
Line 223... |
223 |
|
223 |
|
224 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
224 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
225 |
*
|
225 |
*
|
- |
|
226 |
* $Log: not supported by cvs2svn $
|
- |
|
227 |
* Revision 1.14 2006/01/19 17:42:11 florian
|
- |
|
228 |
* ajout des cases à cocher pré-cochées pour les maj
|
226 |
* $Log: not supported by cvs2svn $
|
229 |
*
|
227 |
* Revision 1.13 2006/01/13 14:12:51 florian
|
230 |
* Revision 1.13 2006/01/13 14:12:51 florian
|
228 |
* utilisation des temlates dans la table bazar_nature
|
231 |
* utilisation des temlates dans la table bazar_nature
|
229 |
*
|
232 |
*
|
230 |
* Revision 1.12 2006/01/05 16:28:24 alexandre_tb
|
233 |
* Revision 1.12 2006/01/05 16:28:24 alexandre_tb
|