$contentLayoutRow1->setAttribute(0, $menuDiv); $layoutTable->addRow($contentLayoutRow1); /* --------------------------------- */ /* ------------------------------------ HAUPTPANEL ------------------------------------ */ $MainPanel = new Div(); $MainPanel->setBorder(0); $cont = null; if (file_exists("mobile_" . $_SESSION['mainpage'])) { $cont = new DivByInclude("mobile_" . $_SESSION['mainpage'], false); } else { $cont = new DivByInclude($_SESSION['mainpage'], false); } $cont->setWidth("800"); $cont->setStyle("padding-left", "4px"); $cont->setStyle("padding-right", "4px"); $MainPanel->add($cont); $contentLayoutRow = $layoutTable->createRow(); $contentLayoutRow->setAttribute(0, $MainPanel); $layoutTable->addRow($contentLayoutRow); /* --------------------------------- */ /* ------------------------------------ FUSS-MENU ------------------------------------ */ $footMenuDiv = new Div(); $footMenuDiv->setWidth(810); $footMenuDiv->setBorder(0); $footMenuDiv->setAlign("center"); $footMenu = new DbMenu("Fussmenue"); $footMenu->setHeight(14);
$layoutTable->addRow($contentLayoutRow1); /* --------------------------------- */ /* ------------------------------------ HAUPTPANEL ------------------------------------ */ $MainPanel = new Div(); $MainPanel->setBackgroundColor($_SESSION['config']->COLORS['panel_background']); $MainPanel->setWidth($bannerWidth + 12); $MainPanel->setBorder(2); $MainPanel->setStyle("padding", "0px 0px"); $MainPanel->setStyle("margin", "0px 0px"); $MainPanel->setStyle("overflow-x", "hidden"); $MainPanel->setStyle("overflow-y", "overflow"); $cont = new DivByInclude($_SESSION['mainpage'], false); $cont->setWidth($mainWidth); $cont->setStyle("overflow-y", "overflow"); $cont->setStyle("padding", "5px 6px"); $cont->setBackgroundColor($_SESSION['config']->COLORS['main_background']); // Kopftexte und Nachrichten-Prüfung werden in DivByInclude verwaltet if (isset($_SESSION['MENU_PARENT']) && strlen($_SESSION['MENU_PARENT']) > 0) { $sql = "SELECT * FROM menu WHERE parent='" . $_SESSION['MENU_PARENT'] . "'"; $rslt = $_SESSION['config']->DBCONNECT->executeQuery($sql); $menuHeight = 0; if (mysql_numrows($rslt) > 0) { $menuHeight = 50; $_SESSION['additionalLayoutHeight'] = $_SESSION['additionalLayoutHeight'] + $menuHeight; $menuDiv = new Div(); $menuDiv->setWidth($bannerWidth); $menuDiv->setHeight($menuHeight); $menuDiv->setBorder(0); $menuDiv->setAlign("left");