From 2d963cf25c2dbb69576e8b4351e16b07eee043b3 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Sun, 10 Dec 2006 19:42:39 +0000 Subject: [PATCH] Ajout deuxieme graphique --- htdocs/fourn/fiche-stats.php | 50 +++++++++++------------------------- 1 file changed, 15 insertions(+), 35 deletions(-) diff --git a/htdocs/fourn/fiche-stats.php b/htdocs/fourn/fiche-stats.php index 147624e90ca..0555145fe1e 100644 --- a/htdocs/fourn/fiche-stats.php +++ b/htdocs/fourn/fiche-stats.php @@ -87,57 +87,37 @@ if ( $societe->fetch($socid) ) dolibarr_fiche_head($head, 'supplierstat', $societe->nom); - - print ''; - print ''; - - print ''; - print ''; - print ''; - print ''; - print '"; - - // Assujeti à TVA ou pas - print ''; - print ''; - print ''; - - print '
'; - print ''; print ''; print ''; - if ($societe->fournisseur) - { - print ''; - } + print ''; + + print "
'.$langs->trans("Name").''.$societe->nom.'
'.$langs->trans('Prefix').''.$societe->prefix_comm.'
'; - print $langs->trans('SupplierCode').''; - print $societe->code_fournisseur; - if ($societe->check_codefournisseur() <> 0) print ' '.$langs->trans("WrongSupplierCode"); - print '
'; + print $langs->trans('SupplierCode').''; + print $societe->code_fournisseur; + if ($societe->check_codefournisseur() <> 0) print ' '.$langs->trans("WrongSupplierCode"); + print '

"; - print '
'.$langs->trans("Address").''.nl2br($societe->adresse).'
'.$langs->trans("Zip").''.$societe->cp.''.$langs->trans("Town").''.$societe->ville.'
'.$langs->trans("Country").''.$societe->pays.'
'.$langs->trans("Phone").''.dolibarr_print_phone($societe->tel).' '.$langs->trans("Fax").''.dolibarr_print_phone($societe->fax).' 
'.$langs->trans("Web")."url\">$societe->url 
'.$langs->trans('VATIsUsed').''; - print yn($societe->tva_assuj); - print '
'; - - - print ''; + print ''; + print ''; print '
'; $file = get_exdir($societe->id, 3) . "ca_genere-".$societe->id.".png"; - $year = strftime("%Y",time()); + $url=DOL_URL_ROOT.'/viewimage.php?modulepart=graph_fourn&file='.$file; print 'CA genere'; + print ''; + $file = get_exdir($societe->id, 3) . "ca_achat-".$societe->id.".png"; + + $url=DOL_URL_ROOT.'/viewimage.php?modulepart=graph_fourn&file='.$file; + print 'CA'; print '
' . "\n"; print ''; - - - } else {