Subversion Repositories Applications.bazar

Rev

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

Rev 378 Rev 407
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.php,v 1.51 2008-02-08 08:44:59 alexandre_tb Exp $
22
// CVS : $Id: bazar.php,v 1.52 2008-10-29 15:52:14 alexandre_tb Exp $
23
/**
23
/**
24
* 
24
* 
25
*@package bazar
25
*@package bazar
26
//Auteur original :
26
//Auteur original :
27
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
27
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
28
*@author        Florian Schmitt <florian@ecole-et-nature.org>
28
*@author        Florian Schmitt <florian@ecole-et-nature.org>
29
//Autres auteurs :
29
//Autres auteurs :
30
*@copyright     Tela-Botanica 2000-2004
30
*@copyright     Tela-Botanica 2000-2004
31
*@version       $Revision: 1.51 $ $Date: 2008-02-08 08:44:59 $
31
*@version       $Revision: 1.52 $ $Date: 2008-10-29 15:52:14 $
32
// +------------------------------------------------------------------------------------------------------+
32
// +------------------------------------------------------------------------------------------------------+
33
*/
33
*/
Line 34... Line 34...
34
 
34
 
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
Line 99... Line 99...
99
	$GLOBALS['_BAZAR_']['id_fiche']=$_REQUEST['id_fiche'];
99
	$GLOBALS['_BAZAR_']['id_fiche']=$_REQUEST['id_fiche'];
100
	// récupération du type d'annonce à partir de la fiche
100
	// récupération du type d'annonce à partir de la fiche
101
	$requete = 'select bf_ce_nature from bazar_fiche where bf_id_fiche='.$GLOBALS['_BAZAR_']['id_fiche'] ;
101
	$requete = 'select bf_ce_nature from bazar_fiche where bf_id_fiche='.$GLOBALS['_BAZAR_']['id_fiche'] ;
102
	$resultat = $GLOBALS['_BAZAR_']['db']->query ($requete) ;
102
	$resultat = $GLOBALS['_BAZAR_']['db']->query ($requete) ;
103
	if (DB::isError($resultat)) {
103
	if (DB::isError($resultat)) {
104
		echo $resultat->getMessage().'<br />'.$resultat->getInfoDebug();	
104
		echo $resultat->getMessage().'<br />'.$resultat->getDebugInfo();	
105
	}
105
	}
106
	$ligne = $resultat->fetchRow(DB_FETCHMODE_OBJECT) ;
106
	$ligne = $resultat->fetchRow(DB_FETCHMODE_OBJECT) ;
107
	$GLOBALS['_BAZAR_']['id_typeannonce'] = $ligne->bf_ce_nature ;
107
	$GLOBALS['_BAZAR_']['id_typeannonce'] = $ligne->bf_ce_nature ;
108
	$resultat->free();
108
	$resultat->free();
109
}		
109
}		
Line 235... Line 235...
235
			case BAZ_ACTION_SUPPRESSION : $res .= baz_suppression(); unset ($_GET['action']); break;
235
			case BAZ_ACTION_SUPPRESSION : $res .= baz_suppression(); unset ($_GET['action']); break;
236
			case BAZ_ACTION_PUBLIER : publier_fiche(1) ; break;
236
			case BAZ_ACTION_PUBLIER : publier_fiche(1) ; break;
237
			case BAZ_ACTION_PAS_PUBLIER : publier_fiche(0) ;$res .= fiches_a_valider(); break;
237
			case BAZ_ACTION_PAS_PUBLIER : publier_fiche(0) ;$res .= fiches_a_valider(); break;
238
			case BAZ_S_INSCRIRE : $res .= baz_s_inscrire(); break;
238
			case BAZ_S_INSCRIRE : $res .= baz_s_inscrire(); break;
239
			case BAZ_VOIR_FLUX_RSS : header('Content-type: text/xml; charset=UTF-8');include("bazarRSS.php");exit(0);break;
239
			case BAZ_VOIR_FLUX_RSS : header('Content-type: text/xml; charset=UTF-8');include("bazarRSS.php");exit(0);break;
-
 
240
			case BAZ_ACTION_POST_VALIDATION : $res .= baz_post_validation();break;
240
		}
241
		}
Line 241... Line 242...
241
		
242
		
242
	}
243
	}
243
	if (isset ($_GET[BAZ_VARIABLE_VOIR])) {
244
	if (isset ($_GET[BAZ_VARIABLE_VOIR])) {
Line 270... Line 271...
270
 
271
 
271
 
272
 
272
/* +--Fin du code ----------------------------------------------------------------------------------------+
273
/* +--Fin du code ----------------------------------------------------------------------------------------+
-
 
274
*
-
 
275
* $Log: not supported by cvs2svn $
-
 
276
* Revision 1.51  2008-02-08 08:44:59  alexandre_tb
273
*
277
* Mise en pla ce de la constante BAZ_VARIABLE_ACTION
274
* $Log: not supported by cvs2svn $
278
*
275
* Revision 1.50  2007-12-04 09:07:21  alexandre_tb
279
* Revision 1.50  2007-12-04 09:07:21  alexandre_tb
276
* Fusion avec la livraison AHA : 4 déc 2007
280
* Fusion avec la livraison AHA : 4 déc 2007
277
*
281
*