function getHTML($id) { $B = new Button("Element\nlöschen", "trash", "icon"); $B->rmePCR("poolAnzeigeControl", $this->getID(), "deleteMe", "", OnEvent::closePopup("poolAnzeigeControl") . OnEvent::reload("Screen")); $B->style("margin:10px;"); $gui = new HTMLGUIX($this); $gui->name("Element"); $gui->displayMode("popupS"); $gui->attributes(array("poolAnzeigeControlCaption", "poolAnzeigeControlLabel", "poolAnzeigeControlNewLine", "poolAnzeigeControlClass", "poolAnzeigeControlSrc", "poolAnzeigeControlServer", "poolAnzeigeControlMaster", "poolAnzeigeControlValue", "poolAnzeigeControlUpdate", "poolAnzeigeControlGroup", "poolAnzeigeControlGroupDelay", "poolAnzeigeControlGroupDelayIf")); $gui->label("poolAnzeigeControlNewLine", "Neue Zeile"); $gui->label("poolAnzeigeControlCaption", "Überschrift"); $gui->label("poolAnzeigeControlLabel", "Beschriftung"); $gui->label("poolAnzeigeControlOrder", "Reihenfolge"); $gui->label("poolAnzeigeControlClass", "Klasse"); $gui->label("poolAnzeigeControlSrc", "Bild"); $gui->label("poolAnzeigeControlServer", "Steuerung"); $gui->label("poolAnzeigeControlGroupDelay", "Verzögerung in s"); $gui->label("poolAnzeigeControlGroup", "Eigene Gruppe"); $gui->label("poolAnzeigeControlUpdate", "Update Gruppe(n)"); $gui->label("poolAnzeigeControlGroupDelayIf", "Wenn"); $gui->type("poolAnzeigeControlNewLine", "checkbox"); $gui->type("poolAnzeigeControlServer", "readonly"); $gui->type("poolAnzeigeControlClass", "select", array("manual" => "Statisch", "load" => "Laden", "value" => "Wert")); $gui->type("poolAnzeigeControlGroupDelayIf", "select", array("" => "ohne", "on" => "Ein")); if ($this->A("poolAnzeigeControlMasterValues") != "") { $gui->type("poolAnzeigeControlMaster", "select", poolAnzeigeControl::values($this->A("poolAnzeigeControlMasterValues"))); } $gui->descriptionField("poolAnzeigeControlUpdate", "Mehrere Gruppen durch Komma trennen"); $gui->descriptionField("poolAnzeigeControlNewLine", "Fügt eine neue Zeile vor dem Element ein"); $gui->space("poolAnzeigeControlClass"); $gui->space("poolAnzeigeControlServer"); $gui->space("poolAnzeigeControlUpdate"); return $B . $gui->getEditHTML(); }
private function getGUI($id) { $this->loadMeOrEmpty(); if ($id == -1) { $this->A->typ = "LoginData"; } $gui = new HTMLGUIX($this); $gui->name("LoginData"); $gui->label("UserID", "Benutzer"); $gui->label("name", "Typ"); $gui->label("passwort", "Passwort"); $gui->label("optionen", "Optionen"); $gui->label("benutzername", "Benutzername"); $gui->label("server", "Server"); $gui->type("typ", "hidden"); $gui->type("wert", "hidden"); $gui->type("passwort", "password"); $onkeyup = "\$('editLoginDataGUI').wert.value = \$('editLoginDataGUI').benutzername.value+'::::'+\$('editLoginDataGUI').passwort.value+(\$('editLoginDataGUI').server.value != '' ? '::::s:'+\$('editLoginDataGUI').server.value : '')+(\$('editLoginDataGUI').optionen.value != '' ? '::::o:'+\$('editLoginDataGUI').optionen.value : '')"; $gui->addFieldEvent("benutzername", "onKeyup", $onkeyup); $gui->addFieldEvent("server", "onKeyup", $onkeyup); $gui->addFieldEvent("passwort", "onKeyup", $onkeyup); $gui->addFieldEvent("optionen", "onKeyup", $onkeyup); $U = new Users(); $U->addAssocV3("isAdmin", "=", "0"); $Users = array(); $Users[-1] = "alle Benutzer"; while ($t = $U->getNextEntry()) { $Users[$t->getID()] = $t->A("name"); } $gui->type("UserID", "select", $Users); $dataTypes = LoginData::getNames(); $gui->type("name", "select", $dataTypes); return $gui; }
function getHTML($id) { $this->loadMeOrEmpty(); $gui = new HTMLGUIX($this); $gui->name("DL"); $gui->attributes(array("JDDLType", "JDName", "JDHost", "JDPort", "JDUser", "JDPassword", "JDWgetFilesDir", "JDLinkParser", "JDLinkParserUser", "JDLinkParserPassword")); $gui->label("JDDLType", "Type"); $gui->label("JDName", "Name"); $gui->label("JDHost", "Host"); $gui->label("JDPort", "Port"); $gui->label("JDUser", "User"); $gui->label("JDPassword", "Password"); $gui->label("JDWgetFilesDir", "Wget files dir"); $gui->label("JDLinkParser", "Parser"); $gui->label("JDLinkParserUser", "User"); $gui->label("JDLinkParserPassword", "Password"); $gui->descriptionField("JDPort", "Default: JD Web 8765; QNap 8080; JD RC 10025; pyLoad 7227"); $gui->space("JDUser"); $gui->space("JDLinkParser", "Link"); $FB = new FileBrowser(); $FB->addDir(__DIR__); $gui->type("JDLinkParser", "select", array_merge(array("" => "None"), $FB->getAsLabeledArrayF("iLinkParser", ".class.php", true))); $gui->type("JDDLType", "select", array("JDownloader Web", "QNap Downloader", "JDownloader RC", "pyLoad", "wget")); $gui->toggleFields("JDDLType", "4", array("JDWgetFilesDir"), array("JDHost", "JDPort", "JDUser", "JDPassword")); $B = $gui->addSideButton("test\ndownload", "./trinityDB/JD/testLink.png"); $B->popup("testLink", "test link", "JD", $this->getID(), "testDownloadPopup"); 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 HTMLGUIX($this); #$gui->setObject(); $gui->name("Benutzer"); $gui->attributes(array("name", "username", "password", "SHApassword", "language", "UserPosition", "isAdmin", "UserEmail", "UserICQ", "UserJabber", "UserSkype", "UserTel")); $gui->label("name", "Name"); $gui->label("username", "Benutzername"); $gui->label("password", "Passwort"); $gui->label("SHApassword", "Passwort"); $gui->label("language", "Sprache"); $gui->label("isAdmin", "Admin-Rechte?"); $gui->label("UserEmail", "E-Mail"); $gui->label("UserICQ", "ICQ"); $gui->label("UserJabber", "Jabber"); $gui->label("UserSkype", "Skype"); $gui->label("UserTel", "Telefon"); $gui->type("language", "select", array("de_DE" => "Deutsch (Deutschland) €", "de_DE_EUR" => "Deutsch (Deutschland) EUR", "de_CH" => "Deutsch (Schweiz) sFr", "de_CH_CHF" => "Deutsch (Schweiz) CHF", "en_GB" => "English (United Kingdom)")); #$gui->setOptions("language",); $gui->descriptionField("SHApassword", "Zum Ändern eingeben."); $gui->type("password", "hidden"); $gui->type("SHApassword", "password"); $gui->type("isAdmin", "radio"); $gui->descriptionField("isAdmin", "<span style=\"color:red;\">Achtung: als Admin sehen Sie nur diese Admin-Oberfläche und NICHT das Programm selbst!</span>"); #$gui->translate($this->loadTranslation()); $gui->space("UserEmail", isset($this->texts["Kontaktdaten"]) ? $this->texts["Kontaktdaten"] : "Kontaktdaten"); $gui->type("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) { $gui = new HTMLGUIX($this); $gui->name("MailCheck"); $gui->type("MailCheckPassword", "password"); $gui->type("MailCheckProtocol", "select", array("imap" => "imap", "pop3" => "pop3")); $gui->descriptionField("MailCheckPort", "POP3: 110, IMAP: 143"); $B = $gui->addSideButton("Mails\nprüfen", "./fheME/MailCheck/check.png"); $B->popup("", "Mails prüfen", "MailCheck", $this->getID(), "check"); return $gui->getEditHTML(); }
function getHTML($id) { $BC = new Button("Abbrechen", "stop"); $BC->style("margin:10px;float:right;"); $BC->onclick("\$j('#listAP .lastSelected').removeClass('lastSelected'); \$j('#editAP').fadeOut(400, function(){ \$j('#editDetailsTinkerforge').animate({'width':'400px'}, 200, 'swing'); });"); $gui = new HTMLGUIX($this); $gui->name("Bricklet"); $gui->type("TinkerforgeBrickletTinkerforgeID", "hidden"); $gui->type("TinkerforgeBrickletType", "select", self::$types); $gui->addToEvent("onSave", "\$j('#listAP .lastSelected').removeClass('lastSelected'); \$j('#editAP').fadeOut(400, function(){ \$j('#editDetailsTinkerforge').animate({'width':'400px'}, 200, 'swing', function(){ " . OnEvent::reloadPopup("Tinkerforge") . " }); }); "); return $BC . "<div style=\"clear:both;\"></div>" . $gui->getEditHTML(); }
function getHTML($id) { $gui = new HTMLGUIX($this); $gui->name("Benutzer"); $AC = Users::getUsersArray("Bitte auswählen..."); $gui->label("phimUserSystemName", "Windows-Login"); $gui->label("phimUserUserID", "Benutzer"); $gui->label("phimUserActive", "Aktiv?"); $gui->type("phimUserUserID", "select", $AC); $gui->type("phimUserActive", "checkbox"); $gui->type("phimUserToken", "readonly"); return $gui->getEditHTML(); }
function getHTML($id) { $gui = new HTMLGUIX($this); $gui->name("IncomingPrettify"); $gui->displayMode("popup"); $gui->label("IncomingPrettifyFind", "Find"); $gui->label("IncomingPrettifyReplace", "Replace"); $gui->label("IncomingPrettifyIsActive", "Active?"); $gui->label("IncomingPrettifyCaseSensitive", "Case sensitive?"); $gui->type("IncomingPrettifyIsActive", "checkbox"); $gui->type("IncomingPrettifyCaseSensitive", "checkbox"); $gui->descriptionField("IncomingPrettifyReplace", "You may use //1, //2 and //3 for the found occurences"); return $gui->getEditHTML(); }
function getHTML($id) { $gui = new HTMLGUIX($this); $gui->name("Steuerung"); $gui->type("poolSteuerungTyp", "select", self::$types); return $gui->getEditHTML(); }
function getHTML($id) { if ($this->getID() == -1) { $this->loadMeOrEmpty(); $this->changeA("EinkaufszettelBought", 1); } $gui = new HTMLGUIX($this); $gui->name("Einkaufszettel"); $gui->attributes(array("EinkaufszettelName", "EinkaufszettelEinkaufszettelKategorieID", "EinkaufszettelImmer", "EinkaufszettelBought")); $gui->label("EinkaufszettelImmer", "Immer anzeigen?"); $gui->label("EinkaufszettelEinkaufszettelKategorieID", "Kategorie"); $gui->type("EinkaufszettelBought", "hidden"); $gui->type("EinkaufszettelEinkaufszettelKategorieID", "select", anyC::get("EinkaufszettelKategorie"), "EinkaufszettelKategorieName", "Bitte auswählen..."); $gui->type("EinkaufszettelImmer", "checkbox"); return $gui->getEditHTML(); }
function getHTML($id) { $gui = new HTMLGUIX($this); $gui->name("Websocket"); #$B = $gui->addSideButton("Verbindung\ntesten", "empty"); #$B->onclick("pWebsocket.test(\$j('#editWebsocketGUI input[name=WebsocketServer]').val()+':'+\$j('#editWebsocketGUI input[name=WebsocketServerPort]').val());"); $gui->attributes(array("WebsocketUseFor", "WebsocketServer", "WebsocketServerPort", "WebsocketSecure", "WebsocketRealm", "WebsocketToken")); $gui->label("WebsocketSecure", "Verschlüsselt?"); $gui->label("WebsocketUseFor", "Verwenden für"); $gui->label("WebsocketServerPort", "Port"); $gui->type("WebsocketSecure", "checkbox"); $gui->type("WebsocketUseFor", "select", array("phim" => "phim", "fheME" => "fheME")); $gui->space("WebsocketServer"); $gui->space("WebsocketRealm"); return $gui->getEditHTML(); }
function getHTML($id) { $gui = new HTMLGUIX($this); $gui->name("Ausgeblendeter Benutzer"); $AC = Users::getUsersArray("Bitte auswählen..."); $gui->label("phimUserHiddenUserID", "Benutzer"); $gui->type("phimUserHiddenUserID", "select", $AC); return $gui->getEditHTML(); }
function getHTML($id) { $gui = new HTMLGUIX($this); $gui->name("RSSParser"); $FB = new FileBrowser(); $FB->addDir(dirname(__FILE__)); $P = array_merge(array("" => "kein Parser"), array_flip($FB->getAsLabeledArray("iRSSParser", ".class.php"))); $FB = new FileBrowser(); $FB->addDir(dirname(__FILE__)); $PD = array_merge(array("" => "kein Parser"), array_flip($FB->getAsLabeledArray("iRSSDataParser", ".class.php"))); $fields = array("RSSParserName", "RSSParserURL", "RSSParserPOST", "RSSParserDataParserClass", "RSSParserUseCache", "RSSParserLastUpdate", "RSSParserCache"); if (Applications::activeApplication() == "fheME") { $fields[] = "RSSParserParserClass"; $fields[] = "RSSParserOnCall"; $fields[] = "RSSParserCount"; } $gui->attributes($fields); $gui->type("RSSParserParserClass", "select", $P); $gui->type("RSSParserDataParserClass", "select", $PD); $gui->type("RSSParserUseCache", "checkbox"); $gui->type("RSSParserPOST", "textarea"); $gui->label("RSSParserParserClass", "Parser"); $gui->label("RSSParserOnCall", "Button"); $gui->label("RSSParserCount", "Anzahl"); $gui->label("RSSParserDataParserClass", "Data-Parser"); $gui->descriptionField("RSSParserUseCache", "Der Cache funktioniert nur zusammen mit dem cronjob"); $gui->descriptionField("RSSParserPOST", "Format: Jeweils ein Name:Wert pro Zeile<br>Variablen: \$timestampToday"); $gui->parser("RSSParserLastUpdate", "parserLastUpdate"); $gui->parser("RSSParserCache", "parserCache"); $gui->descriptionField("RSSParserParserClass", "Der Parser kann die Anzeige des Feeds anpassen"); $gui->descriptionField("RSSParserDataParserClass", "Der Parser kann die Daten des Feeds anpassen"); $gui->descriptionField("RSSParserOnCall", "Der Feed wird mit einem eigenen Button geöffnet"); $gui->descriptionField("RSSParserCount", "Die maximale Anzahl der angezeigten Einträge. 0 zeigt alle"); #$gui->type("RSSParserLastUpdate", "hidden"); $gui->type("RSSParserOnCall", "checkbox"); $B = $gui->addSideButton("Update", "down"); $B->rmePCR("RSSParser", $this->getID(), "download", "", OnEvent::reload("Left")); #if($this->A("RSSParserCache") != ""){ # $B = $gui->addSideButton("XML\nvalidieren", "new"); # $B->popup("", "XML validieren", "RSSParser", $this->getID(), "validate"); #} return $gui->getEditHTML(); }
function getHTML($id) { $this->loadMeOrEmpty(); $gui = new HTMLGUIX($this); $gui->name("Gericht"); $gui->label("GerichtName", "Name"); $gui->label("GerichtRezeptBuch", "Buch"); $gui->label("GerichtRezeptBuchSeite", "Seite"); $gui->space("GerichtRezept", "Rezept"); #$gui->setLabel("GerichtBemerkung","Bemerkung"); //$gui->setLabel("GerichtZuletztAm","gekocht am"); $gui->type("GerichtZuletztAm", "hidden"); $gui->type("GerichtRezept", "textarea"); $gui->type("GerichtBemerkung", "textarea"); #$gui->setStandardSaveButton($this); if (BPS::popProperty("GerichtGUI", "mode", "default") == "popup") { $gui->displayMode("popup"); } return $gui->getEditHTML(); }
function getHTML($id) { $this->loadMeOrEmpty(); $gui = new HTMLGUIX($this); $gui->name("Dateieigenschaften"); #$gui->setObject($this); #$gui->setLabelCaption("Dateieigenschaften"); $gui->label("FileName", "Dateiname"); $gui->label("FileDir", "Verzeichnis"); $gui->label("FileSize", "Größe"); $gui->label("FileMimetype", "Typ"); $gui->label("FileIsWritable", "beschreibbar?"); $gui->label("FileIsReadable", "lesbar?"); $gui->label("FileCreationDate", "Erstellt am"); $gui->space("FileIsWritable"); $gui->type("FileIsDir", "hidden"); $gui->parser("FileSize", "FileGUI::sizeParser"); $gui->parser("FileIsWritable", "Util::catchParser"); $gui->parser("FileIsReadable", "Util::catchParser"); $gui->parser("FileCreationDate", "FileGUI::dateParser"); $display = ""; $Path = $this->A->FileDir . "/" . $this->A->FileName; $relPath = $this->getRelPath(); switch ($this->A->FileMimetype) { case "image/jpeg": case "image/png": case "image/gif": $display .= "<img src=\"" . $relPath . "\" />"; break; case "text/plain": case "text/x-php": $display = highlight_file($this->A->FileDir . "/" . $this->A->FileName, true); break; case "application/pdf": $display = "<input onclick=\"windowWithRme('File', '{$Path}', 'previewPDF', '');\" type=\"button\" class=\"bigButton backgroundColor2\" value=\"PDF\nanzeigen\" style=\"margin:5px;background-image:url(./images/navi/pdf.png);\" />"; break; } if ($display != "") { $display = "\n\t\t<div>\n\t\t\t<div class=\"backgroundColor1 Tab\"><p>Vorschau</p></div>\n\t\t\t<div class=\"backgroundColor3\" style=\"margin-left:10px;margin-right:10px;overflow:auto;max-height:400px;\">{$display}</div>\n\t\t</div>"; } if ($this->A("FileIsDir") == "0") { if (stripos(PHP_OS, "WIN") === false) { $B = $gui->addSideButton("Verschieben", "./plugins/Files/move.png"); #$B->select(false, "mFile", "File", $this->getID(), "moveToDir"); $B->customSelect("contentRight", $this->getID(), "mFile", "pFile.move"); } #$B = $gui->addSideButton("Umbenennen", "./plugins/Files/rename.png"); #$B->popup("", "Datei umbenennen", "File", $this->getID(), "popupRename"); } $gui->optionsEdit(false, false); return (!$this->showPreviewOnly ? $gui->getEditHTML() : "") . $display; }
function getHTML($id) { $this->makeNewIfNew(); $gui = new HTMLGUIX($this); $gui->name("Device"); $gui->type("DeviceType", "select", array("Unbekannt", "Smartphone", "Tablet 7 Zoll", "Tablet 10 Zoll", "Desktop")); $gui->addFieldEvent("DeviceType", "onchange", "if(this.value == 4) \$j('#editOverview').hide(); else \$j('#editOverview').show();"); $B = $gui->addSideButton("Browser\nregistrieren", "./plugins/Devices/registerDevice.png"); $B->onclick("\$j.jStorage.set('phynxDeviceID','" . $this->getID() . "');" . OnEvent::reload("Left")); $B = $gui->addSideButton("Übersicht\neinrichten", "./fheME/Overview/fheOverview.png"); $B->popup("", "Übersicht einrichten", "mfheOverview", "-1", "manage", $this->getID(), "", "{width:800, top:40}"); $B->id("editOverview"); if ($this->A("DeviceType") == "4") { $B->style("display:none;"); } return $gui->getEditHTML(); }
function getHTML($id) { $gui = new HTMLGUIX($this); $gui->name("UPnP"); $gui->attributes(array("UPnPName", "UPnPLocation", "UPnPModelName", "UPnPUDN", "UPnPHide", "UPnPDefaultDownloadsServer", "UPnPDefaultDownloadsDirectory", "UPnPDefaultMediacenterDirectory", "UPnPContentDirectory", "UPnPContentDirectorySCPDURL", "UPnPContentDirectorycontrolURL", "UPnPAVTransport", "UPnPAVTransportSCPDURL", "UPnPAVTransportcontrolURL", "UPnPConnectionManager", "UPnPConnectionManagerSCPDURL", "UPnPConnectionManagercontrolURL", "UPnPRenderingControl", "UPnPRenderingControlSCPDURL", "UPnPRenderingControlcontrolURL")); #$gui->optionsEdit(false, false); $gui->toggleFields("UPnPDefaultDownloadsServer", "1", array("UPnPDefaultDownloadsDirectory")); $gui->label("UPnPDefaultDownloadsServer", "Server?"); $gui->label("UPnPDefaultDownloadsDirectory", "Verzeichnis"); $gui->label("UPnPConnectionManager", "Verfügbar?"); $gui->label("UPnPAVTransport", "Verfügbar?"); $gui->label("UPnPContentDirectory", "Verfügbar?"); $gui->label("UPnPDefaultMediacenterDirectory", "Verzeichnis"); $gui->type("UPnPDefaultDownloadsServer", "checkbox"); $gui->type("UPnPConnectionManager", "checkbox"); $gui->type("UPnPAVTransport", "checkbox"); $gui->type("UPnPContentDirectory", "checkbox"); $gui->type("UPnPRenderingControl", "checkbox"); $gui->type("UPnPHide", "checkbox"); $gui->label("UPnPContentDirectorySCPDURL", "SCPDURL"); $gui->label("UPnPAVTransportSCPDURL", "SCPDURL"); $gui->label("UPnPConnectionManagerSCPDURL", "SCPDURL"); $gui->label("UPnPRenderingControlSCPDURL", "SCPDURL"); $gui->label("UPnPContentDirectorycontrolURL", "controlURL"); $gui->label("UPnPAVTransportcontrolURL", "controlURL"); $gui->label("UPnPConnectionManagercontrolURL", "controlURL"); $gui->label("UPnPRenderingControlcontrolURL", "controlURL"); $gui->space("UPnPDefaultMediacenterDirectory", "Mediencenter"); $gui->space("UPnPDefaultDownloadsServer", "Downloads"); $gui->space("UPnPConnectionManager", "ConnectionManager"); $gui->space("UPnPAVTransport", "AVTransport"); $gui->space("UPnPContentDirectory", "ContentDirectory"); $gui->space("UPnPRenderingControl", "RenderingControl"); $B = $gui->addSideButton("Info\nabrufen", "lieferschein"); $B->popup("", "Info abrufen", "UPnP", $this->getID(), "loadInfo"); if ($this->A("UPnPAVTransport") == "1") { $B = $gui->addSideButton("Steuerung", "./fheME/UPnP/controls.png"); $B->popup("", "Steuerung", "UPnP", $this->getID(), "controls"); } if ($this->A("UPnPContentDirectory") == "1") { $B = $gui->addSideButton("Verzeichnis", "./fheME/UPnP/directory.png"); $B->popup("", "Verzeichnis", "UPnP", $this->getID(), "directory", "0", "", "{width:800}"); #$B = $gui->addSideButton("Suche", "./fheME/UPnP/search.png"); #$B->popup("", "Suche", "UPnP", $this->getID(), "suche", "0", "", "{width:800}"); } return $gui->getEditHTML(); }
function getHTML($id) { $gui = new HTMLGUIX($this); $gui->name("Adresse"); $gui->attributes(array("vorname", "nachname", "strasse", "nr", "plz", "ort", "land", "tel", "mobil", "email", "geb")); $gui->label("plz", "PLZ"); $gui->label("strasse", "Straße"); $gui->label("ort", "Ort"); $gui->label("vorname", "Vorname"); $gui->label("nachname", "Nachname"); $gui->label("land", "Land"); $gui->label("tel", "Telefon"); $gui->label("email", "E-Mail"); $gui->label("mobil", "Mobil"); $gui->label("nr", "Nr"); $gui->label("geb", "Geburtstag"); $gui->type("geb", "date"); #$gui->type("land", "select", ISO3166::getCountries()); $gui->space("tel"); $gui->space("geb"); $gui->space("strasse"); return $gui->getEditHTML(); }
function getHTML($id) { T::load(dirname(__FILE__), "Wecker"); $gui = new HTMLGUIX($this); $gui->name("Wecker"); $gui->attributes(array("WeckerDeviceID", "WeckerIsActive", "WeckerTime", "WeckerMo", "WeckerRepeat", "WeckerSource", "WeckerFallback", "WeckerVolume", "WeckerRepeatAfter", "WeckerRuntime")); $gui->type("WeckerDeviceID", "select", anyC::get("Device"), "DeviceName"); $gui->type("WeckerIsActive", "checkbox"); $gui->type("WeckerRepeat", "checkbox"); #$gui->type("WeckerFallback", "file"); $gui->type("WeckerRuntime", "select", array(10 => "10 " . T::_("Minuten"), 20 => "20 " . T::_("Minuten"), 30 => "30 " . T::_("Minuten"), 40 => "40 " . T::_("Minuten"), 50 => "50 " . T::_("Minuten"), 60 => "1 " . T::_("Stunde"))); #$gui->type("WeckerMo", "checkbox"); #$gui->type("WeckerDi", "checkbox"); #$gui->type("WeckerMi", "checkbox"); #$gui->type("WeckerDo", "checkbox"); #$gui->type("WeckerFr", "checkbox"); #$gui->type("WeckerSa", "checkbox"); #$gui->type("WeckerSo", "checkbox"); $gui->type("WeckerRepeat", "hidden"); $gui->type("WeckerRepeatAfter", "select", array(60 => "1 " . T::_("Minute"), 5 * 60 => "5 " . T::_("Minuten"), 10 * 60 => "10 " . T::_("Minuten"), 15 * 60 => "15 " . T::_("Minuten"), 20 * 60 => "20 " . T::_("Minuten"))); $gui->type("WeckerVolume", "select", array(10 => "10%", 20 => "20%", 30 => "30%", 40 => "40%", 50 => "50%", 60 => "60%", 70 => "70%", 80 => "80%", 90 => "90%", 100 => "100%")); $gui->space("WeckerTime"); $gui->space("WeckerRepeat"); $gui->label("WeckerMo", "Tage"); $gui->label("WeckerDeviceID", "Gerät"); $gui->label("WeckerIsActive", "Aktiv?"); $gui->label("WeckerTime", "Zeit"); $gui->label("WeckerSource", "URL"); $gui->label("WeckerFallback", "Datei"); $gui->label("WeckerVolume", "Lautstärke"); $gui->label("WeckerRepeatAfter", "Wiederholen nach"); $gui->label("WeckerRuntime", "Laufzeit"); $gui->parser("WeckerFallback", "WeckerGUI::parserFallback"); $gui->parser("WeckerMo", "WeckerGUI::parserDays"); $gui->descriptionField("WeckerSource", "Die Adresse zu einem Internetradio-Stream"); #$gui->parser("WeckerMo", "WeckerGUI::parserTage"); return $gui->getEditHTML(); }
function getHTML($id) { $this->loadMeOrEmpty(); $gui = new HTMLGUIX($this); $gui->name("Fhem"); $gui->label("FhemServerID", "Server"); $gui->label("FhemName", "Name in FHEM"); $gui->label("FhemAlias", "Zu zeigender Name"); $gui->label("FhemType", "Type"); $gui->label("FhemSpecific", "Adresscode"); $gui->label("FhemRoom", "Raumname"); $gui->label("FhemModel", "Model"); $gui->label("FhemFHTModel", "Model"); $gui->label("FhemITModel", "Model"); $gui->label("FhemHMModel", "Model"); $gui->label("FhemHMSub", "Sub-Type"); $gui->label("FhemHMClass", "hmClass"); $gui->label("FhemEMModel", "Model"); $gui->label("FhemRunOn", "run on"); $gui->label("FhemCommand", "Command"); $gui->label("FhemLocationID", "Location"); $gui->label("FhemInOverview", "In Overview?"); $gui->label("FhemFHTDefaultDayTemp", "day-temp"); $gui->label("FhemExtension", "Erweiterung"); $extensions = array("none" => "keine"); if (Session::isPluginLoaded("mSieHabenPost")) { $extensions["SieHabenPost"] = "Briefkasten"; } $gui->type("FhemExtension", "select", $extensions); $gui->type("FhemInOverview", "checkbox"); $gui->type("FhemModel", "select", array("" => "none", "fs20du" => "FS20 DU", "fs20s4u" => "FS20 S4U", "fs20s4" => "FS20 S4", "fs20st" => "FS20 ST", "fs20di" => "FS20 DI", "fs20irf" => "FS20 IRF", "fs20rsu" => "FS20 RSU")); $gui->type("FhemITModel", "select", array("" => "none", "itdimmer" => "IT-Dimmer", "itswitch" => "IT-Switch")); $gui->type("FhemHMModel", "select", array("" => "none", "dimmer" => "Dimmer", "switch" => "Switch", "HM-LC-Dim1L-CV" => "HM-LC-Dim1L-CV", "HM-LC-Dim1L-Pl" => "HM-LC-Dim1L-Pl", "HM-LC-Dim1PBU-FM" => "HM-LC-Dim1PBU-FM", "HM-LC-Dim1T-CV" => "HM-LC-Dim1T-CV", "HM-LC-Dim1T-Pl" => "HM-LC-Dim1T-Pl", "HM-LC-Dim2L-SM" => "HM-LC-Dim2L-SM", "HM-LC-Dim2T-SM" => "HM-LC-Dim2T-SM", "HM-LC-Sw1-FM" => "HM-LC-Sw1-FM", "HM-LC-Sw1-Pl" => "HM-LC-Sw1-Pl", "HM-LC-Sw1-SM" => "HM-LC-Sw1-SM", "HM-LC-Sw1PB-FM" => "HM-LC-Sw1PB-FM", "HM-LC-Sw1PBU-FM" => "HM-LC-Sw1PBU-FM", "HM-LC-Sw2-FM" => "HM-LC-Sw2-FM", "HM-LC-Sw4-WM" => "HM-LC-Sw4-WM", "HM-Sec-RHS" => "HM-Sec-RHS")); $gui->type("FhemHMSub", "select", array("" => "none", "AlarmControl" => "AlarmControl", "KFM100" => "KFM100", "THSensor" => "THSensor", "blindActuator" => "blindActuator", "dimmer" => "dimmer", "keyMatic" => "keyMatic", "motionDetector" => "motionDetector", "pushButton" => "pushButton", "remote" => "remote", "sensor" => "sensor", "smokeDetector" => "smokeDetector", "swi" => "swi", "switch" => "switch", "threeStateSensor" => "threeStateSensor", "winMatic" => "winMatic")); $gui->type("FhemHMClass", "select", array("" => "none", "receiver" => "Empfänger", "sender" => "Sender")); $gui->type("FhemEMModel", "select", array("" => "none", "EMEM" => "EM 1000-EM")); $gui->type("FhemFHTModel", "select", array("" => "none", "fht80b" => "80B")); $gui->type("FhemType", "select", array("" => "none", "FS20" => "FS20", "FHZ" => "FHZ", "FHT" => "FHT", "CUL_HM" => "HomeMatic", "IT" => "Intertechno", "CUL_EM" => "ELV EM", "notify" => "notify", "dummy" => "dummy")); $B = $gui->addSideButton("Show\ndata", "./fheME/Fhem/showData.png"); $B->popup("", "Show data", "Fhem", $this->getID(), "showData"); $gui->type("FhemLocationID", "select", new mFhemLocationGUI(), "FhemLocationName", "everywhere"); #$gui->selectWithCollection("FhemLocationID", ); $gui->type("FhemCommand", "textarea"); $gui->descriptionField("FhemRunOn", "e.g. Door:toggle"); $gui->descriptionField("FhemCommand", "you may use new line, it will be replaced by space"); $gui->inputStyle("FhemCommand", "height:300px;font-size:8px;"); $gui->attributes(array("FhemServerID", "FhemLocationID", "FhemName", "FhemAlias", "FhemInOverview", "FhemType", "FhemExtension", "FhemModel", "FhemITModel", "FhemHMModel", "FhemEMModel", "FhemFHTModel", "FhemSpecific", "FhemHMSub", "FhemHMClass", "FhemRoom", "FhemRunOn", "FhemCommand")); $gui->space("FhemType"); $gui->toggleFieldsInit("FhemType", array("FhemModel", "FhemITModel", "FhemHMModel", "FhemEMModel", "FhemSpecific", "FhemHMSub", "FhemHMClass", "FhemRoom", "FhemRunOn", "FhemCommand", "FhemFHTModel", "FhemFHTDefaultDayTemp", "FhemExtension")); $gui->toggleFields("FhemType", "FHZ", array("FhemSpecific", "FhemRoom")); $gui->toggleFields("FhemType", "FS20", array("FhemModel", "FhemSpecific", "FhemRoom")); $gui->toggleFields("FhemType", "notify", array("FhemRunOn", "FhemCommand", "FhemRoom")); $gui->toggleFields("FhemType", "IT", array("FhemITModel", "FhemSpecific", "FhemRoom")); $gui->toggleFields("FhemType", "CUL_HM", array("FhemHMModel", "FhemSpecific", "FhemHMSub", "FhemHMClass", "FhemRoom")); $gui->toggleFields("FhemType", "CUL_EM", array("FhemEMModel", "FhemSpecific", "FhemRoom")); $gui->toggleFields("FhemType", "FHT", array("FhemFHTModel", "FhemSpecific", "FhemRoom")); $gui->toggleFields("FhemType", "dummy", array("FhemRoom", "FhemExtension")); $gui->type("FhemServerID", "select", new mFhemServerGUI(), "FhemServerName"); return $gui->getEditHTML(); }