Subversion Repositories Applications.bazar

Rev

Rev 39 | Rev 51 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 39 Rev 45
1
 
1
 
2
<?php
2
<?php
3
/*vim: set expandtab tabstop=4 shiftwidth=4: */ 
3
/*vim: set expandtab tabstop=4 shiftwidth=4: */ 
4
// +------------------------------------------------------------------------------------------------------+
4
// +------------------------------------------------------------------------------------------------------+
5
// | PHP version 4.1                                                                                      |
5
// | PHP version 4.1                                                                                      |
6
// +------------------------------------------------------------------------------------------------------+
6
// +------------------------------------------------------------------------------------------------------+
7
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
7
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
8
// +------------------------------------------------------------------------------------------------------+
8
// +------------------------------------------------------------------------------------------------------+
9
// | This library is free software; you can redistribute it and/or                                        |
9
// | This library is free software; you can redistribute it and/or                                        |
10
// | modify it under the terms of the GNU Lesser General Public                                           |
10
// | modify it under the terms of the GNU Lesser General Public                                           |
11
// | License as published by the Free Software Foundation; either                                         |
11
// | License as published by the Free Software Foundation; either                                         |
12
// | version 2.1 of the License, or (at your option) any later version.                                   |
12
// | version 2.1 of the License, or (at your option) any later version.                                   |
13
// |                                                                                                      |
13
// |                                                                                                      |
14
// | This library is distributed in the hope that it will be useful,                                      |
14
// | This library is distributed in the hope that it will be useful,                                      |
15
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
15
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
16
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
16
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
17
// | Lesser General Public License for more details.                                                      |
17
// | Lesser General Public License for more details.                                                      |
18
// |                                                                                                      |
18
// |                                                                                                      |
19
// | You should have received a copy of the GNU Lesser General Public                                     |
19
// | You should have received a copy of the GNU Lesser General Public                                     |
20
// | License along with this library; if not, write to the Free Software                                  |
20
// | License along with this library; if not, write to the Free Software                                  |
21
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
21
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
22
// +------------------------------------------------------------------------------------------------------+
22
// +------------------------------------------------------------------------------------------------------+
23
// CVS : $Id: bazar.php,v 1.11 2005-10-21 16:15:04 florian Exp $
23
// CVS : $Id: bazar.php,v 1.12 2005-11-07 17:05:46 florian Exp $
24
/**
24
/**
25
* 
25
* 
26
*@package bazar
26
*@package bazar
27
//Auteur original :
27
//Auteur original :
28
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
28
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
29
*@author        Florian Schmitt <florian@ecole-et-nature.org>
29
*@author        Florian Schmitt <florian@ecole-et-nature.org>
30
//Autres auteurs :
30
//Autres auteurs :
31
*@copyright     Tela-Botanica 2000-2004
31
*@copyright     Tela-Botanica 2000-2004
32
*@version       $Revision: 1.11 $ $Date: 2005-10-21 16:15:04 $
32
*@version       $Revision: 1.12 $ $Date: 2005-11-07 17:05:46 $
33
// +------------------------------------------------------------------------------------------------------+
33
// +------------------------------------------------------------------------------------------------------+
34
*/
34
*/
35
 
35
 
36
// +------------------------------------------------------------------------------------------------------+
36
// +------------------------------------------------------------------------------------------------------+
37
// |                             LES CONSTANTES DES ACTIONS DE BAZAR                                      |
37
// |                             LES CONSTANTES DES ACTIONS DE BAZAR                                      |
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
39
 
39
 
40
define ('BAZ_VOIR_VOS_ANNONCES', 0);
40
define ('BAZ_VOIR_VOS_ANNONCES', 0);
41
define ('BAZ_VOIR_TOUTES_ANNONCES', 1) ;
41
define ('BAZ_VOIR_TOUTES_ANNONCES', 1) ;
42
define ('BAZ_RECHERCHER_ANNONCE', 2) ;
42
define ('BAZ_RECHERCHER_ANNONCE', 2) ;
43
define ('BAZ_DEPOSER_ANNONCE', 3) ;
43
define ('BAZ_DEPOSER_ANNONCE', 3) ;
44
define ('BAZ_ANNONCES_A_VALIDER', 4) ;
44
define ('BAZ_ANNONCES_A_VALIDER', 4) ;
45
define ('BAZ_GERER_DROITS', 5) ;
45
define ('BAZ_GERER_DROITS', 5) ;
46
define ('BAZ_ADMINISTRER_ANNONCES', 6) ;
46
define ('BAZ_ADMINISTRER_ANNONCES', 6) ;
47
define ('BAZ_MODIFIER_FICHE', 7) ;
47
define ('BAZ_MODIFIER_FICHE', 7) ;
48
if (!defined('BAZ_VOIR_FICHE')) define ('BAZ_VOIR_FICHE', 8) ;
48
if (!defined('BAZ_VOIR_FICHE')) define ('BAZ_VOIR_FICHE', 8) ;
49
define ('BAZ_SUPPRIMER_FICHE', 9) ;
49
define ('BAZ_SUPPRIMER_FICHE', 9) ;
50
define ('BAZ_ACTION_NOUVEAU', 10) ;
50
define ('BAZ_ACTION_NOUVEAU', 10) ;
51
define ('BAZ_ACTION_NOUVEAU_V', 11) ;
51
define ('BAZ_ACTION_NOUVEAU_V', 11) ;
52
define ('BAZ_ACTION_MODIFIER', 12) ;
52
define ('BAZ_ACTION_MODIFIER', 12) ;
53
define ('BAZ_ACTION_MODIFIER_V', 13) ;
53
define ('BAZ_ACTION_MODIFIER_V', 13) ;
54
define ('BAZ_ACTION_SUPPRESSION', 14) ;
54
define ('BAZ_ACTION_SUPPRESSION', 14) ;
55
define ('BAZ_ACTION_PUBLIER', 15) ;
55
define ('BAZ_ACTION_PUBLIER', 15) ;
56
define ('BAZ_ACTION_PAS_PUBLIER', 16) ;
56
define ('BAZ_ACTION_PAS_PUBLIER', 16) ;
57
define ('BAZ_S_INSCRIRE', 17);
57
define ('BAZ_S_INSCRIRE', 17);
58
define ('BAZ_VOIR_FLUX_RSS', 18);
58
define ('BAZ_VOIR_FLUX_RSS', 18);
59
 
59
 
60
 
60
 
61
// +------------------------------------------------------------------------------------------------------+
61
// +------------------------------------------------------------------------------------------------------+
62
// |                                            ENTETE du PROGRAMME                                       |
62
// |                                            ENTETE du PROGRAMME                                       |
63
// +------------------------------------------------------------------------------------------------------+
63
// +------------------------------------------------------------------------------------------------------+
64
 
64
 
65
error_reporting(E_ALL);
65
error_reporting(E_ALL);
66
include_once 'DB.php' ;
66
include_once 'DB.php' ;
67
include_once 'Auth.php' ;
67
include_once 'Auth.php' ;
68
include_once 'configuration/baz_config.inc.php'; //fichier de configuration de Bazar
68
include_once 'configuration/baz_config.inc.php'; //fichier de configuration de Bazar
69
include_once 'bibliotheque/bazar.fonct.php'; //fichier des fonctions de Bazar
69
include_once 'bibliotheque/bazar.fonct.php'; //fichier des fonctions de Bazar
70
 
70
 
71
if (defined('PAP_VERSION')) { //si on est dans Papyrus
71
if (defined('PAP_VERSION')) { //si on est dans Papyrus
72
	GEN_stockerStyleExterne( 'bazar_interne', 'client/bazar/bazar.interne.css');
72
	GEN_stockerStyleExterne( 'bazar_interne', 'client/bazar/bazar.interne.css');
73
}
73
}
74
 
74
 
75
// +------------------------------------------------------------------------------------------------------+
75
// +------------------------------------------------------------------------------------------------------+
76
// |                                           LISTE de FONCTIONS                                         |
76
// |                                           LISTE de FONCTIONS                                         |
77
// +------------------------------------------------------------------------------------------------------+
77
// +------------------------------------------------------------------------------------------------------+
78
 
78
 
79
function afficherContenuCorps() {
79
function afficherContenuCorps() {
80
	
80
	
81
	$GLOBALS['id_user']=$GLOBALS['AUTH']->getAuthData(BAZ_CHAMPS_ID);
81
	$GLOBALS['id_user']=$GLOBALS['AUTH']->getAuthData(BAZ_CHAMPS_ID);
82
	
82
	
83
	$res = '';
83
	$res = '';
84
	//---------------l'entête de l'appli-----------
84
	//---------------l'entête de l'appli-----------
85
	$res.='<div id="BAZ_hautdepage">'."\n";
85
	$res.='<div id="BAZ_hautdepage">'."\n";
86
	$res.='<h1>'.$GLOBALS['_GEN_commun']['info_menu']->gm_titre.'</h1>'."\n";
86
	$res.='<h1>'.$GLOBALS['_GEN_commun']['info_menu']->gm_titre.'</h1>'."\n";
87
	$res.='</div>'."\n";
87
	$res.='</div>'."\n";
88
	
88
	
89
	//---------------le menu de l'appli-----------
89
	//---------------le menu de l'appli-----------
90
	$res.='<div id="BAZ_menu">'."\n";
90
	$res.='<div id="BAZ_menu">'."\n";
91
	$res .='<ul>'."\n";
91
	$res .='<ul>'."\n";
92
	$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_VOIR_TOUTES_ANNONCES);
92
	$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_VOIR_TOUTES_ANNONCES);
93
	$GLOBALS['_BAZAR_']['url']->addQueryString('nature', 'toutes');
93
	$GLOBALS['_BAZAR_']['url']->addQueryString('nature', 'toutes');
94
	//partie consultation d'annonces
94
	//partie consultation d'annonces
95
	$res .= '<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_CONSULTER.'</a>'."\n".'</li>'."\n";
95
	$res .= '<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_CONSULTER.'</a>'."\n".'</li>'."\n";
96
	$GLOBALS['_BAZAR_']['url']->removeQueryString('nature');
96
	$GLOBALS['_BAZAR_']['url']->removeQueryString('nature');
97
	
97
 
98
	/*$requete = 'SELECT bn_id_nature, bn_label_nature FROM bazar_nature WHERE bn_ce_id_menu='.$GLOBALS['_GEN_commun']['info_menu']->gm_id_menu.' or  bn_ce_id_menu=0';
-
 
99
	$resultat = $GLOBALS['_BAZAR_']['db']->query($requete) ;
-
 
100
	if (DB::isError($resultat)) {
98
	//partie abonnement aux annonces
101
		die ($resultat->getMessage().$resultat->getDebugInfo()) ;
-
 
102
	}
-
 
103
	while ($ligne = $resultat->fetchRow(DB_FETCHMODE_ASSOC)) {
-
 
104
		$GLOBALS['_BAZAR_']['url']->addQueryString('nature', $ligne['bn_label_nature']);
-
 
105
		$res .='<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.$ligne['bn_label_nature'].'</a></li>'."\n";
-
 
106
		$GLOBALS['_BAZAR_']['url']->removeQueryString('nature');
-
 
107
	}
-
 
108
	
-
 
109
	$GLOBALS['_BAZAR_']['url']->addQueryString('nature', 'toutes');
99
	$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_S_INSCRIRE);
110
	$res .='<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_TOUTES_LES_ANNONCES.'</a></li></ul></li>'."\n";
100
	$res .= '<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_S_ABONNER.'</a></li>'."\n" ;
111
	$GLOBALS['_BAZAR_']['url']->removeQueryString('nature');
-
 
112
	$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
101
	$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
113
	
102
		
114
	//partie recherche d'annonces
103
	//partie saisie d'annonces
115
	$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_RECHERCHER_ANNONCE);
104
	$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_DEPOSER_ANNONCE);
116
	$res .='<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_RECHERCHER.'</a></li>'."\n";
105
	$res .= '<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_SAISIR.'</a>'."\n".'<ul>'."\n";
-
 
106
	$res .= '<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_DEPOSE_UNE_NOUVELLE_ANNONCE.'</a></li>'."\n" ;
117
	$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
107
	$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
118
	
108
 
119
	//pour les identifiés seulement
-
 
120
	if ($GLOBALS['AUTH']->getAuth()) {*/
-
 
121
		//partie abonnement aux annonces
109
	//annonces propres
122
		$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_S_INSCRIRE);
110
	$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_VOIR_VOS_ANNONCES);
123
		$res .= '<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_S_ABONNER.'</a></li>'."\n" ;
111
	$res .='<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_VOS_ANNONCES.'</a></li>'."\n";
124
		$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
112
	$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
-
 
113
	$res .='</ul></li>'."\n";
125
		
114
		
-
 
115
	//choix des administrateurs	
-
 
116
	$est_admin=0;
126
		//partie saisie d'annonces
117
	if ($GLOBALS['AUTH']->getAuth()) {
127
		$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_DEPOSER_ANNONCE);
118
		$requete='SELECT bn_id_nature FROM bazar_nature';
-
 
119
		$resultat = $GLOBALS['_BAZAR_']['db']->query($requete) ;
128
		$res .= '<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_SAISIR.'</a>'."\n".'<ul>'."\n";
120
		if (DB::isError($resultat)) {
-
 
121
			die ($resultat->getMessage().$resultat->getDebugInfo()) ;
129
		$res .= '<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_DEPOSE_UNE_NOUVELLE_ANNONCE.'</a></li>'."\n" ;
122
		}
-
 
123
		while ($ligne = $resultat->fetchRow(DB_FETCHMODE_ASSOC)) {
-
 
124
			if ((niveau_droit($ligne['bn_id_nature'],$GLOBALS['AUTH']->getAuthData(BAZ_CHAMPS_ID)))=='administrateur') {
-
 
125
				$est_admin=1;
130
		$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
126
		    }
-
 
127
		}
131
	
128
		if (($est_admin)or(niveau_droit($id_nature_offre='0',$GLOBALS['AUTH']->getAuthData(BAZ_CHAMPS_ID))=='superadministrateur')) {
132
		//annonces propres
129
		//partie administrer
133
		$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_VOIR_VOS_ANNONCES);
130
		$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_ANNONCES_A_VALIDER);
-
 
131
		$res .= '<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_ADMINISTRER.'</a><ul>'."\n";
134
		$res .='<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_VOS_ANNONCES.'</a></li>'."\n";
132
		$res .= '<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_ANNONCES_A_ADMINISTRER.'</a></li>'."\n" ;
135
		$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
-
 
136
		$res .='</ul></li>'."\n";
-
 
137
		
-
 
138
		
-
 
139
		//choix des administrateurs	
-
 
140
		$est_admin=0;
-
 
141
		if ($GLOBALS['AUTH']->getAuth()) {
-
 
142
			$requete='SELECT bn_id_nature FROM bazar_nature';
-
 
143
			$resultat = $GLOBALS['_BAZAR_']['db']->query($requete) ;
-
 
144
			if (DB::isError($resultat)) {
-
 
145
				die ($resultat->getMessage().$resultat->getDebugInfo()) ;
-
 
146
			}
-
 
147
			while ($ligne = $resultat->fetchRow(DB_FETCHMODE_ASSOC)) {
-
 
148
				if ((niveau_droit($ligne['bn_id_nature'],$GLOBALS['AUTH']->getAuthData(BAZ_CHAMPS_ID)))=='administrateur') {
-
 
149
					$est_admin=1;
-
 
150
			    }
133
		$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
151
			}
-
 
152
			if (($est_admin)or(niveau_droit($id_nature_offre='0',$GLOBALS['AUTH']->getAuthData(BAZ_CHAMPS_ID))=='superadministrateur')) {
134
		
153
			//partie administrer
-
 
154
			$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_ANNONCES_A_VALIDER);
135
		if (niveau_droit($id_nature_offre='0',$GLOBALS['AUTH']->getAuthData(BAZ_CHAMPS_ID))=='superadministrateur') {
155
			$res .= '<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_ADMINISTRER.'</a><ul>'."\n";
136
			$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_GERER_DROITS);
156
			$res .= '<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_ANNONCES_A_ADMINISTRER.'</a></li>'."\n" ;
-
 
157
			$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
-
 
158
			
-
 
159
			if (niveau_droit($id_nature_offre='0',$GLOBALS['AUTH']->getAuthData(BAZ_CHAMPS_ID))=='superadministrateur') {
-
 
160
				$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_GERER_DROITS);
-
 
161
				$res .= '<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_GESTION_DES_DROITS.'</a></li>'."\n" ;
137
			$res .= '<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_GESTION_DES_DROITS.'</a></li>'."\n" ;
162
				$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
138
			$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
163
				
139
			
164
				$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_ADMINISTRER_ANNONCES);
140
			$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_ADMINISTRER_ANNONCES);
165
				$res .= '<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_ADMIN_ANNONCES.'</a></li>'."\n" ;
141
			$res .= '<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_ADMIN_ANNONCES.'</a></li>'."\n" ;
166
				$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
142
			$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
167
			}
143
		}
168
			$res .= '</ul></li>'."\n";
144
		$res .= '</ul></li>'."\n";
169
			}
145
		}
170
	}	
146
	}	
171
	$res.= '</ul>'."\n";
147
	$res.= '</ul>'."\n";
172
	$res.='</div>'."\n";
148
	$res.='</div>'."\n";
173
	
149
	
174
	//le corps de l'appli
150
	//le corps de l'appli
175
	$res.='<div id="BAZ_corps">'."\n";
151
	$res.='<div id="BAZ_corps">'."\n";
176
	if (isset($_GET['action'])) {
152
	if (isset($_GET['action'])) {
177
		switch ($_GET['action']) {
153
		switch ($_GET['action']) {
178
			case BAZ_VOIR_VOS_ANNONCES : $res .= mes_fiches(); break;
154
			case BAZ_VOIR_VOS_ANNONCES : $res .= mes_fiches(); break;
179
			case BAZ_VOIR_TOUTES_ANNONCES : $res .= baz_liste($_REQUEST['nature'],'',''); break;
155
			case BAZ_VOIR_TOUTES_ANNONCES : $res .= baz_liste($_REQUEST['nature'],'',''); break;
180
			case BAZ_RECHERCHER_ANNONCE : $res .= baz_rechercher(); break;
156
			case BAZ_RECHERCHER_ANNONCE : $res .= baz_rechercher(); break;
181
			case BAZ_DEPOSER_ANNONCE : $res .= baz_formulaire(BAZ_DEPOSER_ANNONCE); break;
157
			case BAZ_DEPOSER_ANNONCE : $res .= baz_formulaire(BAZ_DEPOSER_ANNONCE); break;
182
			case BAZ_ANNONCES_A_VALIDER : $res .= fiches_a_valider(); break;
158
			case BAZ_ANNONCES_A_VALIDER : $res .= fiches_a_valider(); break;
183
			case BAZ_ADMINISTRER_ANNONCES : $res .= baz_administrer_annonces(); break;
159
			case BAZ_ADMINISTRER_ANNONCES : $res .= baz_administrer_annonces(); break;
184
			case BAZ_MODIFIER_FICHE : $res .= baz_formulaire(BAZ_ACTION_MODIFIER); break;
160
			case BAZ_MODIFIER_FICHE : $res .= baz_formulaire(BAZ_ACTION_MODIFIER); break;
185
			case BAZ_SUPPRIMER_FICHE : $res .= baz_suppression().baz_liste('',$GLOBALS['id_user'],''); break;
161
			case BAZ_SUPPRIMER_FICHE : $res .= baz_suppression().baz_liste('',$GLOBALS['id_user'],''); break;
186
			case BAZ_VOIR_FICHE : $res .= baz_voir_fiche(1); break;
162
			case BAZ_VOIR_FICHE : $res .= baz_voir_fiche(1); break;
187
			case BAZ_ACTION_NOUVEAU : $res .= baz_formulaire(BAZ_ACTION_NOUVEAU); break;
163
			case BAZ_ACTION_NOUVEAU : $res .= baz_formulaire(BAZ_ACTION_NOUVEAU); break;
188
			case BAZ_ACTION_NOUVEAU_V : $res .= baz_formulaire().mes_fiches(); break;
164
			case BAZ_ACTION_NOUVEAU_V : $res .= baz_formulaire().mes_fiches(); break;
189
			case BAZ_ACTION_MODIFIER : $res .= baz_formulaire(BAZ_ACTION_MODIFIER); break;
165
			case BAZ_ACTION_MODIFIER : $res .= baz_formulaire(BAZ_ACTION_MODIFIER); break;
190
			case BAZ_ACTION_MODIFIER_V : $res .= baz_formulaire(BAZ_ACTION_MODIFIER_V).mes_fiches(); break;
166
			case BAZ_ACTION_MODIFIER_V : $res .= baz_formulaire(BAZ_ACTION_MODIFIER_V).mes_fiches(); break;
191
			case BAZ_ACTION_SUPPRESSION : $res .= baz_suppression().mes_fiches(); break;
167
			case BAZ_ACTION_SUPPRESSION : $res .= baz_suppression().mes_fiches(); break;
192
			case BAZ_ACTION_PUBLIER : publier_fiche(1) ;$res .= fiches_a_valider(); break;
168
			case BAZ_ACTION_PUBLIER : publier_fiche(1) ;$res .= fiches_a_valider(); break;
193
			case BAZ_ACTION_PAS_PUBLIER : publier_fiche(0) ;$res .= fiches_a_valider(); break;
169
			case BAZ_ACTION_PAS_PUBLIER : publier_fiche(0) ;$res .= fiches_a_valider(); break;
194
			case BAZ_GERER_DROITS : $res .= baz_formulaire(BAZ_GERER_DROITS); break;
170
			case BAZ_GERER_DROITS : $res .= baz_formulaire(BAZ_GERER_DROITS); break;
195
			case BAZ_S_INSCRIRE : $res .= baz_s_inscrire(); break;
171
			case BAZ_S_INSCRIRE : $res .= baz_s_inscrire(); break;
196
			case BAZ_VOIR_FLUX_RSS : header('Content-type: text/xml; charset=ISO-8859-1');include("bazarRSS.php");exit(0);break;
172
			case BAZ_VOIR_FLUX_RSS : header('Content-type: text/xml; charset=ISO-8859-1');include("bazarRSS.php");exit(0);break;
197
			default : $res .= accueil() ;
173
			default : $res .= accueil() ;
198
		}
174
		}
199
	}
175
	}
200
	else {
176
	else {
201
		$res .= baz_liste('toutes','','');
177
		$res .= baz_liste('toutes','','');
202
	}
178
	}
203
	$res.='</div>'."\n";
179
	$res.='</div>'."\n";
204
	return $res ;
180
	return $res ;
205
}
181
}
206
 
182
 
207
 
183
 
208
/* +--Fin du code ----------------------------------------------------------------------------------------+
184
/* +--Fin du code ----------------------------------------------------------------------------------------+
209
*
185
*
210
* $Log: not supported by cvs2svn $
186
* $Log: not supported by cvs2svn $
-
 
187
* Revision 1.11  2005/10/21 16:15:04  florian
-
 
188
* mise a jour appropriation
-
 
189
*
211
* Revision 1.10  2005/10/12 17:20:33  ddelon
190
* Revision 1.10  2005/10/12 17:20:33  ddelon
212
* Reorganisation calendrier + applette
191
* Reorganisation calendrier + applette
213
*
192
*
214
* Revision 1.9  2005/10/12 13:35:07  florian
193
* Revision 1.9  2005/10/12 13:35:07  florian
215
* amélioration de l'interface de bazar, de manière a simplifier les consultations, et à harmoniser par rapport aux Ressources
194
* amélioration de l'interface de bazar, de manière a simplifier les consultations, et à harmoniser par rapport aux Ressources
216
*
195
*
217
* Revision 1.8  2005/09/30 13:00:05  ddelon
196
* Revision 1.8  2005/09/30 13:00:05  ddelon
218
* Fiche bazar generique
197
* Fiche bazar generique
219
*
198
*
220
* Revision 1.7  2005/09/30 12:34:44  ddelon
199
* Revision 1.7  2005/09/30 12:34:44  ddelon
221
* petite modification pour integration bazar dans papyrus
200
* petite modification pour integration bazar dans papyrus
222
*
201
*
223
* Revision 1.6  2005/09/30 12:22:54  florian
202
* Revision 1.6  2005/09/30 12:22:54  florian
224
* Ajouts commentaires pour fiche, modifications graphiques, maj SQL
203
* Ajouts commentaires pour fiche, modifications graphiques, maj SQL
225
*
204
*
226
* Revision 1.4  2005/07/21 19:03:12  florian
205
* Revision 1.4  2005/07/21 19:03:12  florian
227
* nouveautés bazar: templates fiches, correction de bugs, ...
206
* nouveautés bazar: templates fiches, correction de bugs, ...
228
*
207
*
229
* Revision 1.2  2005/02/22 15:33:32  florian
208
* Revision 1.2  2005/02/22 15:33:32  florian
230
* integration dans Papyrus
209
* integration dans Papyrus
231
*
210
*
232
* Revision 1.1.1.1  2005/02/17 18:05:11  florian
211
* Revision 1.1.1.1  2005/02/17 18:05:11  florian
233
* Import initial de Bazar
212
* Import initial de Bazar
234
*
213
*
235
* Revision 1.1.1.1  2005/02/17 11:09:50  florian
214
* Revision 1.1.1.1  2005/02/17 11:09:50  florian
236
* Import initial
215
* Import initial
237
*
216
*
238
* Revision 1.1.1.1  2005/02/16 18:06:35  florian
217
* Revision 1.1.1.1  2005/02/16 18:06:35  florian
239
* import de la nouvelle version
218
* import de la nouvelle version
240
*
219
*
241
* Revision 1.3  2004/07/05 15:10:14  florian
220
* Revision 1.3  2004/07/05 15:10:14  florian
242
* changement interface de saisie
221
* changement interface de saisie
243
*
222
*
244
* Revision 1.2  2004/07/01 10:13:41  florian
223
* Revision 1.2  2004/07/01 10:13:41  florian
245
* modif Florian
224
* modif Florian
246
*
225
*
247
* Revision 1.1  2004/06/23 09:58:32  alex
226
* Revision 1.1  2004/06/23 09:58:32  alex
248
* version initiale
227
* version initiale
249
*
228
*
250
* Revision 1.1  2004/06/18 09:00:07  alex
229
* Revision 1.1  2004/06/18 09:00:07  alex
251
* version initiale
230
* version initiale
252
*
231
*
253
*
232
*
254
* +-- Fin du code ----------------------------------------------------------------------------------------+
233
* +-- Fin du code ----------------------------------------------------------------------------------------+
255
*/
234
*/
256
?>
235
?>