From 81a5daec26bbb793a3259e5e07c393c045dde95f Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 16 May 2003 13:15:36 +0000 Subject: [PATCH] =?UTF-8?q?Am=E9lioration=20de=20la=20pr=E9sentation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/comm/fiche.php3 | 37 ++++++++++++++++++------------------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/htdocs/comm/fiche.php3 b/htdocs/comm/fiche.php3 index 5dde7b57846..ce1469ff986 100644 --- a/htdocs/comm/fiche.php3 +++ b/htdocs/comm/fiche.php3 @@ -127,13 +127,15 @@ if ($socid > 0) { $result = $db->query($sql); - if ($result) { - $objsoc = $db->fetch_object(0); + if ($result) + { + $objsoc = $db->fetch_object(0); - $dac = strftime("%Y-%m-%d %H:%M", time()); - if ($errmesg) { - print "$errmesg
"; - } + $dac = strftime("%Y-%m-%d %H:%M", time()); + if ($errmesg) + { + print "$errmesg
"; + } /* * @@ -266,7 +268,6 @@ if ($socid > 0) { * */ if ($action == 'changevalue') { - print "
"; print "
idp\" method=\"post\">"; print ""; @@ -284,26 +285,24 @@ if ($socid > 0) { * Liste des contacts * */ - print '
'; - print ''; - print ""; - print ''; - print ""; - print ""; + print ''; + print ''; + print ""; + print ""; $sql = "SELECT p.idp, p.name, p.firstname, p.poste, p.phone, p.fax, p.email, p.note FROM socpeople as p WHERE p.fk_soc = $objsoc->idp ORDER by p.datec"; $result = $db->query($sql); $i = 0 ; $num = $db->num_rows(); $tag = True; - while ($i < $num) { + while ($i < $num) + { $obj = $db->fetch_object( $i); $var = !$var; print ""; print ''; print ''; print ''; - print ""; + print ""; print "\n"; $i++; $tag = !$tag; } print "
Prénom NomPosteTélFaxEmailidp&action=addcontact\">Ajouter
Prénom NomPosteTélFaxEmailidp&action=addcontact\">Ajouter
'; - //print ''; - //print ' '; + print ''.$obj->firstname.' '. $obj->name.' '; if ($obj->note) @@ -315,14 +314,14 @@ if ($socid > 0) { print ''.$obj->phone.' '.$obj->fax.' '.$obj->email.' idp&action=editcontact&contactid=$obj->idp\">Modifieridp&action=editcontact&contactid=$obj->idp\">Modifier
"; - print '
'; - print "\n
\n"; + + print "

"; /* *