Subversion Repositories Applications.bazar

Rev

Rev 54 | Rev 56 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 54 Rev 55
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.19 2005-11-24 16:17:13 florian Exp $
22
// CVS : $Id: bazar.fonct.php,v 1.20 2005-11-30 13:58:45 florian Exp $
23
/**
23
/**
24
*
24
*
25
* Fonctions du module bazar
25
* Fonctions du module bazar
26
*
26
*
27
*@package bazar
27
*@package bazar
28
//Auteur original :
28
//Auteur original :
29
*@author        Alexandre Granier <alexandre@tela-botanica.org>
29
*@author        Alexandre Granier <alexandre@tela-botanica.org>
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
*@copyright     Tela-Botanica 2000-2004
32
*@copyright     Tela-Botanica 2000-2004
33
*@version       $Revision: 1.19 $ $Date: 2005-11-24 16:17:13 $
33
*@version       $Revision: 1.20 $ $Date: 2005-11-30 13:58:45 $
34
// +------------------------------------------------------------------------------------------------------+
34
// +------------------------------------------------------------------------------------------------------+
35
*/
35
*/
Line 36... Line 36...
36
 
36
 
37
// +------------------------------------------------------------------------------------------------------+
37
// +------------------------------------------------------------------------------------------------------+
Line 776... Line 776...
776
			if (($tableau[$i]['type']=='listedatedeb')or($tableau[$i]['type']=='listedatefin')) {
776
			if (($tableau[$i]['type']=='listedatedeb')or($tableau[$i]['type']=='listedatefin')) {
777
				$val=$valeur[$tableau[$i]['nom_bdd']]['Y'].'-'.$valeur[$tableau[$i]['nom_bdd']]['m'].'-'.$valeur[$tableau[$i]['nom_bdd']]['d'];
777
				$val=$valeur[$tableau[$i]['nom_bdd']]['Y'].'-'.$valeur[$tableau[$i]['nom_bdd']]['m'].'-'.$valeur[$tableau[$i]['nom_bdd']]['d'];
778
			}
778
			}
779
			//cas des checkbox
779
			//cas des checkbox
780
			elseif ($tableau[$i]['type']=='checkbox') {
780
			elseif ($tableau[$i]['type']=='checkbox') {
-
 
781
				if (isset($valeur[$tableau[$i]['nom_bdd']])) {
781
				$val=implode('**', 	array_keys($valeur[$tableau[$i]['nom_bdd']]));
782
					$val=implode('**', 	array_keys($valeur[$tableau[$i]['nom_bdd']]));
-
 
783
				} else {
-
 
784
					$val=BAZ_NON_PRECISE;
-
 
785
				}
-
 
786
				
782
			}
787
			}
783
			//cas des champs texte et textarea
788
			//cas des champs texte et textarea
784
			else {
789
			else {
785
				$val=addslashes($valeur[$tableau[$i]['nom_bdd']]);
790
				$val=addslashes($valeur[$tableau[$i]['nom_bdd']]);
786
			}
791
			}
Line 1338... Line 1343...
1338
}
1343
}
Line 1339... Line 1344...
1339
 
1344
 
1340
/* +--Fin du code ----------------------------------------------------------------------------------------+
1345
/* +--Fin du code ----------------------------------------------------------------------------------------+
1341
*
1346
*
-
 
1347
* $Log: not supported by cvs2svn $
-
 
1348
* Revision 1.19  2005/11/24 16:17:13  florian
-
 
1349
* corrections bugs, ajout des cases à cocher
1342
* $Log: not supported by cvs2svn $
1350
*
1343
* Revision 1.18  2005/11/18 16:03:23  florian
1351
* Revision 1.18  2005/11/18 16:03:23  florian
1344
* correction bug html entites
1352
* correction bug html entites
1345
*
1353
*
1346
* Revision 1.17  2005/11/17 18:48:02  florian
1354
* Revision 1.17  2005/11/17 18:48:02  florian