diff --git a/htdocs/adherents/liste.php b/htdocs/adherents/liste.php index 4ff98da15ab..095ab41f302 100644 --- a/htdocs/adherents/liste.php +++ b/htdocs/adherents/liste.php @@ -83,6 +83,10 @@ if ( $_POST["action"] == 'search') $sql.= " AND (d.prenom LIKE '%".$_POST['search']."%' OR d.nom LIKE '%".$_POST['search']."%')"; } } +if ($_GET["search_nom"]) +{ + $sql.= " AND (d.prenom LIKE '%".$_GET["search_nom"]."%' OR d.nom LIKE '%".$_GET["search_nom"]."%')"; +} if ($filter == 'uptodate') { $sql.=" AND datefin >= sysdate()"; @@ -120,7 +124,8 @@ if ($result) } $param=""; - if (isset($_GET["statut"])) $param.="&statut=$statut"; + if (isset($_GET["statut"])) $param.="&statut=$statut"; + if (isset($_GET["search_nom"])) $param.="&search_nom=".$_GET["search_nom"]; print_barre_liste($titre,$page,$_SERVER["PHP_SELF"],$param,$sortfield,$sortorder,'',$num); print "
| '.$langs->trans("Action")." | \n"; print "\n"; + // Lignes des champs de filtre + print ''; + $var=True; while ($i < $num && $i < $conf->liste_limit) { @@ -206,20 +233,18 @@ if ($result) print ''; print "rowid&action=edit&return=liste.php\">".img_edit()." "; print "rowid&action=resign&return=liste.php\">".img_disable($langs->trans("Resiliate")).""; - print " | \n"; + print ""; - print ""; + print "\n"; $i++; } + print "