示例#1
0
 /**
  *  Zeigt das gesamte Panel an
  */
 function show()
 {
     $this->CONTENT->setWidth($this->WIDTH - 8 * $this->PANELTITELRIGHTWIDTH);
     //---------------------------------------------------
     // Inhalt
     //---------------------------------------------------
     $cont = new Div();
     $cont->setBorder(1);
     $cont->setWidth($this->WIDTH - 2 * $this->PANELTITELRIGHTWIDTH);
     if ($this->HEIGHT > 0) {
         $cont->setHeight($this->HEIGHT - $this->PANELTITELHEIGHT);
     }
     $cont->setOverflow("auto");
     $cont->setStyle("background-color", $this->BGCOLOR);
     $cont->setStyle("border-style", "solid");
     $cont->setStyle("border-top", "1px");
     $cont->setStyle("border-left", "1px");
     $cont->setStyle("border-right", "2px");
     $cont->setStyle("border-bottom", "2px");
     $cont->setStyle("border-color", $_SESSION['config']->COLORS['text']);
     $cont->add($this->CONTENT);
     //---------------------------------------------------
     $tb = new Table(array(""));
     $rH = $tb->createRow();
     $rH->setAlign("center");
     $rH->setBackgroundColor($_SESSION['config']->COLORS['text']);
     $rH->setFontType($_SESSION['config']->COLORS['text']);
     $rH->setAttribute(0, $this->NAME);
     $tb->addRow($rH);
     $rC = $tb->createRow();
     $rC->setAlign("center");
     $rC->setAttribute(0, $cont);
     $tb->addRow($rC);
     return $tb;
 }
 function getMobileSwitch()
 {
     $tbl = new Table(array("", "", "", ""));
     $tbl->setAlignments(array("center", "left", "left", "right"));
     $tbl->setColSizes(array(60, "", 170, 150));
     $tbl->setBorder(0);
     $rowTtl = $tbl->createRow();
     $rowTtl->setVAlign("middle");
     $txtAn = new Text("AN", 7, true);
     $txtAus = new Text("AUS", 7, true);
     $divAn = new Div();
     $divAn->add($txtAn);
     $divAn->setWidth(150);
     $divAn->setHeight(50);
     $divAn->setAlign("center");
     $divAn->setVAlign("middle");
     $divAn->setStyle("line-height", "50px");
     $divAn->setBorder(1);
     $divAn->setBackgroundColor("green");
     $divAus = new Div();
     $divAus->setWidth(150);
     $divAus->setHeight(50);
     $divAus->setAlign("center");
     $divAus->setVAlign("middle");
     $divAus->setStyle("line-height", "50px");
     $divAus->add($txtAus);
     $divAus->setBorder(1);
     $divAus->setBackgroundColor("red");
     $txtName = new Text($this->OBJNAME, 6, true);
     $img = $this->getControlArtIcon(false);
     $lnkAn = new Link("http://" . $this->IP . "?schalte=on", $divAn, false, "arduinoSwitch");
     $lnkAus = new Link("http://" . $this->IP . "?schalte=-" . $this->FUNK_ID, $divAus, false, "arduinoSwitch");
     $rowTtl->setAttribute(0, $img);
     $rowTtl->setAttribute(1, $txtName);
     $rowTtl->setAttribute(2, $lnkAn);
     $rowTtl->setAttribute(3, $lnkAus);
     $tbl->addRow($rowTtl);
     return $tbl;
 }
} 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);
$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();
$MainPanel->setBackgroundColor($_SESSION['config']->COLORS['panel_background']);
$MainPanel->setBorder(0);
$cont = new DivByInclude($_SESSION['mainpage'], false);
$cont->setWidth("600");
$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(600);
$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);
示例#5
0
    $tbl->setColSizes(array($mainWidth));
    $tbl->setBackgroundColor($_SESSION['config']->COLORS['Tabelle_Hintergrund_1']);
    $rMain = $tbl->createRow();
    $rMain->setAttribute(0, $cont);
    $tbl->addRow($rMain);
    $MainPanel->add($tbl);
}
$contentLayoutRow = $layoutTable->createRow();
$contentLayoutRow->setAttribute(0, $MainPanel);
$layoutTable->addRow($contentLayoutRow);
/* --------------------------------- */
/* ------------------------------------
FUSS-MENU 
------------------------------------ */
$footMenuDiv = new Div();
$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);
 function showMobile()
 {
     $dvSc = new Div();
     $dvSc->setWidth("100%");
     $title = new Title("Shortcuts", 0, "10em");
     $spc = new Line();
     $dvSc->add(new Spacer(20));
     $dvSc->add($title);
     $dvSc->add($spc);
     foreach ($this->SHORTCUTS_DB->ROWS as $shortcutRow) {
         $this->SHORTCUTS_URL_COMMAND = "/?switchShortcut=";
         $this->SHORTCUTS_TOOLTIP = "<table width='120' cellspacing=0 cellpadding=0>";
         $this->prepareShortcutSwitchLink($shortcutRow->getNamedAttribute("id"));
         if ($this->SHORTCUTS_URL_COMMAND != "/?switchShortcut=") {
             // aktiver Link mit konfigurierten Items
             $this->SHORTCUTS_URL_COMMAND = str_replace("_", "", $this->SHORTCUTS_URL_COMMAND);
             $this->SHORTCUTS_TOOLTIP .= "</table> ";
             //$txtShortcut = new Text($shortcutRow->getNamedAttribute("name"), 3, true);
             //$txtShortcut->setTooltip($this->SHORTCUTS_TOOLTIP);
             $spn = new Span($shortcutRow->getNamedAttribute("name"), $shortcutRow->getNamedAttribute("name"));
             $spn->setFontsize("12em");
             $spn->add(new Text($this->SHORTCUTS_TOOLTIP, null, false, false, false, false));
             $dvSc->add($spn);
             $dvSc->add(new Text("<a href='" . $this->SHORTCUTS_URL_COMMAND . "'>" . "<center><div align='center' style='display:table-cell; padding:2px 25px; width:100%;vertical-align:middle;background-color:green'>" . "<font size='12em' color='#deffde'><b>aktivieren</b></font>" . "</div></center>" . "</a>", 2, false, false, false, false));
             $dvSc->add($spc);
         } else {
             // inaktiv (Keine konfigurierten Items)
             $txt = new Text($shortcutRow->getNamedAttribute("name"), 3, false);
             $txt->setTooltip("Noch keine Konfiguration hinterlegt");
             $dvSc->add($txt);
             $dvSc->add($spc);
         }
     }
     $dvSc->show();
 }
示例#7
0
 function show()
 {
     //Wenn notwendig Eingabemaske, ansonsten Standard-Anzeige
     if (!$this->showInsertMaskIfNeeded()) {
         $rowsToShow = $this->getRowsToShow();
         //Tabelle für gesamte NEWS
         $tbl = new Table(array("News"));
         $tbl->setHeadEnabled(false);
         $tbl->setBorder(0);
         foreach ($rowsToShow as $row) {
             $tt = new Text($row['Text']);
             $tt->setFilter(false);
             $ta = new Text($row['Autor']);
             $tblxTitle = new Table(array("", ""));
             $tblxTitle->setColSizes(array("50"));
             $tblxTitle->setAlign("left");
             $rxtitle = $tblxTitle->createRow();
             $t0 = new Title(getFormatedDate($row['Datum'], "standard") . ":");
             $t0->setWidth(20);
             $rxtitle->setAttribute(0, $t0);
             $t1 = new Title($row['Title']);
             $rxtitle->setAttribute(1, $t1);
             $rxtitle->setAlign("left");
             $tblxTitle->addRow($rxtitle);
             //Tabelle für den jeweiligen Eintrag
             $tblx = new Table(array(""));
             if (strlen($row['pic']) > 0) {
                 $tblx = new Table(array("", ""));
                 $tblx->setColSizes(array("180"));
             }
             $tblx->setBorder($this->CONFIG->GB_CONFIG['border']);
             $tblx->setWidth("100%");
             //TEXT
             $rx = $tblx->createRow();
             if (strlen($row['pic']) > 0 && !(isset($_REQUEST['removeNewsPicId']) && $_REQUEST['removeNewsPicId'] == $row['id'])) {
                 $img = new Image($row['pic']);
                 $img->setWidth(175);
                 $rx->setAttribute(0, $img);
                 $rx->setAttribute(1, $tt);
             } else {
                 $rx->setAttribute(0, $tt);
             }
             $rx->setAlign("left");
             $tblx->addRow($rx);
             $f = new FontType();
             $rx->setFonttypes(array(0 => $f));
             $f = new FontType();
             $f->setFontsize(1);
             $f->setItalic(false);
             $rx->setFonttypes(array(0 => $f));
             $r = $tbl->createRow();
             $r->setAttribute(0, $tblxTitle);
             $tbl->addRow($r);
             $r1 = $tbl->createRow();
             $r1->setAttribute(0, $tblx);
             $tbl->addRow($r1);
             $ytElem = new YouTubeElement($row['yt_video'], "news", "yt_video", $row['id']);
             $r1 = $tbl->createRow();
             $r1->setAttribute(0, $ytElem);
             $tbl->addRow($r1);
             $tbl->addSpacer(0, 7);
             if ($_SESSION['config']->CURRENTUSER->STATUS == "admin" || $_SESSION['config']->CURRENTUSER->STATUS == "user") {
                 $r2 = $tbl->createRow();
                 $xDv = new Div();
                 $xDv->setWidth(450);
                 $xDv->setHeight(40);
                 $txChngePic = new Text("Bild Hochladen/Ändern<br>");
                 $txChngePic->setFilter(false);
                 $newPicLink = new Link("?popupRunLink=imageUploaderPopup&targetPath=pics/news&DbInsertTable=news&DbInsertCol=pic&DbInsertId=" . $row['id'] . "&stayAlive=ok", $txChngePic);
                 $txRemPic = new Text("Bild Entfernen<br>");
                 $txRemPic->setFilter(false);
                 $removePicLink = new Link("?removeNewsPicId=" . $row['id'] . "", $txRemPic);
                 $spTx = new Text("&nbsp;&nbsp;&nbsp;");
                 $spTx->setFilter(false);
                 $xDv->add($newPicLink);
                 if (strlen($row['pic']) > 0) {
                     if (isset($_REQUEST['removeNewsPicId']) && $_REQUEST['removeNewsPicId'] == $row['id']) {
                         $sql = "UPDATE news SET pic = null WHERE id = " . $_REQUEST['removeNewsPicId'];
                         $_SESSION['config']->DBCONNECT->executeQuery($sql);
                     } else {
                         $xDv->add($removePicLink);
                     }
                 }
                 $newPicLink->setPopup(true);
                 $r2->setAttribute(0, $xDv);
                 $tbl->addRow($r2);
             }
             $tbl->addSpacer(0, 35);
         }
         if ($_SESSION['config']->CURRENTUSER->STATUS == "admin" || $_SESSION['config']->CURRENTUSER->STATUS == "user") {
             // Neuer Eintrag- BUTTON
             //--------------------------------
             $insertButton = new Button('dbTableNew', 'News eintragen');
             $form = new Form($_SERVER['SCRIPT_NAME']);
             $form->add($insertButton);
             $form->show();
         }
         // Tabelle anzeigen
         //--------------------------------
         $tbl->show();
         if ($_SESSION['config']->CURRENTUSER->STATUS == "admin" || $_SESSION['config']->CURRENTUSER->STATUS == "user" && $tbl->getRowcount() > 2) {
             // Neuer Eintrag- BUTTON
             //--------------------------------
             $insertButton = new Button('dbTableNew', 'News eintragen');
             $form = new Form($_SERVER['SCRIPT_NAME']);
             $form->add($insertButton);
             $form->show();
         }
     }
 }
 function getMobileSwitch()
 {
     $tbl = new Table(array("", "", "", "", ""));
     $tbl->setAlignments(array("center", "left", "left", "left", "right"));
     $tbl->setColSizes(array(60, "", 100, 160, 150));
     $tbl->setBorder(0);
     $rowTtl = $tbl->createRow();
     $rowTtl->setVAlign("middle");
     $txtAn = new Text("AN", 7, true);
     $txtAus = new Text("AUS", 7, true);
     switch ($this->ART) {
         case 1:
             // Steckdosen
         // Steckdosen
         case 3:
             // Glühbirne
             $txtAn = new Text("AN", 7, true);
             $txtAus = new Text("AUS", 7, true);
             break;
         case 2:
             // Jalousien
             $txtAn = new Text("AUF", 7, true);
             $txtAus = new Text("ZU", 7, true);
             break;
         case 4:
             // Heizung
             $txtAn = new Text("WARM", 7, true);
             $txtAus = new Text("KALT", 7, true);
             break;
         default:
             $txtAn = new Text("AN", 7, true);
             $txtAus = new Text("AUS", 7, true);
     }
     $divAn = new Div();
     $divAn->add($txtAn);
     $divAn->setWidth(150);
     $divAn->setHeight(50);
     $divAn->setAlign("center");
     $divAn->setVAlign("middle");
     $divAn->setStyle("line-height", "50px");
     $divAn->setBorder(1);
     $divAn->setBackgroundColor("green");
     $divAn->setOverflow("hidden");
     $divAus = new Div();
     $divAus->setWidth(150);
     $divAus->setHeight(50);
     $divAus->setAlign("center");
     $divAus->setVAlign("middle");
     $divAus->setStyle("line-height", "50px");
     $divAus->add($txtAus);
     $divAus->setBorder(1);
     $divAus->setBackgroundColor("red");
     $divAus->setOverflow("hidden");
     $txtName = new Text($this->OBJNAME, 6, true);
     $img = $this->getControlArtIcon(false);
     $lnkAn = new Link("?switchShortcut=" . $this->FUNK_ID . "-on", $divAn, false, "arduinoSwitch");
     $lnkAus = new Link("?switchShortcut=" . $this->FUNK_ID . "-off", $divAus, false, "arduinoSwitch");
     $fDimmLvl = "";
     if ($this->isDimmable()) {
         $fDimmLvl = new Form();
         $cobDimmLvl = new Combobox("dimmer", getNumberComboArray(1, 16), "", " ");
         $cobDimmLvl->setDirectSelect(true);
         $cobDimmLvl->setStyle("font-size", "40px");
         $fDimmLvl->add($cobDimmLvl);
         $fDimmLvl->add(new Hiddenfield("schalte", $this->FUNK_ID));
     }
     $rowTtl->setAttribute(0, $img);
     $rowTtl->setAttribute(1, $txtName);
     $rowTtl->setAttribute(2, $fDimmLvl);
     $rowTtl->setAttribute(3, $lnkAn);
     $rowTtl->setAttribute(4, $lnkAus);
     $tbl->addRow($rowTtl);
     return $tbl;
 }
$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);
/* ------------------------------------
FUSS-MENU 
------------------------------------ */
$footMenuDiv = new Div();
$footMenuDiv->setWidth("99%");
$footMenuDiv->setBackgroundColor($_SESSION['config']->COLORS['panel_background']);
$footMenuDiv->setBorder(0);
$footMenuDiv->setAlign("center");
$footMenu = new DbMenu("Fussmenue");
//       $footMenu->setHeight(60);
$footMenu->setMenuType("horizontal");
$footMenu->setAlign("center");
$footMenu->setFontsize(6);
$footMenuDiv->add(new Line(1, 6));
$footMenuDiv->add($footMenu);
$footMenuDiv->add(new Line(1, 6));
$fussLayoutRow = $layoutTable->createRow();
$fussLayoutRow->setAttribute(0, $footMenuDiv);
$layoutTable->addRow($fussLayoutRow);
/* --------------------------------- */
示例#10
0
 function showLogContent()
 {
     $div = new Div();
     $div->setWidth("100%");
     $div->setHeight("250");
     $div->setStyle("white-space", "nowrap");
     $output = array();
     $tmp = exec("tail -n " . $this->getLinesToShow() . " " . $this->getPath(), $output);
     foreach (array_reverse($output) as $out) {
         $tx = new Text($out . "<br>", 2, false, false, false, false);
         $div->add($tx);
     }
     $ln = new Line();
     $ln->show();
     $div->show();
     $ln->show();
 }
 function postHandleControlEdit($dbTable)
 {
     // Neuen Eintrag anlegen
     if (isset($_REQUEST['InsertNewControl']) && $_REQUEST['InsertNewControl'] == "do" && isset($_REQUEST['X']) && isset($_REQUEST['Y'])) {
         if (!(isset($_REQUEST['Name']) && isset($_REQUEST['FunkId']) && isset($_REQUEST['Art']))) {
             $mask = $this->getInsertMask($_REQUEST['X'], $_REQUEST['Y'] - $_SESSION['additionalLayoutHeight']);
             $mask->show();
             $dv = new Div();
             $dv->setVAlign("middle");
             $dv->setAlign("center");
             $dv->setBorder(3);
             $dv->setStyle("border-color", "#ff2200");
             $dv->setStyle("background-color", "#aacc00");
             $dv->setXPos($_REQUEST['X']);
             $dv->setYPos($_REQUEST['Y']);
             $dv->setWidth($this->CONTROL_IMAGE_WIDTH);
             $dv->setHeight($this->CONTROL_IMAGE_HEIGHT);
             $dv->add(new Text("Neu", 3, true, false, false, false));
             $dv->show();
         }
     }
     // Neuen Sensor anlegen
     if (isset($_REQUEST['InsertNewSensorControl']) && $_REQUEST['InsertNewSensorControl'] == "do") {
         if (!(isset($_REQUEST['name']) && isset($_REQUEST['id']) && isset($_REQUEST['sensor_art']))) {
             $mask = $this->getInsertSensorMask($_REQUEST['X'], $_REQUEST['Y'] - $_SESSION['additionalLayoutHeight']);
             $mask->show();
             $dv = new Div();
             $dv->setVAlign("middle");
             $dv->setAlign("center");
             $dv->setBorder(3);
             $dv->setStyle("border-color", "#ff2200");
             $dv->setStyle("background-color", "#aacc00");
             $dv->setXPos($_REQUEST['X']);
             $dv->setYPos($_REQUEST['Y']);
             $dv->setWidth($this->SENSOR_IMAGE_WIDTH);
             $dv->setHeight($this->SENSOR_IMAGE_HEIGHT);
             $dv->add(new Text("Neu", 2, true, false, false, false));
             $dv->show();
         }
     }
     // Existierenden Eintrag bearbeiten
     if (isset($_REQUEST['editControl']) && strlen($_REQUEST['editControl']) > 0) {
         if (!(isset($_REQUEST['RowId']) && isset($_REQUEST['Name']) && isset($_REQUEST['FunkId']) && isset($_REQUEST['Art']))) {
             $mask = $this->getEditMask($_REQUEST['editControl']);
             $mask->show();
         }
     }
     // Existierenden Eintrag bearbeiten
     if (isset($_REQUEST['editSensorControl']) && strlen($_REQUEST['editSensorControl']) > 0) {
         if (!(isset($_REQUEST['RowId']) && isset($_REQUEST['name']) && isset($_REQUEST['sensor_art']) && isset($_REQUEST['sensor_art']))) {
             $mask = $this->getEditSensorMask($_REQUEST['editSensorControl']);
             $mask->show();
         }
     }
 }
示例#12
0
 /**
  * show-Methode für TYPE = horizontal
  */
 function showHorizontalMenu()
 {
     $div = new Div();
     $div->setHeight($this->getHeight());
     $div->setWidth($this->getWidth());
     if (strlen($this->getAlign()) > 0) {
         $div->setAlign($this->getAlign());
     }
     $div->setXPos($this->XPOS);
     $div->setYPos($this->YPOS);
     $div->setBorder($this->BORDER);
     $userStatus = $this->CONFIG->CURRENTUSER->STATUS;
     $menuArray = $this->MENUTABLE->getMenuByStatus($userStatus);
     $spacer = $this->SPACER;
     $spacer->setFonttype($this->getFonttype());
     $rowCtr = mysql_num_rows($menuArray);
     $entryCount = mysql_num_rows($menuArray);
     $ctr = 0;
     //prüfvariable zum Rows mitzählen
     while ($row = mysql_fetch_array($menuArray)) {
         if ($row['id'] > 0) {
             // Spacer ( | oder übergebener Spacer )
             $lnk = $row['link'];
             if (strlen($row['parent']) > 0 && !strpos($lnk, "menuParent")) {
                 $lnk .= "&menuParent=" . $row['parent'];
             }
             if ($ctr != 0 && $ctr != $entryCount) {
                 $lSpacer = new Link($lnk, $spacer, false, $row['target']);
                 //$lSpacer->setToolTip($row['tooltip']);
                 $div->add($lSpacer);
             }
             // Link
             $txt = new Text($row['text']);
             $txt->setFonttype($this->getFonttype());
             if (ltrim($txt->getText()) == $_SESSION['MENU_PARENT'] || ltrim($txt->getText()) == $this->getLabelByRunlink($_SESSION['runLink'], $_SESSION['MENU_PARENT'])) {
                 $txt->setText("<font color='" . $_SESSION['config']->COLORS['hover'] . "' >" . $txt->getText() . "</font>");
                 $txt->setFilter(false);
             }
             $l = new Link($lnk, $txt, false, $row['target']);
             $l->setStyleclass("menulink");
             //$l->setToolTip($row['tooltip']);
             $div->add($l);
         }
         $ctr++;
         //prüfvariable zum Rows mitzählen
     }
     $div->show();
 }