26require
'../../main.inc.php';
27require_once DOL_DOCUMENT_ROOT.
'/expedition/class/expedition.class.php';
28require_once DOL_DOCUMENT_ROOT.
'/expedition/class/expeditionstats.class.php';
29require_once DOL_DOCUMENT_ROOT.
'/core/class/dolgraph.class.php';
35 $socid = $user->socid;
52print
load_fiche_titre($langs->trans(
"StatisticsOfSendings").
' '.$year, $mesg);
55$data = $stats->getNbByMonth($year);
59$filename = $conf->expedition->dir_temp.
"/expedition".$year.
".png";
60$fileurl = DOL_URL_ROOT.
'/viewimage.php?modulepart=expeditionstats&file=expedition'.$year.
'.png';
63$mesg = $px->isGraphKo();
66 $px->SetMaxValue($px->GetCeilMaxValue());
67 $px->SetWidth($WIDTH);
68 $px->SetHeight($HEIGHT);
69 $px->SetYLabel($langs->trans(
"NbOfSendings"));
71 $px->SetHorizTickIncrement(1);
72 $px->draw($filename, $fileurl);
75print
'<table class="border centpercent">';
76print
'<tr><td class="center">'.$langs->trans(
"NbOfSendingsByMonth").
'</td>';
77print
'<td class="center">';
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader()
Empty header.
static getDefaultGraphSizeForStats($direction, $defaultsize='')
getDefaultGraphSizeForStats
Class to manage shipment statistics.
load_fiche_titre($titre, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
dol_mkdir($dir, $dataroot='', $newmask='')
Creation of a directory (this can create recursive subdir)
restrictedArea(User $user, $features, $object=0, $tableandshare='', $feature2='', $dbt_keyfield='fk_soc', $dbt_select='rowid', $isdraft=0, $mode=0)
Check permissions of a user to show a page and an object.