From 4cc74949d20f801f89b385245b5e78f06f25ab87 Mon Sep 17 00:00:00 2001 From: losinshi Date: Tue, 22 Aug 2006 23:19:03 +0000 Subject: [PATCH] Nearly nothing done, good night. git-svn-id: file:///home/jan/tmp/wetterstation/trunk@40 dd492736-c11a-0410-ad51-8c26713eaf7f --- webstuff/frontend/content/modules/mod_frame.html | 2 +- webstuff/frontend/php_inc/module.inc.php | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/webstuff/frontend/content/modules/mod_frame.html b/webstuff/frontend/content/modules/mod_frame.html index 6742fc3..9220986 100644 --- a/webstuff/frontend/content/modules/mod_frame.html +++ b/webstuff/frontend/content/modules/mod_frame.html @@ -1,6 +1,6 @@ {content:part:top} -
+
{content:part:end} {content:part:bottom} diff --git a/webstuff/frontend/php_inc/module.inc.php b/webstuff/frontend/php_inc/module.inc.php index 014c0e4..ef36ab0 100644 --- a/webstuff/frontend/php_inc/module.inc.php +++ b/webstuff/frontend/php_inc/module.inc.php @@ -10,6 +10,7 @@ include_once("php_inc/modules/wind.inc.php"); /* Wind-Klasse */ /* Representiert ein Modul */ class Module{ + var $modName; /* Modul-Id */ var $sensId; /* Sensor-Id */ var $connection; /* Connection - Instanz */ var $parserInstance = NULL; /* Parser - Instanz */ @@ -25,8 +26,9 @@ class Module{ function Module($modName, $sensId, &$parser, &$connection){ /* Klassenvariablen zuordnen */ - $this->sensId = $sensId; - $this->connection = &$connection; + $this->sensId = $sensId; + $this->modName = $modName; + $this->connection = &$connection; $this->parserInstance = &$parser; $parser->parseContent($this->_getModuleFilename("frame"), & $this, "top"); /* Oberen Modulrahmen parsen */ @@ -90,5 +92,10 @@ class Module{ return $callObject->$funcName($content_split[1]); /* Methode ausführen (Wert holen) und zurückgeben */ } + function getModId($type){ + if($type == "css") + return $this->modName."_".$this->sensId; + } + } ?>