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