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 ""; @@ -135,6 +140,28 @@ if ($result) print '\n"; print "\n"; + // Lignes des champs de filtre + print ''; + print ''; + + print ''; + + print ''; + + print ''; + + print ''; + + print ''; + + print ''; + + print "\n"; + print ''; + $var=True; while ($i < $num && $i < $conf->liste_limit) { @@ -206,20 +233,18 @@ if ($result) print '\n"; + print ""; - print ""; + print "\n"; $i++; } + print "
'.$langs->trans("Action")."
'; + print '    '; + print ''; + print '
'; print "rowid&action=edit&return=liste.php\">".img_edit()." "; print "rowid&action=resign&return=liste.php\">".img_disable($langs->trans("Resiliate")).""; - print "
\n"; if ($num > $conf->liste_limit) { - print ""; print_barre_liste($titre,$page,$_SERVER["PHP_SELF"],$param,$sortfield,$sortorder,'',$num); - print "

\n"; } - print "
"; } else { @@ -230,5 +255,4 @@ else $db->close(); llxFooter('$Date$ - $Revision$'); - ?>