function getHTML($id, $page) { $gui = new HTMLGUI(); $gui->VersionCheck("Templates"); $U = new mUserdata(); $U = $U->getUDValue("selectedDomain"); if ($U == null) { $t = new HTMLTable(1); $t->addRow("Sie haben keine Domain ausgewählt.<br /><br />Bitte wählen Sie eine Domain im Domain-Plugin, indem Sie auf das graue Kästchen in der Liste auf der rechten Seite klicken."); return $t->getHTML(); } $this->addAssocV3("TemplateDomainID", "=", $U); $this->addAssocV3("TemplateDomainID", "=", "0", "OR"); $this->addOrderV3("templateType", "ASC"); #if($this->A == null) $this->lCV3($id); $gui->showFilteredCategoriesWarning($this->filterCategories(), $this->getClearClass()); $gesamt = $this->loadMultiPageMode($id, $page, 0); $gui->setMultiPageMode($gesamt, $page, 0, "contentRight", str_replace("GUI", "", get_class($this))); $gui->setName("Template"); if ($this->collector != null) { $gui->setAttributes($this->collector); } $gui->setShowAttributes(array("aktiv", "name")); $gui->setParser("aktiv", "TemplatesGUI::aktivParser", array("\$aid")); $gui->setColWidth("aktiv", "20px"); $gui->setDisplayGroup("templateType", $this->getAvailableCategories()); $gui->setCollectionOf($this->collectionOf); try { return $gui->getBrowserHTML($id); } catch (Exception $e) { } }
public function getHTML($id, $page) { $collectionGUI = $_SESSION["CurrentAppPlugins"]->getCollectionGUI($this->collectionOf); $gesamt = $this->loadMultiPageMode($id, $page, 0); $gui = new HTMLGUI(); $gui->setMultiPageMode($gesamt, $page, 0, 'contentRight', "m" . $this->collectionOf); $gui->setName($this->collectionOf); $gui->setAttributes($this->collector); $gui->setCollectionOf($this->collectionOf); if (isset($collectionGUI["showAttributes"]) and count($collectionGUI["showAttributes"]) > 0) { $gui->setShowAttributes($collectionGUI["showAttributes"]); } if (isset($collectionGUI["colWidth"])) { foreach ($collectionGUI["colWidth"] as $k => $v) { $gui->setColWidth($k, $v); } } if (isset($collectionGUI["rowStyle"])) { foreach ($collectionGUI["rowStyle"] as $k => $v) { $gui->addColStyle($k, $v); } } try { return $gui->getBrowserHTML($id); } catch (Exception $e) { } }
public function getHTML($id) { $allowedUsers = Environment::getS("allowedUsers", null); $this->addOrderV3("name"); if ($this->A == null) { $this->lCV3($id); } $up = new anyC(); $up->setCollectionOf("User"); $up->addAssocV3("password", "!=", ";;;-1;;;"); $up->lCV3(); if ($up->numLoaded() > 0 and $id == -1) { return "\n\t\t<table>\n\t\t\t<colgroup>\n\t\t\t\t<col class=\"backgroundColor3\" />\n\t\t\t</colgroup>\n\t\t\t<tr>\n\t\t\t\t<td><input onclick=\"rme('Users','','convertPasswords','','contentManager.reloadFrameRight();');\" type=\"button\" style=\"float:right;background-image:url(./images/navi/keys.png);\" class=\"bigButton backgroundColor2\" value=\"Passwörter\nkonvertieren\" />In Ihrer Datenbank befinden sich noch unkonvertierte Passwörter.</td>\n\t\t\t</tr>\n\t\t</table>"; } $T = new HTMLTable(1, "Application Server"); $I = new HTMLInput("AppServer", "text", mUserdata::getGlobalSettingValue("AppServer", "")); $I->onEnter("contentManager.rmePCR('Users', '-1', 'saveAppServer', [this.value], ' ');"); if ($allowedUsers === null) { $T->addRow($I . "<br /><small>Wenn Sie einen Application Server bertreiben, tragen Sie hier bitte die URL ein, um die Benutzer mit diesem Server zu authorisieren.</small>"); } $gui = new HTMLGUI(); $gui->setObject($this); $gui->setName("Benutzer"); $gui->setCollectionOf($this->collectionOf, "Benutzer"); #$gui->setObject($this); $gui->setParser("isAdmin", "UsersGUI::isAdminParser"); $gui->setColWidth("isAdmin", "20px"); #$gui->hideAttribute("password"); #$gui->hideAttribute("SHApassword"); #$gui->hideAttribute("language"); $gui->setShowAttributes(array("name", "username", "isAdmin")); $g = ""; if (strstr($_SERVER["SCRIPT_FILENAME"], "demo")) { $UA = $_SESSION["S"]->getCurrentUser()->getA(); if ($UA->name != "Installations-Benutzer") { $g = "In der Demo können keine Benutzer geändert werden!"; $gui->setIsDisplayMode(true); } } $TR = new HTMLTable(1); if ($allowedUsers !== null and $id == -1) { $B = new Button("", "notice", "icon"); $B->style("float:left;margin-right:10px;"); $TR->addRow(array($B . "Bitte beachten Sie: Sie können insgesamt {$allowedUsers} Benutzer ohne Admin-Rechte anlegen.")); } $gui->customize($this->customizer); return $TR . $g . $gui->getBrowserHTML($id) . ($id == -1 ? $T : ""); }