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.10 2005-12-01 16:05:41 florian Exp $
|
22 |
// CVS : $Id: bazar.fonct.formulaire.php,v 1.11 2006-01-02 13:24:07 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.10 $ $Date: 2005-12-01 16:05:41 $
|
34 |
*@version $Revision: 1.11 $ $Date: 2006-01-02 13:24:07 $
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
36 |
*/
|
36 |
*/
|
Line 37... |
Line 37... |
37 |
|
37 |
|
Line 53... |
Line 53... |
53 |
*/
|
53 |
*/
|
54 |
function liste(&$formtemplate, $nom_bdd , $label, $limite1, $limite2, $defaut, $source, $obligatoire) {
|
54 |
function liste(&$formtemplate, $nom_bdd , $label, $limite1, $limite2, $defaut, $source, $obligatoire) {
|
55 |
$requete = 'select * from '.$source;
|
55 |
$requete = 'select * from '.$source;
|
56 |
$resultat = & $GLOBALS['_BAZAR_']['db'] -> query($requete) ;
|
56 |
$resultat = & $GLOBALS['_BAZAR_']['db'] -> query($requete) ;
|
57 |
if (DB::isError ($resultat)) {
|
57 |
if (DB::isError ($resultat)) {
|
58 |
die ($GLOBALS['_BAZAR_']['db']->getMessage().$GLOBALS['_BAZAR_']['db']->getDebugInfo()) ;
|
58 |
die ($resultat->getMessage().$resultat->getDebugInfo()) ;
|
59 |
}
|
59 |
}
|
60 |
while ($ligne = $resultat->fetchRow()) {
|
60 |
while ($ligne = $resultat->fetchRow()) {
|
61 |
$select[$ligne[0]] = $ligne[1] ;
|
61 |
$select[$ligne[0]] = $ligne[1] ;
|
62 |
}
|
62 |
}
|
63 |
$option=array('style'=>'width: '.$limite1.'px;');
|
63 |
$option=array('style'=>'width: '.$limite1.'px;');
|
Line 219... |
Line 219... |
219 |
}
|
219 |
}
|
Line 220... |
Line 220... |
220 |
|
220 |
|
221 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
221 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
222 |
*
|
222 |
*
|
- |
|
223 |
* $Log: not supported by cvs2svn $
|
- |
|
224 |
* Revision 1.10 2005/12/01 16:05:41 florian
|
- |
|
225 |
* changement des chemins pour appli Pear
|
223 |
* $Log: not supported by cvs2svn $
|
226 |
*
|
224 |
* Revision 1.9 2005/11/24 16:17:13 florian
|
227 |
* Revision 1.9 2005/11/24 16:17:13 florian
|
225 |
* corrections bugs, ajout des cases à cocher
|
228 |
* corrections bugs, ajout des cases à cocher
|
226 |
*
|
229 |
*
|
227 |
* Revision 1.8 2005/11/18 16:03:23 florian
|
230 |
* Revision 1.8 2005/11/18 16:03:23 florian
|