16 DEFINE(
'USE_CACHE', 
false);
 
   17 DEFINE(
'CACHE_DIR', 
$myConfig->getConfigParam(
'sCompileDir'));
 
   22 require_once 
"$sIncPath/core/jpgraph/jpgraph.php";
 
   23 require_once 
"$sIncPath/core/jpgraph/jpgraph_bar.php";
 
   24 require_once 
"$sIncPath/core/jpgraph/jpgraph_line.php";
 
   25 require_once 
"$sIncPath/core/jpgraph/jpgraph_pie.php";
 
   26 require_once 
"$sIncPath/core/jpgraph/jpgraph_pie3d.php";
 
   28 if (!class_exists(
'report_base')) {
 
   40         protected $_oSmarty = null;
 
   49             return $this->_sThisTemplate;
 
   57         public function setSmarty($oSmarty)
 
   59             $this->_oSmarty = $oSmarty;
 
   67         public function getSmarty()
 
   69             return $this->_oSmarty;
 
   77         public function getWeekRange()
 
   85             return array($iFrom - 1, $iTo + 1);
 
   98         public function getGraph($iXSize, $iYSize, $sBackgroundImg = null, $sScaleType = 
"textlin")
 
  100             $sBackgroundImg = $sBackgroundImg ? $sBackgroundImg : $this->
getConfig()->getImageDir(
true) . 
"/reportbgrnd.jpg";
 
  103             $oGraph = 
new Graph($iXSize, $iYSize);
 
  105             $oGraph->setBackgroundImage($sBackgroundImg, BGIMG_FILLFRAME);
 
  108             $oGraph->setScale($sScaleType);
 
  111             $oGraph->xaxis->setLabelAlign(
'center', 
'top', 
'right');
 
  114             $oGraph->yaxis->setLabelAlign(
'right', 
'bottom');
 
  117             $oGraph->setShadow();
 
  120             $oGraph->title->setFont(FF_FONT1, FS_BOLD);