public function getHTML($id) { $this->loadMeOrEmpty(); #if($this->A == null AND $id != -1) $this->loadMe(); #if($id == -1) $this->A = new InstallationAttributes(); BPS::setProperty("mInstallationGUI", "showErrorText", "1"); $gui = new HTMLGUI(); if (!Session::isPluginLoaded("multiInstall")) { $this->A->httpHost = "*"; $gui->setType("httpHost", "hidden"); } else { $gui->insertSpaceAbove("httpHost"); } $gui->setObject($this); $gui->setName("Zugangsdaten"); $gui->setType("password", "password"); $gui->setLabel("datab", "Datenbank"); $gui->setLabel("user", "Benutzer"); $gui->setLabel("password", "Passwort"); $gui->setLabel("httpHost", "Domain"); $gui->setFieldDescription("host", "Der Rechner, auf dem die Datenbank liegt. Das kann 'localhost' sein, oder eine IP wie '192.168.8.243' oder ein Hostname wie 'rdbms.strato.de'."); $gui->setFieldDescription("httpHost", "unter der phynx erreichbar ist oder * für alle Domains"); #$this->loadGUITranslation($gui); $gui->translate($this->loadTranslation()); $gui->setJSEvent("onSave", "\n\t\t\t\tfunction() {\n\t\t\t\t\tcontentManager.emptyFrame('contentLeft');\n\t\t\t\t\tcontentManager.emptyFrame('contentBelow');\n\t\t\t\t\tcontentManager.reloadFrame('contentRight');" . "\n\t\t\t\t}"); $gui->setStandardSaveButton($this); return $gui->getEditHTML(); }
function getHTML($id) { $this->customize(); #if($this->A == null AND $id != -1) $this->loadMe(); #if($id == -1) $this->A = new UserAttributes(); $this->loadMeOrEmpty(); $up = new anyC(); $up->setCollectionOf("User"); $up->addAssocV3("password", "!=", ";;;-1;;;"); $up->lCV3(); if ($up->numLoaded() > 0) { 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>"; } $this->A->password = "******"; $gui = new HTMLGUI(); $gui->setObject($this); $gui->setName("Benutzer"); $gui->setLabel("username", "Benutzername"); $gui->setLabel("password", "Passwort"); $gui->setLabel("SHApassword", "Passwort"); $gui->setLabel("language", "Sprache"); $gui->setType("language", "select"); $gui->setOptions("language", array("de_DE", "de_CH", "en_US"), array("Deutsch (Deutschland)", "Deutsch (Schweiz)", "English (United States)")); $gui->setFieldDescription("SHApassword", "Zum Ändern eingeben."); $gui->setType("password", "hidden"); $gui->setType("SHApassword", "password"); $gui->setLabel("isAdmin", "Admin-Rechte?"); $gui->setType("isAdmin", "radio"); $gui->setFieldDescription("isAdmin", "<span style=\"color:red;\">Achtung: als Admin sehen Sie nur diese Admin-Oberfläche und NICHT das Programm selbst!</span>"); $gui->setLabel("UserEmail", "E-Mail"); $gui->setLabel("UserICQ", "ICQ"); $gui->setLabel("UserJabber", "Jabber"); $gui->setLabel("UserSkype", "Skype"); $gui->setLabel("UserTel", "Telefon"); $gui->translate($this->loadTranslation()); $gui->insertSpaceAbove("UserEmail", isset($this->texts["Kontaktdaten"]) ? $this->texts["Kontaktdaten"] : "Kontaktdaten"); $gui->setType("isAdmin", "checkbox"); #$gui->setOptions("isAdmin",array("1","0"),array("ja ","nein")); $gui->setStandardSaveButton($this); $gui->customize($this->customizer); $mUD = new mUserdataGUI(); $mUD->addAssocV3("UserID", "=", $this->ID); $mUD->addAssocV3("typ", "=", "uRest", "AND", "1"); $mUD->addAssocV3("typ", "=", "relab", "OR", "1"); $mUD->addAssocV3("typ", "=", "hideF", "OR", "1"); $mUD->addAssocV3("typ", "=", "pSpec", "OR", "1"); $mUD->addAssocV3("typ", "=", "pHide", "OR", "1"); $html = "<div>" . $mUD->getHTML(-1) . "</div>"; if ($id == -1) { $html = "<table><tr><td class=\"backgroundColor3\">Sie können Einschränkungen erst anlegen, wenn der Benutzer angelegt wurde.</td></tr></table>"; } return $gui->getEditHTML() . ($this->A->isAdmin != 1 ? $html : ""); }
function getHTML($id) { $this->loadMeOrEmpty(); $gui = new HTMLGUI(); $gui->setObject($this); $gui->setName("Server"); $gui->setLabel("FhemServerName", "Name"); $gui->setLabel("FhemServerIP", "IP"); $gui->setLabel("FhemServerPort", "Port"); $gui->setLabel("FhemServerType", "Type"); $gui->setLabel("FhemServerURL", "URL"); $types = array("fhem", "Webservice"); $gui->setType("FhemServerType", "select"); $gui->setOptions("FhemServerType", array_keys($types), array_values($types)); $gui->setStandardSaveButton($this, "mFhemServer"); $gui->translate($this->loadTranslation()); return $gui->getEditHTML(); }