Go to the documentation of this file.
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';
34 $socid = $user->socid;
50 print
load_fiche_titre($langs->trans(
"StatisticsOfSendings").
' '.$year, $mesg);
53 $data = $stats->getNbExpeditionByMonth($year);
57 $filename = $conf->expedition->dir_temp.
"/expedition".$year.
".png";
58 $fileurl = DOL_URL_ROOT.
'/viewimage.php?modulepart=expeditionstats&file=expedition'.$year.
'.png';
61 $mesg = $px->isGraphKo();
64 $px->SetMaxValue($px->GetCeilMaxValue());
65 $px->SetWidth($WIDTH);
66 $px->SetHeight($HEIGHT);
67 $px->SetYLabel($langs->trans(
"NbOfSendings"));
69 $px->SetHorizTickIncrement(1);
70 $px->draw($filename, $fileurl);
73 print
'<table class="border centpercent">';
74 print
'<tr><td class="center">'.$langs->trans(
"NbOfSendingsByMonth").
'</td>';
75 print
'<td class="center">';
static getDefaultGraphSizeForStats($direction, $defaultsize='')
getDefaultGraphSizeForStats
restrictedArea($user, $features, $objectid=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.
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.
Class to manage shipment statistics.
dol_mkdir($dir, $dataroot='', $newmask='')
Creation of a directory (this can create recursive subdir)
if(!defined('NOREQUIRESOC')) if(!defined('NOREQUIRETRAN')) if(!defined('NOCSRFCHECK')) if(!defined('NOTOKENRENEWAL')) if(!defined('NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined('NOREQUIREAJAX')) llxHeader()
Empty header.