Subversion Repositories Applications.papyrus

Rev

Rev 1656 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1656 Rev 1670
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.48 2007-10-17 08:24:59 alexandre_tb Exp $
22
// CVS : $Id: bazar.php,v 1.49 2007-10-24 13:26:02 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.48 $ $Date: 2007-10-17 08:24:59 $
31
*@version       $Revision: 1.49 $ $Date: 2007-10-24 13:26:02 $
32
// +------------------------------------------------------------------------------------------------------+
32
// +------------------------------------------------------------------------------------------------------+
33
*/
33
*/
Line 34... Line 34...
34
 
34
 
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
Line 241... Line 241...
241
			case BAZ_SUPPRIMER_FICHE : $res .= baz_suppression().baz_liste('',$GLOBALS['id_user'],''); break;
241
			case BAZ_SUPPRIMER_FICHE : $res .= baz_suppression().baz_liste('',$GLOBALS['id_user'],''); break;
242
			case BAZ_VOIR_FICHE : $res .= baz_voir_fiche(1); break;
242
			case BAZ_VOIR_FICHE : $res .= baz_voir_fiche(1); break;
243
			//case BAZ_ACTION_NOUVEAU : $res .= baz_formulaire(BAZ_ACTION_NOUVEAU); break;
243
			//case BAZ_ACTION_NOUVEAU : $res .= baz_formulaire(BAZ_ACTION_NOUVEAU); break;
244
			case BAZ_ACTION_NOUVEAU_V : $res .= baz_formulaire(BAZ_ACTION_NOUVEAU_V).mes_fiches(); break;
244
			case BAZ_ACTION_NOUVEAU_V : $res .= baz_formulaire(BAZ_ACTION_NOUVEAU_V).mes_fiches(); break;
245
			//case BAZ_ACTION_MODIFIER : $res .= baz_formulaire(BAZ_ACTION_MODIFIER); break;
245
			//case BAZ_ACTION_MODIFIER : $res .= baz_formulaire(BAZ_ACTION_MODIFIER); break;
246
			case BAZ_ACTION_MODIFIER_V : $res .= baz_formulaire(BAZ_ACTION_MODIFIER_V).baz_voir_fiche(1); break;
246
			//case BAZ_ACTION_MODIFIER_V : $res .= baz_formulaire(BAZ_ACTION_MODIFIER_V).baz_voir_fiche(1); break;
247
			case BAZ_ACTION_SUPPRESSION : $res .= baz_suppression(); unset ($_GET['action']); break;
247
			case BAZ_ACTION_SUPPRESSION : $res .= baz_suppression(); unset ($_GET['action']); break;
248
			case BAZ_ACTION_PUBLIER : publier_fiche(1) ; break;
248
			case BAZ_ACTION_PUBLIER : publier_fiche(1) ; break;
249
			case BAZ_ACTION_PAS_PUBLIER : publier_fiche(0) ;$res .= fiches_a_valider(); break;
249
			case BAZ_ACTION_PAS_PUBLIER : publier_fiche(0) ;$res .= fiches_a_valider(); break;
250
			//case BAZ_GERER_DROITS : $res .= baz_gestion_droits(); break;
250
			//case BAZ_GERER_DROITS : $res .= baz_gestion_droits(); break;
251
			case BAZ_S_INSCRIRE : $res .= baz_s_inscrire(); break;
251
			case BAZ_S_INSCRIRE : $res .= baz_s_inscrire(); break;
Line 255... Line 255...
255
		
255
		
256
	}
256
	}
257
	if (isset ($_GET[BAZ_VARIABLE_VOIR])) {
257
	if (isset ($_GET[BAZ_VARIABLE_VOIR])) {
258
			switch ($_GET[BAZ_VARIABLE_VOIR]) {
258
			switch ($_GET[BAZ_VARIABLE_VOIR]) {
259
				case BAZ_VOIR_CONSULTER: 
259
				case BAZ_VOIR_CONSULTER: 
-
 
260
				if (isset ($_GET['action']) && $_GET['action'] != BAZ_VOIR_TOUTES_ANNONCES) {
-
 
261
					$res .= baz_formulaire($_GET['action']) ;
-
 
262
					if ($_GET['action'] == BAZ_ACTION_MODIFIER_V) $res .= baz_voir_fiche(1);
260
				if (isset ($_GET['action']) && $_GET['action'] != BAZ_VOIR_TOUTES_ANNONCES) $res .= baz_formulaire($_GET['action']) ; else $res .= baz_liste($GLOBALS['_BAZAR_']['id_typeannonce']);
263
				} else $res .= baz_liste($GLOBALS['_BAZAR_']['id_typeannonce']);
261
				break;
264
				break;
262
				case BAZ_VOIR_MES_FICHES : 
265
				case BAZ_VOIR_MES_FICHES : 
263
				if (isset ($_GET['action'])) $res .= baz_formulaire($_GET['action']) ; else $res .= mes_fiches();
266
				if (isset ($_GET['action'])) $res .= baz_formulaire($_GET['action']) ; else $res .= mes_fiches();
264
				break;
267
				break;
Line 281... Line 284...
281
 
284
 
282
 
285
 
283
/* +--Fin du code ----------------------------------------------------------------------------------------+
286
/* +--Fin du code ----------------------------------------------------------------------------------------+
-
 
287
*
-
 
288
* $Log: not supported by cvs2svn $
-
 
289
* Revision 1.48  2007-10-17 08:24:59  alexandre_tb
284
*
290
* correction multilinguisme
285
* $Log: not supported by cvs2svn $
291
*
286
* Revision 1.47  2007-10-01 12:13:53  alexandre_tb
292
* Revision 1.47  2007-10-01 12:13:53  alexandre_tb
287
* bug, affichage vue / action pour la vue "administrer"
293
* bug, affichage vue / action pour la vue "administrer"
288
*
294
*