| Server IP : 54.36.91.62 / Your IP : 216.73.217.112 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/amisdesseniors-fr/administrator/components/com_djcfimporter/views/group/ |
Upload File : |
<?php
/**
* @version $Id: view.html.php 8 2014-10-14 10:13:30Z michal $
* @package DJ-Reviews
* @copyright Copyright (C) 2014 DJ-Extensions.com LTD, All rights reserved.
* @license http://www.gnu.org/licenses GNU/GPL
* @author url: http://dj-extensions.com
* @author email contact@dj-extensions.com
*
* DJ-Reviews is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* DJ-Reviews is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with DJ-Reviews. If not, see <http://www.gnu.org/licenses/>.
*
*/
defined('_JEXEC') or die('Restricted access');
jimport('joomla.application.component.view');
class DJCFImporterViewGroup extends JViewLegacy {
protected $state;
protected $item;
protected $form;
// DJ-Classifieds Importer contains "views" in the class' name - it causes problems on J!2.5 when Joomla tries to guess tpl path using getName() method
protected $_name = 'group';
public function display($tpl = null)
{
$this->state = $this->get('State');
$this->item = $this->get('Item');
$this->form = $this->get('Form');
$this->addToolbar();
parent::display($tpl);
}
protected function addToolbar()
{
JFactory::getApplication()->input->set('hidemainmenu', true);
$user = JFactory::getUser();
$isNew = ($this->item->id == 0);
$text = $isNew ? JText::_( 'COM_DJCFIMPORTER_NEW' ) : JText::_( 'COM_DJCFIMPORTER_EDIT' );
JToolBarHelper::title( JText::_( 'COM_DJCFIMPORTER_GROUP' ).': <small><small>[ ' . $text.' ]</small></small>', 'generic.png' );
JToolBarHelper::apply('group.apply', 'JTOOLBAR_APPLY');
JToolBarHelper::save('group.save', 'JTOOLBAR_SAVE');
JToolBarHelper::custom('group.save2new', 'save-new.png', 'save-new_f2.png', 'JTOOLBAR_SAVE_AND_NEW', false);
JToolBarHelper::custom('group.save2copy', 'save-copy.png', 'save-copy_f2.png', 'JTOOLBAR_SAVE_AS_COPY', false);
JToolBarHelper::cancel('group.cancel', 'JTOOLBAR_CANCEL');
}
}