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(); }