function getHTML($id) { $gui = new HTMLGUIX($this); $gui->name("phim"); $gui->optionsEdit(false, false); return $gui->getEditHTML(); }
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) { $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) { $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 = "******"; $AC = anyC::get("User", "isAdmin", "1"); $AC->lCV3(); $admins = $AC->numLoaded(); $AC = anyC::get("User", "isAdmin", "0"); $AC->lCV3(); $users = $AC->numLoaded(); $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"); if ($admins == 1 and $users == 0) { $gui->type("isAdmin", "hidden"); } #$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"); $mUD->addAssocV3("typ", "=", "loginTo", "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 gespeichert wurde.</td></tr></table>"; } if ($this->getID() > 20000) { $gui->optionsEdit(false, false); } return $gui->getEditHTML() . ($this->A->isAdmin != 1 ? $html : ""); }