Subversion Repositories Applications.bazar

Rev

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

Rev 76 Rev 77
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.34 2006-01-18 10:53:28 florian Exp $
22
// CVS : $Id: bazar.fonct.php,v 1.35 2006-01-18 11:06:51 florian 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.34 $ $Date: 2006-01-18 10:53:28 $
34
*@version       $Revision: 1.35 $ $Date: 2006-01-18 11:06:51 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
Line 790... Line 790...
790
				}
790
				}
791
			}
791
			}
792
			else {
792
			else {
793
				//cas des dates
793
				//cas des dates
794
				if (($tableau[$i]['type']=='listedatedeb')or($tableau[$i]['type']=='listedatefin')) {
794
				if (($tableau[$i]['type']=='listedatedeb')or($tableau[$i]['type']=='listedatefin')) {
795
					$val=$valeur[$tableau[$i]['nom_bdd']]['Y'].'-'.$valeur[$tableau[$i]['nom_bdd']]['m'].'-'.$valeur[$tableau[$i]['nom_bdd']]['d'];
795
					$val=$valeur[$tableau[$i]['nom_bdd']]['Y'].'-'.$valeur[$tableau[$i]['nom_bdd']]['m'].'-'.$valeur[$tableau[$i]['nom_bdd']]['d'] ;					
796
				}
796
				}
-
 
797
				else {
797
				//on mets les slashes pour les saisies dans les champs texte et textearea
798
					//on mets les slashes pour les saisies dans les champs texte et textearea
798
				$val=addslashes($valeur[$tableau[$i]['nom_bdd']]);
799
					$val=addslashes($valeur[$tableau[$i]['nom_bdd']]) ;
-
 
800
				}
799
				$requete.=$tableau[$i]['nom_bdd'].'="'.$val.'", ';
801
				$requete .= $tableau[$i]['nom_bdd'].'="'.$val.'", ' ;
800
			}			
802
			}			
801
		}
803
		}
802
	}	
804
	}	
803
	$requete.=' bf_date_maj_fiche=NOW()';	
805
	$requete.=' bf_date_maj_fiche=NOW()';	
804
	return $requete;
806
	return $requete;
Line 1350... Line 1352...
1350
}
1352
}
Line 1351... Line 1353...
1351
 
1353
 
1352
/* +--Fin du code ----------------------------------------------------------------------------------------+
1354
/* +--Fin du code ----------------------------------------------------------------------------------------+
1353
*
1355
*
-
 
1356
* $Log: not supported by cvs2svn $
-
 
1357
* Revision 1.34  2006/01/18 10:53:28  florian
-
 
1358
* corrections bugs affichage fiche
1354
* $Log: not supported by cvs2svn $
1359
*
1355
* Revision 1.33  2006/01/18 10:07:34  florian
1360
* Revision 1.33  2006/01/18 10:07:34  florian
1356
* recodage de l'insertion et de la maj des données relatives aux listes et checkbox dans des formulaires
1361
* recodage de l'insertion et de la maj des données relatives aux listes et checkbox dans des formulaires
1357
*
1362
*
1358
* Revision 1.32  2006/01/18 10:03:36  florian
1363
* Revision 1.32  2006/01/18 10:03:36  florian