Subversion Repositories Sites.tela-botanica.org

Rev

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

Rev 533 Rev 549
Line 44... Line 44...
44
	</BOUCLE_rubriques>
44
	</BOUCLE_rubriques>
45
<?php
45
<?php
Line 46... Line 46...
46
 
46
 
47
function formate_date($date) {
47
function formate_date($date) {
48
  return date('d', strtotime($date)).
48
  return date('d', strtotime($date)).
49
		 ' '.$GLOBALS['mois'][date('n',  strtotime ($date))].' '.date('Y');
49
		 ' '.$GLOBALS['mois'][date('n',  strtotime ($date))].' '.date('Y',strtotime ($date));
Line 50... Line 50...
50
}
50
}
51
 
51
 
Line 74... Line 74...
74
	$liste_nat[$ligne['bn_id_nature']] = $ligne['bn_label_nature'] ; 
74
	$liste_nat[$ligne['bn_id_nature']] = $ligne['bn_label_nature'] ; 
75
}
75
}
Line 76... Line 76...
76
 
76
 
Line 77... Line 77...
77
$nat_en_cours = '' ; 
77
$nat_en_cours = '' ; 
78
 
-
 
79
$requete = 'select * from bazar_fiche where '.
-
 
80
            'bf_statut_fiche=1 and '.   // La fiche doit être validée
78
 
81
            'bf_date_creation_fiche <= now() '.
79
$requete = 'SELECT * from bazar_fiche WHERE bf_statut_fiche=1 '.
82
	    	'and dayofyear(bf_date_creation_fiche) >= (dayofyear(now()) - 7) '.  
80
			'AND bf_date_creation_fiche >= SUBDATE(NOW(), INTERVAL 156 HOUR) '.
83
	    	'and year(bf_date_creation_fiche) = year(now()) '.
-
 
Line 84... Line 81...
84
            //'group by bf_titre '.  // à rajouter si on doit éviter d'afficher les fiches qui ont le même titre
81
			'ORDER BY bf_ce_nature ASC , bf_date_debut_evenement ASC ' ;
Line 85... Line 82...
85
            'order by bf_ce_nature ASC , bf_date_debut_evenement ASC  ' ;  // on presente les évènements les plus proches en premier'
82
			//'group by bf_titre '.  // à rajouter si on doit éviter d'afficher les fiches qui ont le même titre
86
 
83