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.30 2006-04-28 12:46:14 florian Exp $
|
22 |
// CVS : $Id: bazar.php,v 1.31 2006-05-19 13:54:32 florian 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.30 $ $Date: 2006-04-28 12:46:14 $
|
31 |
*@version $Revision: 1.31 $ $Date: 2006-05-19 13:54:32 $
|
32 |
// +------------------------------------------------------------------------------------------------------+
|
32 |
// +------------------------------------------------------------------------------------------------------+
|
33 |
*/
|
33 |
*/
|
Line 34... |
Line 34... |
34 |
|
34 |
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
Line 61... |
Line 61... |
61 |
}
|
61 |
}
|
62 |
else $GLOBALS['_BAZAR_']['affiche_menu']=1;
|
62 |
else $GLOBALS['_BAZAR_']['affiche_menu']=1;
|
63 |
//parametre categorie_nature pour préciser quels types de fiches sont montrees (par défaut, il affiche les id_menu=0)
|
63 |
//parametre categorie_nature pour préciser quels types de fiches sont montrees (par défaut, il affiche les id_menu=0)
|
64 |
if (isset($GLOBALS['_GEN_commun']['info_application']->categorie_nature)) {
|
64 |
if (isset($GLOBALS['_GEN_commun']['info_application']->categorie_nature)) {
|
65 |
$GLOBALS['_BAZAR_']['categorie_nature']=$GLOBALS['_GEN_commun']['info_application']->categorie_nature;
|
65 |
$GLOBALS['_BAZAR_']['categorie_nature']=$GLOBALS['_GEN_commun']['info_application']->categorie_nature;
|
- |
|
66 |
}
|
- |
|
67 |
elseif (isset($_REQUEST['categorie_nature'])) {
|
66 |
$GLOBALS['_BAZAR_']['filtre'] = $GLOBALS['_BAZAR_']['categorie_nature'] ;
|
68 |
$GLOBALS['_BAZAR_']['categorie_nature']=$_REQUEST['categorie_nature'];
|
67 |
}
|
69 |
}
|
68 |
else $GLOBALS['_BAZAR_']['categorie_nature']=0;
|
70 |
else $GLOBALS['_BAZAR_']['categorie_nature']=0;
|
69 |
//parametre id_nature pour afficher un certain type de fiche (par défaut, tous les types de fiches)
|
71 |
//parametre id_nature pour afficher un certain type de fiche (par défaut, tous les types de fiches)
|
70 |
if (isset($GLOBALS['_GEN_commun']['info_application']->id_nature)) {
|
72 |
if (isset($GLOBALS['_GEN_commun']['info_application']->id_nature)) {
|
71 |
$GLOBALS['_BAZAR_']['id_typeannonce']=$GLOBALS['_GEN_commun']['info_application']->id_nature;
|
73 |
$GLOBALS['_BAZAR_']['id_typeannonce']=$GLOBALS['_GEN_commun']['info_application']->id_nature;
|
Line 116... |
Line 118... |
116 |
if ($GLOBALS['_BAZAR_']['affiche_menu']) {
|
118 |
if ($GLOBALS['_BAZAR_']['affiche_menu']) {
|
117 |
//---------------le menu de l'appli-----------
|
119 |
//---------------le menu de l'appli-----------
|
118 |
function afficherContenuNavigation () {
|
120 |
function afficherContenuNavigation () {
|
119 |
$res ='<ul id="BAZ_menu">'."\n";
|
121 |
$res ='<ul id="BAZ_menu">'."\n";
|
120 |
$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_VOIR_TOUTES_ANNONCES);
|
122 |
$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_VOIR_TOUTES_ANNONCES);
|
121 |
$GLOBALS['_BAZAR_']['url']->addQueryString('nature', 'toutes');
|
- |
|
122 |
//partie consultation d'annonces
|
123 |
//partie consultation d'annonces
|
123 |
$res .= '<li id="consulter"><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_CONSULTER.'</a>'."\n".'</li>'."\n";
|
124 |
$res .= '<li id="consulter"><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_CONSULTER.'</a>'."\n".'</li>'."\n";
|
124 |
$GLOBALS['_BAZAR_']['url']->removeQueryString('nature');
|
125 |
$GLOBALS['_BAZAR_']['url']->removeQueryString('nature');
|
Line 125... |
Line 126... |
125 |
|
126 |
|
Line 201... |
Line 202... |
201 |
|
202 |
|
202 |
|
203 |
|
203 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
204 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
- |
|
205 |
*
|
- |
|
206 |
* $Log: not supported by cvs2svn $
|
- |
|
207 |
* Revision 1.30 2006/04/28 12:46:14 florian
|
204 |
*
|
208 |
* integration des liens vers annuaire
|
205 |
* $Log: not supported by cvs2svn $
|
209 |
*
|
206 |
* Revision 1.29 2006/04/24 10:16:22 alexandre_tb
|
210 |
* Revision 1.29 2006/04/24 10:16:22 alexandre_tb
|
207 |
* ajout de la globale filtre.
|
211 |
* ajout de la globale filtre.
|
208 |
* elle remplace (à terme) catégorie nature
|
212 |
* elle remplace (à terme) catégorie nature
|