Esempio n. 1
0
 public function getContextMenuHTML($identifier)
 {
     $kal = array();
     if (!isset($_COOKIE["phynx_color"])) {
         $sk = "standard";
     } else {
         $sk = $_COOKIE["phynx_color"];
     }
     $fp = opendir("../styles/");
     while (($file = readdir($fp)) !== false) {
         if ($file[0] == ".") {
             continue;
         }
         if (!is_dir("../styles/{$file}")) {
             continue;
         }
         $kal[$file] = ucfirst($file);
     }
     $gui = new HTMLGUI();
     $message = "Achtung: Die Seite muss neu geladen werden, damit die Einstellungen wirksam werden. Jetzt neu laden?";
     echo $gui->getContextMenu($kal, 'Colors', '1', $sk, "phynxContextMenu.stop(); if(confirm('{$message}')) document.location.reload();");
     if (!isset($_COOKIE["phynx_layout"])) {
         $sk2 = "horizontal";
     } else {
         $sk2 = $_COOKIE["phynx_layout"];
     }
     echo '<div class="backgroundColor1" style="height: 10px;"></div>';
     echo $gui->getContextMenu(array("horizontal" => "horizontal", "vertical" => "vertikal", "desktop" => "Desktop", "fixed" => "fixiert"), "Colors", "2", $sk2, 'phynxContextMenu.stop(); if(confirm(\'' . $message . '\')) document.location.reload();');
     $ud = new mUserdata();
     $al = $ud->getUDValue("noAutoLogout", "false");
     echo '<div class="backgroundColor1" style="padding:5px;font-weight:bold;">Automatisch ausloggen:</div>';
     echo $gui->getContextMenu(array("false" => "ja", "true" => "nein"), "Colors", "3", $al, 'phynxContextMenu.stop(); if(confirm(\'' . $message . '\')) document.location.reload();');
 }
Esempio n. 2
0
 function getHTML($id)
 {
     $this->loadMeOrEmpty();
     $gui = new HTMLGUI();
     $gui->setObject($this);
     $gui->setName("Planet");
     $gui->setStandardSaveButton($this);
     return $gui->getEditHTML();
 }
Esempio n. 3
0
 function getHTML($id)
 {
     $this->loadMeOrEmpty();
     $gui = new HTMLGUI();
     $gui->setAttributes($this->A);
     $gui->setName("Datei");
     $gui->setStandardSaveButton($this);
     return $gui->getEditHTML();
 }
 function getHTML($id)
 {
     $this->loadMeOrEmpty();
     $gui = new HTMLGUI();
     $gui->setAttributes($this->A);
     $gui->setName("Userdata");
     #$gui->setSaveButtonValues(get_parent_class($this), $this->ID, $_SESSION["CurrentAppPlugins"]->isCollectionOf(get_parent_class($this)));
     $gui->setStandardSaveButton($this);
     return $gui->getEditHTML();
 }
 public function getHTML($id, $page)
 {
     $collectionGUI = $_SESSION["CurrentAppPlugins"]->getCollectionGUI($this->collectionOf);
     $gesamt = $this->loadMultiPageMode($id, $page, 0);
     $gui = new HTMLGUI();
     $gui->setMultiPageMode($gesamt, $page, 0, 'contentRight', "m" . $this->collectionOf);
     $gui->setName($this->collectionOf);
     $gui->setAttributes($this->collector);
     $gui->setCollectionOf($this->collectionOf);
     if (isset($collectionGUI["showAttributes"]) and count($collectionGUI["showAttributes"]) > 0) {
         $gui->setShowAttributes($collectionGUI["showAttributes"]);
     }
     if (isset($collectionGUI["colWidth"])) {
         foreach ($collectionGUI["colWidth"] as $k => $v) {
             $gui->setColWidth($k, $v);
         }
     }
     if (isset($collectionGUI["rowStyle"])) {
         foreach ($collectionGUI["rowStyle"] as $k => $v) {
             $gui->addColStyle($k, $v);
         }
     }
     try {
         return $gui->getBrowserHTML($id);
     } catch (Exception $e) {
     }
 }
 function getHTML($id)
 {
     $gui = new HTMLGUI();
     $gui->VersionCheck("mNavigation");
     $U = new mUserdata();
     $U = $U->getUDValue("selectedDomain");
     if ($U == null) {
         $t = new HTMLTable(1);
         $t->addRow("Sie haben keine Domain ausgewählt.<br /><br />Bitte wählen Sie eine Domain im Domain-Plugin, indem Sie auf das graue Kästchen in der Liste auf der rechten Seite klicken.");
         return $t->getHTML();
     }
     $this->addOrderV3("DomainID", "ASC");
     $this->addOrderV3("sort", "ASC");
     if ($U != null) {
         $this->addAssocV3("DomainID", "=", "{$U}");
     }
     if ($this->A == null) {
         $this->lCV3($id);
     }
     $gui->setName(get_parent_class($this));
     if ($this->collector != null) {
         $gui->setAttributes($this->collector);
     }
     $gui->setDisplayGroup("DomainID");
     $gui->setDisplayGroupParser("mNavigationGUI::DGParser");
     $gui->setShowAttributes(array("name", "sort"));
     $gui->setCollectionOf($this->collectionOf);
     try {
         return $gui->getBrowserHTML($id);
     } catch (Exception $e) {
     }
 }
Esempio n. 7
0
 public function getHTML($id)
 {
     $allowedUsers = Environment::getS("allowedUsers", null);
     $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>";
     }
     $T = new HTMLTable(1, "Application Server");
     $I = new HTMLInput("AppServer", "text", mUserdata::getGlobalSettingValue("AppServer", ""));
     $I->onEnter("contentManager.rmePCR('Users', '-1', 'saveAppServer', [this.value], ' ');");
     if ($allowedUsers === null) {
         $T->addRow($I . "<br /><small>Wenn Sie einen Application Server bertreiben, tragen Sie hier bitte die URL ein, um die Benutzer mit diesem Server zu authorisieren.</small>");
     }
     $gui = new HTMLGUI();
     $gui->setObject($this);
     $gui->setName("Benutzer");
     $gui->setCollectionOf($this->collectionOf, "Benutzer");
     #$gui->setObject($this);
     $gui->setParser("isAdmin", "UsersGUI::isAdminParser");
     $gui->setColWidth("isAdmin", "20px");
     #$gui->hideAttribute("password");
     #$gui->hideAttribute("SHApassword");
     #$gui->hideAttribute("language");
     $gui->setShowAttributes(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."));
     }
     $gui->customize($this->customizer);
     return $TR . $g . $gui->getBrowserHTML($id) . ($id == -1 ? $T : "");
 }
Esempio n. 8
0
 public function getHTML($id)
 {
     $this->addJoinV3("User", "AutoLoginUserID", "=", "UserID");
     $gui = new HTMLGUI();
     #$gui->VersionCheck("mAutoLogin");
     $this->lCV3($id);
     $gui->setName("AutoLogin");
     $gui->setObject($this);
     $gui->setShowAttributes(array("username", "AutoLoginIP", "AutoLoginApp"));
     $t = new HTMLTable(1);
     $t->addRow("<img src=\"./images/navi/warning.png\" style=\"float: left; margin-right: 10px;\" />Dieses Plugin ist möglicherweise ein Sicherheitsrisiko!");
     try {
         return ($id == -1 ? $t : "") . $gui->getBrowserHTML($id);
     } catch (Exception $e) {
     }
 }
Esempio n. 9
0
 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();
 }
Esempio n. 10
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;
 }
 function getHTML($id)
 {
     $this->loadMeOrEmpty();
     $gui = new HTMLGUI();
     $gui->setObject($this);
     $gui->setName("Starsystem");
     $gui->setStandardSaveButton($this);
     $B = new Button("create\nplanets", "./PM/Planet/Terran01.png");
     $B->rme("Starsystem", $this->ID, "createPlanets", "");
     $tab = new HTMLTable(1);
     $tab->addRow($B);
     $gui->setType("StarsystemGalaxyID", "hidden");
     $gui->setLabel("StarsystemName", "Name");
     $gui->setLabel("StarsystemX", "X");
     $gui->setLabel("StarsystemY", "Y");
     $gui->setLabel("StarsystemRotation", "Rotation");
     return $tab . $gui->getEditHTML();
 }
Esempio n. 12
0
 public function getACHTML($attributeName, $query)
 {
     $gui = new HTMLGUI();
     switch ($attributeName) {
         case "quickSearchmSerie":
             $this->setSearchStringV3($query);
             $this->setSearchFieldsV3(array("name"));
             $this->setLimitV3("10");
             $this->lCV3();
             $gui->setAttributes($this->collector);
             $gui->setShowAttributes(array("name", "sprache"));
             $_SESSION["BPS"]->registerClass(get_class($gui));
             $_SESSION["BPS"]->setACProperty("targetFrame", "contentLeft");
             $_SESSION["BPS"]->setACProperty("targetPlugin", "Serie");
             $gui->autoCheckSelectionMode(get_class($this));
             echo $gui->getACHTMLBrowser("quickSearchLoadFrame");
             break;
     }
 }
Esempio n. 13
0
 public static function nameParser($w, $l, $p)
 {
     $p = HTMLGUI::getArrayFromParametersString($p);
     $dl = "<img src=\"./plugins/Files/download.png\" class=\"mouseoverFade\" title=\"Datei herunterladen\" onclick=\"windowWithRme('File','{$p['0']}','download','');\" style=\"float:right;\" />";
     if ($p[1] == "0") {
         return "{$dl}<small style=\"color:grey;float:right;margin-right:5px;\">" . Util::formatByte($p[2]) . "</small><img src=\"./images/i2/details.png\" class=\"mouseoverFade\" onclick=\"windowWithRme('File', '{$p['0']}', 'previewWindow', '');\" style=\"float:left;margin-right:5px;\" />" . $w;
     } else {
         return "<img src=\"./images/i2/folder.png\" style=\"float:left;margin-right:5px;\" />{$w}";
     }
 }
Esempio n. 14
0
 function getHTML($id)
 {
     $gui = new HTMLGUI();
     $gui->VersionCheck("mWebsite");
     $Dom = new anyC();
     $Dom->setCollectionOf("Domain");
     $U = new mUserdata();
     $U = $U->getUDValue("selectedDomain");
     if ($U == null) {
         $html = "\n\t\t\t<ul>";
         while ($d = $Dom->getNextEntry()) {
             $html .= "\n\t\t\t\t<li>" . $d->A("title") . "</li>";
         }
         $html .= "\n\t\t\t</ul>";
         return $html;
     }
     $D = new Domain($U);
     $html = "\n\t\t<script type=\"text/javascript\">Website.init();</script>";
     $html .= "\n\t\t\t<div style=\"border-left-width:1px;border-left-style:solid;padding-left:10px;\" class=\"borderColor1\">\n\t\t\t<p>\n\t\t\t\t<b>" . $D->A("title") . "</b>\n\t\t\t</p>\n\t\t\t<ul style=\"list-style-image:none;list-style-type:none;\" >\n\t\t\t\t<li><img style=\"float:left;margin-right:10px;\" src=\"./images/i2/new.gif\" onclick=\"contentManager.newClassButton('Navigation','');\" class=\"mouseoverFade\"/> Neues Menüelement erstellen</li>\n\t\t\t</ul>" . $this->getNav(0, $U) . "</div>";
     $html .= "\n\t\t<script type=\"text/javascript\">Website.start();</script>";
     return $html;
 }
Esempio n. 15
0
 function getHTML($id)
 {
     if ($this->A == null) {
         $this->lCV3($id);
     }
     $gui = new HTMLGUI();
     $gui->VersionCheck("Domains");
     $gui->setObject($this);
     $gui->setName("Domains");
     #if($this->collector != null) $gui->setAttributes($this->collector);
     $gui->setShowAttributes(array("url"));
     $gui->setCollectionOf($this->collectionOf);
     $gui->setParser("url", "DomainsGUI::urlParser", array("\$aid"));
     $gui->customize($this->customizer);
     try {
         return $gui->getBrowserHTML($id);
     } catch (Exception $e) {
     }
 }
Esempio n. 16
0
 public static function ActionParser($w, $l, $p)
 {
     $s = HTMLGUI::getArrayFromParametersString($p);
     if ($s[2] == "-1") {
         $I = new HTMLInput("FhemEventAction", "multiInput", $w, array("FhemEvent", $s[0], "FhemEventAction"));
         $I->style("width:95%;text-align:left;");
         return $I;
     }
     $Fhem = new Fhem($s[1]);
     $Fhem->loadMe();
     $op = $Fhem->getAvailableOptions();
     $o = "<option value=\"\">select...</option>";
     foreach ($op as $k => $v) {
         $o .= "<option " . ($w == $v ? "selected=\"selected\"" : "") . " value=\"{$v}\">{$k}</option>";
     }
     return "<select onchange=\"rme('FhemEvent', '{$s['0']}', 'saveMultiEditField', Array('FhemEventAction',this.value), 'checkResponse(transport);');\">{$o}</select>";
 }
Esempio n. 17
0
 /**
  * @return HTMLGUI
  */
 protected function getGUI()
 {
     $this->loadMeOrEmpty();
     $bps = $this->getMyBPSData();
     $c = $this->getClearClass() . "Class";
     $d = $this->getClearClass() . "ClassID";
     $this->A->{$c} = $bps["className"];
     $this->A->{$d} = $bps["classID"];
     $gui = new HTMLGUI();
     $gui->setType($this->getClearClass() . "Class", "hidden");
     $gui->setType($this->getClearClass() . "ClassID", "hidden");
     $gui->setObject($this);
     $gui->setFormID("propertyForm");
     if (isset($bps["returnTo" . $bps["className"]])) {
         $gui->setJSEvent("onSave", "function(){ contentManager.reloadFrameLeft(); contentManager.loadFrame('contentRight','" . $bps["returnTo" . $bps["className"]] . "'); }");
     }
     $gui->setStandardSaveButton($this);
     return $gui;
 }
Esempio n. 18
0
 public function getHTML($id)
 {
     $gui = new HTMLGUI();
     $gui->VersionCheck("mFhem");
     $this->lCV3($id);
     $gui->setName("Server");
     $gui->setObject($this);
     $gui->setShowAttributes(array("FhemServerName"));
     try {
         return $gui->getBrowserHTML($id);
     } catch (Exception $e) {
     }
 }
 public function getHTML($id)
 {
     $gui = new HTMLGUI();
     $gui->VersionCheck("mStarsystem");
     $this->lCV3($id);
     $gui->setName("Starsystem");
     $gui->setObject($this);
     $gui->hideAttribute("StarsystemID");
     try {
         return $gui->getBrowserHTML($id);
     } catch (Exception $e) {
     }
 }
 public function getWindowHTML()
 {
     $bps = $this->getMyBPSData();
     #print_r($bps);
     $v = false;
     $b = false;
     $von = "Bitte ziehen Sie ein <img src=\"./images/i2/add.png\" style=\"margin-bottom:-5px;\" />-Symbol auf dieses Feld.";
     $bis = "Bitte ziehen Sie ein <img src=\"./images/i2/add.png\" style=\"margin-bottom:-5px;\" />-Symbol auf dieses Feld.";
     if ($bps != -1 and isset($bps["VonClass"])) {
         $VonClass = $bps["VonClass"];
         $VonClass = new $VonClass($bps["VonID"]);
         $von = $VonClass->getCategorizerLabel();
         $v = true;
     }
     if ($bps != -1 and isset($bps["BisClass"])) {
         $BisClass = $bps["BisClass"];
         $BisClass = new $BisClass($bps["BisID"]);
         $bis = $BisClass->getCategorizerLabel();
         $b = true;
     }
     $t = new HTMLTable(2);
     $t->addColStyle(1, "width:120px;");
     $t->addRow(array("<label>Von:</label>", $von));
     $t->addCellID(2, "droppableVon");
     $t->addCellStyle(2, "height:30px;");
     $t->addRow(array("<label>Bis:</label>", $bis));
     $t->addCellID(2, "droppableBis");
     $t->addCellStyle(2, "height:30px;");
     if ($v and $b) {
         $K = $BisClass->getCategorizerOptions();
         $o = HTMLGUI::getOptions(array_keys($K), array_values($K));
         $t->addRow(array("<label>Kategorie:</label>", "<select id=\"categorizeWithCategory\">{$o}</select>"));
         $t->addRow(array("<input\n\t\t\ttype=\"button\"\n\t\t\tclass=\"bigButton backgroundColor3\"\n\t\t\tvalue=\"Kategorisieren\"\n\t\t\tstyle=\"background-image:url(./images/navi/okCatch.png);float:right;\"\n\t\t\tonclick=\"rme('Categorizer','','categorize',Array(\$('categorizeWithCategory').value),'if(checkResponse(transport)) { Popup.close(\\'Categorizer\\', 0); contentManager.reloadFrameRight(); }');\" />"));
         $t->addRowColspan(1, 2);
     }
     $html = "\n\t\t<script type=\"text/javascript\">\n\t\t\tDroppables.add('droppableVon', {hoverclass: 'backgroundColor1', accept: 'draggable', onDrop: function(element){ rme('Categorizer','','saveVon',Array(element.id),'Popup.update(transport, \\'Categorizer\\', 0);'); }});\n\t\t\tDroppables.add('droppableBis', {hoverclass: 'backgroundColor1', accept: 'draggable', onDrop: function(element){ rme('Categorizer','','saveBis',Array(element.id),'Popup.update(transport, \\'Categorizer\\', 0);'); }});\n\t\t</script>";
     echo $t->getHTML() . $html;
 }
Esempio n. 21
0
 function getHTML($id)
 {
     $gui = new HTMLGUI();
     $this->addJoinV3("FhemLocation", "FhemPresetLocationID", "=", "FhemLocationID");
     $this->addOrderV3("FhemLocationName");
     $this->lCV3($id);
     $gui->setName("Preset");
     $gui->setObject($this);
     $gui->setCollectionOf("FhemPreset", "Preset");
     #$gui->setIsDisplayMode(true);
     #$gui->setEditInDisplayMode(true, "contentLeft");
     $gui->setShowAttributes(array("FhemLocationName", "FhemPresetName"));
     $t = new HTMLTable(1);
     $t->addRow("You'll have to use the \"register settings\"-button in the devices-menu to make this presets known to the server.");
     try {
         return ($id == -1 ? $t : "") . $gui->getBrowserHTML($id);
     } catch (Exception $e) {
     }
 }
Esempio n. 22
0
 public function getHTML($id)
 {
     $this->loadMeOrEmpty();
     #if($this->A == null AND $id != -1) $this->loadMe();
     #if($id == -1) $this->A = new InstallationAttributes();
     BPS::setProperty("mInstallationGUI", "showErrorText", "1");
     $gui = new HTMLGUI();
     if (!Session::isPluginLoaded("multiInstall")) {
         $this->A->httpHost = "*";
         $gui->setType("httpHost", "hidden");
     } else {
         $gui->insertSpaceAbove("httpHost");
     }
     $gui->setObject($this);
     $gui->setName("Zugangsdaten");
     $gui->setType("password", "password");
     $gui->setLabel("datab", "Datenbank");
     $gui->setLabel("user", "Benutzer");
     $gui->setLabel("password", "Passwort");
     $gui->setLabel("httpHost", "Domain");
     $gui->setFieldDescription("host", "Der Rechner, auf dem die Datenbank liegt. Das kann 'localhost' sein, oder eine IP wie '192.168.8.243' oder ein Hostname wie 'rdbms.strato.de'.");
     $gui->setFieldDescription("httpHost", "unter der phynx erreichbar ist oder * für alle Domains");
     #$this->loadGUITranslation($gui);
     $gui->translate($this->loadTranslation());
     $gui->setJSEvent("onSave", "\n\t\t\t\tfunction() {\n\t\t\t\t\tcontentManager.emptyFrame('contentLeft');\n\t\t\t\t\tcontentManager.emptyFrame('contentBelow');\n\t\t\t\t\tcontentManager.reloadFrame('contentRight');" . "\n\t\t\t\t}");
     $gui->setStandardSaveButton($this);
     return $gui->getEditHTML();
 }
Esempio n. 23
0
 function getHTML($id)
 {
     #$showHelp = true;
     if ($this->collector == null) {
         $this->lCV3($id);
     }
     $singularLanguageClass = $this->loadLanguageClass("Installation");
     $text = $singularLanguageClass != null ? $singularLanguageClass->getText() : "";
     if ($id == -1) {
         echo OnEvent::script(OnEvent::rme($this, "getActions", "", "function(transport){ contentManager.contentBelow(transport.responseText); }"));
     }
     $hasDBConnection = false;
     try {
         mUserdata::getGlobalSettingValue("DBVersion", false);
         $hasDBConnection = true;
     } catch (Exception $e) {
     }
     $g = "";
     $DBFilePath = Util::getRootPath() . "system/DBData/Installation.pfdb.php";
     $writable = new HTMLTable(1);
     $File = new File($DBFilePath);
     $File->loadMe();
     if (!$File->A("FileIsWritable") and !$hasDBConnection) {
         return;
     }
     if (!$File->A("FileIsWritable")) {
         $writable->addRow("<img src=\"./images/navi/restrictions.png\" style=\"float:left;margin-right:10px;\"/>Die Datei " . $DBFilePath . " ist nicht beschreibbar, Änderungen können nicht gespeichert werden.<br /><br />Machen Sie die Datei mit einem FTP-Programm beschreibbar. Klicken Sie dazu mit der rechten Maustaste auf die Datei auf dem Server, wählen Sie \"Eigenschaften\", und geben Sie den Modus 666 an, damit sie durch den Besitzer, die Gruppe und alle Anderen les- und schreibbar ist.");
         $g .= $writable->getHTML();
     }
     $gui = new HTMLGUI();
     $gui->setName("Datenbank-Zugangsdaten");
     if ($this->collector != null) {
         $gui->setAttributes($this->collector);
     }
     $gui->setCollectionOf($this->collectionOf, "Datenbank-Zugangsdaten");
     $gui->hideAttribute("password");
     $gui->hideAttribute("httpHost");
     $gui->hideAttribute("InstallationID");
     if (strstr($_SERVER["SCRIPT_FILENAME"], "demo")) {
         $UA = $_SESSION["S"]->getCurrentUser()->getA();
         if ($UA->name != "Installations-Benutzer") {
             $g = "In der Demo können keine Datenbank-Zugangsdaten geändert werden!";
             $gui->setIsDisplayMode(true);
         }
     }
     if (!Session::isPluginLoaded("multiInstall")) {
         $gui->setIsDisplayMode(true);
         $gui->setEditInDisplayMode(true, "contentLeft");
     }
     #try {
     $g .= $gui->getBrowserHTML($id);
     #} catch (Exception $e){
     #	$t->addRow(array("Etwas stimmt nicht, eine ".get_class($e)." wurde abgefangen!"));
     #	$t->addRow(array("<span style=\"font-size:8px;\">".nl2br(str_replace("#","\n#", $e->getTraceAsString()))."</span>"));
     #}
     /*	$help = "
     	<script type=\"text/javascript\">
     		contentManager.rmePCR('mInstallation','','getHelp','true','if(checkResponse(transport)) { Popup.create(\'123\', \'Installation\', \'Hilfe\'); Popup.update(transport, \'123\', \'Installation\'); }');
     	</script>";*/
     $ST = new HTMLSideTable("left");
     try {
         #$MailServer = LoginData::get("MailServerUserPass");
         #$MailServerID = $MailServer == null ? -1 : $MailServer->getID();
         $BMail = $ST->addButton("Mail-Server", "./plugins/Installation/serverMail.png");
         #$BMail->popup("edit", "Mail-Server", "LoginData", $MailServerID, "getPopup", "", "LoginDataGUI;preset:mailServer");
         $BMail->popup("edit", "Mail-Server", "mInstallation", -1, "manageMailservers");
         $BTestMail = $ST->addButton("Mailversand\ntesten", "mail");
         $BTestMail->popup("mailTest", "Mailversand testen", "mInstallation", "-1", "testMailGUI");
         if (Session::isPluginLoaded("mJabber")) {
             $JabberServer = LoginData::get("JabberServerUserPass");
             $JabberServerID = $JabberServer == null ? -1 : $JabberServer->getID();
             $BJabber = $ST->addButton("Jabber-Server", "./plugins/Installation/serverMail.png");
             $BJabber->popup("edit", "Jabber-Server", "LoginData", $JabberServerID, "getPopup", "", "LoginDataGUI;preset:jabberServer");
         }
         $BackupButton = $ST->addButton("Daten-\nsicherungen", "disk");
         $BackupButton->onclick("contentManager.loadFrame('contentLeft','BackupManager');");
     } catch (Exception $e) {
     }
     return $ST . $g;
     #.$t->getHTML();
     $t = new HTMLTable(1);
     try {
         $user = new User(1);
         $user->loadMe();
     } catch (DatabaseNotSelectedException $e) {
         if (BPS::getProperty("mInstallationGUI", "showErrorText", false)) {
             $t->addRow(isset($text["noDatabase"]) ? $text["noDatabase"] : "Es wurde kein korrekter Datenbankname angegeben.<br /><br />Bitte geben Sie eine existierende Datenbank an, sie wird nicht automatisch erzeugt.");
             $t->addRowClass("backgroundColor0");
             $t->addRowStyle("color:red;");
         }
         return $g . $t->getHTML();
         #.$help;
     } catch (NoDBUserDataException $e) {
         if (BPS::getProperty("mInstallationGUI", "showErrorText", false)) {
             $t->addRow(isset($text["wrongData"]) ? $text["wrongData"] : "Mit den angegebenen Datenbank-Zugangsdaten kann keine Verbindung aufgebaut werden.<br /><br />Wenn sie korrekt sind, werden hier weitere Möglichkeiten angezeigt angezeigt.");
             $t->addRowClass("backgroundColor0");
             $t->addRowStyle("color:red;");
         }
         if (PHYNX_MAIN_STORAGE == "MySQL") {
             try {
                 $DB1 = new DBStorageU();
                 $B = new Button("Hinweis", "notice", "icon");
                 $B->style("float:left;margin-right:10px;");
                 $File = new File(Util::getRootPath() . "system/connect.php");
                 $BR = new Button("DB-Verbindung\numstellen", "lieferschein");
                 $BR->style("float:right;margin-left:10px;");
                 $BR->rmePCR("mInstallation", "-1", "switchDBToMySQLo", "", "Installation.reloadApp();");
                 $BR = "Verwenden Sie den nebenstehenden Knopf, um die Verbindungsart auf die ältere Version umzustellen.<br />{$BR} Sie müssen sich anschließend erneut anmelden.";
                 $BReload = new Button("Ansicht\naktualisieren", "refresh");
                 $BReload->onclick("contentManager.emptyFrame('contentLeft'); contentManager.loadFrame('contentRight', 'mInstallation', -1, 0, 'mInstallationGUI;-');Popup.closeNonPersistent();");
                 $BReload->style("float:right;margin:10px;");
                 if (!$File->A("FileIsWritable")) {
                     $BR = "Bitte machen Sie die Datei /system/connect.php für den Webserver beschreibbar, damit phynx auf die ältere Verbindungsart umstellen kann.<br /><br />Verwenden Sie dazu Ihr FTP-Programm. Klicken Sie mit der rechten Maustaste auf die Datei auf dem Server, wählen Sie \"Eigenschaften\", und geben Sie den Modus 666 an, damit sie durch den Besitzer, die Gruppe und alle Anderen les- und schreibbar ist.{$BReload}";
                 }
                 $t->addRow(array("{$B} <b>Möglicherweise ist die MySQLi-Erweiterung auf Ihrem Server nicht korrekt konfiguriert.</b><br /><br />{$BR}"));
                 $t->addRowClass("backgroundColor0");
             } catch (Exception $e) {
                 #echo "MySQL geht auch nicht!";
             }
         }
         return $g . $t->getHTML();
         #.$help;
     } catch (TableDoesNotExistException $e) {
     } catch (StorageException $e) {
     }
     /*$help = "
     	<script type=\"text/javascript\">
     		rme('mInstallation','','getHelp','false','if(checkResponse(transport)) { Popup.create(\'123\', \'Installation\', \'Hilfe\'); Popup.update(transport, \'123\', \'Installation\'); }');
     	</script>";*/
     /*if(false AND $id == -1) {
     			$BackupTab = new HTMLTable(1);
     
     			$BackupButton = new Button("Backup-\nManager","disk");
     			$BackupButton->style("float:right;");
     			$BackupButton->onclick("contentManager.loadFrame('contentLeft','BackupManager');");
     
     			$BackupTab->addRow($BackupButton);
     
     			$BUT = new Button((isset($text["alle Tabellen aktualisieren"]) ? $text["alle Tabellen aktualisieren"] : "alle Tabellen\naktualisieren"), "update");
     			$BUT->rmePCR("mInstallation", "", "updateAllTables", "", "$('contentLeft').update(transport.responseText);");
     
     			$g .= "
     	<div style=\"height:30px;\"></div>
     	$BackupTab
     	<div class=\"Tab backgroundColor1\"><p>Plugins</p></div>
     	<table>
     		<colgroup>
     			<col style=\"width:100px;\" class=\"backgroundColor2\" />
     			<col class=\"backgroundColor3\" />
     		</colgroup>
     		<tr>
     			<td colspan=\"3\">
     				<span style=\"float:right;\">".Installation::getReloadButton()."</span>
     				$BUT
     			</td>
     		</tr>
     		<tr>
     			<td style=\"background-color:white;\"></td>
     		</tr>";
     
     			$p = array_flip($_SESSION["CurrentAppPlugins"]->getAllPlugins());
     			
     			
     			foreach($p as $key => $value){
     				try {
     					if(method_exists($_SESSION["CurrentAppPlugins"], "isPluginGeneric") AND $_SESSION["CurrentAppPlugins"]->isPluginGeneric($key)){
     						$c = new mGenericGUI('', $key);
     					} else {
     						$c = new $key();
     					}
     				} catch (ClassNotFoundException $e){
     					$key2 = $key."GUI";
     					
     					try {
     						$c = new $key2();
     					} catch (ClassNotFoundException $e2){
     						continue;
     					}
     				}
     				if($key == "CIs") continue;
     				
     
     				if($c->checkIfMyTableExists() AND $c->checkIfMyDBFileExists()) $showHelp = false;
     
     				if(!$c->checkIfMyDBFileExists())
     					continue;
     
     				$g .= "
     		<tr>
     			<td style=\"font-weight:bold;text-align:right;\">".($value != -1 ? $value : $key )."</td>
     			<td>".(!$c->checkIfMyTableExists() ? ($c->checkIfMyDBFileExists() ? "<input type=\"button\" value=\"".(isset($text["Tabelle anlegen"]) ? $text["Tabelle anlegen"] : "Tabelle anlegen")."\" onclick=\"installTable('$key');\" />" : "keine DB-Info-Datei" ) : ($c->checkIfMyDBFileExists() ? "<input type=\"button\" onclick=\"checkFields('$key');\" value=\"Tabellenupdate\" style=\"float:right;width:140px;\" />".(isset($text["Tabelle existiert"]) ? $text["Tabelle existiert"] : "Tabelle existiert") : (isset($text["keine DB-Info-Datei"]) ? $text["keine DB-Info-Datei"] : "keine DB-Info-Datei"))."")."</td>
     		</tr>";
     			}
     
     			$g .= "
     	</table>";
     		}*/
     #$showHelp = false;
     #if(!$showHelp)
     #	$help = OnEvent::script(OnEvent::closePopup("123", "Installation"));
     return $ST . $g;
     #.$help;
 }
Esempio n. 24
0
 public static function addReturnButton($w, $t, $p)
 {
     $s = HTMLGUI::getArrayFromParametersString($p);
     $p2 = array_flip($_SESSION["CurrentAppPlugins"]->getAllPlugins());
     return "<input type=\"button\" value=\"zurück zu\n" . $p2[$s[0]] . "\" style=\"background-image:url(./images/navi/back.png);\" class=\"bigButton backgroundColor3\" onclick=\"contentManager.loadFrame('contentRight','{$s['0']}');\" />";
 }
Esempio n. 25
0
 public static function catchParser($w, $l = "load", $p = "")
 {
     if (!is_array($p) and !is_object($p)) {
         $p = HTMLGUI::getArrayFromParametersString($p);
     }
     if (is_object($p)) {
         $p = array();
     }
     if (is_array($p)) {
         unset($p[0]);
     }
     return $w == 1 ? "<img " . (isset($p[0]) ? "title=\"{$p['0']}\"" : "") . " src=\"./images/i2/ok.gif\" />" : "<img " . (isset($p[1]) ? "title=\"{$p['1']}\"" : "") . " src=\"./images/i2/notok.gif\" />";
 }
Esempio n. 26
0
 public function getHTML($id)
 {
     $this->addOrderV3("name");
     if ($this->A == null) {
         $this->lCV3($id);
     }
     $singularLanguageClass = $this->loadLanguageClass("Userdata");
     $text = $singularLanguageClass != null ? $singularLanguageClass->getText() : "";
     $gui = new HTMLGUI();
     $gui->setName("Benutzereinschränkungen");
     if ($this->collector != null) {
         $gui->setAttributes($this->collector);
     }
     $gui->hideAttribute("UserID");
     $gui->hideAttribute("wert");
     $gui->hideAttribute("UserdataID");
     $gui->hideAttribute("typ");
     $gui->setDeleteInDisplayMode(true);
     $gui->setCollectionOf($this->collectionOf);
     $gui->setIsDisplayMode(true);
     $gui->setParser("name", "mUserdataGUI::nameParser", array("\$sc->wert"));
     $html = "\n\t\t<table>\n\t\t\t<tr>\n\t\t\t\t<td class=\"backgroundColor3\"><input type=\"button\" style=\"background-image:url(./images/navi/seiten.png);\" class=\"bigButton backgroundColor2\" value=\"" . (isset($text["copy"]) ? $text["copy"] : "von Benutzer\nkopieren") . "\" onclick=\"phynxContextMenu.start(this, 'mUserdata','copyFromUser','kopieren:', 'right', 'up');\" /></td>\n\t\t\t</tr>\n\t\t</table>";
     $gui->addRowAfter("1", "addRestriction");
     $gui->setParser("addRestriction", "mUserdataGUI::addRestrictionParser");
     $gui->setJSEvent("onDelete", "function(){ contentManager.reloadFrame('contentLeft'); }");
     try {
         return "<div class=\"prettyTitle\">Rechte</div>" . $gui->getBrowserHTML($id) . ($this->numLoaded() == 0 ? $html : "");
     } catch (Exception $e) {
         echo $e;
     }
 }
Esempio n. 27
0
 /**
  *  This Method activates several features. Possible values for HTMLGUI2 are:
  *
  *  multiEdit:
  *  creates multiEdit-Fields for the specified attributes when using getBrowserHTML()
  *
  *  par1: The attributes with multiEdit-fields
  *  par2: An array of HTMLInput-Elements to use
  *  par3: An array of style-attributes of the multiEdit-fields
  *
  *  ---
  *
  *  displayMode:
  *  creates multiEdit-Fields for the specified attributes when using getBrowserHTML()
  *
  *  par1: set true to display the new button
  *  par2: set true to display the edit button
  *  par3: set true to display the delete button
  *
  *  ---
  *
  * Some more features are available via the HTMLGUI-Class
  *
  * @param string $feature The feature to activate
  * @param PersistentObject Collection $class
  * @param $par1
  * @param $par2
  * @param $par3
  */
 function activateFeature($feature, $class, $par1 = null, $par2 = null, $par3 = null)
 {
     switch ($feature) {
         case "multiEdit":
             $this->multiEditMode = !is_array($par1) ? array($par1) : $par1;
             $this->multiEditModeInputs = !is_array($par2) ? array($par2) : $par2;
             $this->multiEditModeStyle = !is_array($par3) ? array($par3) : $par3;
             break;
         case "headerRow":
             $this->headerRow = !is_array($par1) ? array($par1) : $par1;
             break;
         case "displayMode":
             $this->showNewButton = $par1;
             $this->showEditButton = $par2;
             $this->showDeleteButton = $par3;
             break;
         case "reloadOnNew":
             if ($class instanceof PersistentObject and $class->getID() == -1) {
                 $this->setJSEvent("onSave", "function(transport){ contentManager.reloadOnNew(transport, '" . $class->getClearClass() . "'); }");
             }
             if ($class instanceof Collection) {
                 $this->setJSEvent("onNew", "contentManager.newClassButton('{$this->singularClass}', function(transport){ contentManager.reloadFrame('contentRight'); }, 'contentLeft', '" . $this->singularClass . "GUI;edit:ok');");
             }
             break;
         default:
             parent::activateFeature($feature, $class, $par1, $par2, $par3);
             break;
     }
 }
Esempio n. 28
0
 function getHTML($id)
 {
     $this->loadMeOrEmpty();
     $gui = new HTMLGUI();
     $gui->setObject($this);
     $gui->setName("Preset");
     $gui->selectWithCollection("FhemPresetServerID", new mFhemServerGUI(), "FhemServerName");
     $gui->setLabel("FhemPresetServerID", "Server");
     $gui->setLabel("FhemPresetName", "Name");
     $gui->setType("FhemPresetHide", "checkbox");
     $gui->setLabel("FhemPresetHide", "Hide?");
     $gui->setType("FhemPresetNightOnly", "checkbox");
     $gui->setLabel("FhemPresetNightOnly", "Night only?");
     $gui->setLabel("FhemPresetLocationID", "Location");
     $gui->setLabel("FhemPresetRunOn", "run on");
     $gui->settype("FhemPresetLocationID", "select");
     $gui->selectWithCollection("FhemPresetLocationID", new mFhemLocationGUI(), "FhemLocationName");
     $gui->setFieldDescription("FhemPresetRunOn", "The event that triggers this Preset. For example HomeStatus:here will trigger this Preset when the dummy 'HomeStatus' is set to 'here'. The Preset will create its own dummy if this field is empty.");
     $gui->setStandardSaveButton($this, "mFhemPreset");
     #$gui->setIsDisplayMode(true);
     #$gui->setShowAttributes(array("name"));
     $gui->setShowAttributes(array("FhemPresetServerID", "FhemPresetLocationID", "FhemPresetName", "FhemPresetRunOn", "FhemPresetHide", "FhemPresetNightOnly"));
     $desc = new HTMLTable(1);
     $desc->addRow("For the \"Night only\"-option to work correctly you might want to set <code>{sunrise_coord(\"10.873799\",\"48.699495\",\"Europe/Berlin\")}</code> in the <code>fhem.cfg</code>-file. With your own coordinates/timezone of course.");
     if ($id == -1) {
         return $gui->getEditHTML() . $desc;
     }
     $_SESSION["BPS"]->registerClass("mFhemSelection");
     $_SESSION["BPS"]->setACProperty("selectionServerID", $this->A->FhemPresetServerID);
     $B = new Button("add Device", "./fheME/Fhem/fhem.png");
     $B->select("false", "mFhem", "FhemPreset", $this->ID, "addDevice");
     $BW = new Button("add custom", "backup");
     $BW->rmePCR("FhemPreset", $this->ID, "addWait", "", "contentManager.reloadFrame('contentLeft');");
     $BW->style("float:right;");
     $t = new HTMLTable(1);
     $t->addRow($BW . $B);
     $_SESSION["CurrentAppPlugins"]->addClass("Presets", "mFhemPreset");
     $mFE = new mFhemEventGUI();
     $mFE->addJoinV3("Fhem", "FhemEventFhemID", "=", "FhemID");
     $mFE->addAssocV3("FhemEventPresetID", "=", $this->ID);
     return $gui->getEditHTML() . $desc . "<div style=\"height:30px;\"></div>" . $t . $mFE->getHTML(-1) . "<div style=\"height:30px;\"></div>";
 }
 function getHTML($id)
 {
     $U = new mUserdata();
     $U = $U->getUDValue("selectedDomain");
     $this->loadMeOrEmpty();
     if ($id == -1 and $U != null) {
         $this->A->DomainID = $U;
         $this->A->sort = -1;
         $this->A->SeiteID = -1;
     }
     $gui = new HTMLGUI();
     $gui->setObject($this);
     $gui->setName("Navigation");
     $N = new mNavigation();
     $N->addAssocV3("NavigationID", "!=", $this->ID);
     $N->addAssocV3("DomainID", "=", $U);
     //$gui->selectWithCollection("DomainID", new Domains(), "url");
     $gui->selectWithCollection("parentID", $N, "name", "kein übergeordnetes Element");
     #$gui->setType("parentID","hidden");
     #$gui->selectWithCollection("SeiteID", $aC, "name");
     /*$aC = new anyC();
     		$aC->setCollectionOf("Seite");
     		$aC->setFieldsV3(array("IF(name = '', header, name) AS name"));
     		$aC->addAssocV3("DomainID","=",$this->A->DomainID);
     		
     		$pages = array();
     		while($s = $aC->getNextEntry()){
     			$pages[$s->getID()] = $s->A("name");
     		}
     
     		$gui->setType("SeiteID","select");
     		$gui->setOptions("SeiteID", array_keys($pages), array_values($pages));*/
     $gui->setParser("SeiteID", "NavigationGUI::SeiteParser", array($this->A->DomainID));
     $gui->setType("DomainID", "hidden");
     $gui->insertSpaceAbove("activeTemplateID");
     $gui->insertSpaceAbove("linkType");
     $gui->insertSpaceAbove("hidden", "Optionen", true);
     $gui->setType("sort", "hidden");
     $gui->setLabel("httpsLink", "Https-Link?");
     $gui->setType("httpsLink", "checkbox");
     $gui->setLabel("activeTemplateID", "Link aktiv");
     $gui->setLabel("inactiveTemplateID", "Link inaktiv");
     $gui->setLabel("DomainID", "Domain");
     $gui->setLabel("SeiteID", "Seite");
     $gui->setLabel("parentID", "Vaterelement");
     /*if($this->A->linkType == "cmsPage" OR $id == -1)
     			$gui->setLineStyle("linkURL","display:none;");
     		else*/
     $gui->setLineStyle("SeiteID", "display:none;");
     $gui->setLineStyle("linkURL", "display:none;");
     $gui->setLineStyle("inactiveTemplateID", "display:none;");
     $gui->setLineStyle("activeTemplateID", "display:none;");
     if ($this->A->linkType == "cmsPage" or $id == -1) {
         $gui->setLineStyle("SeiteID", "");
         $gui->setLineStyle("inactiveTemplateID", "");
         $gui->setLineStyle("activeTemplateID", "");
     } else {
         if ($this->A->linkType == 'url') {
             $gui->setLineStyle("linkURL", "");
             $gui->setLineStyle("inactiveTemplateID", "");
         } else {
             if ($this->A->linkType == 'HTML') {
                 $gui->setLineStyle("activeTemplateID", "");
             } else {
                 if ($this->A->linkType == 'separator') {
                 }
             }
         }
     }
     if (Session::isPluginLoaded("mMultiLanguage")) {
         $gui->activateFeature("addAnotherLanguageButton", $this, "name");
     }
     $gui->setLabel("linkType", "Link-Typ");
     $gui->setInputJSEvent("linkType", "onchange", "Website.set(this)");
     $gui->setLabel("linkURL", "Link-URL");
     $T = new TemplatesGUI();
     $T->addAssocV3("templateType", "=", "naviTemplate");
     $gui->selectWithCollection("activeTemplateID", $T, "name");
     $T = new TemplatesGUI();
     $T->addAssocV3("templateType", "=", "naviTemplate");
     $gui->selectWithCollection("inactiveTemplateID", $T, "name");
     $gui->setLabel("hidden", "versteckt");
     $gui->setFieldDescription("hidden", "Der Menüpunkt wird auf der Seite nicht angezeigt");
     $gui->setType("hidden", "checkbox");
     #$gui->insertSpaceAbove("parentID");
     $gui->setLabel("displaySub", "Unterkat. immer anzeigen");
     $gui->setFieldDescription("displaySub", "Blendet die Unterkategorien immer ein, auch wenn der Menüpunkt nicht ausgewählt ist.");
     $gui->setType("displaySub", "checkbox");
     #$gui->setType("displaySub","hidden");
     $gui->setFieldDescription("httpsLink", "Erzeugt einen https://...-Link");
     $gui->setType("linkType", "select");
     #$gui->setOptions("linkType", array("cmsPage", "url", "separator"), array("multiCMS-Seite", "URL", "Trennlinie"));
     $gui->setOptions("linkType", array("cmsPage", "url", "separator", "HTML"), array("multiCMS-Seite", "URL", "Trennlinie", "Template-HTML"));
     if ($id == -1) {
         $gui->setJSEvent("onSave", "function() { \$('contentLeft').update(); contentManager.reloadFrameRight(); }");
     } else {
         $gui->setJSEvent("onSave", "function() { contentManager.reloadFrameRight(); }");
     }
     $gui->setStandardSaveButton($this);
     #$gui->setSaveButtonValues(get_parent_class($this),$this->ID,"mNavigation");
     return $gui->getEditHTML();
 }
Esempio n. 30
0
 function getHTML($id)
 {
     $this->addOrderV3("PatchID");
     $this->lCV3($id);
     $gui = new HTMLGUI();
     $gui->setName("Updates");
     $gui->setAttributes($this->collector);
     $gui->setCollectionOf($this->collectionOf, "Update");
     $gui->setShowAttributes(array("PatchDescription", "PatchExecuted"));
     $gui->setParser("PatchExecuted", "Util::catchParser");
     $gui->setParser("PatchDescription", "mPatchGUI::descriptionParser");
     #$gui->setIsDisplayMode(true);
     #$gui->setEditInDisplayMode(true,"contentLeft");
     #$gui->setDeleteInDisplayMode(false);
     $BXML = new Button("XML\nerzeugen", "empty");
     $BXML->style("float:right;");
     $BXML->windowRme("mPatch", "-1", "getXML", "");
     if (strpos($_SERVER["SCRIPT_FILENAME"], "/nemiah") === false) {
         $BXML = "";
     }
     $BU = new Button("Updates\naktualisieren", "refresh");
     $BU->rmePCR("mPatch", "-1", "update", "", "function(transport){ if(transport.responseText != 'error') " . OnEvent::reload("Right") . " else new Effect.BlindDown('errorMessage'); }");
     $T = new HTMLTable(1, "Einzelne Aktualisierungen");
     $T->addRow(array($BU . $BXML . "\n\t\t\t\t\t<div id=\"errorMessage\" style=\"display:none;color:red;\">Es konnte keine Verbindung zum Updates-Server hergestellt werden.<br />Bitte stellen Sie folgende Voraussetzungen sicher:\n\t\t\t\t\t<ul>\n\t\t\t\t\t\t<li>Der Server mit Ihrer Installation kann eine Verbindung ins Internet aufbauen.</li>\n\t\t\t\t\t\t<li>Sie benutzen die aktuellste Version des Update-Plugins.</li>\n\t\t\t\t\t</ul></div>"));
     $html = OnEvent::script("var Patch = { popup: { 'width':600, 'hPosition': 'center', hasX: false } }") . $T;
     /*"
     		<table>
     			<colgroup>
     				<col class=\"backgroundColor3\" />
     			</colgroup>
     			<tr>
     				<td>
     					".(strpos($_SERVER["SCRIPT_FILENAME"], "/nemiah") !== false ? "<input
     						style=\"float:right;\"
     						onclick=\"windowWithRme('mPatch','','getXML','');\"
     						type=\"button\"
     						class=\"bigButton backgroundColor2\"
     						value=\"XML\nerzeugen\"
     					/>" : "")."
     					<input
     						style=\"background-image:url(./images/navi/refresh.png);\"
     						onclick=\"rme('mPatch','','update','','if(transport.responseText != \'error\') contentManager.reloadFrameRight(); else new Effect.BlindDown(\'errorMessage\');');\"
     						type=\"button\"
     						class=\"bigButton backgroundColor2\"
     						value=\"Updates\naktualisieren\"
     					/>
     				</td>
     			</tr>
     		</table>";*/
     #else
     #	$html = "";
     $F = new HTMLForm("updateForm", array("file"), "Die Anwendung aktualisieren");
     $F->getTable()->setColWidth(1, 120);
     $F->setType("file", "file");
     $F->setLabel("file", "Paket");
     $F->addJSEvent("file", "onChange", "Overlay.showDark(0.1, 0.8); " . OnEvent::popup("Anwendungsaktualisierung", "mPatch", "-1", "processUpdate", array("fileName"), "", "Patch.popup"));
     $F->setDescriptionField("file", "Hier aktualisieren Sie Ihre komplette Anwendung mit einem neuen Paket, das Sie von Furtmeier Hard- und Software erhalten haben.<br /><br />Sie können damit sowohl neue Versionen (Update) einspielen als auch eine mit Plugins erweiterte Version (Upgrade) einrichten.<br /><br />Alle Dateien werden vorher gesichert und alle eingetragenen Daten bleiben erhalten.");
     try {
         return ($id == -1 ? $F . "<div style=\"height:30px;\"></div>" . $html : "") . $gui->getBrowserHTML($id);
     } catch (Exception $e) {
     }
     return $html;
 }