From 51484a4915e85782c98fcc15f0835bfd339cddf4 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 9 Jul 2005 13:17:13 +0000 Subject: [PATCH] =?UTF-8?q?Look:=20Modif=20esth=E9tique=20mineure?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/comm/action/index.php | 33 ++++++++++++--------------------- 1 file changed, 12 insertions(+), 21 deletions(-) diff --git a/htdocs/comm/action/index.php b/htdocs/comm/action/index.php index ca4f0e82305..660092e8b4b 100644 --- a/htdocs/comm/action/index.php +++ b/htdocs/comm/action/index.php @@ -154,29 +154,20 @@ if ($resql) print $libelle; print ''; + // Société print ''; + if ($obj->client == 1) $url=DOL_URL_ROOT.'/comm/fiche.php?socid='; + elseif ($obj->client == 2) $url=DOL_URL_ROOT.'/comm/prospect/fiche.php?id='; + else $url=DOL_URL_ROOT.'/soc.php?socid='; + print ' '.img_object($langs->trans("ShowCompany"),"company").' '.dolibarr_trunc($obj->societe,32).''; - if ($obj->client == 1) - { - print ' '.img_object($langs->trans("ShowCompany"),"company").' '.$obj->societe.''; - } - elseif ($obj->client == 2) - { - print ' '.img_object($langs->trans("ShowCompany"),"company").' '.$obj->societe.''; - } - else - { - print ' '.img_object($langs->trans("ShowCompany"),"company").' '.$obj->societe.''; - } - /* - * Contact - */ + // Contact print ''; if ($obj->fk_contact) { $cont = new Contact($db); $cont->fetch($obj->fk_contact); - print ''.img_object($langs->trans("ShowContact"),"contact").' '.$cont->fullname.''; + print ''.img_object($langs->trans("ShowContact"),"contact").' '.dolibarr_trunc($cont->fullname,32).''; } else { @@ -184,11 +175,11 @@ if ($resql) } print ''; - /* - * - */ - print ''.dolibarr_trunc($obj->note, 20).''; - print "$obj->code\n"; + // Note + print ''.dolibarr_trunc($obj->note, 16).''; + + // Auteur + print ''.$obj->code.''; print "\n"; $i++;