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.58 2006-12-13 13:20:16 alexandre_tb Exp $
|
22 |
// CVS : $Id: bazar.fonct.php,v 1.59 2007-01-22 16:05:56 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.58 $ $Date: 2006-12-13 13:20:16 $
|
34 |
*@version $Revision: 1.59 $ $Date: 2007-01-22 16:05:56 $
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
36 |
*/
|
36 |
*/
|
Line 37... |
Line 37... |
37 |
|
37 |
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
Line 767... |
Line 767... |
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) {
|
771 |
$requete .= 'bf_date_debut_validite_fiche=now(), ' ;
|
771 |
$requete .= 'bf_date_debut_validite_fiche=now(), ' ;
|
- |
|
772 |
} else {
|
- |
|
773 |
if (!isset($_GET['bf_date_debut_validite_fiche'])) {
|
- |
|
774 |
$requete .= 'bf_date_debut_validite_fiche=now(), ' ;
|
- |
|
775 |
}
|
772 |
}
|
776 |
}
|
773 |
$requete .=requete_bazar_fiche(&$valeur) ;
|
777 |
$requete .=requete_bazar_fiche(&$valeur) ;
|
774 |
$resultat = $GLOBALS['_BAZAR_']['db']->query($requete) ;
|
778 |
$resultat = $GLOBALS['_BAZAR_']['db']->query($requete) ;
|
775 |
if (DB::isError($resultat)) {
|
779 |
if (DB::isError($resultat)) {
|
776 |
die ($resultat->getMessage().$resultat->getDebugInfo()) ;
|
780 |
die ($resultat->getMessage().$resultat->getDebugInfo()) ;
|
Line 1253... |
Line 1257... |
1253 |
}
|
1257 |
}
|
Line 1254... |
Line 1258... |
1254 |
|
1258 |
|
1255 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
1259 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
1256 |
*
|
1260 |
*
|
- |
|
1261 |
* $Log: not supported by cvs2svn $
|
- |
|
1262 |
* Revision 1.58 2006/12/13 13:20:16 alexandre_tb
|
- |
|
1263 |
* Remplacement de l appel d une constante par un appel direct. -> warning
|
1257 |
* $Log: not supported by cvs2svn $
|
1264 |
*
|
1258 |
* Revision 1.57 2006/10/05 08:53:50 florian
|
1265 |
* Revision 1.57 2006/10/05 08:53:50 florian
|
1259 |
* amelioration moteur de recherche, correction de bugs
|
1266 |
* amelioration moteur de recherche, correction de bugs
|
1260 |
*
|
1267 |
*
|
1261 |
* Revision 1.56 2006/09/28 15:41:36 alexandre_tb
|
1268 |
* Revision 1.56 2006/09/28 15:41:36 alexandre_tb
|