include_once($path."php_inc/config.inc.php"); include_once($path."php_inc/module_set.inc.php"); class Chart{ function Chart($template, &$parser){ $parser->parseContent($this->_getTemplateFileName("frame"), & $this, "top"); /* Oberen Modulrahmen parsen */ $parser->parseContent($this->_getTemplateFileName($template), & $this, NULL); /* Modul Parsen */ $parser->parseContent($this->_getTemplateFileName("frame"), & $this, "bottom"); /* unteren Modulrahmen Parsen */ } function _getTemplateFileName($template_name){ global $path; return $path."content/charts/chart_".$template_name.".html"; } function generateChartLink($chartName){ $chartArray = Config::getChartArray($chartName); $buff = '
';
$buff .= $chartArray[2];
if ($chartArray[3] == null){
$buff .= '';
} else {
$buff .= '
';
}
$buff .= '