Subversion Repositories Applications.bazar

Rev

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

Rev 84 Rev 87
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.24 2006-01-26 11:06:43 alexandre_tb Exp $
22
// CVS : $Id: bazar.php,v 1.25 2006-01-30 17:25:38 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.24 $ $Date: 2006-01-26 11:06:43 $
31
*@version       $Revision: 1.25 $ $Date: 2006-01-30 17:25:38 $
32
// +------------------------------------------------------------------------------------------------------+
32
// +------------------------------------------------------------------------------------------------------+
33
*/
33
*/
Line 34... Line 34...
34
 
34
 
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
Line 125... Line 125...
125
	$GLOBALS['_BAZAR_']['typeannonce']=$ligne['bn_label_nature'];
125
	$GLOBALS['_BAZAR_']['typeannonce']=$ligne['bn_label_nature'];
126
	$GLOBALS['_BAZAR_']['condition']=$ligne['bn_condition'];
126
	$GLOBALS['_BAZAR_']['condition']=$ligne['bn_condition'];
127
    $GLOBALS['_BAZAR_']['template']=$ligne['bn_template'];
127
    $GLOBALS['_BAZAR_']['template']=$ligne['bn_template'];
128
	$GLOBALS['_BAZAR_']['commentaire']=$ligne['bn_commentaire'];
128
	$GLOBALS['_BAZAR_']['commentaire']=$ligne['bn_commentaire'];
129
	$GLOBALS['_BAZAR_']['appropriation']=$ligne['bn_appropriation'];
129
	$GLOBALS['_BAZAR_']['appropriation']=$ligne['bn_appropriation'];
130
	$GLOBALS['_BAZAR_']['nb_consultations']=$ligne['bf_nb_consultations'];
-
 
131
	$GLOBALS['_BAZAR_']['image_titre']=$ligne['bn_image_titre'];
130
	$GLOBALS['_BAZAR_']['image_titre']=$ligne['bn_image_titre'];
132
	$GLOBALS['_BAZAR_']['image_logo']=$ligne['bn_image_logo'];		
131
	$GLOBALS['_BAZAR_']['image_logo']=$ligne['bn_image_logo'];	
133
}
132
}
134
 
-
 
-
 
133
if (!isset($GLOBALS['_BAZAR_']['id_typeannonce'])) $GLOBALS['_BAZAR_']['id_typeannonce'] = 'toutes' ;
135
// +------------------------------------------------------------------------------------------------------+
134
// +------------------------------------------------------------------------------------------------------+
136
// |                                           LISTE de FONCTIONS                                         |
135
// |                                           LISTE de FONCTIONS                                         |
137
// +------------------------------------------------------------------------------------------------------+
136
// +------------------------------------------------------------------------------------------------------+
138
if ($GLOBALS['_BAZAR_']['affiche_menu']) {
137
if ($GLOBALS['_BAZAR_']['affiche_menu']) {
139
	//---------------le menu de l'appli-----------
138
	//---------------le menu de l'appli-----------
Line 192... Line 191...
192
 
191
 
193
	if (isset($_GET['action'])) {
192
	if (isset($_GET['action'])) {
194
		if (($_GET['action']!=BAZ_ACTION_NOUVEAU_V)and($_GET['action']!=BAZ_ACTION_MODIFIER_V)) unset($_SESSION['formulaire_annonce_valide']);
193
		if (($_GET['action']!=BAZ_ACTION_NOUVEAU_V)and($_GET['action']!=BAZ_ACTION_MODIFIER_V)) unset($_SESSION['formulaire_annonce_valide']);
195
		switch ($_GET['action']) {
194
		switch ($_GET['action']) {
196
			case BAZ_VOIR_VOS_ANNONCES : $res .= mes_fiches(); break;
195
			case BAZ_VOIR_VOS_ANNONCES : $res .= mes_fiches(); break;
197
			case BAZ_VOIR_TOUTES_ANNONCES : $res .= baz_liste($GLOBALS['_BAZAR_']['id_nature']); break;
196
			case BAZ_VOIR_TOUTES_ANNONCES : $res .= baz_liste($GLOBALS['_BAZAR_']['id_typeannonce']); break;
198
			case BAZ_DEPOSER_ANNONCE : $res .= baz_formulaire(BAZ_DEPOSER_ANNONCE); break;
197
			case BAZ_DEPOSER_ANNONCE : $res .= baz_formulaire(BAZ_DEPOSER_ANNONCE); break;
199
			case BAZ_ANNONCES_A_VALIDER : $res .= fiches_a_valider().baz_liste(); break;
198
			case BAZ_ANNONCES_A_VALIDER : $res .= fiches_a_valider().baz_liste(); break;
200
			case BAZ_ADMINISTRER_ANNONCES : $res .= baz_administrer_annonces(); break;
199
			case BAZ_ADMINISTRER_ANNONCES : $res .= baz_administrer_annonces(); break;
201
			case BAZ_MODIFIER_FICHE : $res .= baz_formulaire(BAZ_ACTION_MODIFIER); break;
200
			case BAZ_MODIFIER_FICHE : $res .= baz_formulaire(BAZ_ACTION_MODIFIER); break;
Line 222... Line 221...
222
 
221
 
223
 
222
 
224
/* +--Fin du code ----------------------------------------------------------------------------------------+
223
/* +--Fin du code ----------------------------------------------------------------------------------------+
-
 
224
*
-
 
225
* $Log: not supported by cvs2svn $
-
 
226
* Revision 1.24  2006/01/26 11:06:43  alexandre_tb
225
*
227
* ajout d'une requete pour recupere l'id_nature si un id_fiche est passé dans l'url
226
* $Log: not supported by cvs2svn $
228
*
227
* Revision 1.23  2006/01/17 10:07:36  alexandre_tb
229
* Revision 1.23  2006/01/17 10:07:36  alexandre_tb
228
* en cours
230
* en cours
229
*
231
*