From d15eb762db853b8b1712dc4e0bbf3b19b65c1cea Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 21 Oct 2003 14:46:23 +0000 Subject: [PATCH] Mise aux normes --- htdocs/societe.php | 87 +++++++++++++++++++++++----------------------- 1 file changed, 44 insertions(+), 43 deletions(-) diff --git a/htdocs/societe.php b/htdocs/societe.php index d14fed98980..9ed7892f0c1 100644 --- a/htdocs/societe.php +++ b/htdocs/societe.php @@ -103,7 +103,8 @@ if ($socname) { $sql .= " ORDER BY $sortfield $sortorder " . $db->plimit($conf->liste_limit, $offset); $result = $db->query($sql); -if ($result) { +if ($result) +{ $num = $db->num_rows(); $i = 0; @@ -115,49 +116,49 @@ if ($result) { { $sortorder="DESC"; } - print ""; - print ''; - print ""; - print ''; - print "\n"; - $var=True; - while ($i < $num) { - $obj = $db->fetch_object( $i); - - $var=!$var; - - print ""; - print "\n"; - print "\n"; - print '\n"; - } - else - { - print " "; - } - print "'; - } - else - { - print " "; - } - - print ''; - print "\n"; - $i++; - } - print "
"; - print_liste_field_titre("Société",$PHP_SELF,"s.nom"); - print ""; - print_liste_field_titre("Ville",$PHP_SELF,"s.ville"); - print "Fiches 
idp\">$obj->nom".$obj->ville." '; - if ($obj->client) - { - print "idp\">client"; - if ($obj->fournisseur) - { - print 'fournisseurNotifications
"; + print ''; + print ''; + print ''; + print "\n"; + $var=True; + while ($i < $num) + { + $obj = $db->fetch_object( $i); + $var=!$var; + print ""; + print "\n"; + print "\n"; + print '\n"; + } + else + { + print " "; + } + print "'; + } + else + { + print " "; + } + + print ''; + + print "\n"; + $i++; + } + + print "
'; + print_liste_field_titre("Société",$PHP_SELF,"s.nom"); + print ""; + print_liste_field_titre("Ville",$PHP_SELF,"s.ville"); + print 'Fiches 
idp\">$obj->nom".$obj->ville." '; + if ($obj->client) + { + print "idp\">client"; + if ($obj->fournisseur) + { + print 'fournisseurNotifications
"; $db->free(); } else