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.4 2005-07-21 19:03:12 florian Exp $
|
22 |
// CVS : $Id: bazar.php,v 1.5 2005-09-28 16:06:03 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.4 $ $Date: 2005-07-21 19:03:12 $
|
31 |
*@version $Revision: 1.5 $ $Date: 2005-09-28 16:06:03 $
|
32 |
// +------------------------------------------------------------------------------------------------------+
|
32 |
// +------------------------------------------------------------------------------------------------------+
|
33 |
*/
|
33 |
*/
|
Line 34... |
Line 34... |
34 |
|
34 |
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
Line 78... |
Line 78... |
78 |
function afficherContenuCorps() {
|
78 |
function afficherContenuCorps() {
|
Line 79... |
Line 79... |
79 |
|
79 |
|
Line 80... |
Line 80... |
80 |
$GLOBALS['id_user']=$GLOBALS['AUTH']->getAuthData(BAZ_CHAMPS_ID);
|
80 |
$GLOBALS['id_user']=$GLOBALS['AUTH']->getAuthData(BAZ_CHAMPS_ID);
|
81 |
|
- |
|
82 |
$res = '';
|
81 |
|
83 |
|
82 |
$res = '';
|
84 |
//---------------l'entête de l'appli-----------
|
83 |
//---------------l'entête de l'appli-----------
|
85 |
$res.='<div id="BAZ_hautdepage">'."\n";
|
84 |
$res.='<div id="BAZ_hautdepage">'."\n";
|
Line 86... |
Line 85... |
86 |
$res.='<h1>'.BAZ_TITREAPPLI.'</h1>'."\n";
|
85 |
$res.='<h1>'.$GLOBALS['_GEN_commun']['info_menu']->gm_titre.'</h1>'."\n";
|
87 |
$res.='</div>'."\n";
|
86 |
$res.='</div>'."\n";
|
88 |
|
87 |
|
Line 93... |
Line 92... |
93 |
$GLOBALS['_BAZAR_']['url']->addQueryString('nature', 'toutes');
|
92 |
$GLOBALS['_BAZAR_']['url']->addQueryString('nature', 'toutes');
|
94 |
//partie consultation d'annonces
|
93 |
//partie consultation d'annonces
|
95 |
$res .= '<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_CONSULTER.'</a>'."\n".'<ul>'."\n";
|
94 |
$res .= '<li><a href="'.$GLOBALS['_BAZAR_']['url']->getURL().'">'.BAZ_CONSULTER.'</a>'."\n".'<ul>'."\n";
|
96 |
$GLOBALS['_BAZAR_']['url']->removeQueryString('nature');
|
95 |
$GLOBALS['_BAZAR_']['url']->removeQueryString('nature');
|
Line 97... |
Line 96... |
97 |
|
96 |
|
98 |
$requete = 'SELECT bn_id_nature, bn_label_nature FROM bazar_nature' ;
|
97 |
$requete = 'SELECT bn_id_nature, bn_label_nature FROM bazar_nature WHERE bn_ce_id_menu='.$GLOBALS['_GEN_commun']['info_menu']->gm_id_menu ;
|
99 |
$resultat = $GLOBALS['_BAZAR_']['db']->query($requete) ;
|
98 |
$resultat = $GLOBALS['_BAZAR_']['db']->query($requete) ;
|
100 |
if (DB::isError($resultat)) {
|
99 |
if (DB::isError($resultat)) {
|
101 |
die ($resultat->getMessage().$resultat->getDebugInfo()) ;
|
100 |
die ($resultat->getMessage().$resultat->getDebugInfo()) ;
|
102 |
}
|
101 |
}
|
Line 209... |
Line 208... |
209 |
|
208 |
|
210 |
|
209 |
|
211 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
210 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
- |
|
211 |
*
|
- |
|
212 |
* $Log: not supported by cvs2svn $
|
- |
|
213 |
* Revision 1.4 2005/07/21 19:03:12 florian
|
212 |
*
|
214 |
* nouveautés bazar: templates fiches, correction de bugs, ...
|
213 |
* $Log: not supported by cvs2svn $
|
215 |
*
|
214 |
* Revision 1.2 2005/02/22 15:33:32 florian
|
216 |
* Revision 1.2 2005/02/22 15:33:32 florian
|
215 |
* integration dans Papyrus
|
217 |
* integration dans Papyrus
|
216 |
*
|
218 |
*
|