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.60.2.6 2007-02-15 13:42:16 jp_milcent Exp $
|
22 |
// CVS : $Id: bazar.fonct.rss.php,v 1.60.2.7 2007-02-15 17:39:00 jp_milcent 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.60.2.6 $
|
31 |
*@version $Revision: 1.60.2.7 $
|
32 |
// +------------------------------------------------------------------------------------------------------+
|
32 |
// +------------------------------------------------------------------------------------------------------+
|
33 |
*/
|
33 |
*/
|
Line 34... |
Line 34... |
34 |
|
34 |
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
Line 166... |
Line 166... |
166 |
|
166 |
|
167 |
$resultat = $GLOBALS['_BAZAR_']['db']->query($requete) ;
|
167 |
$resultat = $GLOBALS['_BAZAR_']['db']->query($requete) ;
|
168 |
(DB::isError($resultat)) ? die(BOG_afficherErreurSql(__FILE__, __LINE__, $resultat->getMessage(), $requete))
|
168 |
(DB::isError($resultat)) ? die(BOG_afficherErreurSql(__FILE__, __LINE__, $resultat->getMessage(), $requete))
|
Line 169... |
Line 169... |
169 |
: '';
|
169 |
: '';
|
170 |
|
170 |
|
Line 171... |
Line 171... |
171 |
$ligne = $resultat->fetchRow(DB_FETCHMODE_ASSOC) ;
|
171 |
$ligne = $resultat->fetchRow(DB_FETCHMODE_ASSOC) ;
|
172 |
if (!isset($GLOBALS['_BAZAR_']['id_typeannonce'])) $GLOBALS['_BAZAR_']['id_typeannonce'] = $ligne['bf_ce_nature'];
|
172 |
if (!isset($GLOBALS['_BAZAR_']['typeannonce'])) $GLOBALS['_BAZAR_']['typeannonce'] = $ligne['bf_ce_nature'];
|
173 |
|
173 |
|
- |
|
174 |
//on verifie si l'utilisateur est administrateur
|
174 |
//on verifie si l'utilisateur est administrateur
|
175 |
$est_admin=0;
|
175 |
$est_admin=0;
|
176 |
$requete='SELECT bn_id_nature, bn_template, bn_commentaire FROM bazar_nature WHERE bn_id_nature="'.$GLOBALS['_BAZAR_']['typeannonce'].'"';
|
176 |
$requete='SELECT bn_id_nature, bn_template, bn_commentaire, bn_label_nature FROM bazar_nature WHERE bn_id_nature = '.$GLOBALS['_BAZAR_']['id_typeannonce'];
|
177 |
|
177 |
$resultat = $GLOBALS['_BAZAR_']['db']->query($requete) ;
|
178 |
$resultat = $GLOBALS['_BAZAR_']['db']->query($requete) ;
|
178 |
if (DB::isError($resultat)) {
|
179 |
if (DB::isError($resultat)) {
|
Line 1019... |
Line 1020... |
1019 |
}
|
1020 |
}
|
Line 1020... |
Line 1021... |
1020 |
|
1021 |
|
1021 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
1022 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
1022 |
*
|
1023 |
*
|
- |
|
1024 |
* $Log: not supported by cvs2svn $
|
- |
|
1025 |
* Revision 1.60.2.6 2007/02/15 13:42:16 jp_milcent
|
- |
|
1026 |
* Utilisation de IN à la place du = dans les requêtes traitant les catégories de fiches.
|
- |
|
1027 |
* Permet d'utiliser la syntaxe 1,2,3 dans la configuration de categorie_nature.
|
1023 |
* $Log: not supported by cvs2svn $
|
1028 |
*
|
1024 |
* Revision 1.60.2.5 2007/02/02 13:46:54 alexandre_tb
|
1029 |
* Revision 1.60.2.5 2007/02/02 13:46:54 alexandre_tb
|
1025 |
* correction bug sur une date
|
1030 |
* correction bug sur une date
|
1026 |
*
|
1031 |
*
|
1027 |
* Revision 1.60.2.4 2007/01/30 15:45:01 alexandre_tb
|
1032 |
* Revision 1.60.2.4 2007/01/30 15:45:01 alexandre_tb
|