%PDF- %PDF-
| Direktori : /home/lightco1/www/lightingrepublic.com.au/components/com_allvideoshare/views/search/ |
| Current File : /home/lightco1/www/lightingrepublic.com.au/components/com_allvideoshare/views/search/view.html.php |
<?php
/*
* @version $Id: view.html.php 2.2.0 2014-01-18 $
* @package Joomla
* @copyright Copyright (C) 2012-2014 MrVinoth
* @license GNU/GPL http://www.gnu.org/licenses/gpl-2.0.html
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
// Import libraries
require_once( JPATH_ROOT.DS.'administrator'.DS.'components'.DS.'com_allvideoshare'.DS.'views'.DS.'view.php' );
class AllVideoShareViewSearch extends AllVideoShareView {
function display($tpl = null) {
$mainframe = JFactory::getApplication();
$model = $this->getModel();
$config = $model->getconfig();
$this->assignRef('config', $config);
// Adds parameter handling
$params = $mainframe->getParams();
$this->assignRef('params', $params);
$rows = $params->get('no_of_rows', $config[0]->rows);
$this->assignRef('rows', $rows);
$cols = $params->get('no_of_cols', $config[0]->cols);
$this->assignRef('cols', $cols);
$thumb_width = $params->get('avs_thumb_width', $config[0]->thumb_width);
$this->assignRef('thumb_width', $thumb_width);
$thumb_height = $params->get('avs_thumb_height', $config[0]->thumb_height);
$this->assignRef('thumb_height', $thumb_height);
$search = $model->getsearch($rows * $cols);
$this->assignRef('search', $search);
$pagination = $model->getpagination( );
$this->assignRef('pagination', $pagination);
$keyword = $mainframe->getUserStateFromRequest('avssearch', 'avssearch', '', 'string');
$this->assignRef('keyword', $keyword);
parent::display($tpl);
}
}