FundacionLQDVI_WebCongresos/www/components/com_sql2excel/views/sections/view.html.php

67 lines
2.1 KiB
PHP

<?php
/*
* @component SQL 2 Excel Pro Component
* @copyright Copyright (C) Joomla-R-Us, joomla-r-us.com
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPLv3
*
* Orignial code by Jan Pavelka (www.phoca.cz)
* Adapted by Joomla-R-Us for SQl 2 Excel Pro
*
*/
/*
* @package Joomla 1.5
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
*
* @component Phoca Component
* @copyright Copyright (C) Jan Pavelka www.phoca.cz
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
*/
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die();
jimport( 'joomla.application.component.view');
require_once( JPATH_COMPONENT.DS.'helpers'.DS.'parms.php' );
class Sql2excelViewSections extends JView
{
function display($tpl = null)
{
global $mainframe;
$cmpparams = &$mainframe->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);
}
}
?>