diff --git a/htdocs/fourn/contact.php b/htdocs/fourn/contact.php index 18fb443c076..a6669d41bb4 100644 --- a/htdocs/fourn/contact.php +++ b/htdocs/fourn/contact.php @@ -21,6 +21,8 @@ */ require("./pre.inc.php"); +$langs->load("companies"); + llxHeader(); /* @@ -103,15 +105,15 @@ if ($result) { } else { $sortorder="DESC"; } - print '

'; - print ""; - print "
"; - print_liste_field_titre("Nom","contact.php","lower(p.name)", $begin); + print ''; + print ""; + print "'; + print_liste_field_titre($langs->trans("Company"),"contact.php","lower(s.nom)", $begin); + print ''; print "\n"; $var=True; $i = 0; @@ -121,20 +123,20 @@ if ($result) { $var=!$var; - print ""; + print ""; print ''; print ''; - print '\n"; - print "\n"; + print '\n"; + print "\n"; print ''; - print "\n"; + print "\n"; $i++; } - print "
"; + print_liste_field_titre($langs->trans("Lastname"),"contact.php","lower(p.name)", $begin); print ""; - print_liste_field_titre("Prénom","contact.php","lower(p.firstname)", $begin); + print_liste_field_titre($langs->trans("Firstname"),"contact.php","lower(p.firstname)", $begin); print ""; - print_liste_field_titre("Société","contact.php","lower(s.nom)", $begin); - print 'emailTéléphone'.$langs->trans("Email").''.$langs->trans("Phone").'
'.$obj->name.''.$obj->firstname.' '; - print "idp\">$obj->nom$obj->email  '; + print "idp\">$obj->nom$obj->email '.$obj->phone.'
"; + print "
"; $db->free(); } else { print_barre_liste("Liste des contacts $label",$page, "contact.php"); diff --git a/htdocs/fourn/facture/fiche.php b/htdocs/fourn/facture/fiche.php index f74708c40e4..b18b9399bac 100644 --- a/htdocs/fourn/facture/fiche.php +++ b/htdocs/fourn/facture/fiche.php @@ -218,7 +218,7 @@ if ($_GET["action"] == 'create' or $_GET["action"] == 'copy') $i = 0; while ($i < $num) { - $obj = $db->fetch_object($i); + $obj = $db->fetch_object(); print '\n"; $i++; } @@ -158,7 +158,7 @@ if ($action == 'create') $i = 0; while ($i < $num) { - $objopt = $db->fetch_object( $i); + $objopt = $db->fetch_object(); print '

"; @@ -236,7 +236,7 @@ if ($socid > 0) { if ( $db->query($sql) ) { $i = 0 ; $num = $db->num_rows(); $tag = True; while ($i < $num) { - $obj = $db->fetch_object( $i); + $obj = $db->fetch_object(); if ($tag) { print ""; } else { diff --git a/htdocs/postnuke/articles/index.php b/htdocs/postnuke/articles/index.php index 367fb14bfe5..fce5ff68164 100644 --- a/htdocs/postnuke/articles/index.php +++ b/htdocs/postnuke/articles/index.php @@ -56,7 +56,7 @@ if ( $db->query($sql) ) $var=True; while ($i < $num) { - $objp = $db->fetch_object( $i); + $objp = $db->fetch_object(); $var=!$var; print "";