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.php,v 1.74.2.1 2007-12-04 09:00:08 alexandre_tb Exp $
|
22 |
// CVS : $Id: bazar.fonct.php,v 1.74.2.2 2007-12-06 15:36:07 alexandre_tb Exp $
|
23 |
/**
|
23 |
/**
|
24 |
*
|
24 |
*
|
25 |
* Fonctions du module bazar
|
25 |
* Fonctions du module bazar
|
26 |
*
|
26 |
*
|
27 |
*
|
27 |
*
|
Line 29... |
Line 29... |
29 |
//Auteur original :
|
29 |
//Auteur original :
|
30 |
*@author Alexandre Granier <alexandre@tela-botanica.org>
|
30 |
*@author Alexandre Granier <alexandre@tela-botanica.org>
|
31 |
*@author Florian Schmitt <florian@ecole-et-nature.org>
|
31 |
*@author Florian Schmitt <florian@ecole-et-nature.org>
|
32 |
//Autres auteurs :
|
32 |
//Autres auteurs :
|
33 |
*@copyright Tela-Botanica 2000-2004
|
33 |
*@copyright Tela-Botanica 2000-2004
|
34 |
*@version $Revision: 1.74.2.1 $ $Date: 2007-12-04 09:00:08 $
|
34 |
*@version $Revision: 1.74.2.2 $ $Date: 2007-12-06 15:36:07 $
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
36 |
*/
|
36 |
*/
|
Line 37... |
Line 37... |
37 |
|
37 |
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
Line 751... |
Line 751... |
751 |
isset ($valeurs_par_defaut[$def]) ? $valeurs_par_defaut[$def] : '',
|
751 |
isset ($valeurs_par_defaut[$def]) ? $valeurs_par_defaut[$def] : '',
|
752 |
$tableau[$i]['table_source'], $tableau[$i]['obligatoire']) ;
|
752 |
$tableau[$i]['table_source'], $tableau[$i]['obligatoire']) ;
|
753 |
if ($tableau[$i]['type']=='carte_google') {
|
753 |
if ($tableau[$i]['type']=='carte_google') {
|
754 |
include_once GEN_CHEMIN_API.'formulaire/formulaire.fonct.google.php';
|
754 |
include_once GEN_CHEMIN_API.'formulaire/formulaire.fonct.google.php';
|
755 |
GEN_stockerCodeScript($script);
|
755 |
GEN_stockerCodeScript($script);
|
- |
|
756 |
// On ajoute l attribut load a la balise body
|
- |
|
757 |
GEN_AttributsBody('onload', 'load()');
|
756 |
}
|
758 |
}
|
757 |
}
|
759 |
}
|
758 |
}
|
760 |
}
|
759 |
else {
|
761 |
else {
|
760 |
for ($i=0; $i<count($tableau); $i++) {
|
762 |
for ($i=0; $i<count($tableau); $i++) {
|
761 |
$tableau[$i]['type']($formtemplate, $tableau[$i]['nom_bdd'], $tableau[$i]['label'], $tableau[$i]['limite1'],
|
763 |
$tableau[$i]['type']($formtemplate, $tableau[$i]['nom_bdd'], $tableau[$i]['label'], $tableau[$i]['limite1'],
|
762 |
$tableau[$i]['limite2'], $tableau[$i]['defaut'], $tableau[$i]['table_source'], $tableau[$i]['obligatoire']) ;
|
764 |
$tableau[$i]['limite2'], $tableau[$i]['defaut'], $tableau[$i]['table_source'], $tableau[$i]['obligatoire']) ;
|
763 |
if ($tableau[$i]['type'] == 'carte_google') {
|
765 |
if ($tableau[$i]['type'] == 'carte_google') {
|
764 |
include_once GEN_CHEMIN_API.'formulaire/formulaire.fonct.google.php';
|
766 |
include_once GEN_CHEMIN_API.'formulaire/formulaire.fonct.google.php';
|
765 |
GEN_stockerCodeScript($script);
|
767 |
GEN_stockerCodeScript($script);
|
- |
|
768 |
// On ajoute l attribut load a la balise body
|
- |
|
769 |
GEN_AttributsBody('onload', 'load()');
|
766 |
}
|
770 |
}
|
767 |
}
|
771 |
}
|
768 |
}
|
772 |
}
|
769 |
$formtemplate->addElement('hidden', 'typeannonce', $GLOBALS['_BAZAR_']['id_typeannonce']);
|
773 |
$formtemplate->addElement('hidden', 'typeannonce', $GLOBALS['_BAZAR_']['id_typeannonce']);
|
Line 1397... |
Line 1401... |
1397 |
}
|
1401 |
}
|
Line 1398... |
Line 1402... |
1398 |
|
1402 |
|
1399 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
1403 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
1400 |
*
|
1404 |
*
|
- |
|
1405 |
* $Log: not supported by cvs2svn $
|
- |
|
1406 |
* Revision 1.74.2.1 2007-12-04 09:00:08 alexandre_tb
|
- |
|
1407 |
* corrections importantes sur baz_s_inscrire, simplification de l'application qui ne fonctionnait pas.
|
1401 |
* $Log: not supported by cvs2svn $
|
1408 |
*
|
1402 |
* Revision 1.74 2007-10-25 09:41:31 alexandre_tb
|
1409 |
* Revision 1.74 2007-10-25 09:41:31 alexandre_tb
|
1403 |
* mise en place de variable de session pour eviter que les formulaires soit valider 2 fois, pour les url, fichiers et image
|
1410 |
* mise en place de variable de session pour eviter que les formulaires soit valider 2 fois, pour les url, fichiers et image
|
1404 |
*
|
1411 |
*
|
1405 |
* Revision 1.73 2007-10-24 13:27:00 alexandre_tb
|
1412 |
* Revision 1.73 2007-10-24 13:27:00 alexandre_tb
|