mirror of
https://github.com/agdsn/ancient-weatherstation.git
synced 2026-06-19 23:07:59 +00:00
charts in webfrontend improved
reports added to Webfrontend git-svn-id: file:///home/jan/tmp/wetterstation/trunk@116 dd492736-c11a-0410-ad51-8c26713eaf7f
This commit is contained in:
@@ -4,6 +4,7 @@ include_once("php_inc/parser.inc.php");
|
||||
include_once("php_inc/connection.inc.php");
|
||||
include_once("php_inc/config.inc.php");
|
||||
include_once("php_inc/chart.inc.php");
|
||||
include_once("php_inc/report.inc.php");
|
||||
|
||||
|
||||
/* Klasse, die die ModuleSets Verwaltet */
|
||||
@@ -16,7 +17,7 @@ class ModuleSet{
|
||||
$parser = & $this->_getParserInstance(); /* Parserinstanz holen */
|
||||
$parser->parseContent($this->_getSetFilename($setName), &$this, NULL); /* Set Parsen */
|
||||
|
||||
if($_REQUEST['chartName'] != ""){
|
||||
if($_REQUEST['chartName'] != "" || $_REQUEST['rptName'] != ""){
|
||||
$parser->appendContent($this->getBackLink());
|
||||
}
|
||||
|
||||
@@ -54,6 +55,11 @@ class ModuleSet{
|
||||
new Module($params[0], $params[1], $this->_getParserInstance(), $this->_getConnInstance());
|
||||
}
|
||||
|
||||
/* Ein Report hinzufügen */
|
||||
function addReport($rptName){
|
||||
new Report($rptName, $this->_getParserInstance(), $this->_getConnInstance());
|
||||
}
|
||||
|
||||
function addChart($template){
|
||||
new Chart($template, $this->_getParserInstance());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user