Subversion Repositories Applications.bazar

Rev

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

Rev 314 Rev 320
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.47 2007-10-01 12:13:53 alexandre_tb Exp $
22
// CVS : $Id: bazar.php,v 1.48 2007-10-17 08:24:59 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.47 $ $Date: 2007-10-01 12:13:53 $
31
*@version       $Revision: 1.48 $ $Date: 2007-10-17 08:24:59 $
32
// +------------------------------------------------------------------------------------------------------+
32
// +------------------------------------------------------------------------------------------------------+
33
*/
33
*/
Line 34... Line 34...
34
 
34
 
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
Line 110... Line 110...
110
if (isset($_REQUEST['typeannonce'])) {
110
if (isset($_REQUEST['typeannonce'])) {
111
	$GLOBALS['_BAZAR_']['id_typeannonce']=$_REQUEST['typeannonce'];
111
	$GLOBALS['_BAZAR_']['id_typeannonce']=$_REQUEST['typeannonce'];
112
}
112
}
Line 113... Line 113...
113
 
113
 
114
if ((isset($GLOBALS['_BAZAR_']['id_typeannonce']))and($GLOBALS['_BAZAR_']['id_typeannonce']!='toutes')) {
114
if ((isset($GLOBALS['_BAZAR_']['id_typeannonce']))and($GLOBALS['_BAZAR_']['id_typeannonce']!='toutes')) {
-
 
115
	$requete = 'SELECT bn_label_nature, bn_condition, bn_template, bn_commentaire, bn_appropriation, bn_image_titre, bn_image_logo';
-
 
116
	$requete .= ' FROM bazar_nature WHERE bn_id_nature = '.$GLOBALS['_BAZAR_']['id_typeannonce'];
-
 
117
	if (isset($GLOBALS['_BAZAR_']['langue'])) {
-
 
118
		$requete .= ' and bn_ce_i18n like "'.$GLOBALS['_BAZAR_']['langue'].'%"';
115
	$requete = 'SELECT bn_label_nature, bn_condition, bn_template, bn_commentaire, bn_appropriation, bn_image_titre, bn_image_logo FROM bazar_nature WHERE bn_id_nature = '.$GLOBALS['_BAZAR_']['id_typeannonce'];
119
	}
116
	$resultat = $GLOBALS['_BAZAR_']['db']->query($requete) ;
120
	$resultat = $GLOBALS['_BAZAR_']['db']->query($requete) ;
117
	if (DB::isError($resultat)) {
121
	if (DB::isError($resultat)) {
118
		die ($resultat->getMessage().$resultat->getDebugInfo()) ;
122
		die ($resultat->getMessage().$resultat->getDebugInfo()) ;
119
	}
123
	}
Line 277... Line 281...
277
 
281
 
278
 
282
 
279
/* +--Fin du code ----------------------------------------------------------------------------------------+
283
/* +--Fin du code ----------------------------------------------------------------------------------------+
-
 
284
*
-
 
285
* $Log: not supported by cvs2svn $
-
 
286
* Revision 1.47  2007-10-01 12:13:53  alexandre_tb
280
*
287
* bug, affichage vue / action pour la vue "administrer"
281
* $Log: not supported by cvs2svn $
288
*
282
* Revision 1.46  2007-09-28 14:29:13  jp_milcent
289
* Revision 1.46  2007-09-28 14:29:13  jp_milcent
283
* Ajout de la gestion de l'affichage des vues ou pas.
290
* Ajout de la gestion de l'affichage des vues ou pas.
284
*
291
*