getParams(); $params = Sql2excelParms::getParms(); $this->assignRef('cmpparams', $cmpparams); $model = &$this->getModel(); $document = &JFactory::getDocument(); $sectionId = JRequest::getVar('id', 0, '', 'int'); if ( $sectionId < 1 ) { // Get section id from the menu parameter $paramsC = JComponentHelper::getParams('com_sql2excel'); $sectionId = $paramsC->get( 'sid', '1' ); } //$showSectDescr = $params->get( 'show_section_descr', '1' ); $showSectDescr = Sql2excelParms::get($params,'show_section_descr', '1'); //$showPageTitle = $params->get( 'show_ptitle', '1' ); $showPageTitle = Sql2excelParms::get($params,'show_ptitle', '1'); // Template Style //$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'); $section = $model->getSection($sectionId, $params); $this->assignRef('section',$section); $categoryList = $model->getCategoryList($sectionId, $params); $this->assignRef('categorylist', $categoryList); $this->assignRef('tmpl', $tmpl); $section = $model->getSection($sectionId, $params); $this->assignRef('section', $section); $this->assignRef('show_sect_descr', $showSectDescr); $this->assignRef('show_page_title', $showPageTitle); $this->assignRef('params', $params); parent::display($tpl); } } ?>