From 73bd8a10c1635236de28372ad03dc4c455289c6b Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 13 Sep 2005 09:39:22 +0000 Subject: [PATCH] Bugfix --- htdocs/telephonie/distributeurs/po.php | 29 +++++++------------------- 1 file changed, 7 insertions(+), 22 deletions(-) diff --git a/htdocs/telephonie/distributeurs/po.php b/htdocs/telephonie/distributeurs/po.php index 69b998d174e..f1c9f3bb154 100644 --- a/htdocs/telephonie/distributeurs/po.php +++ b/htdocs/telephonie/distributeurs/po.php @@ -26,30 +26,16 @@ if ($user->distributeur_id) $_GET["id"] = $user->distributeur_id; } +llxHeader(); + + $page = $_GET["page"]; $sortorder = $_GET["sortorder"]; $sortfield = $_GET["sortfield"]; - -llxHeader(); +if ($sortorder == "") $sortorder="DESC"; +if ($sortfield == "") $sortfield="p.datepo"; /* - * Sécurité accés client - */ -if ($user->societe_id > 0) -{ - $action = ''; - $socidp = $user->societe_id; -} - -if ($sortorder == "") { - $sortorder="DESC"; -} -if ($sortfield == "") { - $sortfield="p.datepo"; -} - -/* - * Recherche * * */ @@ -118,9 +104,8 @@ if ($_GET["id"]) print ''; print ''; - print_liste_field_titre("Client","po.php","s.nom"); - - print_liste_field_titre("Contrat","po.php","l.ligne"); + print_liste_field_titre("Client","po.php","s.nom","","&id=".$_GET["id"]); + print_liste_field_titre("Contrat","po.php","p.fk_contrat","","&id=".$_GET["id"]); print ''; print ''; print "\n";
DateMontantAvance DuréeAvance %