25 require
'../../main.inc.php';
26 require_once DOL_DOCUMENT_ROOT.
'/reception/class/reception.class.php';
27 require_once DOL_DOCUMENT_ROOT.
'/reception/class/receptionstats.class.php';
28 require_once DOL_DOCUMENT_ROOT.
'/core/class/dolgraph.class.php';
47 $data = $stats->getNbReceptionByMonth(
GETPOST(
"year",
'int'));
51 $filename = $conf->reception->dir_temp.
"/reception".$year.
".png";
52 $fileurl = DOL_URL_ROOT.
'/viewimage.php?modulepart=receptionstats&file=reception'.$year.
'.png';
55 $mesg = $px->isGraphKo();
59 $px->SetMaxValue($px->GetCeilMaxValue());
60 $px->SetWidth($WIDTH);
61 $px->SetHeight($HEIGHT);
62 $px->SetYLabel($langs->trans(
"NbOfOrders"));
64 $px->SetHorizTickIncrement(1);
65 $px->draw($filename, $fileurl);
68 print '<table class="border centpercent">';
69 print '<tr><td class="center">Nombre d reception par mois</td>';
70 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.
Class to manage reception statistics.
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
dol_mkdir($dir, $dataroot= '', $newmask=null)
Creation of a directory (this can create recursive subdir)