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.81 2007-04-20 09:59:41 florian Exp $
|
22 |
// CVS : $Id: bazar.fonct.rss.php,v 1.82 2007-04-20 12:47:42 florian 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.81 $
|
31 |
*@version $Revision: 1.82 $
|
32 |
// +------------------------------------------------------------------------------------------------------+
|
32 |
// +------------------------------------------------------------------------------------------------------+
|
33 |
*/
|
33 |
*/
|
Line 34... |
Line 34... |
34 |
|
34 |
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
Line 617... |
Line 617... |
617 |
$req_where=1;
|
617 |
$req_where=1;
|
618 |
//le nom du flux devient le type d'annonce
|
618 |
//le nom du flux devient le type d'annonce
|
619 |
$requete_nom_flux = 'select bn_label_nature from bazar_nature where bn_id_nature = '.$typeannonce;
|
619 |
$requete_nom_flux = 'select bn_label_nature from bazar_nature where bn_id_nature = '.$typeannonce;
|
620 |
$nomflux = $GLOBALS['_BAZAR_']['db']->getOne($requete_nom_flux) ;
|
620 |
$nomflux = $GLOBALS['_BAZAR_']['db']->getOne($requete_nom_flux) ;
|
621 |
}
|
621 |
}
|
622 |
// Cas où il y plusieurs type d annonce demande
|
622 |
// Cas ou il y plusieurs type d annonce demande
|
623 |
if (is_array ($typeannonce)) {
|
623 |
if (is_array ($typeannonce)) {
|
624 |
if ($req_where==1) {$requete .= ' AND ';}
|
624 |
if ($req_where==1) {$requete .= ' AND ';}
|
625 |
$requete .= 'bf_ce_nature IN (' ;
|
625 |
$requete .= 'bf_ce_nature IN (' ;
|
626 |
$chaine = '';
|
626 |
$chaine = '';
|
627 |
foreach ($typeannonce as $valeur) $chaine .= '"'.$valeur.'",' ;
|
627 |
foreach ($typeannonce as $valeur) $chaine .= '"'.$valeur.'",' ;
|
Line 686... |
Line 686... |
686 |
$xml .= "\r\n ";
|
686 |
$xml .= "\r\n ";
|
687 |
$xml .= XML_Util::createStartElement ('rss', array('version' => '2.0')) ;
|
687 |
$xml .= XML_Util::createStartElement ('rss', array('version' => '2.0')) ;
|
688 |
$xml .= "\r\n ";
|
688 |
$xml .= "\r\n ";
|
689 |
$xml .= XML_Util::createStartElement ('channel');
|
689 |
$xml .= XML_Util::createStartElement ('channel');
|
690 |
$xml .= "\r\n ";
|
690 |
$xml .= "\r\n ";
|
691 |
$xml .= XML_Util::createTag ('title', null, html_entity_decode($nomflux));
|
691 |
$xml .= XML_Util::createTag ('title', null, utf8_encode(html_entity_decode($nomflux)));
|
692 |
$xml .= "\r\n ";
|
692 |
$xml .= "\r\n ";
|
693 |
$xml .= XML_Util::createTag ('link', null, BAZ_RSS_ADRESSESITE);
|
693 |
$xml .= XML_Util::createTag ('link', null, utf8_encode(html_entity_decode(BAZ_RSS_ADRESSESITE)));
|
694 |
$xml .= "\r\n ";
|
694 |
$xml .= "\r\n ";
|
695 |
$xml .= XML_Util::createTag ('description', null, BAZ_RSS_DESCRIPTIONSITE);
|
695 |
$xml .= XML_Util::createTag ('description', null, utf8_encode(html_entity_decode(BAZ_RSS_DESCRIPTIONSITE)));
|
696 |
$xml .= "\r\n ";
|
696 |
$xml .= "\r\n ";
|
697 |
$xml .= XML_Util::createTag ('language', null, 'fr-FR');
|
697 |
$xml .= XML_Util::createTag ('language', null, 'fr-FR');
|
698 |
$xml .= "\r\n ";
|
698 |
$xml .= "\r\n ";
|
699 |
$xml .= XML_Util::createTag ('copyright', null, 'Copyright (c) '. date('Y') .' '. BAZ_RSS_NOMSITE);
|
699 |
$xml .= XML_Util::createTag ('copyright', null, 'Copyright (c) '. date('Y') .' '. BAZ_RSS_NOMSITE);
|
700 |
$xml .= "\r\n ";
|
700 |
$xml .= "\r\n ";
|
Line 1014... |
Line 1014... |
1014 |
if (!isset($_REQUEST['recherche_effectuee'])) {
|
1014 |
if (!isset($_REQUEST['recherche_effectuee'])) {
|
1015 |
$res .= '<p class="zone_info">'.BAZ_ENTRER_VOS_CRITERES_DE_RECHERCHE.'</p>'."\n";
|
1015 |
$res .= '<p class="zone_info">'.BAZ_ENTRER_VOS_CRITERES_DE_RECHERCHE.'</p>'."\n";
|
1016 |
$GLOBALS['_BAZAR_']['url']->addQueryString('action',BAZ_VOIR_FLUX_RSS);
|
1016 |
$GLOBALS['_BAZAR_']['url']->addQueryString('action',BAZ_VOIR_FLUX_RSS);
|
1017 |
$GLOBALS['_BAZAR_']['url']->addQueryString('annonce',$GLOBALS['_BAZAR_']['id_typeannonce']);
|
1017 |
$GLOBALS['_BAZAR_']['url']->addQueryString('annonce',$GLOBALS['_BAZAR_']['id_typeannonce']);
|
1018 |
if ($GLOBALS['_BAZAR_']['categorie_nature']!=0) $GLOBALS['_BAZAR_']['url']->addQueryString('categorie_nature',$GLOBALS['_BAZAR_']['categorie_nature']);
|
1018 |
if ($GLOBALS['_BAZAR_']['categorie_nature']!=0) $GLOBALS['_BAZAR_']['url']->addQueryString('categorie_nature',$GLOBALS['_BAZAR_']['categorie_nature']);
|
1019 |
$res .= '{{Syndication titre="Dernières actualités" url="'.$GLOBALS['_BAZAR_']['url']->getURL().'" nb=10 nouvellefenetre=0 formatdate="'.BAZ_TYPE_AFFICHAGE_LISTE.'"}}';
|
1019 |
$res .= '{{Syndication titre="'.BAZ_DERNIERES_FICHES.'" url="'.$GLOBALS['_BAZAR_']['url']->getURL().'" nb=10 nouvellefenetre=0 formatdate="'.BAZ_TYPE_AFFICHAGE_LISTE.'"}}';
|
1020 |
}
|
1020 |
}
|
1021 |
}
|
1021 |
}
|
Line 1175... |
Line 1175... |
1175 |
}
|
1175 |
}
|
Line 1176... |
Line 1176... |
1176 |
|
1176 |
|
1177 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
1177 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
1178 |
*
|
1178 |
*
|
- |
|
1179 |
* $Log: not supported by cvs2svn $
|
- |
|
1180 |
* Revision 1.81 2007/04/20 09:59:41 florian
|
- |
|
1181 |
* et un echo en moins!
|
1179 |
* $Log: not supported by cvs2svn $
|
1182 |
*
|
1180 |
* Revision 1.80 2007/04/20 09:57:21 florian
|
1183 |
* Revision 1.80 2007/04/20 09:57:21 florian
|
1181 |
* correction bugs suite au merge
|
1184 |
* correction bugs suite au merge
|
1182 |
*
|
1185 |
*
|
1183 |
* Revision 1.79 2007/04/19 14:57:41 alexandre_tb
|
1186 |
* Revision 1.79 2007/04/19 14:57:41 alexandre_tb
|