diff --git a/htdocs/societe/index.php b/htdocs/societe/index.php index 7fd8f44f911..4e95ea291cd 100644 --- a/htdocs/societe/index.php +++ b/htdocs/societe/index.php @@ -100,26 +100,44 @@ else dol_print_error($db); print '
| '.$langs->trans("Statistics").' | |
| '; + $data=array( + array('label'=>$langs->trans("Prospects"),'values'=>array(round($third['prospect']))), + array('label'=>$langs->trans("Customers"),'values'=>array(round($third['customer']))), + array('label'=>$langs->trans("Suppliers"),'values'=>array(round($third['supplier']))) + ); + dol_print_graph('stats',300,180,$data,0,'pie'); + print ' | |
| '.$langs->trans("Prospects").' | '.round($third['prospect']).' | '; - $statstring.= "
| '.$langs->trans("Prospects").' | '.round($third['prospect']).' | '; + $statstring.= "
| '.$langs->trans("Customers").' | '.round($third['customer']).' | '; + $statstring.= "
| '.$langs->trans("Customers").' | '.round($third['customer']).' | '; - $statstring.= "
| '.$langs->trans("Suppliers").' | '.round($third['supplier']).' | '; + $statstring2.= "
| '.$langs->trans("Suppliers").' | '.round($third['supplier']).' | '; - $statstring2.= "
| '.$langs->trans("UniqueThirdParties").' | '; print $total; print ' |