25 require
'../../main.inc.php';
26 require_once DOL_DOCUMENT_ROOT.
'/expedition/class/expedition.class.php';
27 require_once DOL_DOCUMENT_ROOT.
'/expedition/class/expeditionstats.class.php';
28 require_once DOL_DOCUMENT_ROOT.
'/core/class/dolgraph.class.php';
47 $data = $stats->getNbExpeditionByMonth($year);
51 $filename = $conf->expedition->dir_temp.
"/expedition".$year.
".png";
52 $fileurl = DOL_URL_ROOT.
'/viewimage.php?modulepart=expeditionstats&file=expedition'.$year.
'.png';
55 $mesg = $px->isGraphKo();
58 $px->SetMaxValue($px->GetCeilMaxValue());
59 $px->SetWidth($WIDTH);
60 $px->SetHeight($HEIGHT);
61 $px->SetYLabel($langs->trans(
"NbOfSendings"));
63 $px->SetHorizTickIncrement(1);
64 $px->draw($filename, $fileurl);
67 print '<table class="border centpercent">';
68 print '<tr><td class="center">'.$langs->trans(
"NbOfSendingsByMonth").
'</td>';
69 print '<td class="center">';
GETPOST($paramname, $check= 'alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
load_fiche_titre($titre, $morehtmlright= '', $picto= 'generic', $pictoisfullpath=0, $id= '', $morecssontable= '', $morehtmlcenter= '')
Load a title with picto.
print
Draft customers invoices.
static getDefaultGraphSizeForStats($direction, $defaultsize= '')
getDefaultGraphSizeForStats
Class to manage shipment statistics.
dol_mkdir($dir, $dataroot= '', $newmask=null)
Creation of a directory (this can create recursive subdir)