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); }
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) { 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(); }
emoFatalError("I'm sorry, but I'm unable to access some directories", "Please make sure that the webserver is able to access these directories and its subdirectories:<br /><br />" . implode("<br />", $notExecutable) . "<br /><br />Usually a good plan to achieve this, is to run the following<br />commands in the installation directory:<br /><code>chmod -R u=rw,g=r,o=r *<br />chmod -R u=rwX,g=rX,o=rX *</code>", "phynx"); } /*$texts = array(); $texts["it_IT"] = array(); $texts["it_IT"]["username"] = "******"; $texts["it_IT"]["password"] = "******"; $texts["it_IT"]["application"] = "Applicazione"; $texts["it_IT"]["login"] = "******"; $texts["it_IT"]["autologin"] = "******"; $texts["it_IT"]["save"] = "memorizzare i dati"; $texts["it_IT"]["sprache"] = "Lingua"; $texts["it_IT"]["optionsImage"] = "Visualizzare le opzioni"; $texts["it_IT"]["lostPassword"] = "******";*/ require "./system/connect.php"; #$browserLang = Session::getLanguage(); T::load(Util::getRootPath() . "libraries"); /* $E = new Environment(); */ $cssColorsDir = Environment::getS("cssColorsDir", isset($_COOKIE["phynx_color"]) ? $_COOKIE["phynx_color"] : "standard"); $cssCustomFiles = Environment::getS("cssCustomFiles", null); /* if(file_exists(Util::getRootPath()."plugins/Cloud/Cloud.class.php")){ require_once Util::getRootPath()."plugins/Cloud/Cloud.class.php"; require_once Util::getRootPath()."plugins/Cloud/mCloud.class.php"; $E = mCloud::getEnvironment(); }*/ $build = rand(1, 9999999); if (Phynx::build()) { #$xml = new SimpleXMLElement(file_get_contents(Util::getRootPath()."system/build.xml"));
function getBrowserHTML($lineWithId = -1, $useBPS = true) { T::load(Util::getRootPath() . "libraries"); $canDelete = mUserdata::isDisallowedTo("cantDelete" . $this->className); #$canEdit = mUserdata::isDisallowedTo("cantEdit".$this->className); if (!$canDelete) { $this->showTrash = false; } #if(!$canEdit) //KILLS SEARCH-FIELD!! # $this->showEdit = false; $bps = BPS::getAllProperties("m" . $this->className . "GUI"); if (!$useBPS) { $bps = false; } $GUIF = $this->GUIFactory; $GUIF->setMultiPageDetails($this->multiPageDetails); $GUIF->setTableMode($this->displayMode); $GUIF->options($this->showTrash, $this->showEdit, $this->showNew); if ($this->blacklists != null) { $GUIF->blacklists($this->blacklists); } if (isset($bps["selectionMode"])) { $GUIF->selection($bps["selectionMode"]); } #$GUIF->features($this->features); #$this->multiPageDetails["target"] = $this->frame;#"contentRight"; #$GUIF->setMultiPageDetails($this->multiPageDetails); if ($this->targetFrame != null) { $GUIF->targetFrame($this->targetFrame); } $E = $this->object->getNextEntry(); if ($this->attributes == null and $E != null) { $this->attributes = PMReflector::getAttributesArrayAnyObject($E->getA()); } #if($E == null) //To fix display error when no entry # $this->attributes = array(""); if ($this->caption == null and $this->caption !== false) { $this->caption($this->displayMode == "BrowserLeft" ? $this->name == null ? $this->className : $this->name : ""); } #"Bitte ".($this->name == null ? $this->className : $this->name)." auswählen:"); $Tab = $GUIF->getTable($E == null ? array("") : $this->attributes, $this->colStyle, $this->caption); if ($this->tableWeight) { $Tab->weight($this->tableWeight); } $Tab->setTableID("Browserm{$this->className}"); $Tab->addTableClass("contentBrowser"); if ($this->useScreenHeight) { $Tab->useScreenHeight(); } if ($this->header != null and $this->object->numLoaded() > 0) { $Tab->addHeaderRow($this->header); } if ($lineWithId == -1) { if ($this->showQuicksearch) { $GUIF->buildQuickSearchLine(); } #if($this->multiPageDetails["total"] > $this->multiPageDetails["perPage"]) if ($this->showPageFlip) { $GUIF->buildFlipPageLine("top"); } if ($this->object->isFiltered()) { $GUIF->buildFilteredWarningLine($this->object->isFilteredLabel()); } $GUIF->buildNewEntryLine(($this->name == null ? $this->className : $this->name) . " neu anlegen"); } $this->object->resetPointer(); $DisplayGroup = null; while ($E = $this->object->getNextEntry()) { /** * DisplayGroup */ if ($lineWithId == -1 and $this->displayGroup != null and $DisplayGroup != $E->A($this->displayGroup[0])) { if ($this->displayGroup[1] != null) { $DGP = explode("::", $this->displayGroup[1]); $GUIF->buildGroupLine(Util::invokeStaticMethod($DGP[0], $DGP[1], array($E->A($this->displayGroup[0]), $E))); } else { $GUIF->buildGroupLine($E->A($this->displayGroup[0])); } } $Line = array(); foreach ($this->attributes as $attributeName) { $LineContent = $E->A($attributeName); if (isset($this->parsers[$attributeName])) { $LineContent = $this->invokeParser($this->parsers[$attributeName], $LineContent, $E); } else { $LineContent = htmlspecialchars($LineContent); } $Line[] = $LineContent; } $GUIF->buildLine($E->getID(), $Line); if ($this->displayGroup != null) { $DisplayGroup = $E->A($this->displayGroup[0]); } } if ($lineWithId == -1) { if ($this->object->isFiltered()) { $GUIF->buildFilteredWarningLine($this->object->isFilteredLabel()); } if ($this->multiPageDetails["total"] > $this->multiPageDetails["perPage"] and $this->showPageFlip) { $GUIF->buildFlipPageLine("bottom"); } if ($this->object->numLoaded() == 0) { $GUIF->buildNoEntriesLine(); } } else { return $Tab->getHTMLForUpdate(); } $prepend = ""; foreach ($this->prepended as $PE) { $prepend .= $PE; } $appended = ""; foreach ($this->appended as $PE) { $appended .= $PE; } return "<div class=\"browserContainer contentBrowser\">" . $prepend . $this->sideButtons($bps) . $GUIF->getContainer($Tab, $this->caption, $appended, $this->topButtons($bps)) . "</div>" . str_replace("%CLASSNAME", $this->className, $this->sortable) . $this->tip; }
function __construct($ID) { parent::__construct($ID); T::load(dirname(__FILE__), "UPnP"); T::D("UPnP"); }