Example #1
0
 function getHTML($id)
 {
     $this->loadMeOrEmpty();
     $gui = new HTMLGUI2();
     $gui->setObject($this);
     $gui->setName("RSSFilter");
     $gui->setShowAttributes(array("RSSFilterName", "RSSFilterFeed", "RSSFilterAdapter", "RSSFilterJDID", "RSSFilterAutoDL", "RSSFilterProviderRapidshare", "RSSFilterProviderNetload", "RSSFilterProviderUploaded"));
     $gui->setLabel("RSSFilterName", "Name");
     $gui->setLabel("RSSFilterFeed", "Feed URL");
     $gui->setLabel("RSSFilterAdapter", "Adapter");
     $gui->setLabel("RSSFilterJDID", "DL with");
     $gui->setLabel("RSSFilterProviderRapidshare", "Rapidshare.com");
     $gui->setLabel("RSSFilterProviderNetload", "Netload");
     $gui->setLabel("RSSFilterProviderUploaded", "Uploaded");
     $gui->setLabel("RSSFilterAutoDL", "Auto-DL?");
     $gui->setType("RSSFilterProviderRapidshare", "checkbox");
     $gui->setType("RSSFilterProviderNetload", "checkbox");
     $gui->setType("RSSFilterAutoDL", "checkbox");
     $gui->setType("RSSFilterProviderUploaded", "checkbox");
     $gui->insertSpaceAbove("RSSFilterJDID");
     $gui->setFieldDescription("RSSFilterAutoDL", "Currently only works when using JDownloader RC, Qnap and pyLoad. Will have no effect otherwise.");
     $gui->selectWithCollection("RSSFilterJDID", new mJDGUI(), "JDName", "nicht herunterladen");
     $gui->setStandardSaveButton($this);
     $Tab = new HTMLSideTable("right");
     $B = new Button("show filtered\nfeed", "./trinityDB/RSSFilter/Filtered.png");
     $B->onclick("window.open('./trinityDB/RSSFilter/FilteredFeed.php?RSSFilterID=" . $this->getID() . "', 'Filtered feed');");
     $Tab->addRow($B);
     $FB = new FileBrowser();
     $FB->addDir(Util::getRootPath() . "trinityDB/RSSFilter");
     $Adapters = $FB->getAsLabeledArray("iFeedFilter", ".class.php", true);
     $gui->setType("RSSFilterAdapter", "select");
     $gui->setOptions("RSSFilterAdapter", array_values($Adapters), array_keys($Adapters));
     return $Tab . $gui->getEditHTML();
 }
Example #2
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();
 }
Example #3
0
 /**
  * @return iCorporateDesign
  */
 public static function getCorporateDesign()
 {
     try {
         $FB = new FileBrowser();
         $FB->addDir(FileStorage::getFilesDir());
         $FB->addDir(Util::getRootPath() . "specifics");
         $T = $FB->getAsLabeledArray("iCorporateDesign", ".class.php");
         foreach ($T as $c) {
             $CD = new $c();
             break;
         }
         #throw new ClassNotFoundException();
     } catch (ClassNotFoundException $e) {
         $CD = new CorporateDesign();
     }
     return $CD;
 }
 public function getHTML($id)
 {
     $gui = new HTMLGUI();
     $gui->VersionCheck($this->getClearClass());
     $t = new HTMLTable(2, $this->tableLabel);
     $t->addColStyle(1, "width:20px;");
     $FB = new FileBrowser();
     $FB->addDir($this->directory);
     $w = $FB->getAsLabeledArray("iFileBrowser", ".class.php");
     foreach ($w as $k => $v) {
         $B = new Button("", "./images/i2/edit.png");
         $B->type("icon");
         $B->onclick("contentManager.loadFrame('contentLeft','{$v}');");
         $t->addRow(array($B, "{$k}"));
     }
     return $t->getHTML();
 }
Example #5
0
 public function getHTML($id)
 {
     $gui = new HTMLGUI();
     $gui->VersionCheck("mTool");
     $FB = new FileBrowser();
     $FB->addDir("../PM/GoD");
     $files = $FB->getAsLabeledArray("iPMTool", ".class.php", true);
     $tab = new HTMLTable(2, "Tools");
     $tab->setColWidth(1, "20px");
     foreach ($files as $key => $value) {
         $B = new Button("", "./images/i2/edit.png");
         $B->type("icon");
         $B->onclick("loadFrameV2('contentLeft','{$value}');");
         $tab->addRow(array($B, $key));
     }
     return $tab;
 }
Example #6
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();
 }
 function getHTML($id)
 {
     $type = "none";
     $U = new mUserdata();
     $U = $U->getUDValue("selectedDomain");
     $bps = $this->getMyBPSData();
     if ($bps != -1 and isset($bps["type"])) {
         $type = $bps["type"];
     }
     $this->loadMeOrEmpty();
     if ($id == -1) {
         if ($type != "none" and $type != "undefined") {
             $this->A->SeiteID = $type;
         }
     }
     $gui = new HTMLGUI();
     $gui->setObject($this);
     $gui->setName("Content");
     $gui->setType("contentType", "select");
     $gui->setOptions("contentType", array("text", "preset", "downloads", "php"), array("Text", "HTML-Vorlage", "Downloads", "PHP"));
     $FB = new FileBrowser();
     $FB->addDir("../specifics/");
     if ($_SESSION["S"]->checkForPlugin("mShop")) {
         $FB->addDir("../multiCMS/Shop/");
     }
     $a = $FB->getAsLabeledArray("iCustomContent", ".class.php");
     $gui->setLabel("customContent", "Inhalt");
     $gui->setType("customContent", "select");
     $gui->setOptions("customContent", array_values($a), array_keys($a));
     $Tab = new HTMLTable(1);
     if ($this->singular) {
         $gui->setType("sort", "hidden");
     } else {
         $B = new Button("zurück", "back");
         $B->onclick("contentManager.loadFrame('contentLeft','Seite', " . $this->A("SeiteID") . ");");
         $Tab->addRow($B);
     }
     $gui->setLabel("contentType", "Typ");
     $gui->setLabel("ContentImage", "Bild");
     $gui->setLabel("SeiteID", "Seite");
     $gui->setLabel("TemplateID", "Vorlage");
     $gui->setLabel("sort", "Sortierung");
     $gui->setFieldDescription("ContentImage", "Wird an Stelle des Parameters %%%IMAGE%%% eingesetzt.");
     #$gui->setType("header","hidden");
     $gui->insertSpaceAbove("contentType");
     #$gui->insertSpaceAbove("TemplateID","sonstiges", true);
     $gui->setInputJSEvent("contentType", "onchange", "Content.selectType(this);");
     $gui->setType("text", "HTMLEditor");
     if (Session::isPluginLoaded("mFile")) {
         $B = new Button("Bild auswählen", "./images/i2/add.png");
         $B->type("icon");
         $B->customSelect("contentRight", $this->ID, "mFile", "Content.selectImage");
         $gui->activateFeature("addCustomButton", $this, "ContentImage", $B);
     } else {
         $gui->setType("ContentImage", "hidden");
     }
     $gui->setShowAttributes(array("text", "ContentSpracheID", "ContentImage", "TemplateID", "header", "sort", "contentType", "presetTemplateID", "formHandlerID", "customContent"));
     $gui->setFormID("ContentForm");
     $S = new anyC();
     $S->setCollectionOf("Seite");
     $gui->selectWithCollection("SeiteID", $S, "name");
     $gui->setType("name", "hidden");
     $gui->setType("SeiteID", "hidden");
     $gui->setLabel("presetTemplateID", "Vorlage");
     $gui->setLabel("formHandlerID", "Handler");
     $gui->setLabel("ContentSpracheID", "Sprache");
     if (Session::isPluginLoaded("mSprache")) {
         $Sprachen = new anyC();
         $Sprachen->setCollectionOf("Sprache");
         $gui->selectWithCollection("ContentSpracheID", $Sprachen, "SpracheIdentifier", "alle");
     } else {
         $gui->setType("ContentSpracheID", "hidden");
     }
     $aC = new anyC();
     $aC->setCollectionOf("Template");
     $aC->addAssocV3("templateType", "=", "presetTemplate");
     $gui->selectWithCollection("presetTemplateID", $aC, "name");
     if ($_SESSION["S"]->checkForPlugin("mHandler")) {
         $handlerAC = new anyC();
         $handlerAC->setCollectionOf("Handler");
         $handlerAC->addAssocV3("HandlerDomainID", "=", $U);
         $gui->selectWithCollection("formHandlerID", $handlerAC, "HandlerName", "keiner");
     } else {
         $gui->setParser("formHandlerID", "ContentGUI::noHandlerParser");
     }
     if ($this->A->contentType != "preset") {
         $gui->setLineStyle("presetTemplateID", "display:none;");
         $gui->setLineStyle("formHandlerID", "display:none;");
     }
     if ($this->A->contentType != "php") {
         $gui->setLineStyle("customContent", "display:none;");
     }
     $T = new TemplatesGUI();
     $T->addAssocV3("templateType", "=", "contentTemplate");
     $T->addAssocV3("templateType", "=", "listTemplate", "OR");
     $T->addAssocV3("templateType", "=", "tableTemplate", "OR");
     $T->addAssocV3("templateType", "=", "dlTemplate", "OR");
     $T->addOrderV3("templateType");
     $TG = new TemplatesGUI();
     $cats = $TG->getAvailableCategories();
     $options = array();
     while ($o = $T->getNextEntry()) {
         $options[$o->getID()] = $cats[$o->getA()->templateType];
     }
     $T->resetPointer();
     $gui->selectWithCollection("TemplateID", $T, "name");
     $gui->selectOptgroup("TemplateID", $options);
     $gui->setJSEvent("onSave", "function() { contentManager.loadFrame('contentLeft','Seite', " . $this->A("SeiteID") . "); }");
     $gui->setStandardSaveButton($this);
     $gui->customize($this->customizer);
     return $Tab . $gui->getEditHTML();
 }