From 00bb14dc2dada8a388630cc091f98a14521ca56f Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 16 Nov 2004 21:41:54 +0000 Subject: [PATCH] Correction Erreurs --- htdocs/comm/contact.php | 36 +++++------------------------------- 1 file changed, 5 insertions(+), 31 deletions(-) diff --git a/htdocs/comm/contact.php b/htdocs/comm/contact.php index 1f764033aa0..f53f962b6c9 100644 --- a/htdocs/comm/contact.php +++ b/htdocs/comm/contact.php @@ -36,6 +36,7 @@ llxHeader(); $sortorder=$_GET["sortorder"]; $sortfield=$_GET["sortfield"]; $page=$_GET["page"]; + $socid=$_GET["socid"]; $type=$_GET["type"]; @@ -49,9 +50,9 @@ if ($user->societe_id > 0) $socid = $user->societe_id; } -$sortorder=$_GET["sortorder"]; -$sortfield=$_GET["sortfield"]; -$page=$_GET["page"]; + + + if ($sortorder == "") { @@ -61,7 +62,7 @@ if ($sortfield == "") { $sortfield="p.name"; } -$page=$_GET["page"]; + if ($page == -1) { $page = 0 ; } $limit = $conf->liste_limit; $offset = $limit * $page ; @@ -132,33 +133,6 @@ if ($result) print_barre_liste("Liste des contacts $label",$page, "contact.php", "&type=$type",$sortfield,$sortorder,"",$num); - print "
"; - - print "| *\n| "; - for ($i = 65 ; $i < 91; $i++) { - print ""; - - if ($begin == chr($i) ) - { - print "->" . chr($i) . "<-" ; - } - else - { - print chr($i) ; - } - print " | "; - } - print "
"; - - if ($sortorder == "DESC") - { - $sortorder="ASC"; - } - else - { - $sortorder="DESC"; - } - print ''; print ''; print_liste_field_titre($langs->trans("Lastname"),"contact.php","lower(p.name)", $begin,"&type=$type");