function MakeMenu() { $menu = $this->openTpl("htmlmenu"); $menuObj = new clsMenu(); $saida = $menuObj->MakeMenu($this->openTpl("htmllinhamenu"), $this->openTpl("htmllinhamenusubtitulo")); $saida = str_replace("<!-- #&LINHAS&# -->", $saida, $menu); return $saida; }
function clsMenuMenu1($RelativePath, &$Parent) { global $FileName; global $CCSLocales; global $DefaultDateFormat; $this->ComponentName = "Menu1"; $this->Visible = True; $this->controls = array(); $this->Parent =& $Parent; $this->RelativePath = $RelativePath; $this->ErrorBlock = "Menu Menu1"; $this->DataSource = new clsMenu1DataSource($this); $this->ds =& $this->DataSource; parent::clsMenu("parent_id", "p_menu_id", null); $this->ItemLink = new clsControl(ccsLink, "ItemLink", "ItemLink", ccsText, "", CCGetRequestParam("ItemLink", ccsGet, NULL), $this); $this->controls["ItemLink"] =& $this->ItemLink; $this->ItemLink->Parameters = CCGetQueryString("QueryString", array("ccsForm")); }