From f2e89707bde7a6d5d1eddd8b692474fba07f5835 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 2 May 2003 11:57:36 +0000 Subject: [PATCH] =?UTF-8?q?Nouvelle=20pr=E9sentation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/compta/fiche.php3 | 82 +++++++++++++++++++++------------------- 1 file changed, 44 insertions(+), 38 deletions(-) diff --git a/htdocs/compta/fiche.php3 b/htdocs/compta/fiche.php3 index 00f3a9ed142..e0a8351caed 100644 --- a/htdocs/compta/fiche.php3 +++ b/htdocs/compta/fiche.php3 @@ -150,7 +150,8 @@ if ($mode == 'search') * * */ -if ($socid > 0) { +if ($socid > 0) +{ $societe = new Societe($db, $socid); @@ -199,23 +200,26 @@ if ($socid > 0) { * */ - print "\n"; + print '
'; print "
"; print ""; - print ""; - print ""; + print ''; + print '"; - print ""; + print ''; print ""; - print ""; + print ""; print "
Tel $objsoc->tel Fax$objsoc->fax 
Ville".nl2br($objsoc->address)."
$objsoc->cp $objsoc->ville
Tel'.$objsoc->tel.' Fax'.$objsoc->fax.' 
Ville'.nl2br($objsoc->address)."
$objsoc->cp $objsoc->ville
sirensiren\">$objsoc->siren 
siren'.$objsoc->siren.' prefix"; - if ($objsoc->prefix_comm) { - print $objsoc->prefix_comm; - } else { - print "[idp&action=attribute_prefix\">Attribuer]"; - } + if ($objsoc->prefix_comm) + { + print $objsoc->prefix_comm; + } + else + { + print "[idp&action=attribute_prefix\">Attribuer]"; + } print "
Siteurl\">$objsoc->url 
Siteurl\">$objsoc->url 
"; @@ -324,43 +328,45 @@ if ($socid > 0) { * Liste des contacts * */ - 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) { - $obj = $db->fetch_object( $i); - if ($tag) { - print ""; - } else { - print ""; - } - print ''; + $i = 0 ; $num = $db->num_rows(); - if ($obj->note) { - print "
".nl2br($obj->note); + while ($i < $num) + { + $obj = $db->fetch_object( $i); + $var = !$var; + + print ""; + + print ''; + + if ($obj->note) + { + print "
".nl2br($obj->note); + } + print ""; + print "
"; + print ''; + print ''; + print ''; + print ""; + print "\n"; + $i++; + $tag = !$tag; } - print ""; - print ""; - print ''; - print ''; - print ''; - print ""; - print "\n"; - $i++; - $tag = !$tag; - } print "
Prénom Nom
Prénom NomPosteTélFaxEmailidp&action=addcontact\">Ajouter
'; - //print ''; - //print ' '; - print ''.$obj->firstname.' '. $obj->name.' 
'; + //print ''; + //print ' '; + print ''.$obj->firstname.' '. $obj->name.' $obj->poste '.$obj->phone.' '.$obj->fax.' '.$obj->email.' idp&action=editcontact&contactid=$obj->idp\">Modifier
$obj->poste '.$obj->phone.' '.$obj->fax.' '.$obj->email.' idp&action=editcontact&contactid=$obj->idp\">Modifier
"; - + print "\n
\n"; /* *