From 83bacb2e4040f88c981a2f502a5a00522090754e Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 29 Aug 2003 19:39:38 +0000 Subject: [PATCH] Ajout filtre pour les actions du jour --- htdocs/comm/action/index.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/htdocs/comm/action/index.php b/htdocs/comm/action/index.php index 32a05f2ea37..1e4a08b31c3 100644 --- a/htdocs/comm/action/index.php +++ b/htdocs/comm/action/index.php @@ -134,6 +134,11 @@ if ($type) $sql .= " AND c.id = $type"; } +if ($time == "today") +{ + $sql .= " AND date_format(a.datea, '%d%m%Y') = ".strftime("%d%m%Y",time()); +} + if ($socid) { $sql .= " AND s.idp = $socid";