Subversion Repositories Sites.gentiana.org

Rev

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

Rev 50 Rev 66
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.42 2007-07-05 08:29:24 alexandre_tb Exp $
22
// CVS : $Id: bazar.php,v 1.45 2007-09-18 14:24:01 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.42 $ $Date: 2007-07-05 08:29:24 $
31
*@version       $Revision: 1.45 $ $Date: 2007-09-18 14:24:01 $
32
// +------------------------------------------------------------------------------------------------------+
32
// +------------------------------------------------------------------------------------------------------+
33
*/
33
*/
Line 34... Line 34...
34
 
34
 
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
Line 60... Line 60...
60
//parametre vue pour afficher directement une vue  
60
//parametre vue pour afficher directement une vue  
61
if (!isset($_GET[BAZ_VARIABLE_VOIR])and(isset($GLOBALS['_GEN_commun']['info_application']->vue))) {
61
if (!isset($_GET[BAZ_VARIABLE_VOIR])and(isset($GLOBALS['_GEN_commun']['info_application']->vue))) {
62
	$_GET[BAZ_VARIABLE_VOIR]=$GLOBALS['_GEN_commun']['info_application']->vue;
62
	$_GET[BAZ_VARIABLE_VOIR]=$GLOBALS['_GEN_commun']['info_application']->vue;
63
}
63
}
Line -... Line 64...
-
 
64
 
-
 
65
// Si le parametre vue est vide on le positionne a 1
-
 
66
if (!isset($_GET[BAZ_VARIABLE_VOIR])) {
-
 
67
	$_GET[BAZ_VARIABLE_VOIR] = BAZ_VOIR_CONSULTER;
-
 
68
}
-
 
69
 
64
 
70
 
65
//parametre voir_menu pour afficher le menu ou pas (par défaut, il l'affiche)
71
//parametre voir_menu pour afficher le menu ou pas (par défaut, il l'affiche)
66
if ((isset($GLOBALS['_GEN_commun']['info_application']->voir_menu))and($GLOBALS['_GEN_commun']['info_application']->voir_menu==0)) {
72
if ((isset($GLOBALS['_GEN_commun']['info_application']->voir_menu))and($GLOBALS['_GEN_commun']['info_application']->voir_menu==0)) {
67
	$GLOBALS['_BAZAR_']['affiche_menu']=0;
73
	$GLOBALS['_BAZAR_']['affiche_menu']=0;
68
}
74
}
Line 255... Line 261...
255
				case BAZ_VOIR_S_ABONNER : $res .= baz_s_inscrire();
261
				case BAZ_VOIR_S_ABONNER : $res .= baz_s_inscrire();
256
				break;
262
				break;
257
				case BAZ_VOIR_SAISIR : 
263
				case BAZ_VOIR_SAISIR : 
258
				if (isset ($_GET['action'])) $res .= baz_formulaire($_GET['action']) ; else $res .= baz_formulaire(BAZ_DEPOSER_ANNONCE);
264
				if (isset ($_GET['action'])) $res .= baz_formulaire($_GET['action']) ; else $res .= baz_formulaire(BAZ_DEPOSER_ANNONCE);
259
				break;
265
				break;
260
				case BAZ_VOIR_ADMIN: $res .= fiches_a_valider();
266
				case BAZ_VOIR_ADMIN: 
-
 
267
				if (isset($_GET['action'])) $res .= baz_formulaire($_GET['action']) ; else $res .= fiches_a_valider();
261
				break;
268
				break;
262
				case BAZ_VOIR_GESTION_DROITS: $res .= baz_gestion_droits();
269
				case BAZ_VOIR_GESTION_DROITS: $res .= baz_gestion_droits();
263
				break;
270
				break;
264
				
271
				default :
-
 
272
				$res .= baz_liste($GLOBALS['_BAZAR_']['id_typeannonce']);
265
			}
273
			}
266
	}
274
	}
267
	return $res ;
275
	return $res ;
268
}
276
}
Line 269... Line 277...
269
 
277
 
270
 
278
 
271
/* +--Fin du code ----------------------------------------------------------------------------------------+
279
/* +--Fin du code ----------------------------------------------------------------------------------------+
-
 
280
*
-
 
281
* $Log: bazar.php,v $
-
 
282
* Revision 1.45  2007-09-18 14:24:01  alexandre_tb
-
 
283
* onglet administrer
-
 
284
*
-
 
285
* Revision 1.44  2007-09-06 15:39:28  alexandre_tb
-
 
286
* fixation d une valeur par defaut a la variable vue pour
-
 
287
* eviter un ecran vide si pas de parametres dans le menu
-
 
288
*
-
 
289
* Revision 1.43  2007-08-27 12:26:04  alexandre_tb
272
*
290
* Mise en place de l action BAZ_VOIR_ADMIN
273
* $Log: bazar.php,v $
291
*
274
* Revision 1.42  2007-07-05 08:29:24  alexandre_tb
292
* Revision 1.42  2007-07-05 08:29:24  alexandre_tb
275
* modification du charset iso-8859-1 vers utf8 lors l'envoie des entetes xml.
293
* modification du charset iso-8859-1 vers utf8 lors l'envoie des entetes xml.
276
*
294
*