Ne faire apparaitre dans l'admin que les sondages actifs ou expires depuis x mois

This commit is contained in:
pyg77 2013-02-28 18:26:26 +01:00
parent 4c6fc65603
commit 05c8ba7c66

View File

@ -97,7 +97,7 @@ while($dsondage = $sondage->FetchNextObject(false)) {
} }
$sondage=$connect->Execute("select * from sondage ORDER BY date_fin ASC"); $sondage=$connect->Execute("select * from sondage WHERE date_fin > DATE_SUB(now(), INTERVAL 3 MONTH) ORDER BY date_fin ASC");
$nbsondages=$sondage->RecordCount(); $nbsondages=$sondage->RecordCount();
echo $nbsondages.' '. _("polls in the database at this time") .'<br><br>'."\n"; echo $nbsondages.' '. _("polls in the database at this time") .'<br><br>'."\n";