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.82.2.3 2007-05-24 15:33:57 neiluj Exp $
|
22 |
// CVS : $Id: bazar.fonct.rss.php,v 1.82.2.4 2007-08-24 13:06:05 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.82.2.3 $
|
31 |
*@version $Revision: 1.82.2.4 $
|
32 |
// +------------------------------------------------------------------------------------------------------+
|
32 |
// +------------------------------------------------------------------------------------------------------+
|
33 |
*/
|
33 |
*/
|
Line 34... |
Line 34... |
34 |
|
34 |
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
Line 723... |
Line 723... |
723 |
// Creation des items : titre + lien + description + date de publication
|
723 |
// Creation des items : titre + lien + description + date de publication
|
724 |
while ($ligne = $resultat->fetchRow(DB_FETCHMODE_ASSOC)) {
|
724 |
while ($ligne = $resultat->fetchRow(DB_FETCHMODE_ASSOC)) {
|
725 |
$xml .= "\r\n ";
|
725 |
$xml .= "\r\n ";
|
726 |
$xml .= XML_Util::createStartElement ('item');
|
726 |
$xml .= XML_Util::createStartElement ('item');
|
727 |
$xml .= "\r\n ";
|
727 |
$xml .= "\r\n ";
|
728 |
$xml .= XML_Util::createTag ('title', null, html_entity_decode(($ligne['bf_titre'])));
|
728 |
$xml .= XML_Util::createTag ('title', null, utf8_encode(html_entity_decode(($ligne['bf_titre']))));
|
729 |
$xml .= "\r\n ";
|
729 |
$xml .= "\r\n ";
|
730 |
$lien=$GLOBALS['_BAZAR_']['url'];
|
730 |
$lien=$GLOBALS['_BAZAR_']['url'];
|
731 |
$lien->addQueryString('action', BAZ_VOIR_FICHE);
|
731 |
$lien->addQueryString('action', BAZ_VOIR_FICHE);
|
732 |
$lien->addQueryString('id_fiche', $ligne['bf_id_fiche']);
|
732 |
$lien->addQueryString('id_fiche', $ligne['bf_id_fiche']);
|
733 |
$xml .= XML_Util::createTag ('link', null, $lien->getURL());
|
733 |
$xml .= XML_Util::createTag ('link', null, $lien->getURL());
|
Line 735... |
Line 735... |
735 |
$xml .= XML_Util::createTag ('guid', null, $lien->getURL());
|
735 |
$xml .= XML_Util::createTag ('guid', null, $lien->getURL());
|
736 |
$xml .= "\r\n ";
|
736 |
$xml .= "\r\n ";
|
737 |
$xml .= XML_Util::createStartElement ('description');
|
737 |
$xml .= XML_Util::createStartElement ('description');
|
738 |
$xml .= "\r\n ";
|
738 |
$xml .= "\r\n ";
|
739 |
if ($_GET['action'] != BAZ_VOIR_TOUTES_ANNONCES) {
|
739 |
if ($_GET['action'] != BAZ_VOIR_TOUTES_ANNONCES) {
|
740 |
$xml .= XML_Util::createCDataSection ( html_entity_decode(($ligne['bf_description'])));
|
740 |
$xml .= XML_Util::createCDataSection ( utf8_encode(html_entity_decode(($ligne['bf_description']))));
|
741 |
}
|
741 |
}
|
742 |
$xml .= "\r\n ";
|
742 |
$xml .= "\r\n ";
|
743 |
$xml .= XML_Util::createEndElement ('description');
|
743 |
$xml .= XML_Util::createEndElement ('description');
|
744 |
$xml .= "\r\n ";
|
744 |
$xml .= "\r\n ";
|
745 |
if ($ligne['bf_date_debut_validite_fiche'] != '0000-00-00' &&
|
745 |
if ($ligne['bf_date_debut_validite_fiche'] != '0000-00-00' &&
|
Line 1192... |
Line 1192... |
1192 |
return $res ;
|
1192 |
return $res ;
|
1193 |
}
|
1193 |
}
|
Line 1194... |
Line 1194... |
1194 |
|
1194 |
|
1195 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
1195 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
1196 |
*
|
1196 |
*
|
- |
|
1197 |
* $Log: not supported by cvs2svn $
|
- |
|
1198 |
* Revision 1.82.2.3 2007-05-24 15:33:57 neiluj
|
- |
|
1199 |
* correction bug de recherche avec nature='toutes' ne retournant aucun resultat
|
1197 |
* $Log: not supported by cvs2svn $
|
1200 |
*
|
1198 |
* Revision 1.82 2007/04/20 12:47:42 florian
|
1201 |
* Revision 1.82 2007/04/20 12:47:42 florian
|
1199 |
* correction bugs suite au merge
|
1202 |
* correction bugs suite au merge
|
1200 |
*
|
1203 |
*
|
1201 |
* Revision 1.81 2007/04/20 09:59:41 florian
|
1204 |
* Revision 1.81 2007/04/20 09:59:41 florian
|