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(); }