Subversion Repositories Applications.bazar

Rev

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

Rev 234 Rev 240
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 2007-04-20 12:47:42 florian Exp $
22
// CVS : $Id: bazar.fonct.rss.php,v 1.82.2.1 2007-05-24 14:52:16 neiluj 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 $
31
*@version       $Revision: 1.82.2.1 $
32
// +------------------------------------------------------------------------------------------------------+
32
// +------------------------------------------------------------------------------------------------------+
33
*/
33
*/
Line 34... Line 34...
34
 
34
 
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
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="'.BAZ_DERNIERES_FICHES.'" 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
		    $requete = 'SELECT DISTINCT bf_id_fiche, bf_titre, bf_date_debut_validite_fiche, bf_description, bn_label_nature, bf_date_creation_fiche FROM bazar_fiche, bazar_nature WHERE bn_id_nature=bf_ce_nature AND bn_ce_id_menu='.$GLOBALS['_BAZAR_']['categorie_nature'].' AND (bf_date_debut_validite_fiche<=NOW() or bf_date_debut_validite_fiche="0000-00-00") AND (bf_date_fin_validite_fiche>=NOW() or bf_date_fin_validite_fiche="0000-00-00") 
-
 
1021
			ORDER BY   bf_date_creation_fiche DESC, bf_date_fin_validite_fiche DESC, bf_date_maj_fiche DESC';
-
 
1022
		$resultat = $GLOBALS['_BAZAR_']['db']->query($requete);
-
 
1023
		if (DB::isError($resultat)) {
-
 
1024
			return ($resultat->getMessage().$resultat->getDebugInfo()) ;
-
 
1025
		}
-
 
1026
	    if($resultat->numRows() != 0) {
-
 
1027
		    $res .= '<h2>'.BAZ_DERNIERES_FICHES.'</h2>';	
-
 
1028
			$res .= '<ul class="liste_rss">';
-
 
1029
			while($ligne = $resultat->fetchRow(DB_FETCHMODE_ASSOC))
-
 
1030
			{
-
 
1031
			    $GLOBALS['_BAZAR_']['url']->addQueryString('action', BAZ_VOIR_FICHE);
-
 
1032
			    $GLOBALS['_BAZAR_']['url']->addQueryString('id_fiche', $ligne['bf_id_fiche']);
-
 
1033
			    $res .= '<li class="titre_rss"><a class="lien_rss" href="'. $GLOBALS['_BAZAR_']['url']->getURL() .'" alt="lire la fiche">'. $ligne['bf_titre'].'</a></li>';
-
 
1034
			}
-
 
1035
			$res .= '</ul>';
-
 
1036
	    	}
1020
    	}
1037
    	}
1021
	}
1038
	}
Line 1174... Line 1191...
1174
	return $res ;
1191
	return $res ;
1175
}
1192
}
Line 1176... Line 1193...
1176
 
1193
 
1177
/* +--Fin du code ----------------------------------------------------------------------------------------+
1194
/* +--Fin du code ----------------------------------------------------------------------------------------+
1178
*
1195
*
-
 
1196
* $Log: not supported by cvs2svn $
-
 
1197
* Revision 1.82  2007/04/20 12:47:42  florian
-
 
1198
* correction bugs suite au merge
1179
* $Log: not supported by cvs2svn $
1199
*
1180
* Revision 1.81  2007/04/20 09:59:41  florian
1200
* Revision 1.81  2007/04/20 09:59:41  florian
1181
* et un echo en moins!
1201
* et un echo en moins!
1182
*
1202
*
1183
* Revision 1.80  2007/04/20 09:57:21  florian
1203
* Revision 1.80  2007/04/20 09:57:21  florian
1184
* correction bugs suite au merge
1204
* correction bugs suite au merge
1185
*
1205
*
1186
* Revision 1.79  2007/04/19 14:57:41  alexandre_tb
1206
* Revision 1.79  2007/04/19 14:57:41  alexandre_tb
1187
* merge
1207
* merge
1188
*
1208
*
1189
* Revision 1.77  2007/04/04 15:15:22  neiluj
1209
* Revision 1.77  2007/04/04 15:15:22  neiluj
1190
* débug pour nom wiki
1210
* débug pour nom wiki
1191
*
1211
*
Line 1308... Line 1328...
1308
* Revision 1.48  2006/05/17 09:50:13  alexandre_tb
1328
* Revision 1.48  2006/05/17 09:50:13  alexandre_tb
1309
* Ajout du moteur de recherche évolué et du découpage par page
1329
* Ajout du moteur de recherche évolué et du découpage par page
1310
*
1330
*
1311
* +-- Fin du code ----------------------------------------------------------------------------------------+
1331
* +-- Fin du code ----------------------------------------------------------------------------------------+
1312
*/
1332
*/
1313
?>
-
 
1314
1333
?>
-
 
1334