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.fonct.rss.php,v 1.96 2007-10-22 10:09:21 florian Exp $
|
22 |
// CVS : $Id: bazar.fonct.rss.php,v 1.97 2007-10-24 08:56:27 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-2006
|
30 |
*@copyright Tela-Botanica 2000-2006
|
31 |
*@version $Revision: 1.96 $
|
31 |
*@version $Revision: 1.97 $
|
32 |
// +------------------------------------------------------------------------------------------------------+
|
32 |
// +------------------------------------------------------------------------------------------------------+
|
33 |
*/
|
33 |
*/
|
Line 34... |
Line 34... |
34 |
|
34 |
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
Line 849... |
Line 849... |
849 |
|
849 |
|
850 |
|
850 |
|
851 |
//cas du formulaire de recherche proposant de chercher parmis tous les types d'annonces
|
851 |
//cas du formulaire de recherche proposant de chercher parmis tous les types d'annonces
|
852 |
//requete pour obtenir l'id et le label des types d'annonces
|
852 |
//requete pour obtenir l'id et le label des types d'annonces
|
- |
|
853 |
$requete = 'SELECT bn_id_nature, bn_label_nature '.
|
853 |
$requete = 'SELECT bn_id_nature, bn_label_nature '.
|
854 |
'FROM bazar_nature WHERE bn_ce_id_menu IN ('.$GLOBALS['_BAZAR_']['categorie_nature'].') ';
|
854 |
'FROM bazar_nature WHERE bn_ce_id_menu IN ('.$GLOBALS['_BAZAR_']['categorie_nature'].') '.
|
855 |
if (isset($GLOBALS['_BAZAR_']['langue'])) $requete .= ' and bn_ce_i18n like "'.$GLOBALS['_BAZAR_']['langue'].'%" ';
|
855 |
'ORDER BY bn_label_nature ASC';
|
856 |
'ORDER BY bn_label_nature ASC';
|
856 |
$resultat = $GLOBALS['_BAZAR_']['db']->query($requete) ;
|
857 |
$resultat = $GLOBALS['_BAZAR_']['db']->query($requete) ;
|
857 |
if (DB::isError($resultat)) {
|
858 |
if (DB::isError($resultat)) {
|
Line 1238... |
Line 1239... |
1238 |
}
|
1239 |
}
|
Line 1239... |
Line 1240... |
1239 |
|
1240 |
|
1240 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
1241 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
1241 |
*
|
1242 |
*
|
- |
|
1243 |
* $Log: not supported by cvs2svn $
|
- |
|
1244 |
* Revision 1.96 2007-10-22 10:09:21 florian
|
- |
|
1245 |
* correction template
|
1242 |
* $Log: not supported by cvs2svn $
|
1246 |
*
|
1243 |
* Revision 1.95 2007-10-22 09:22:02 alexandre_tb
|
1247 |
* Revision 1.95 2007-10-22 09:22:02 alexandre_tb
|
1244 |
* prise en compte de la langue dans les requetes sur bazar_nature
|
1248 |
* prise en compte de la langue dans les requetes sur bazar_nature
|
1245 |
*
|
1249 |
*
|
1246 |
* Revision 1.94 2007-10-10 13:26:00 alexandre_tb
|
1250 |
* Revision 1.94 2007-10-10 13:26:00 alexandre_tb
|