function show() { if ($this->EDIT_MODE) { echo "<a href=\"?editControl=" . $this->ID . "\" style=\"position:absolute; left:" . $this->X . "px; top:" . ($this->Y + $_SESSION['additionalLayoutHeight']) . "px; width:" . $this->CONTROL_IMAGE_WIDTH . "px; height:" . $this->CONTROL_IMAGE_HEIGHT . "px;\">"; echo $this->getControlArtIconSrc(); echo "</a>"; } else { echo "<div style=\"position:absolute; left:" . $this->X . "px; top:" . ($this->Y + $_SESSION['additionalLayoutHeight']) . "px; width:" . $this->CONTROL_IMAGE_WIDTH . "px; height:" . $this->CONTROL_IMAGE_HEIGHT . "px;\">"; echo $this->getControlArtIconSrc(); if ($_SESSION['config']->PUBLICVARS['switchButtonsOnIconActive'] == "J") { $this->getSwitchButtons()->show(); } echo "</div>"; if ($this->DIMMER == "J") { $f = new Form(); $cobDimmLvl = new Combobox("dimmer", getNumberComboArray(1, 16), "", " "); $cobDimmLvl->setDirectSelect(true); $cobDimmLvl->setStyle("position", "absolute"); $cobDimmLvl->setStyle("left", $this->X . "px"); $cobDimmLvl->setStyle("top", $this->Y + $this->CONTROL_IMAGE_HEIGHT - 3 + $_SESSION['additionalLayoutHeight'] . "px"); $f->add($cobDimmLvl); $f->add(new Hiddenfield("schalte", $this->FUNK_ID)); $f->show(); } } }