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); }
function getHTML($id, $page) { #$this->addJoinV3("Kappendix", "AdresseID", "=", "AdresseID"); //this is no good idea, unless with an index on Kappendix::AdresseID column try { new CRMHTMLGUI(); $id = -1; } catch (ClassNotFoundException $e) { } $gui = $this->gui; $gui->VersionCheck("Adressen"); $gui->setName("Adresse"); $gui->setObject($this); $gui->tip(); $gui->setParser("firma", "AdressenGUI::firmaParser", array("\$sc->vorname", "\$sc->nachname", "\$aid", "\$type", "\$tel", "\$fax", "\$email", "\$mobil", "\$homepage", __CLASS__)); $gui->customize($this->customizer); $gui->showFilteredCategoriesWarning($this->filterCategories(), "Adressen"); $gesamt = $this->loadMultiPageMode($id, $page, 0); if (get_class($this) == "AdressenGUI") { $_SESSION["BPS"]->setActualClass("adressenMode"); $_SESSION["BPS"]->unsetACProperty("adressenMode"); } $tab = ""; if (Session::isPluginLoaded("mAdressBuch") and $id == -1) { $tab = mAdressBuchGUI::getSelectionMenu($this, "contentRight", false, true); } $gui->isQuickSearchable(str_replace("GUI", "", get_class($this))); $gui->setMultiPageMode($gesamt, $page, 0, "contentRight", str_replace("GUI", "", get_class($this))); if ($this->collector != null) { $gui->setAttributes($this->collector); } $gui->setDisplayGroup("KategorieID"); $gui->setDisplayGroupParser("AdressenGUI::DGParser"); $gui->setShowAttributes(array("firma")); $gui->setJSEvent("onNew", "function() { contentManager.reloadFrameRight(); }"); $bps = $this->getMyBPSData(); $gui->autoCheckSelectionMode(get_class($this)); return ($id == -1 ? $tab : "") . $gui->getBrowserHTML($id); }