diff --git a/htdocs/compta/fiche.php b/htdocs/compta/fiche.php index e70047f673c..d74db076bc2 100644 --- a/htdocs/compta/fiche.php +++ b/htdocs/compta/fiche.php @@ -153,13 +153,13 @@ if ($socid > 0) $h = 0; $head[$h][0] = DOL_URL_ROOT.'/soc.php?socid='.$societe->id; - $head[$h][1] = "Fiche société"; + $head[$h][1] = $langs->trans("Company"); $h++; if ($societe->client==1) { $head[$h][0] = DOL_URL_ROOT.'/comm/fiche.php?socid='.$societe->id; - $head[$h][1] = 'Client'; + $head[$h][1] = $langs->trans("Customer"); $h++; } if ($societe->client==2) @@ -183,49 +183,49 @@ if ($socid > 0) } $head[$h][0] = DOL_URL_ROOT.'/socnote.php?socid='.$societe->id; - $head[$h][1] = 'Note'; + $head[$h][1] = $langs->trans("Note"); $h++; if ($user->societe_id == 0) { $head[$h][0] = DOL_URL_ROOT.'/docsoc.php?socid='.$societe->id; - $head[$h][1] = 'Documents'; + $head[$h][1] = $langs->trans("Documents"); $h++; } $head[$h][0] = DOL_URL_ROOT.'/societe/notify/fiche.php?socid='.$societe->id; - $head[$h][1] = 'Notifications'; + $head[$h][1] = $langs->trans("Notifications"); $h++; if ($user->societe_id == 0) - { - $head[$h][0] = DOL_URL_ROOT."/index.php?socidp=$societe->id&action=add_bookmark"; - $head[$h][1] = 'Bookmark'; - $head[$h][2] = 'image'; - } + { + $head[$h][0] = DOL_URL_ROOT."/index.php?socidp=$societe->id&action=add_bookmark"; + $head[$h][1] = 'Bookmark'; + $head[$h][2] = 'image'; + } dolibarr_fiche_head($head, $hselected, $societe->nom); /* * */ - print "\n"; + print "
\n"; print '"; print "
'; /* * * */ - print ''; - print ''; - print '"; - print ''; - print ""; + print '
Nom'.$societe->nom.'
Adresse'.nl2br($societe->adresse)."
$societe->cp $societe->ville
Tél'.$societe->tel.' Fax'.$societe->fax.' 
Weburl\">$societe->url 
'; + print ''; + print '"; + print ''; + print '"; print ''; print ""; @@ -286,8 +286,8 @@ if ($socid > 0) } print "
'.$langs->trans("Name").''.$societe->nom.'
'.$langs->trans("Address").''.nl2br($societe->adresse)."
$societe->cp $societe->ville
'.$langs->trans("Phone").''.$societe->tel.' Fax'.$societe->fax.' 
'.$langs->trans("Web")."url\">$societe->url 
Siren'.$societe->siren.' prefix"; if ($societe->prefix_comm) { - print $societe->prefix_comm; + print $societe->prefix_comm; } print "
"; } + /* - * * Liste des projets associés * */ @@ -318,16 +318,13 @@ if ($socid > 0) } else { - print $db->error(); + dolibarr_print_error($db); } - /* - * - * - */ print "
\n"; + /* * Barre d'actions * @@ -372,7 +369,7 @@ if ($socid > 0) * Liste des contacts * */ - print ''; + print '
'; print ''; print ''; @@ -381,7 +378,7 @@ if ($socid > 0) print ''; print ""; - $sql = "SELECT p.idp, p.name, p.firstname, p.poste, p.phone, p.fax, p.email, p.note FROM ".MAIN_DB_PREFIX."socpeople as p WHERE p.fk_soc = $societe->id ORDER by p.datec"; + $sql = "SELECT p.idp, p.name, p.firstname, p.poste, p.phone, p.fax, p.email, p.note FROM ".MAIN_DB_PREFIX."socpeople as p WHERE p.fk_soc = ".$societe->id." ORDER by p.datec"; $result = $db->query($sql); $i = 0 ; $num = $db->num_rows(); $var=1; @@ -412,7 +409,7 @@ if ($socid > 0) print img_edit(); print ''; - print '';
'.$langs->trans("Firstname").' '.$langs->trans("Lastname").''.$langs->trans("Poste").''.$langs->trans("Tel").' 
'; + print ''; print img_actions(); print '