public function getHTML($id, $page) { $bps = $this->getMyBPSData(); $this->setParser("TodoTillDay", "Util::CLDateParser"); $this->setParser("TodoTillTime", "Util::CLTimeParser"); $this->addOrderV3("TodoTillDay", "DESC"); $this->addOrderV3("TodoTillTime", "DESC"); if ($bps != -1 and isset($bps["ownerClass"])) { $this->addAssocV3("TodoClass", "=", $bps["ownerClass"]); $this->addAssocV3("TodoClassID", "=", $bps["ownerClassID"]); } $gui = new HTMLGUIX(); $this->loadMultiPageMode($id, $page, 8); $gui->name("Aktivität"); $gui->colWidth("TodoType", "20px"); $gui->colWidth("TodoDoneTime", "20px"); $gui->object($this); $gui->parser("TodoDoneTime", "mTodoGUI::parserDone"); $gui->parser("TodoDescription", "mTodoGUI::descParser"); $gui->parser("TodoType", "TodoGUI::typesImage"); $gui->parser("TodoTillDay", "mTodoGUI::dayParser"); $gui->activateFeature("CRMEditAbove", $this); $gui->displayMode("CRMSubframeContainer"); $gui->attributes(array("TodoType", "TodoTillDay", "TodoDescription", "TodoDoneTime")); $gui->customize($this->customizer); return $gui->getBrowserHTML($id); }
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) { $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(); }
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(); }
public function getHTML($id, $page) { $this->loadMultiPageMode($id, $page, 0); $gui = new HTMLGUIX($this); $gui->version("mpoolSteuerung"); $gui->name("Steuerung"); $gui->attributes(array("poolSteuerungTyp", "poolSteuerungIP")); return $gui->getBrowserHTML($id); }
public function getHTML($id, $page) { $this->loadMultiPageMode($id, $page, 0); $gui = new HTMLGUIX($this); $gui->version("mRC"); $gui->name("RC"); $gui->attributes(array()); return $gui->getBrowserHTML($id); }
public function getHTML($id, $page) { $this->loadMultiPageMode($id, $page, 0); $gui = new HTMLGUIX($this); $gui->version("mRSSParser"); $gui->screenHeight(); $gui->name("RSSParser"); $gui->attributes(array("RSSParserName")); return $gui->getBrowserHTML($id); }
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 : ""); }
public function getHTML($id, $page) { $this->loadMultiPageMode($id, $page, 0); $gui = new HTMLGUIX($this); $gui->version("mOpenWeatherMap"); $gui->name("Wetter"); $gui->attributes(array("OpenWeatherMapName")); $B = $gui->addSideButton("Einstellungen", "system"); $B->popup("", "Allgemeine Werte", "mOpenWeatherMap", "-1", "getPopupEinstellungen"); return $gui->getBrowserHTML($id); }
public function getHTML($id, $page) { $this->loadMultiPageMode($id, $page, 0); $gui = new HTMLGUIX($this); $gui->version("mEinkaufszettel"); $gui->name("Kategorie"); $gui->attributes(array()); $B = $gui->addSideButton("Zurück", "back"); $B->loadPlugin("contentRight", "mEinkaufszettel"); return $gui->getBrowserHTML($id); }
public function getHTML($id) { $allowedUsers = Environment::getS("allowedUsers", null); #$this->addAssocV3("UserType", "=", "0"); $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>"; } $gui = new HTMLGUIX($this); $gui->screenHeight(); $gui->name("Benutzer"); #$gui->setCollectionOf($this->collectionOf,"Benutzer"); $gui->parser("isAdmin", "UsersGUI::isAdminParser"); $gui->colWidth("isAdmin", "20px"); $gui->attributes(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.")); } if ($allowedUsers === null) { $B = $gui->addSideButton("Externe\nAuthentifizierung", "./plugins/Users/auth.png"); $B->popup("", "Externe Authentifizierung", "Users", "-1", "authenticationPopup"); } $gui->prepend($TR); $gui->customize($this->customizer); try { $AD = new LoginAD(); $AD->getUsers(); if ($AD->n() !== null) { $B = $gui->addSideButton("ActiveDirectory-\nBenutzer", "users"); } $B->popup("", "ActiveDirectory-Benutzer", "Users", "-1", "ldapUsersPopup"); } catch (Exception $e) { } return $gui->getBrowserHTML($id); }
public function getHTML($id, $page) { $this->loadMultiPageMode($id, $page, 0); $gui = new HTMLGUIX($this); $gui->name("Ausgeblendeter Benutzer"); $B = $gui->addSideButton("Zurück", "back"); $B->loadPlugin("contentRight", "mphim"); $gui->attributes(array("phimUserHiddenUserID")); $gui->parser("phimUserHiddenUserID", "parserUser"); return $gui->getBrowserHTML($id); }
public function getHTML($id, $page) { $this->addAssocV3("phimGruppeMasterUserID", "=", Session::currentUser()->getID()); $this->loadMultiPageMode($id, $page, 0); $gui = new HTMLGUIX($this); $gui->version("mphim"); $gui->name("Gruppe"); $B = $gui->addSideButton("Zurück", "back"); $B->loadPlugin("contentRight", "mphim"); $gui->attributes(array("phimGruppeName")); return $gui->getBrowserHTML($id); }
public function getHTML($id, $page) { $this->addOrderV3("GerichtName"); $this->loadMultiPageMode($id, $page, 20); $gui = new HTMLGUIX($this); $gui->name("Gericht"); $gui->screenHeight(); $gui->attributes(array("GerichtName")); try { return $gui->getBrowserHTML($id); } catch (Exception $e) { } }
public function getHTML($id, $page) { #$this->setParser("JDownloadDate", ""); $this->addOrderV3("JDownloadDate", "DESC"); $this->loadMultiPageMode($id, $page, 0); $gui = new HTMLGUIX($this); $gui->version("mJD"); $gui->screenHeight(); $gui->name("JDownload"); $gui->attributes(array("JDownloadDate", "JDownloadRenameto")); $gui->parser("JDownloadDate", "parserDate"); return $gui->getBrowserHTML($id); }
public function getHTML($id, $page) { $this->loadMultiPageMode($id, $page, 0); $gui = new HTMLGUIX($this); $gui->version("mSystem"); $gui->name("System"); $gui->attributes(array()); $gui->options(true, true, false); $B = $gui->addSideButton("Neue\nEinstellung", "new"); $B->popup("", "Neue Einstellung", "mSystem", "-1", "addSettingPopup"); $B = $gui->addSideButton("System\nneu starten", "./ubiquitous/System/cog.png"); $B->doBefore("if(confirm('Das System neu starten?')) %AFTER"); $B->rmePCR("mSystem", "-1", "reboot"); return $gui->getBrowserHTML($id); }
public function getHTML($id, $page) { $this->loadMultiPageMode($id, $page, 0); $gui = new HTMLGUIX($this); $gui->version("mJD"); $gui->name("DL"); $gui->attributes(array("JDName")); #$B = $gui->addSideButton("Downloads\nRSS feed", "./trinityDB/JD/rss.png"); #$B->onclick("window.open('./trinityDB/JD/exportRSS.php');"); $B = $gui->addSideButton("Neuer Download", "new"); $B->popup("", "Download", "mJD", -1, "downloadPopup"); $B = $gui->addSideButton("Downloads\nanzeigen", "empty"); $B->loadFrame("contentRight", "mJDownload"); return $gui->getBrowserHTML($id); }
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) { 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("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(); }
public function getHTML($id, $page) { $this->addOrderV3("EinkaufszettelImmer", "DESC"); $this->addOrderV3("EinkaufszettelTime", "DESC"); $this->loadMultiPageMode($id, $page, 0); $gui = new HTMLGUIX($this); $gui->version("mEinkaufszettel"); $gui->colWidth("EinkaufszettelImmer", 20); $gui->name("Einkaufszettel"); $gui->parser("EinkaufszettelImmer", "Util::catchParser"); $gui->attributes(array("EinkaufszettelImmer", "EinkaufszettelName")); $B = $gui->addSideButton("EAN\nprüfen", "lieferschein"); $B->popup("", "EAN prüfen", "mEinkaufszettel", "-1", "checkEANPopup"); $B = $gui->addSideButton("Kategorien", "manager"); $B->loadPlugin("contentRight", "mEinkaufszettelKategorie"); return $gui->getBrowserHTML($id); }
public function getHTML($id, $page) { $this->loadMultiPageMode($id, $page, 0); T::load(dirname(__FILE__), "UPnP"); $gui = new HTMLGUIX($this); $gui->version("mUPnP"); $gui->screenHeight(); $gui->name("UPnP"); $gui->attributes(array("UPnPName")); $B = $gui->addSideButton("Geräte\nerkennen", "lieferschein"); $B->popup("", "UPnP-Geräte", "mUPnP", "-1", "discoverNow", array("''", "1")); $B = $gui->addSideButton("Remote\nanzeigen", "./fheME/UPnP/remote.png"); $B->onclick("UPnP.show();"); $B = $gui->addSideButton("Radio-\nStationen", "./fheME/UPnP/radio.png"); $B->loadFrame("contentRight", "mUPnPRadioStation"); return $gui->getBrowserHTML($id); }
function getHTML($id, $page, $frame = null) { $this->loadMultiPageMode($id, $page); $gui = new HTMLGUIX($this); $tab = ""; if (Session::isPluginLoaded("mAdressBuch") and $id == -1) { $tab = mAdressBuchGUI::getSelectionMenu($this, $frame, false, true); } $gui->displayGroup("KategorieID", "AdressenGUI::DGParser"); $gui->options(true, true, true, true); $gui->parser("firma", "mAdresseGUI::parserFirma"); if ($frame != null) { $gui->targetFrame($frame); } $gui->attributes(array("firma")); return $tab . $gui->getBrowserHTML($id); }
public function getHTML($id, $page) { T::load(dirname(__FILE__), "Wecker"); $this->setParser("WeckerTime", "Util::CLTimeParser"); $this->addJoinV3("Device", "WeckerDeviceID", "=", "DeviceID"); $this->loadMultiPageMode($id, $page, 0); $gui = new HTMLGUIX($this); $gui->version("mWecker"); $gui->screenHeight(); $gui->name("Wecker"); $gui->attributes(array("DeviceName", "WeckerTime")); $gui->colStyle("WeckerTime", "text-align:right;"); #$B = $gui->addSideButton("Alex,\nsing!", "new"); #$B->onclick("alex.sing('http://gffstream.ic.llnwd.net/stream/gffstream_w14a', 0, 100)"); #$B = $gui->addSideButton("Alex,\nstop!", "new"); #$B->onclick("alex.beQuiet()"); return $gui->getBrowserHTML($id); }
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(); }
public function getHTML($id, $page) { $this->addOrderV3("name"); $this->filterCategories(); $this->loadMultiPageMode($id, $page, 0); $gui = new HTMLGUIX($this); $gui->version("mSerie"); $gui->options(true, true, true, true); $gui->name("Serie"); $gui->attributes(array("name", "sprache")); $gui->parser("name", "mSerieGUI::nameParser"); $Tab = new HTMLSideTable("left"); $B = new Button("check for\nupdates", "./trinityDB/Serien/Updates.png"); $B->rmePCR("mSerie", "", "checkUpdates", "", "Popup.display('Updates', transport);"); $Tab->addRow($B); try { return ($id == -1 ? $Tab : "") . $gui->getBrowserHTML($id); } catch (Exception $e) { } }
public function getHTML($id, $page) { $this->loadMultiPageMode($id, $page, 0); $gui = new HTMLGUIX($this); $gui->name("IncomingPrettify"); $gui->displayMode("BrowserLeft"); #$gui->attributes(array()); #$B = $gui->addSideButton("add new\nrule", "new"); #$B->popup("editPopupIncomingPrettifyGUI", "Prettify rule", "IncomingPrettify", -1, "getEditPopup", "-1"); #$B->editInPopup(); $gui->activateFeature("editInPopup", $this); $gui->attributes(array("IncomingPrettifyFind", "IncomingPrettifyIsActive")); $gui->parser("IncomingPrettifyIsActive", "Util::catchParser"); $gui->parser("IncomingPrettifyFind", "mIncomingPrettifyGUI::findParser"); $gui->colWidth("IncomingPrettifyIsActive", 20); $B = $gui->addSideButton("run\nPrettifyer", "navigation"); $B->popup("prettifyer", "Prettifyer", "mIncomingPrettify", "-1", "runRules"); $B = $gui->addSideButton("Options", "system"); $B->contextMenu("mIncomingPrettify", "options", "Options"); return $gui->getBrowserHTML($id); }
function getHTML($id) { $this->addOrderV3("sort", "ASC"); if ($this->A == null) { $this->lCV3($id); } $gui = new HTMLGUIX($this); $gui->name("Content"); $gui->options(true, true, false, false); $a = array("sort", "text"); if (Session::isPluginLoaded("mSprache")) { $a[] = "SpracheIdentifier"; $gui->colWidth("SpracheIdentifier", "50"); } $gui->attributes($a); $gui->parser("text", "mContentGUI::textParser"); $gui->colWidth("sort", "30"); $gui->colStyle("sort", "text-align:right;"); $gui->addToEvent("onDelete", "contentManager.reloadFrame('contentLeft');"); $gui->customize($this->customizer); return $gui->getBrowserHTML($id); }
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) { $gui = new HTMLGUIX($this); $gui->name("System"); $d = $this->types[$this->A("SystemType")]; $gui->attributes($d->attributes); foreach ($d->labels as $k => $b) { $gui->label($k, $b); } $message = ""; if ($this->A("SystemType") == "ip") { if ($this->A("SystemSetting1") == "") { $ips = explode(" ", exec("hostname --all-ip-addresses")); $this->changeA("SystemSetting1", $ips[0]); } if ($this->A("SystemSetting3") == "") { $gw = shell_exec("ip route | grep default | awk {'print \$3'}"); $this->changeA("SystemSetting3", $gw); } if ($this->A("SystemSetting4") == "") { $dns = file("/etc/resolv.conf"); $fdns = ""; foreach ($dns as $line) { if (strpos($line, "nameserver") === 0) { $fdns = trim(str_replace("nameserver ", "", $line)); break; } } $this->changeA("SystemSetting4", $fdns); } $B = $gui->addSideButton("Aktuelle\nWerte", "computer"); $B->popup("", "Aktuelle Werte", "System", $this->getID(), "ipCurrentPopup", "", "", "{width:600}"); $B = $gui->addSideButton("Aktuelle\nEinstellungen", "computer"); $B->popup("", "Aktuelle Werte", "System", $this->getID(), "ipSettingsPopup", "", "", "{width:600}"); $message = "<p class=\"highlight\">Die Änderungen wirken sich erst nach einem Neustart des Systems aus!</p>"; } return $message . $gui->getEditHTML(); }