Subversion Repositories Applications.bazar

Rev

Rev 10 | Rev 22 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 10 Rev 11
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.7 2005-09-30 12:34:44 ddelon Exp $
22
// CVS : $Id: bazar.php,v 1.8 2005-09-30 13:00:05 ddelon 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.7 $ $Date: 2005-09-30 12:34:44 $
31
*@version       $Revision: 1.8 $ $Date: 2005-09-30 13:00:05 $
32
// +------------------------------------------------------------------------------------------------------+
32
// +------------------------------------------------------------------------------------------------------+
33
*/
33
*/
Line 34... Line 34...
34
 
34
 
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
Line 92... Line 92...
92
	$GLOBALS['_BAZAR_']['url']->addQueryString('nature', 'toutes');
92
	$GLOBALS['_BAZAR_']['url']->addQueryString('nature', 'toutes');
93
	//partie consultation d'annonces
93
	//partie consultation d'annonces
94
	$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";
95
	$GLOBALS['_BAZAR_']['url']->removeQueryString('nature');
95
	$GLOBALS['_BAZAR_']['url']->removeQueryString('nature');
Line 96... Line 96...
96
	
96
	
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 ;
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.' or  bn_ce_id_menu=0';
98
	$resultat = $GLOBALS['_BAZAR_']['db']->query($requete) ;
98
	$resultat = $GLOBALS['_BAZAR_']['db']->query($requete) ;
99
	if (DB::isError($resultat)) {
99
	if (DB::isError($resultat)) {
100
		die ($resultat->getMessage().$resultat->getDebugInfo()) ;
100
		die ($resultat->getMessage().$resultat->getDebugInfo()) ;
101
	}
101
	}
Line 207... Line 207...
207
 
207
 
208
 
208
 
209
/* +--Fin du code ----------------------------------------------------------------------------------------+
209
/* +--Fin du code ----------------------------------------------------------------------------------------+
-
 
210
*
-
 
211
* $Log: not supported by cvs2svn $
-
 
212
* Revision 1.7  2005/09/30 12:34:44  ddelon
210
*
213
* petite modification pour integration bazar dans papyrus
211
* $Log: not supported by cvs2svn $
214
*
212
* Revision 1.6  2005/09/30 12:22:54  florian
215
* Revision 1.6  2005/09/30 12:22:54  florian
213
* Ajouts commentaires pour fiche, modifications graphiques, maj SQL
216
* Ajouts commentaires pour fiche, modifications graphiques, maj SQL
214
*
217
*