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->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); }
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); }
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(); }
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) { $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) { $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(); }
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) { $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(); }
function getHTML($id) { $gui = new HTMLGUIX($this); $gui->name("Tinkerforge"); #$B = $gui->addSideButton("Master", "new"); #$B->popup("", "Master", "Tinkerforge", $this->getID(), "readMaster", "", "", "{width:820}"); $B = $gui->addSideButton("Bricklets", "new"); $B->popup("", "Bricklets", "Tinkerforge", $this->getID(), "bricklets"); return $gui->getEditHTML(); }
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(); }
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, $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->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->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->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->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) { $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(); }
function getHTML($id) { $this->loadMeOrEmpty(); $gui = new HTMLGUIX($this); $gui->name("JDownload"); $gui->parser("JDownloadURL", "parserURL"); $gui->parser("JDownloadFilename", "parserFilename"); $gui->parser("JDownloadFilesize", "parserSize"); $gui->parser("JDownloadSerieID", "parserSerie"); $gui->parser("JDownloadJDID", "parserJD"); $gui->label("JDownloadSerieID", "Serie"); $gui->label("JDownloadJDID", "JD"); $B = $gui->addSideButton("Erneut\nherunterladen", "down"); $B->popup("", "Erneut herunterladen", "JDownload", $this->getID(), "reDownload"); $gui->optionsEdit(false, false); 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(); }
public function getHTML($id, $page) { $TID = BPS::getProperty("mphimGUI", "with", 0); if ($TID[0] != "g") { $this->addAssocV3("phimFromUserID", "=", Session::currentUser()->getID(), "AND", "1"); $this->addAssocV3("phimToUserID", "=", $TID, "AND", "1"); $this->addAssocV3("phimphimGruppeID", "=", "0", "AND", "1"); $this->addAssocV3("phimFromUserID", "=", $TID, "OR", "2"); $this->addAssocV3("phimToUserID", "=", Session::currentUser()->getID(), "AND", "2"); $this->addAssocV3("phimphimGruppeID", "=", "0", "AND", "2"); } else { $this->addAssocV3("phimphimGruppeID", "=", str_replace("g", "", $TID)); } #$this->addJoinV3("User", $field1) #$this->addOrderV3("phimToUserID", "DESC"); #$this->addOrderV3($order) $this->addOrderV3("phimTime", "DESC"); $this->addOrderV3("phimID", "DESC"); $this->setFieldsV3(array("phimRead", "phimFromUserID", "phimMessage", "DATE_FORMAT(FROM_UNIXTIME(phimTime), '%Y-%m-%d') AS grouper")); $this->loadMultiPageMode($id, $page, 0); $gui = new HTMLGUIX($this); $gui->version("mphim"); $gui->colWidth("phimRead", 20); $gui->name("phim"); $gui->displayGroup("grouper", "mphimGUI::parserDG"); $gui->options(true, true, false); $gui->parser("phimRead", "parserRead"); $gui->parser("phimFromUserID", "parserFrom"); $gui->attributes(array("phimRead", "phimFromUserID", "phimMessage")); $B = $gui->addSideButton("Gruppen", "./ubiquitous/phim/group.png"); $B->loadPlugin("contentRight", "mphimGruppe"); $B = $gui->addSideButton("System-\nBenutzer", "./ubiquitous/phim/phimUser.png"); $B->loadPlugin("contentRight", "mphimUser"); $B = $gui->addSideButton("Benutzer\nausblenden", "./ubiquitous/phim/hidden.png"); $B->loadPlugin("contentRight", "mphimUserHidden"); $B = $gui->addSideButton("phim\nanzeigen", "new"); $B->onclick("windowWithRme('mphim', -1, 'chatPopup', [], '', 'window', {height: 300, width:550, left: \$j.jStorage.get('phimX', 20), top: \$j.jStorage.get('phimY', 20), name: 'phim', scroll: false});"); $B = $gui->addSideButton("Config-Datei", "new"); $B->windowRme("mphim", "-1", "getConfigFile"); $users = self::$users = Users::getUsersArray("Alle", true); $T = new HTMLTable(1, "Konversation mit"); $T->setTableStyle("width:100%"); $T->weight("light"); $T->useForSelection(false); foreach ($users as $ID => $U) { $T->addRow(array($U)); $T->addRowEvent("click", OnEvent::frame("contentRight", "mphim", "-1", 0, "", "mphimGUI;with:{$ID}")); if ($ID . "" === $TID . "") { $T->addRowClass("highlight"); } } $AC = anyC::get("phimGruppe"); $AC->addAssocV3("INSTR(phimGruppeMembers, ';" . Session::currentUser()->getID() . ";')", ">", "0"); $TG = new HTMLTable(1, "Gruppen"); $TG->setTableStyle("width:100%"); $TG->weight("light"); $TG->useForSelection(false); while ($G = $AC->n()) { $TG->addRow(array($G->A("phimGruppeName"))); $TG->addRowEvent("click", OnEvent::frame("contentRight", "mphim", "-1", 0, "", "mphimGUI;with:g" . $G->getID())); if ("g" . $G->getID() === $TID . "") { $TG->addRowClass("highlight"); } } $gui->addSideRow($T); $gui->addSideRow($TG); return $gui->getBrowserHTML($id); }
public function getHTML($id) { $bps = $this->getMyBPSData(); $B1 = new Button("Servers", "./fheME/Fhem/fhemServers.png"); $B1->style("float:right;"); $B1->onclick("contentManager.loadFrame('contentRight','mFhemServer'); contentManager.emptyFrame('contentLeft');"); $B2 = new Button("Devices", "./fheME/Fhem/fhem.png"); $B2->style("float:right;"); $B2->onclick("contentManager.loadFrame('contentRight','mFhem', -1, 0,'mFhemGUI;showDevices:true'); contentManager.emptyFrame('contentLeft');"); // $B3 = new Button("Rooms","gutschrift"); // $B3->style("float:right;"); // $B3->onclick("contentManager.loadFrame('contentRight','mGruppe');"); $B6 = new Button("Presets", "./fheME/Fhem/events.png"); $B6->style("float:right;"); $B6->onclick("contentManager.loadFrame('contentRight','mFhemPreset'); contentManager.emptyFrame('contentLeft');"); $BLoc = new Button("Locations", "./fheME/FhemLocation/FhemLocation.png"); $BLoc->style("float:right;"); $BLoc->onclick("contentManager.loadFrame('contentRight','mFhemLocation'); contentManager.emptyFrame('contentLeft');"); if (!Session::isPluginLoaded("mFhemLocation")) { $BLoc = ""; } // $B4 = new Button("Refresh","refresh"); // $B4->style("float:right;"); // $B4->onclick("Fhem.refreshControls();"); #$B5 = new Button("Timers","backup"); #$B5->style("float:right;"); #$B5->onclick("contentManager.loadFrame('contentRight','mFhemTimer',-1,0,'mFhemTimerGUI;-'); contentManager.emptyFrame('contentLeft');"); $html = "\n\t\t<script type=\"text/javascript\">\n\t\t\tcontentManager.loadFrame('contentLeft','FhemControl');\n\t\t</script>"; if (isset($bps["noLeft"])) { $html = ""; } $t = new HTMLTable(1); $t->setTableStyle("width:160px;float:right;margin-right:10px;"); #$t->addRow($B5); #$t->addRowClass("backgroundColor0"); #$t->addRow(""); #$t->addRowClass("backgroundColor1"); // $t->addRow($B3); // $t->addRowClass("backgroundColor0"); $t->addRow($B2); $t->addRowClass("backgroundColor0"); $t->addRow($B6); $t->addRowClass("backgroundColor0"); // $t->addRow($B4); // $t->addRowClass("backgroundColor0"); $t->addRow($B1); $t->addRowClass("backgroundColor0"); $t->addRow($BLoc); $t->addRowClass("backgroundColor0"); if (!isset($bps["showDevices"]) and !isset($bps["selectionMode"])) { return $html . $t; } if (isset($bps["selectionMode"])) { $this->addAssocV3("FhemServerID", "=", $_SESSION["BPS"]->getProperty("mFhemSelection", "selectionServerID")); $this->addAssocV3("FhemType", "!=", "FHZ"); } #---------------------------------------------- $this->addOrderV3("FhemServerID"); $this->addOrderV3("FhemType"); $this->addOrderV3("FhemName"); $gui = new HTMLGUIX($this); $gui->displayGroup("FhemServerID", "mFhemGUI::DGParser"); $B = $gui->addSideButton("Load devices\nfrom server", "refresh"); $B->popup("", "Load devices", "mFhem", "-1", "loadDevices"); $B = $gui->addSideButton("Register\nsettings", "./fheME/Fhem/fhem.png"); $B->rme("FhemControl", "", "registerSettings", "", "if(checkResponse(transport)) \$(\\'contentLeft\\').update(transport.responseText);"); $B = $gui->addSideButton("Reset\nServers", "empty"); $B->rme("FhemControl", "", "resetServers", "", "if(checkResponse(transport)) \$(\\'contentLeft\\').update(transport.responseText);"); #$this->lCV3($id); $gui->attributes(array("FhemName", "FhemType")); $gui->name("Device"); if ($bps != -1 and isset($bps["selectionMode"])) { $t2 = ""; } return $gui->getBrowserHTML($id); }