Line 18... |
Line 18... |
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 |
*/
|
Line 35... |
Line 35... |
35 |
|
35 |
|
36 |
// +------------------------------------------------------------------------------------------------------+
|
36 |
// +------------------------------------------------------------------------------------------------------+
|
Line 93... |
Line 93... |
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');
|
Line 97... |
Line -... |
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)) {
|
- |
|
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');
|
- |
|
110 |
$res .='<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_TOUTES_LES_ANNONCES.'</a></li></ul></li>'."\n";
|
- |
|
111 |
$GLOBALS['_BAZAR_']['url']->removeQueryString('nature');
|
- |
|
112 |
$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
|
- |
|
113 |
|
- |
|
114 |
//partie recherche d'annonces
|
- |
|
115 |
$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_RECHERCHER_ANNONCE);
|
- |
|
116 |
$res .='<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_RECHERCHER.'</a></li>'."\n";
|
- |
|
117 |
$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
|
- |
|
118 |
|
- |
|
119 |
//pour les identifiés seulement
|
- |
|
120 |
if ($GLOBALS['AUTH']->getAuth()) {*/
|
97 |
|
121 |
//partie abonnement aux annonces
|
98 |
//partie abonnement aux annonces
|
122 |
$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_S_INSCRIRE);
|
99 |
$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_S_INSCRIRE);
|
123 |
$res .= '<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_S_ABONNER.'</a></li>'."\n" ;
|
100 |
$res .= '<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_S_ABONNER.'</a></li>'."\n" ;
|
Line 133... |
Line 110... |
133 |
$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_VOIR_VOS_ANNONCES);
|
110 |
$GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_VOIR_VOS_ANNONCES);
|
134 |
$res .='<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_VOS_ANNONCES.'</a></li>'."\n";
|
111 |
$res .='<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_VOS_ANNONCES.'</a></li>'."\n";
|
135 |
$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
|
112 |
$GLOBALS['_BAZAR_']['url']->removeQueryString('action');
|
136 |
$res .='</ul></li>'."\n";
|
113 |
$res .='</ul></li>'."\n";
|
Line 137... |
Line -... |
137 |
|
- |
|
138 |
|
114 |
|
139 |
//choix des administrateurs
|
115 |
//choix des administrateurs
|
140 |
$est_admin=0;
|
116 |
$est_admin=0;
|
141 |
if ($GLOBALS['AUTH']->getAuth()) {
|
117 |
if ($GLOBALS['AUTH']->getAuth()) {
|
142 |
$requete='SELECT bn_id_nature FROM bazar_nature';
|
118 |
$requete='SELECT bn_id_nature FROM bazar_nature';
|
Line 206... |
Line 182... |
206 |
|
182 |
|
207 |
|
183 |
|
208 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
184 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
- |
|
185 |
*
|
- |
|
186 |
* $Log: not supported by cvs2svn $
|
- |
|
187 |
* Revision 1.11 2005/10/21 16:15:04 florian
|
209 |
*
|
188 |
* mise a jour appropriation
|
210 |
* $Log: not supported by cvs2svn $
|
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 |
*
|