From 4078a1243eb433a878369adf19aa0f3f19bd62a5 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@users.sourceforge.net> Date: Wed, 15 Jun 2011 08:57:55 +0000 Subject: [PATCH] Fix: Trans --- htdocs/compta/clients.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/htdocs/compta/clients.php b/htdocs/compta/clients.php index 8d0b1eae6c5..12ca59b4e2c 100644 --- a/htdocs/compta/clients.php +++ b/htdocs/compta/clients.php @@ -29,6 +29,8 @@ require('../main.inc.php'); require_once(DOL_DOCUMENT_ROOT."/contact/class/contact.class.php"); require_once(DOL_DOCUMENT_ROOT."/comm/action/class/actioncomm.class.php"); +$action=GETPOST('action'); + // Secrutiy check if ($user->societe_id > 0) { @@ -135,19 +137,15 @@ if ($socid) $sql.= " AND s.rowid = ".$socid; } $sql.= " ORDER BY $sortfield $sortorder " . $db->plimit($conf->liste_limit+1, $offset); -print $sql; +//print $sql; + $resql = $db->query($sql); if ($resql) { $num = $db->num_rows($resql); $i = 0; - if ($action == 'facturer') { - print_barre_liste("Liste des clients facturables", $page, "clients.php","",$sortfield,$sortorder,'',$num); - } - else { - print_barre_liste($langs->trans("ListOfCustomers"), $page, "clients.php","",$sortfield,$sortorder,'',$num); - } + print_barre_liste($langs->trans("ListOfCustomers"), $page, $_SERVER["PHP_SELF"],"",$sortfield,$sortorder,'',$num); print '<form method="GET" action="'.$_SERVER["PHP_SELF"].'">'; -- GitLab