From 05c8ba7c66f2b4cb3216b3513ca16bd3a5c2dc65 Mon Sep 17 00:00:00 2001 From: pyg77 Date: Thu, 28 Feb 2013 18:26:26 +0100 Subject: [PATCH] Ne faire apparaitre dans l'admin que les sondages actifs ou expires depuis x mois --- admin/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/index.php b/admin/index.php index 5de0e58..a926cc2 100644 --- a/admin/index.php +++ b/admin/index.php @@ -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(); echo $nbsondages.' '. _("polls in the database at this time") .'

'."\n";