getParams(); $this->assignRef('cmpparams',$cmpparams); $params = Sql2excelParms::getParms(); $model = &$this->getModel(); $document = &JFactory::getDocument(); $sections = $model->getSections($params); //$showPageTitle = $params->get( 'show_ptitle', '1' ); $showPageTitle = Sql2excelParms::get($params,'show_ptitle', '1'); $this->assignRef('sections', $sections); //$tmpl['displaynumdocsecs'] = $params->get( 'show_number_reports_in_cat', 1 ); //$tmpl['displaynumdocsecsheader'] = $params->get( 'show_number_cat_reports_head', 1 ); $tmpl['displaynumdocsecs'] = Sql2excelParms::get($params,'show_number_reports_in_cat', 1); $tmpl['displaynumdocsecsheader'] = Sql2excelParms::get($params,'show_number_cat_reports_head', 1); //$style = $params->get( 'style', 'sql2excel-silver-grad' ); $style = Sql2excelParms::get($params,'templatestyle', 'sql2excel-silver-grad'); $document->addStyleSheet(JURI::base(true).'/components/com_sql2excel/assets/css/'.$style.'.css'); $this->assignRef('tmpl', $tmpl); $this->assignRef('params', $params); $this->assignRef('show_page_title', $showPageTitle); parent::display($tpl); } } ?>