Subversion Repositories Sites.tela-botanica.org

Compare Revisions

Ignore whitespace Rev 548 → Rev 549

/trunk/actu/lettre_info.html
46,7 → 46,7
 
function formate_date($date) {
return date('d', strtotime($date)).
' '.$GLOBALS['mois'][date('n', strtotime ($date))].' '.date('Y');
' '.$GLOBALS['mois'][date('n', strtotime ($date))].' '.date('Y',strtotime ($date));
}
 
include_once 'authentification.php';
76,13 → 76,10
 
$nat_en_cours = '' ;
 
$requete = 'select * from bazar_fiche where '.
'bf_statut_fiche=1 and '. // La fiche doit être validée
'bf_date_creation_fiche <= now() '.
'and dayofyear(bf_date_creation_fiche) >= (dayofyear(now()) - 7) '.
'and year(bf_date_creation_fiche) = year(now()) '.
//'group by bf_titre '. // à rajouter si on doit éviter d'afficher les fiches qui ont le même titre
'order by bf_ce_nature ASC , bf_date_debut_evenement ASC ' ; // on presente les évènements les plus proches en premier'
$requete = 'SELECT * from bazar_fiche WHERE bf_statut_fiche=1 '.
'AND bf_date_creation_fiche >= SUBDATE(NOW(), INTERVAL 156 HOUR) '.
'ORDER BY bf_ce_nature ASC , bf_date_debut_evenement ASC ' ;
//'group by bf_titre '. // à rajouter si on doit éviter d'afficher les fiches qui ont le même titre
 
$resultat = $GLOBALS['db']->query ($requete);