Go to the documentation of this file.
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';
34 $socid = $user->socid;
53 $data = $stats->getNbReceptionByMonth(
GETPOST(
"year",
'int'));
57 $filename = $conf->reception->dir_temp.
"/reception".$year.
".png";
58 $fileurl = DOL_URL_ROOT.
'/viewimage.php?modulepart=receptionstats&file=reception'.$year.
'.png';
61 $mesg = $px->isGraphKo();
64 $px->SetMaxValue($px->GetCeilMaxValue());
65 $px->SetWidth($WIDTH);
66 $px->SetHeight($HEIGHT);
67 $px->SetYLabel($langs->trans(
"NbOfOrders"));
69 $px->SetHorizTickIncrement(1);
70 $px->draw($filename, $fileurl);
73 print
'<table class="border centpercent">';
74 print
'<tr><td class="center">Nombre d reception par mois</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.
Class to manage reception 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)
if(!defined('NOREQUIRESOC')) if(!defined('NOREQUIRETRAN')) if(!defined('NOCSRFCHECK')) if(!defined('NOTOKENRENEWAL')) if(!defined('NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined('NOREQUIREAJAX')) llxHeader()
Empty header.