Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
 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();
 }
Exemplo n.º 3
0
 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 : "");
 }
Exemplo n.º 4
0
 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();
 }
Exemplo n.º 5
0
 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)
 {
     $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();
 }
Exemplo n.º 7
0
 function getHTML($id)
 {
     $gui = new HTMLGUIX($this);
     $gui->name("Wetter");
     #$gui->type("OpenWeatherMapDataCurrent", "textarea");
     #$gui->type("OpenWeatherMapDataForecast", "textarea");
     $gui->space("OpenWeatherMapLastUpdate");
     $gui->space("OpenWeatherMapDataCurrent");
     $gui->parser("OpenWeatherMapDataCurrent", "parserJSON");
     $gui->parser("OpenWeatherMapDataForecastDaily", "parserJSON");
     $gui->parser("OpenWeatherMapDataForecast", "parserJSONForecast");
     $gui->descriptionField("OpenWeatherMapUpdateInterval", "In Minuten");
     $B = $gui->addSideButton("Suche nach\nStadt", "application");
     $B->popup("", "Suche", "OpenWeatherMap", "-1", "popupSearchCity");
     $B = $gui->addSideButton("Update", "down");
     $B->rmePCR("OpenWeatherMap", $this->getID(), "download", "", OnEvent::reload("Left"));
     return $gui->getEditHTML();
 }
Exemplo n.º 8
0
 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();
 }
Exemplo n.º 9
0
 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();
 }