From 6c7f4cceb366137cc14769399da41cc853473544 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 3 Sep 2003 13:49:34 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20recherche=20par=20r=E9f=E9rence?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/comm/propal.php3 | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/htdocs/comm/propal.php3 b/htdocs/comm/propal.php3 index a2008efa6be..6c872cdbe21 100644 --- a/htdocs/comm/propal.php3 +++ b/htdocs/comm/propal.php3 @@ -712,13 +712,13 @@ if ($propalid) * */ } else { - /* - * - * - * Mode Liste des propales - * - * - */ + /**************************************************************************** + * * + * * + * Mode Liste des propales * + * * + * * + ****************************************************************************/ if ($sortfield == "") { @@ -758,6 +758,11 @@ if ($propalid) $sql .= " AND date_format(p.datep, '%Y') = $year"; } + if (strlen($HTTP_POST_VARS["sf_ref"]) > 0) + { + $sql .= " AND p.ref like '%".$HTTP_POST_VARS["sf_ref"] . "%'"; + } + $sql .= " ORDER BY $sortfield $sortorder"; $sql .= $db->plimit($limit + 1,$offset);