public function getHTML($id, $page) { $bps = $this->getMyBPSData(); $this->setParser("TodoTillDay", "Util::CLDateParser"); $this->setParser("TodoTillTime", "Util::CLTimeParser"); $this->addOrderV3("TodoTillDay", "DESC"); $this->addOrderV3("TodoTillTime", "DESC"); if ($bps != -1 and isset($bps["ownerClass"])) { $this->addAssocV3("TodoClass", "=", $bps["ownerClass"]); $this->addAssocV3("TodoClassID", "=", $bps["ownerClassID"]); } $gui = new HTMLGUIX(); $this->loadMultiPageMode($id, $page, 8); $gui->name("Aktivität"); $gui->colWidth("TodoType", "20px"); $gui->colWidth("TodoDoneTime", "20px"); $gui->object($this); $gui->parser("TodoDoneTime", "mTodoGUI::parserDone"); $gui->parser("TodoDescription", "mTodoGUI::descParser"); $gui->parser("TodoType", "TodoGUI::typesImage"); $gui->parser("TodoTillDay", "mTodoGUI::dayParser"); $gui->activateFeature("CRMEditAbove", $this); $gui->displayMode("CRMSubframeContainer"); $gui->attributes(array("TodoType", "TodoTillDay", "TodoDescription", "TodoDoneTime")); $gui->customize($this->customizer); return $gui->getBrowserHTML($id); }
public function getHTML($id, $page) { $this->loadMultiPageMode($id, $page, 0); $gui = new HTMLGUIX($this); $gui->version("mpoolSteuerung"); $gui->name("Steuerung"); $gui->attributes(array("poolSteuerungTyp", "poolSteuerungIP")); return $gui->getBrowserHTML($id); }
public function getHTML($id, $page) { $this->loadMultiPageMode($id, $page, 0); $gui = new HTMLGUIX($this); $gui->version("mRC"); $gui->name("RC"); $gui->attributes(array()); return $gui->getBrowserHTML($id); }
public function getHTML($id, $page) { $this->loadMultiPageMode($id, $page, 0); $gui = new HTMLGUIX($this); $gui->version("mRSSParser"); $gui->screenHeight(); $gui->name("RSSParser"); $gui->attributes(array("RSSParserName")); return $gui->getBrowserHTML($id); }
public function getHTML($id, $page) { $this->loadMultiPageMode($id, $page, 0); $gui = new HTMLGUIX($this); $gui->version("mOpenWeatherMap"); $gui->name("Wetter"); $gui->attributes(array("OpenWeatherMapName")); $B = $gui->addSideButton("Einstellungen", "system"); $B->popup("", "Allgemeine Werte", "mOpenWeatherMap", "-1", "getPopupEinstellungen"); return $gui->getBrowserHTML($id); }
public function getHTML($id) { $allowedUsers = Environment::getS("allowedUsers", null); #$this->addAssocV3("UserType", "=", "0"); $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>"; } $gui = new HTMLGUIX($this); $gui->screenHeight(); $gui->name("Benutzer"); #$gui->setCollectionOf($this->collectionOf,"Benutzer"); $gui->parser("isAdmin", "UsersGUI::isAdminParser"); $gui->colWidth("isAdmin", "20px"); $gui->attributes(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.")); } if ($allowedUsers === null) { $B = $gui->addSideButton("Externe\nAuthentifizierung", "./plugins/Users/auth.png"); $B->popup("", "Externe Authentifizierung", "Users", "-1", "authenticationPopup"); } $gui->prepend($TR); $gui->customize($this->customizer); try { $AD = new LoginAD(); $AD->getUsers(); if ($AD->n() !== null) { $B = $gui->addSideButton("ActiveDirectory-\nBenutzer", "users"); } $B->popup("", "ActiveDirectory-Benutzer", "Users", "-1", "ldapUsersPopup"); } catch (Exception $e) { } return $gui->getBrowserHTML($id); }
public function getHTML($id, $page) { $this->loadMultiPageMode($id, $page, 0); $gui = new HTMLGUIX($this); $gui->version("mEinkaufszettel"); $gui->name("Kategorie"); $gui->attributes(array()); $B = $gui->addSideButton("Zurück", "back"); $B->loadPlugin("contentRight", "mEinkaufszettel"); return $gui->getBrowserHTML($id); }
public function getHTML($id, $page) { $this->loadMultiPageMode($id, $page, 0); $gui = new HTMLGUIX($this); $gui->name("Ausgeblendeter Benutzer"); $B = $gui->addSideButton("Zurück", "back"); $B->loadPlugin("contentRight", "mphim"); $gui->attributes(array("phimUserHiddenUserID")); $gui->parser("phimUserHiddenUserID", "parserUser"); return $gui->getBrowserHTML($id); }
public function getHTML($id, $page) { $this->addAssocV3("phimGruppeMasterUserID", "=", Session::currentUser()->getID()); $this->loadMultiPageMode($id, $page, 0); $gui = new HTMLGUIX($this); $gui->version("mphim"); $gui->name("Gruppe"); $B = $gui->addSideButton("Zurück", "back"); $B->loadPlugin("contentRight", "mphim"); $gui->attributes(array("phimGruppeName")); return $gui->getBrowserHTML($id); }
public function getHTML($id, $page) { $this->addOrderV3("GerichtName"); $this->loadMultiPageMode($id, $page, 20); $gui = new HTMLGUIX($this); $gui->name("Gericht"); $gui->screenHeight(); $gui->attributes(array("GerichtName")); try { return $gui->getBrowserHTML($id); } catch (Exception $e) { } }
public function getHTML($id, $page) { #$this->setParser("JDownloadDate", ""); $this->addOrderV3("JDownloadDate", "DESC"); $this->loadMultiPageMode($id, $page, 0); $gui = new HTMLGUIX($this); $gui->version("mJD"); $gui->screenHeight(); $gui->name("JDownload"); $gui->attributes(array("JDownloadDate", "JDownloadRenameto")); $gui->parser("JDownloadDate", "parserDate"); return $gui->getBrowserHTML($id); }
public function getHTML($id, $page) { $this->loadMultiPageMode($id, $page, 0); $gui = new HTMLGUIX($this); $gui->version("mJD"); $gui->name("DL"); $gui->attributes(array("JDName")); #$B = $gui->addSideButton("Downloads\nRSS feed", "./trinityDB/JD/rss.png"); #$B->onclick("window.open('./trinityDB/JD/exportRSS.php');"); $B = $gui->addSideButton("Neuer Download", "new"); $B->popup("", "Download", "mJD", -1, "downloadPopup"); $B = $gui->addSideButton("Downloads\nanzeigen", "empty"); $B->loadFrame("contentRight", "mJDownload"); return $gui->getBrowserHTML($id); }
public function getHTML($id, $page) { $this->loadMultiPageMode($id, $page, 0); $gui = new HTMLGUIX($this); $gui->version("mSystem"); $gui->name("System"); $gui->attributes(array()); $gui->options(true, true, false); $B = $gui->addSideButton("Neue\nEinstellung", "new"); $B->popup("", "Neue Einstellung", "mSystem", "-1", "addSettingPopup"); $B = $gui->addSideButton("System\nneu starten", "./ubiquitous/System/cog.png"); $B->doBefore("if(confirm('Das System neu starten?')) %AFTER"); $B->rmePCR("mSystem", "-1", "reboot"); return $gui->getBrowserHTML($id); }
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) { $this->addOrderV3("EinkaufszettelImmer", "DESC"); $this->addOrderV3("EinkaufszettelTime", "DESC"); $this->loadMultiPageMode($id, $page, 0); $gui = new HTMLGUIX($this); $gui->version("mEinkaufszettel"); $gui->colWidth("EinkaufszettelImmer", 20); $gui->name("Einkaufszettel"); $gui->parser("EinkaufszettelImmer", "Util::catchParser"); $gui->attributes(array("EinkaufszettelImmer", "EinkaufszettelName")); $B = $gui->addSideButton("EAN\nprüfen", "lieferschein"); $B->popup("", "EAN prüfen", "mEinkaufszettel", "-1", "checkEANPopup"); $B = $gui->addSideButton("Kategorien", "manager"); $B->loadPlugin("contentRight", "mEinkaufszettelKategorie"); return $gui->getBrowserHTML($id); }
function getHTML($id, $page, $frame = null) { $this->loadMultiPageMode($id, $page); $gui = new HTMLGUIX($this); $tab = ""; if (Session::isPluginLoaded("mAdressBuch") and $id == -1) { $tab = mAdressBuchGUI::getSelectionMenu($this, $frame, false, true); } $gui->displayGroup("KategorieID", "AdressenGUI::DGParser"); $gui->options(true, true, true, true); $gui->parser("firma", "mAdresseGUI::parserFirma"); if ($frame != null) { $gui->targetFrame($frame); } $gui->attributes(array("firma")); return $tab . $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); }
public function getHTML($id, $page) { $this->addOrderV3("name"); $this->filterCategories(); $this->loadMultiPageMode($id, $page, 0); $gui = new HTMLGUIX($this); $gui->version("mSerie"); $gui->options(true, true, true, true); $gui->name("Serie"); $gui->attributes(array("name", "sprache")); $gui->parser("name", "mSerieGUI::nameParser"); $Tab = new HTMLSideTable("left"); $B = new Button("check for\nupdates", "./trinityDB/Serien/Updates.png"); $B->rmePCR("mSerie", "", "checkUpdates", "", "Popup.display('Updates', transport);"); $Tab->addRow($B); try { return ($id == -1 ? $Tab : "") . $gui->getBrowserHTML($id); } catch (Exception $e) { } }
public function getHTML($id, $page) { $this->loadMultiPageMode($id, $page, 0); $gui = new HTMLGUIX($this); $gui->name("IncomingPrettify"); $gui->displayMode("BrowserLeft"); #$gui->attributes(array()); #$B = $gui->addSideButton("add new\nrule", "new"); #$B->popup("editPopupIncomingPrettifyGUI", "Prettify rule", "IncomingPrettify", -1, "getEditPopup", "-1"); #$B->editInPopup(); $gui->activateFeature("editInPopup", $this); $gui->attributes(array("IncomingPrettifyFind", "IncomingPrettifyIsActive")); $gui->parser("IncomingPrettifyIsActive", "Util::catchParser"); $gui->parser("IncomingPrettifyFind", "mIncomingPrettifyGUI::findParser"); $gui->colWidth("IncomingPrettifyIsActive", 20); $B = $gui->addSideButton("run\nPrettifyer", "navigation"); $B->popup("prettifyer", "Prettifyer", "mIncomingPrettify", "-1", "runRules"); $B = $gui->addSideButton("Options", "system"); $B->contextMenu("mIncomingPrettify", "options", "Options"); return $gui->getBrowserHTML($id); }
function getHTML($id) { $this->addOrderV3("sort", "ASC"); if ($this->A == null) { $this->lCV3($id); } $gui = new HTMLGUIX($this); $gui->name("Content"); $gui->options(true, true, false, false); $a = array("sort", "text"); if (Session::isPluginLoaded("mSprache")) { $a[] = "SpracheIdentifier"; $gui->colWidth("SpracheIdentifier", "50"); } $gui->attributes($a); $gui->parser("text", "mContentGUI::textParser"); $gui->colWidth("sort", "30"); $gui->colStyle("sort", "text-align:right;"); $gui->addToEvent("onDelete", "contentManager.reloadFrame('contentLeft');"); $gui->customize($this->customizer); return $gui->getBrowserHTML($id); }
public function getHTML($id, $page) { $bps = $this->getMyBPSData(); $this->loadMultiPageMode($id, $page, 0); $gui = new HTMLGUIX($this); $gui->version("mIncoming"); #$gui->options(true, true, true, true); $gui->name("Incoming"); $gui->attributes(array("IncomingDir")); try { if ($bps != -1 and isset($bps["edit"])) { return $gui->getBrowserHTML($id); } } catch (Exception $e) { } $T = new HTMLTable(3, "new episodes"); $found = $this->findNewEpisodes(); foreach ($found as $S) { foreach ($S as $E) { $T->addRow(array($E["name"], $E["season"], $E["episode"])); } } $Tab = new HTMLSideTable("left"); $B = new Button("Change\ndirectories", "./trinityDB/Incoming/SetFolder.png"); $B->onclick("contentManager.loadFrame('contentRight', 'mIncoming', -1, 0, 'mIncomingGUI;edit:true');"); $Tab->addRow($B); $B = $Tab->addButton("Rename\ndownloaded", "redo"); $B->popup("", "Rename downloaded", "mIncoming", "-1", "renameDownloaded", array("'1'")); $B = $Tab->addButton("Create move-\nscript", "redo"); $B->windowRme("mIncoming", "-1", "createMoveScript", array("'0'")); $B = $Tab->addButton("Run move-\nscript", "redo"); $B->windowRme("mIncoming", "-1", "createMoveScript", array("'1'")); $B = $Tab->addButton("Prettifyer", "./trinityDB/Incoming/prettify.png"); $B->loadFrame("contentLeft", "mIncomingPrettify"); return ($id == -1 ? $Tab : "") . $T; }
public function getHTML($id, $page) { $bps = $this->getMyBPSData(); $this->addOrderV3("season"); $this->addOrderV3("episode"); $this->addAssocV3("SerieID", "=", $bps["SerieID"]); $this->loadMultiPageMode($id, $page, 0); $gui = new HTMLGUIX($this); $gui->version("mSerie"); $gui->displayMode("BrowserLeft"); $gui->replaceEvent("onEdit", "contentManager.editInPopup('Folge', %CLASSID, 'Display episode details')"); #$gui->setDisplaySide("left"); #$gesamt = $this->loadMultiPageMode($id, $page, 0); #$gui->isQuickSearchable(str_replace("GUI","",get_class($this))); #$gui->setMultiPageMode($gesamt, $page, 0, "contentLeft", str_replace("GUI","",get_class($this))); $numb3rs = array(); while ($e = $this->getNextEntry()) { $episodeTag = "S" . ($e->A("season") < 10 ? "0" : "") . $e->A("season") . "E" . ($e->A("episode") < 10 ? "0" : "") . $e->A("episode"); $episodeTag2 = $e->A("season") . "x" . ($e->A("episode") < 10 ? "0" : "") . $e->A("episode"); $episodeTag3 = $e->A("season") . ($e->A("episode") < 10 ? "0" : "") . $e->A("episode"); $numb3rs[] = $episodeTag; foreach (mFolgeGUI::$files as $k => $FN) { $posTag2 = strpos($FN, $episodeTag2); if (stripos($FN, $episodeTag) !== false) { mFolgeGUI::$found[$e->getID()] = $FN; continue; } if (stripos($FN, $episodeTag2) !== false) { mFolgeGUI::$found[$e->getID()] = $FN; continue; } if (stripos($FN, $episodeTag3) !== false) { mFolgeGUI::$found[$e->getID()] = $FN; continue; } #elseif($posTag2 !== false AND $FN[$posTag2-1]*1 == 0) { # mFolgeGUI::$found[$e->getID()] = $FN; #} } } $this->resetPointer(); mFolgeGUI::$numb3rs = $numb3rs; #print_r(mFolgeGUI::$found); $gui->name("Folge"); #$gui->setObject($this); $gui->colWidth("FolgeID", "20px"); $gui->attributes(array("season", "episode", "name", "FolgeID")); $gui->options(false, true, false, true); /* $gui->activateFeature("displayMode", $this, false, false, false); */ $gui->parser("FolgeID", "mFolgeGUI::folgeParser"); #,array("\$aid","\$name","\$season","\$episode","\$wanted") $gui->parser("name", "mFolgeGUI::nameParser"); #,array("\$aid", "\$season", "\$episode") /* $gui->hideAttribute("SerieID"); */ try { return $gui->getBrowserHTML($id); } catch (Exception $e) { } }
public function getHTML($id) { $bps = $this->getMyBPSData(); $B1 = new Button("Servers", "./fheME/Fhem/fhemServers.png"); $B1->style("float:right;"); $B1->onclick("contentManager.loadFrame('contentRight','mFhemServer'); contentManager.emptyFrame('contentLeft');"); $B2 = new Button("Devices", "./fheME/Fhem/fhem.png"); $B2->style("float:right;"); $B2->onclick("contentManager.loadFrame('contentRight','mFhem', -1, 0,'mFhemGUI;showDevices:true'); contentManager.emptyFrame('contentLeft');"); // $B3 = new Button("Rooms","gutschrift"); // $B3->style("float:right;"); // $B3->onclick("contentManager.loadFrame('contentRight','mGruppe');"); $B6 = new Button("Presets", "./fheME/Fhem/events.png"); $B6->style("float:right;"); $B6->onclick("contentManager.loadFrame('contentRight','mFhemPreset'); contentManager.emptyFrame('contentLeft');"); $BLoc = new Button("Locations", "./fheME/FhemLocation/FhemLocation.png"); $BLoc->style("float:right;"); $BLoc->onclick("contentManager.loadFrame('contentRight','mFhemLocation'); contentManager.emptyFrame('contentLeft');"); if (!Session::isPluginLoaded("mFhemLocation")) { $BLoc = ""; } // $B4 = new Button("Refresh","refresh"); // $B4->style("float:right;"); // $B4->onclick("Fhem.refreshControls();"); #$B5 = new Button("Timers","backup"); #$B5->style("float:right;"); #$B5->onclick("contentManager.loadFrame('contentRight','mFhemTimer',-1,0,'mFhemTimerGUI;-'); contentManager.emptyFrame('contentLeft');"); $html = "\n\t\t<script type=\"text/javascript\">\n\t\t\tcontentManager.loadFrame('contentLeft','FhemControl');\n\t\t</script>"; if (isset($bps["noLeft"])) { $html = ""; } $t = new HTMLTable(1); $t->setTableStyle("width:160px;float:right;margin-right:10px;"); #$t->addRow($B5); #$t->addRowClass("backgroundColor0"); #$t->addRow(""); #$t->addRowClass("backgroundColor1"); // $t->addRow($B3); // $t->addRowClass("backgroundColor0"); $t->addRow($B2); $t->addRowClass("backgroundColor0"); $t->addRow($B6); $t->addRowClass("backgroundColor0"); // $t->addRow($B4); // $t->addRowClass("backgroundColor0"); $t->addRow($B1); $t->addRowClass("backgroundColor0"); $t->addRow($BLoc); $t->addRowClass("backgroundColor0"); if (!isset($bps["showDevices"]) and !isset($bps["selectionMode"])) { return $html . $t; } if (isset($bps["selectionMode"])) { $this->addAssocV3("FhemServerID", "=", $_SESSION["BPS"]->getProperty("mFhemSelection", "selectionServerID")); $this->addAssocV3("FhemType", "!=", "FHZ"); } #---------------------------------------------- $this->addOrderV3("FhemServerID"); $this->addOrderV3("FhemType"); $this->addOrderV3("FhemName"); $gui = new HTMLGUIX($this); $gui->displayGroup("FhemServerID", "mFhemGUI::DGParser"); $B = $gui->addSideButton("Load devices\nfrom server", "refresh"); $B->popup("", "Load devices", "mFhem", "-1", "loadDevices"); $B = $gui->addSideButton("Register\nsettings", "./fheME/Fhem/fhem.png"); $B->rme("FhemControl", "", "registerSettings", "", "if(checkResponse(transport)) \$(\\'contentLeft\\').update(transport.responseText);"); $B = $gui->addSideButton("Reset\nServers", "empty"); $B->rme("FhemControl", "", "resetServers", "", "if(checkResponse(transport)) \$(\\'contentLeft\\').update(transport.responseText);"); #$this->lCV3($id); $gui->attributes(array("FhemName", "FhemType")); $gui->name("Device"); if ($bps != -1 and isset($bps["selectionMode"])) { $t2 = ""; } return $gui->getBrowserHTML($id); }
public function getHTML($id, $page) { $TID = BPS::getProperty("mphimGUI", "with", 0); if ($TID[0] != "g") { $this->addAssocV3("phimFromUserID", "=", Session::currentUser()->getID(), "AND", "1"); $this->addAssocV3("phimToUserID", "=", $TID, "AND", "1"); $this->addAssocV3("phimphimGruppeID", "=", "0", "AND", "1"); $this->addAssocV3("phimFromUserID", "=", $TID, "OR", "2"); $this->addAssocV3("phimToUserID", "=", Session::currentUser()->getID(), "AND", "2"); $this->addAssocV3("phimphimGruppeID", "=", "0", "AND", "2"); } else { $this->addAssocV3("phimphimGruppeID", "=", str_replace("g", "", $TID)); } #$this->addJoinV3("User", $field1) #$this->addOrderV3("phimToUserID", "DESC"); #$this->addOrderV3($order) $this->addOrderV3("phimTime", "DESC"); $this->addOrderV3("phimID", "DESC"); $this->setFieldsV3(array("phimRead", "phimFromUserID", "phimMessage", "DATE_FORMAT(FROM_UNIXTIME(phimTime), '%Y-%m-%d') AS grouper")); $this->loadMultiPageMode($id, $page, 0); $gui = new HTMLGUIX($this); $gui->version("mphim"); $gui->colWidth("phimRead", 20); $gui->name("phim"); $gui->displayGroup("grouper", "mphimGUI::parserDG"); $gui->options(true, true, false); $gui->parser("phimRead", "parserRead"); $gui->parser("phimFromUserID", "parserFrom"); $gui->attributes(array("phimRead", "phimFromUserID", "phimMessage")); $B = $gui->addSideButton("Gruppen", "./ubiquitous/phim/group.png"); $B->loadPlugin("contentRight", "mphimGruppe"); $B = $gui->addSideButton("System-\nBenutzer", "./ubiquitous/phim/phimUser.png"); $B->loadPlugin("contentRight", "mphimUser"); $B = $gui->addSideButton("Benutzer\nausblenden", "./ubiquitous/phim/hidden.png"); $B->loadPlugin("contentRight", "mphimUserHidden"); $B = $gui->addSideButton("phim\nanzeigen", "new"); $B->onclick("windowWithRme('mphim', -1, 'chatPopup', [], '', 'window', {height: 300, width:550, left: \$j.jStorage.get('phimX', 20), top: \$j.jStorage.get('phimY', 20), name: 'phim', scroll: false});"); $B = $gui->addSideButton("Config-Datei", "new"); $B->windowRme("mphim", "-1", "getConfigFile"); $users = self::$users = Users::getUsersArray("Alle", true); $T = new HTMLTable(1, "Konversation mit"); $T->setTableStyle("width:100%"); $T->weight("light"); $T->useForSelection(false); foreach ($users as $ID => $U) { $T->addRow(array($U)); $T->addRowEvent("click", OnEvent::frame("contentRight", "mphim", "-1", 0, "", "mphimGUI;with:{$ID}")); if ($ID . "" === $TID . "") { $T->addRowClass("highlight"); } } $AC = anyC::get("phimGruppe"); $AC->addAssocV3("INSTR(phimGruppeMembers, ';" . Session::currentUser()->getID() . ";')", ">", "0"); $TG = new HTMLTable(1, "Gruppen"); $TG->setTableStyle("width:100%"); $TG->weight("light"); $TG->useForSelection(false); while ($G = $AC->n()) { $TG->addRow(array($G->A("phimGruppeName"))); $TG->addRowEvent("click", OnEvent::frame("contentRight", "mphim", "-1", 0, "", "mphimGUI;with:g" . $G->getID())); if ("g" . $G->getID() === $TID . "") { $TG->addRowClass("highlight"); } } $gui->addSideRow($T); $gui->addSideRow($TG); return $gui->getBrowserHTML($id); }
public function getPopupManager($rootDir = null, $class = null, $classID = null, $usePool = false, $fieldDefaultFile = "", $uploadTargetFilename = null) { if ($rootDir != null) { $T = new HTMLTable(1); #$rel = "$rootDir"; $root = FileStorage::getFilesDir() . $rootDir; $_SESSION["BPS"]->setProperty("mFileGUI", "path", $root); $_SESSION["BPS"]->setProperty("mFileGUI", "root", $root); $F = new File($root); $F->loadMe(); if ($F->getA() == null) { if (is_writable(FileStorage::getFilesDir())) { mkdir($root, 0777, true); } else { $B = new Button("", "stop"); $B->type("icon"); $B->style("float:left;margin-right:10px;"); $T->addRow($B . "Das Verzeichnis <code>{$rootDir}</code> existiert nicht und kann nicht automatisch angelegt werden, da keine Schreibberechtigung für <code>specifics</code> vorliegt."); die($T); } } } $bps = $this->getMyBPSData(); if (strpos($bps["path"], $bps["root"]) === false) { $bps["path"] = $bps["root"]; } if ($bps != -1 and isset($bps["path"])) { $this->setDir($bps["path"]); } $this->hideDirs(true); $gui = new HTMLGUIX(); $gui->object($this); $cols = array(); if ($fieldDefaultFile != "") { $C = new $class($classID); self::$fieldDefaultFile = array($C, $C->A($fieldDefaultFile), $fieldDefaultFile); $cols[] = "isDefault"; $gui->colWidth("isDefault", 20); $gui->parser("isDefault", "mFileGUI::parserDefault"); } $cols[] = "FileName"; $gui->attributes($cols); $gui->parser("FileName", "mFileGUI::nameParser2"); $gui->options(true, false, false); $gui->name("Datei"); $gui->addToEvent("onDelete", OnEvent::reloadPopup("mFile")); $oldFiles = ""; if ($class != null and $classID != null) { $AC = anyC::get("Datei", "DateiClassID", $classID); $AC->addAssocV3("DateiClass", "=", $class); $oldFiles = new HTMLTable(2, "Verknüpfte Dateien"); while ($F = $AC->getNextEntry()) { $BDL = new Button("Datei herunterladen", "./plugins/Files/download.png", "icon"); $BDL->onclick("windowWithRme('File','" . $F->A("DateiPath") . "','download','');"); $BDL->style("float:right;"); $oldFiles->addRow(array($BDL . $F->A("DateiName"))); } } $BPool = new Button("Pool\nanzeigen", "./lightCRM/Mail/images/attach.png"); $BPool->style("float:right;margin:10px;"); $BPool->onclick(OnEvent::popupSidePanel("mFile", -1, "sidePanelPool", array("'{$class}Pool'", "'{$rootDir}'"))); if ($usePool and $rootDir) { echo $BPool . "<div style=\"clear:both;\"></div>"; if (file_exists(FileStorage::getFilesDir() . "{$class}Pool")) { echo OnEvent::script("window.setTimeout(function(){ if(\$j('#editDetailsmFileSidePanel').length > 0) return; " . OnEvent::popupSidePanel("mFile", -1, "sidePanelPool", array("'{$class}Pool'", "'{$rootDir}'")) . "}, 100);"); } } $F = new HTMLForm("fileUpload", array("datei")); $s = array("path" => $bps["path"], "class" => "File"); if ($uploadTargetFilename != null) { $s["targetFilename"] = $uploadTargetFilename; } $F->setType("datei", "file", null, $s); $F->addJSEvent("datei", "onChange", OnEvent::reloadPopup("mFile")); $F->getTable()->setColWidth(1, 120); echo "<p class=\"prettyTitle\">/" . basename($bps["path"]) . "</p><p style=\"color:grey;margin-top:-15px;margin-bottom:10px;\"><small>" . dirname(realpath($bps["path"])) . "</small></p>" . $F . $gui->getBrowserHTML(-1) . $oldFiles; }
public function getHTML($id, $page) { #$bps = $this->getMyBPSData(); Aspect::registerOnetimePointCut("aboveList", "GUIFactory::getContainer", "FileManagerGUI::adviceAboveList"); /*$rootDir = null; if($bps != -1 AND isset($bps["root"])) $rootDir = $bps["root"]; if($rootDir != null){ $T = new HTMLTable(1); $rel = "specifics/$rootDir"; $root = Util::getRootPath().$rel; $_SESSION["BPS"]->setProperty("FileManagerGUI", "path", $root); $_SESSION["BPS"]->setProperty("FileManagerGUI", "root", $root); $F = new File($root); $F->loadMe(); if($F->getA() == null){ if(is_writable(Util::getRootPath()."specifics")) mkdir($root); else{ $B = new Button("", "stop"); $B->type("icon"); $B->style("float:left;margin-right:10px;"); $T->addRow($B."Das Verzeichnis <code>$rel</code> existiert nicht und kann nicht automatisch angelegt werden, da keine Schreibberechtigung für <code>specifics</code> vorliegt."); return $T; } } } $bps = $this->getMyBPSData(); //go again #print_r($bps); if(isset($bps["path"]) AND strpos($bps["path"], $bps["root"]) === false) $bps["path"] = $bps["root"]; if($bps != -1 AND isset($bps["path"])) $this->setDir($bps["path"]);*/ $pathing = $this->setPath(); if ($pathing !== true) { return $pathing; } $this->hideDirs(true); $gui = new HTMLGUIX(); $gui->object($this); $gui->name("Datei"); #$gui->colWidth("FileIsDir", 20); $gui->attributes(array("FileName")); #$gui->parser("FileIsDir","mFileGUI::popupIsDirParser2"); $gui->parser("FileName", "mFileGUI::nameParser2"); $gui->addToEvent("onDelete", BPS::getProperty("FileManagerGUI", "reloadFunction", "contentManager.reloadFrame('contentLeft');")); $gui->options(true, false, false); $gui->displayMode(BPS::getProperty("FileManagerGUI", "displayMode", "CRMSubframeContainer")); #$gui->displayMode("popup"); return $gui->getBrowserHTML(-1); }