$footMenuDiv->setWidth($bannerWidth); $footMenuDiv->setBackgroundColor($_SESSION['config']->COLORS['panel_background']); $footMenuDiv->setBorder(0); $footMenuDiv->setAlign("center"); $footMenu = new DbMenu("Fussmenue"); $footMenu->setHeight(14); $footMenu->setMenuType("horizontal"); $footMenu->setAlign("center"); $footMenu->setFontsize(1); $footMenuDiv->add($footMenu); $fussLayoutRow = $layoutTable->createRow(); $fussLayoutRow->setAttribute(0, $footMenuDiv); $layoutTable->addRow($fussLayoutRow); /* --------------------------------- */ $layoutTable->show(); $arduinoFrame = new IFrame($_SESSION['config'], "arduinoSwitch", -1, -1, 1, 1, 0); $arduinoFrame->show(); // MailSensor $dbSensorTable = new DbTable($_SESSION['config']->DBCONNECT, 'homecontrol_sensor', array("*"), "", "", "", "id=999999999"); if (count($dbSensorTable->ROWS) > 0) { $mailSensorRow = $dbSensorTable->getRow(1); $mailSensor = new HomeControlSensor($mailSensorRow, false); $x = 15; $y = $bannerHeight - 10; echo "<div style=\"position:absolute; left:" . $x . "px; top:" . $y . "px; width:26px; height:26px;\">"; echo $mailSensor->getSensorArtIconSrc(); echo "</div>"; if ($mailSensor->getLastValue() != null) { echo "<div style=\"background-color:#dedede; position:absolute; left:" . ($x + 5) . "px; top:" . ($y + $mailSensor->getControlImageHeight() / 2 - 3) . "px;\"><center><font size=2><b>" . $mailSensor->getLastValue() . "</b></font></center></div>"; } }