Subversion Repositories Applications.bazar

Rev

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

Rev 171 Rev 175
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.57.2.2 2007-01-22 16:05:39 alexandre_tb Exp $
22
// CVS : $Id: bazar.fonct.php,v 1.57.2.3 2007-02-01 16:11:05 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.57.2.2 $ $Date: 2007-01-22 16:05:39 $
34
*@version       $Revision: 1.57.2.3 $ $Date: 2007-02-01 16:11:05 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
Line 765... Line 765...
765
        //requete d'insertion dans bazar_fiche
765
        //requete d'insertion dans bazar_fiche
766
        $GLOBALS['_BAZAR_']['id_fiche'] = baz_nextid('bazar_fiche', 'bf_id_fiche', $GLOBALS['_BAZAR_']['db']) ;
766
        $GLOBALS['_BAZAR_']['id_fiche'] = baz_nextid('bazar_fiche', 'bf_id_fiche', $GLOBALS['_BAZAR_']['db']) ;
767
        $requete = 'INSERT INTO bazar_fiche SET bf_id_fiche='.$GLOBALS['_BAZAR_']['id_fiche'].','.
767
        $requete = 'INSERT INTO bazar_fiche SET bf_id_fiche='.$GLOBALS['_BAZAR_']['id_fiche'].','.
768
		   'bf_ce_utilisateur='.$GLOBALS['id_user'].', bf_ce_nature='.$GLOBALS['_BAZAR_']['id_typeannonce'].','.
768
		   'bf_ce_utilisateur='.$GLOBALS['id_user'].', bf_ce_nature='.$GLOBALS['_BAZAR_']['id_typeannonce'].','.
769
		   'bf_date_creation_fiche=NOW(),';
769
		   'bf_date_creation_fiche=NOW(),';
770
		if ($GLOBALS['_BAZAR_']['appropriation']== 1) {
770
		if ($GLOBALS['_BAZAR_']['appropriation']== 1 && !isset($_GET['bf_debut_validite_fiche'])) {
771
			$requete .= 'bf_date_debut_validite_fiche=now(), ' ;
771
			$requete .= 'bf_date_debut_validite_fiche=now(), ' ;
772
		} else {
772
		} else {
773
			if (!isset($_GET['bf_date_debut_validite_fiche'])) {
773
			if (!isset($_GET['bf_date_debut_validite_fiche'])) {
774
				$requete .= 'bf_date_debut_validite_fiche=now(), ' ;
774
				$requete .= 'bf_date_debut_validite_fiche=now(), ' ;
775
			}
775
			}
Line 1257... Line 1257...
1257
}
1257
}
Line 1258... Line 1258...
1258
 
1258
 
1259
/* +--Fin du code ----------------------------------------------------------------------------------------+
1259
/* +--Fin du code ----------------------------------------------------------------------------------------+
1260
*
1260
*
-
 
1261
* $Log: not supported by cvs2svn $
-
 
1262
* Revision 1.57.2.2  2007/01/22 16:05:39  alexandre_tb
-
 
1263
* insertion de la date du jour dans bf_date_debut_validite_fiche quand il n'y a pas ce champs dans le formulaire (évite le 0000-00-00)
1261
* $Log: not supported by cvs2svn $
1264
*
1262
* Revision 1.57.2.1  2006/12/13 13:23:03  alexandre_tb
1265
* Revision 1.57.2.1  2006/12/13 13:23:03  alexandre_tb
1263
* Remplacement de l appel d une constante par un appel direct. -> warning
1266
* Remplacement de l appel d une constante par un appel direct. -> warning
1264
*
1267
*
1265
* Revision 1.58  2006/12/13 13:20:16  alexandre_tb
1268
* Revision 1.58  2006/12/13 13:20:16  alexandre_tb