| Current Path : /home/lejardintz/www/administrator/components/com_gmapfp/views/marqueurs/ |
| Current File : /home/lejardintz/www/administrator/components/com_gmapfp/views/marqueurs/view.html.php |
<?php
/*
* GMapFP Component Google Map for Joomla! 3.x
* Version J3_50F
* Creation date: Octobre 2017
* Author: Fabrice4821 - www.gmapfp.org
* Author email: webmaster@gmapfp.org
* License GNU/GPL
*/
defined('_JEXEC') or die();
jimport( 'joomla.application.component.view' );
class GMapFPsViewMarqueurs extends JViewLegacy
{
public function display($cachable = false, $urlparams = false)
{
$this->form = $this->get('Form');
$mainframe = JFactory::getApplication();
$option = JRequest::getCMD('option');
$controller = JRequest::getWord('controller');
if (JRequest::getWord('task')=='view')
{
JToolBarHelper::title( JText::_( 'GMAPFP_MARQUEURS_MANAGER' ), 'checkin.png' );
JToolBarHelper::addNew();
JToolBarHelper::editList();
JToolBarHelper::divider();
JToolBarHelper::publishList();
JToolBarHelper::unpublishList();
JToolBarHelper::divider();
JToolBarHelper::deleteList();
// Get data from the model
$marqueurs = $this->get('List');
}
else
{
// Get data from the model
$marqueurs = $this->get('Data');
$isNew = ($marqueurs->id < 1);
$text = $isNew ? JText::_( 'JTOOLBAR_NEW' ) : JText::_( 'JTOOLBAR_EDIT' );
JToolBarHelper::title( JText::_( 'GMAPFP_MARQUEURS_MANAGER' ).': <small>[ ' . $text.' ]</small>', 'checkin.png' );
JToolBarHelper::apply();
JToolBarHelper::save();
if ($isNew) {
JToolBarHelper::cancel();
} else {
// for existing items the button is renamed `close`
JToolBarHelper::cancel( 'cancel', 'JTOOLBAR_CLOSE' );
}
}
JHTML::_('behavior.tooltip');
$this->marqueurs = $marqueurs;
$this->sidebar = JHtmlSidebar::render();
$this->pageNav = $this->get( 'Pagination' );
$filter_order = $mainframe->getUserStateFromRequest( $option.$controller.'filter_order', 'filter_order', 'nom', 'cmd');
$filter_order_Dir = $mainframe->getUserStateFromRequest( $option.$controller.'filter_order_Dir', 'filter_order_Dir', '', 'word');
$lists['order_Dir'] = $filter_order_Dir;
$lists['order'] = $filter_order;
$this->assignRef('lists', $lists);
parent::display();
}
}