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("Seiten"); $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("TemplateID"); $this->addOrderV3("SeiteID"); if ($U != null) { $this->addAssocV3("DomainID", "=", $U); } $this->addAssocV3("DomainID", "=", "0", "OR"); if ($this->A == null) { $this->lCV3($id); } $gui->setName("Seite"); $gui->setObject($this); $gui->setShowAttributes(array("SeiteID", "name")); $gui->setJSEvent("onNew", "function() { contentManager.reloadFrameRight(); }"); $gui->addColStyle("SeiteID", "width:40px;text-align:right;"); $gui->setParser("name", "SeitenGUI::nameParser", array("\$aid", "\$header")); $gui->setDisplayGroup("TemplateID"); $gui->setDisplayGroupParser("SeitenGUI::DGParser"); $gui->setCollectionOf($this->collectionOf); $gui->customize($this->customizer); try { return $gui->getBrowserHTML($id); } catch (Exception $e) { print_r($e); } }