Ajout recherche par référence

This commit is contained in:
Rodolphe Quiedeville 2003-09-03 13:49:34 +00:00
parent 2f15430fac
commit 6c7f4cceb3

View File

@ -712,13 +712,13 @@ if ($propalid)
* *
*/ */
} else { } else {
/* /****************************************************************************
* * *
* * *
* Mode Liste des propales * Mode Liste des propales *
* * *
* * *
*/ ****************************************************************************/
if ($sortfield == "") if ($sortfield == "")
{ {
@ -758,6 +758,11 @@ if ($propalid)
$sql .= " AND date_format(p.datep, '%Y') = $year"; $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 .= " ORDER BY $sortfield $sortorder";
$sql .= $db->plimit($limit + 1,$offset); $sql .= $db->plimit($limit + 1,$offset);