コード例 #1
0
$contentLayoutRow1 = $layoutTable->createRow();
$contentLayoutRow1->setAttribute(0, $tblMenu);
$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);
コード例 #2
0
$menu->setMenuType("horizontal");
$menuDiv->add($menu);
$contentLayoutRow1 = $layoutTable->createRow();
$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);
コード例 #3
0
        $contentLayoutRow2 = $layoutTable->createRow();
        $contentLayoutRow2->setAttribute(0, $menuDiv);
        $layoutTable->addRow($contentLayoutRow2);
    }
}
/* --------------------------------- */
/* ------------------------------------
HAUPTPANEL
------------------------------------ */
$MainPanel = new Div();
$MainPanel->setBackgroundColor($_SESSION['config']->COLORS['panel_background']);
$MainPanel->setBorder(0);
$MainPanel->setWidth("85%");
$cont = null;
if (existRunlink($_SESSION['config']->DBCONNECT, "mobile_" . $_SESSION['runLink'])) {
    $cont = new DivByInclude("mobile_" . $_SESSION['mainpage'], false);
    $cont->setWidth("99%");
} else {
    $cont = new DivByInclude($_SESSION['mainpage'], false);
}
$MainPanel->add($cont);
$contentLayoutRow = $layoutTable->createRow();
if (isset($_SESSION['MENU_PARENT']) && $_SESSION['MENU_PARENT'] == "Einstellungen" && isset($_SESSION['runLink']) && $_SESSION['runLink'] == "homeconfig") {
    $contentLayoutRow->setAlign("left");
} else {
    $contentLayoutRow->setAlign("center");
}
$contentLayoutRow->setAttribute(0, $MainPanel);
$layoutTable->addRow($contentLayoutRow);
/* --------------------------------- */
$layoutTable->addSpacer(0, 40);