From c98545010bdcdeaa51ad20ec74ca368214552e47 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 10 Jul 2013 23:57:18 +0200 Subject: [PATCH] Fix: Navigation --- htdocs/adherents/cotisations.php | 2 ++ htdocs/fourn/commande/liste.php | 14 +++++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/htdocs/adherents/cotisations.php b/htdocs/adherents/cotisations.php index 1175f22536c..d0615896cc6 100644 --- a/htdocs/adherents/cotisations.php +++ b/htdocs/adherents/cotisations.php @@ -88,6 +88,8 @@ if ($result) $title=$langs->trans("ListOfSubscriptions"); if (! empty($date_select)) $title.=' ('.$langs->trans("Year").' '.$date_select.')'; + + $param=""; $param.="&statut=$statut&date_select=$date_select"; print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder,'',$num); diff --git a/htdocs/fourn/commande/liste.php b/htdocs/fourn/commande/liste.php index bfd2be80cd5..26b8ab9f006 100644 --- a/htdocs/fourn/commande/liste.php +++ b/htdocs/fourn/commande/liste.php @@ -33,6 +33,10 @@ $sref=GETPOST('search_ref'); $snom=GETPOST('search_nom'); $suser=GETPOST('search_user'); $sttc=GETPOST('search_ttc'); +$search_ref=GETPOST('search_ref'); +$search_nom=GETPOST('search_nom'); +$search_user=GETPOST('search_user'); +$search_ttc=GETPOST('search_ttc'); $sall=GETPOST('search_all'); $page = GETPOST('page','int'); @@ -119,9 +123,13 @@ if ($resql) $num = $db->num_rows($resql); $i = 0; - - print_barre_liste($title, $page, "liste.php", "", $sortfield, $sortorder, '', $num); - print '
'; + $param=""; + if ($search_ref) $param.="&search_ref=".$search_ref; + if ($search_nom) $param.="&search_nom=".$search_nom; + if ($search_user) $param.="&search_user=".$search_user; + if ($search_ttc) $param.="&search_ttc=".$search_ttc; + print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, '', $num); + print ''; print ''; print ''; print_liste_field_titre($langs->trans("Ref"),$_SERVER["PHP_SELF"],"cf.ref","","",'',$sortfield,$sortorder);