Source for file view.html.php
Documentation is available at view.html.php
* @package Joomla.Administrator
* @subpackage com_banners
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* View class for a list of tracks.
* @package Joomla.Administrator
* @subpackage com_banners
public function display($tpl =
null)
if (count($errors =
$this->get('Errors')))
require_once JPATH_COMPONENT .
'/models/fields/bannerclient.php';
* Add the page title and toolbar.
require_once JPATH_COMPONENT.
'/helpers/banners.php';
$bar =
JToolBar::getInstance('toolbar');
$bar->appendButton('Slider', 'export', 'JTOOLBAR_EXPORT', 'index.php?option=com_banners&view=download&tmpl=component', 600, 300);
if ($canDo->get('core.delete'))
$bar->appendButton('Confirm', 'COM_BANNERS_DELETE_MSG', 'delete', 'COM_BANNERS_TRACKS_DELETE', 'tracks.delete', false);
if ($canDo->get('core.admin'))
JText::_('COM_BANNERS_SELECT_CLIENT'),
JText::_('JOPTION_SELECT_CATEGORY'),
JHtml::_('select.options', JHtml::_('category.options', 'com_banners'), 'value', 'text', $this->state->get('filter.category_id'))
JText::_('COM_BANNERS_SELECT_TYPE'),
JHtml::_('select.options', array(JHtml::_('select.option', 1, JText::_('COM_BANNERS_IMPRESSION')), JHtml::_('select.option', 2, JText::_('COM_BANNERS_CLICK'))), 'value', 'text', $this->state->get('filter.type'))
* Returns an array of fields the table can be sorted by
* @return array Array containing the field name to sort by as the key and display text as value
'b.name' =>
JText::_('COM_BANNERS_HEADING_NAME'),
'cl.name' =>
JText::_('COM_BANNERS_HEADING_CLIENT'),
'track_type' =>
JText::_('COM_BANNERS_HEADING_TYPE'),
'count' =>
JText::_('COM_BANNERS_HEADING_COUNT'),
'track_date' =>
JText::_('JDATE')
Documentation generated on Tue, 19 Nov 2013 15:17:36 +0100 by phpDocumentor 1.4.3