xt->assign("filterPanelStateClass", "filter-ajaxReloaded"); } /** * Add common html code for ajax mode on list page */ function addCommonHtml() { return true; } /** * Add common javascript code for ajax mode on list page */ function addCommonJs() { $this->addJsForGrid(); } /** * Show page method */ function showPage() { $this->BeforeShowList(); $bricksExcept = array("details_found", "page_of", "recsperpage", "vrecsperpage", "vdetails_found", "vpage_of", "grid", "pagination", "message", "filterpanel", "search_saving_buttons", "recordcontrol"); if ( $this->getLayoutVersion() == BOOTSTRAP_LAYOUT ) { $bricksExcept[]= "morebutton"; } $this->xt->hideAllBricksExcept($bricksExcept); $this->xt->prepare_template($this->templatefile); $returnJSON = array("success"=>true, 'idStartFrom'=>$this->flyId); $this->addControlsJSAndCSS(); $this->fillSetCntrlMaps(); $returnJSON['controlsMap'] = $this->controlsHTMLMap; $returnJSON['viewControlsMap'] = $this->viewControlsMap; $returnJSON['settings'] = $this->jsSettings; $this->xt->assign("header",""); $this->xt->assign("footer",""); $returnJSON["html"] = $this->xt->fetch_loaded("body"); $returnJSON['cellStyles'] = $this->row_css_rules.$this->cell_css_rules."\n".$this->mobile_css_rules; $returnJSON['numberOfRecs'] = $this->numRowsFromSQL; $returnJSON['recPerPage'] = $this->pageSize; if ($this->deleteMessage!='') $returnJSON["usermessage"] = true; echo printJSON($returnJSON); exit(); } /** * A stub */ function rulePRG() { } } ?>