Пример #1
0
 public function display($tpl = null)
 {
     global $context;
     $context = 'country_id';
     $app = JFactory::getApplication();
     $document = JFactory::getDocument();
     $uri = JFactory::getURI();
     $document->setTitle(JText::_('COM_REDSHOP_COUNTRY'));
     JToolBarHelper::title(JText::_('COM_REDSHOP_COUNTRY_MANAGEMENT'), 'redshop_country_48');
     JToolbarHelper::addNewX();
     JToolbarHelper::EditListX();
     JToolbarHelper::deleteList();
     $filter_order = $app->getUserStateFromRequest($context . 'filter_order', 'filter_order', 'country_id');
     $filter_order_Dir = $app->getUserStateFromRequest($context . 'filter_order_Dir', 'filter_order_Dir', '');
     $lists['order'] = $filter_order;
     $lists['order_Dir'] = $filter_order_Dir;
     $fields = $this->get('Data');
     $pagination = $this->get('Pagination');
     $this->user = JFactory::getUser();
     $this->pagination = $pagination;
     $this->fields = $fields;
     $this->lists = $lists;
     $this->request_url = $uri->toString();
     parent::display($tpl);
 }
Пример #2
0
 public function display($tpl = null)
 {
     jimport('joomla.html.pagination');
     $context = 'zipcode_id';
     $uri = JFactory::getURI();
     $app = JFactory::getApplication();
     $document = JFactory::getDocument();
     $document->setTitle(JText::_('COM_REDSHOP_ZIPCODE'));
     JToolBarHelper::title(JText::_('COM_REDSHOP_ZIPCODE_MANAGEMENT'), 'redshop_region_48');
     JToolbarHelper::addNewX();
     JToolbarHelper::EditListX();
     JToolbarHelper::deleteList();
     $filter_order = $app->getUserStateFromRequest($context . 'filter_order', 'filter_order', 'zipcode_id');
     $filter_order_Dir = $app->getUserStateFromRequest($context . 'filter_order_Dir', 'filter_order_Dir', '');
     $lists['order'] = $filter_order;
     $lists['order_Dir'] = $filter_order_Dir;
     $fields = $this->get('Data');
     $total = $this->get('Total');
     $pagination = $this->get('Pagination');
     $this->user = JFactory::getUser();
     $this->pagination = $pagination;
     $this->fields = $fields;
     $this->lists = $lists;
     $this->request_url = $uri->toString();
     parent::display($tpl);
 }
Пример #3
0
 public function display($tpl = null)
 {
     global $context;
     $app = JFactory::getApplication();
     $document = JFactory::getDocument();
     $document->setTitle(JText::_('COM_REDSHOP_ECONOMIC_ACCOUNT_GROUP'));
     JToolBarHelper::title(JText::_('COM_REDSHOP_ECONOMIC_ACCOUNT_GROUP'), 'redshop_accountgroup48');
     JToolbarHelper::addNewX();
     JToolbarHelper::EditListX();
     JToolbarHelper::deleteList();
     JToolBarHelper::publishList();
     JToolBarHelper::unpublishList();
     $uri = JFactory::getURI();
     $filter_order = $app->getUserStateFromRequest($context . 'filter_order', 'filter_order', 'accountgroup_id');
     $filter_order_Dir = $app->getUserStateFromRequest($context . 'filter_order_Dir', 'filter_order_Dir', '');
     $lists['order'] = $filter_order;
     $lists['order_Dir'] = $filter_order_Dir;
     $detail = $this->get('Data');
     $total = $this->get('Total');
     $pagination = $this->get('Pagination');
     $this->pagination = $pagination;
     $this->detail = $detail;
     $this->lists = $lists;
     $this->request_url = $uri->toString();
     parent::display($tpl);
 }
Пример #4
0
 public function display($tpl = null)
 {
     JLoader::import('joomla.html.pagination');
     require_once JPATH_COMPONENT_SITE . '/helpers/helper.php';
     $context = 'state_id';
     $uri = JFactory::getURI();
     $app = JFactory::getApplication();
     $document = JFactory::getDocument();
     $user = JFactory::getUser();
     $document->setTitle(JText::_('COM_REDSHOP_STATE'));
     JToolBarHelper::title(JText::_('COM_REDSHOP_STATE_MANAGEMENT'), 'redshop_region_48');
     JToolbarHelper::addNewX();
     JToolbarHelper::EditListX();
     JToolbarHelper::deleteList();
     $filter_order = $app->getUserStateFromRequest($context . 'filter_order', 'filter_order', 'state_id');
     $filter_order_Dir = $app->getUserStateFromRequest($context . 'filter_order_Dir', 'filter_order_Dir', '');
     $lists['order'] = $filter_order;
     $lists['order_Dir'] = $filter_order_Dir;
     $db = JFactory::getDbo();
     JToolBarHelper::title(JText::_('COM_REDSHOP_STATES'), 'redshop_region_48');
     $redhelper = new redhelper();
     $q = "SELECT  country_id as value,country_name as text,country_jtext from #__" . TABLE_PREFIX . "_country ORDER BY country_name ASC";
     $db->setQuery($q);
     $countries = $db->loadObjectList();
     $countries = $redhelper->convertLanguageString($countries);
     $defSelect = new StdClass();
     $defSelect->value = "0";
     $defSelect->text = JText::_('COM_REDSHOP_SELECT');
     $temps = array($defSelect);
     $countries = array_merge($temps, $countries);
     $country_id_filter = $app->getUserStateFromRequest($context . 'country_id_filter', 'country_id_filter', '');
     $lists['country_id'] = JHTML::_('select.genericlist', $countries, 'country_id_filter', 'class="inputbox" size="1" onchange="document.adminForm.submit();"    ', 'value', 'text', $country_id_filter);
     $country_main_filter = $app->getUserStateFromRequest($context . 'country_main_filter', 'country_main_filter', '');
     $fields = $this->get('Data');
     $pagination = $this->get('Pagination');
     $this->country_main_filter = $country_main_filter;
     $this->user = JFactory::getUser();
     $this->pagination = $pagination;
     $this->fields = $fields;
     $this->lists = $lists;
     $this->request_url = $uri->toString();
     parent::display($tpl);
 }
Пример #5
0
 * @since 2.1 - 01/10/2008
 * @version 2.1
 * @package jTips
 * 
 * Description: Builds the toolbar for the Users module
 */
global $jLang;
switch (jTipsGetParam($_REQUEST, 'task', 'list')) {
    case 'list':
        jTipsMenuBar::startTable();
        jTipsMenuBar::custom('clean', 'process', '../components/com_jtips/images/PROCESS.png', $jLang['_COM_ADMIN_CLEAN_USERS'], false);
        jTipsMenuBar::spacer();
        jTipsMenuBar::deleteListX($jLang['_ADMIN_CONFIRM_REMOVE']);
        jTipsMenuBar::spacer();
        if (isJoomla15()) {
            JToolbarHelper::addNewX('edit');
        } else {
            jTipsMenuBar::addNewX('edit');
        }
        jTipsMenuBar::spacer();
        jTipsMenuBar::endTable();
        break;
    case 'edit':
        jTipsMenuBar::startTable();
        jTipsMenuBar::spacer();
        jTipsMenuBar::save('save');
        jTipsMenuBar::spacer();
        jTipsMenuBar::cancel('list');
        jTipsMenuBar::spacer();
        jTipsMenuBar::endTable();
        break;
Пример #6
0
 * @subpackage {comName}
 * @author	   {author}	
 * @copyright  Copyright (C) {year}, . All rights reserved.
 * @license    GPL
 */
// ====================== példa, jelentősen átirandó ============================
// no direct access
defined('_JEXEC') or die('Restricted access');
JHtml::_('behavior.tooltip');
JHtml::_('behavior.formvalidation');
$session = JFactory::getSession();
// manipuláló gombok  ha toolbar -t használunk
JToolbarHelper::tirle($this->title);
foreach ($this->buttons as $button) {
    if (pos(buttontask, '.add') > 0) {
        JToolbarHelper::addNewX($buttons[0], $button[2]);
    } else {
        if (pos(buttontask, '.edit') > 0) {
            JToolbarHelper::editListX($buttons[0], $button[2]);
        } else {
            if (pos(buttontask, '.delete') > 0) {
                JToolbarHelper::deleteListX('', $buttons[0], $button[2]);
            } else {
                if (pos(buttontask, '.save') > 0) {
                    JToolbarHelper::save($buttons[0], $button[2]);
                } else {
                    if (pos(buttontask, '.cancel') > 0) {
                        JToolbarHelper::cancel($buttons[0], $button[2]);
                    } else {
                        if (pos(buttontask, '.back') > 0) {
                            JToolbarHelper::back($buttons[0], $button[2]);
 /**
  * Renders the toolbar for the component's Browse pages (the plural views)
  *
  * @return  void
  */
 public function onBrowse()
 {
     // On frontend, buttons must be added specifically
     if (FOFPlatform::getInstance()->isBackend() || $this->renderFrontendSubmenu) {
         $this->renderSubmenu();
     }
     if (!FOFPlatform::getInstance()->isBackend() && !$this->renderFrontendButtons) {
         return;
     }
     // Set toolbar title
     $option = $this->input->getCmd('option', 'com_foobar');
     $subtitle_key = strtoupper($option . '_TITLE_' . $this->input->getCmd('view', 'cpanel'));
     JToolbarHelper::title(JText::_(strtoupper($option)) . ': ' . JText::_($subtitle_key), str_replace('com_', '', $option));
     // Add toolbar buttons
     if ($this->perms->create) {
         if (version_compare(JVERSION, '3.0', 'ge')) {
             JToolbarHelper::addNew();
         } else {
             JToolbarHelper::addNewX();
         }
     }
     if ($this->perms->edit) {
         if (version_compare(JVERSION, '3.0', 'ge')) {
             JToolbarHelper::editList();
         } else {
             JToolbarHelper::editListX();
         }
     }
     if ($this->perms->create || $this->perms->edit) {
         JToolbarHelper::divider();
     }
     if ($this->perms->editstate) {
         JToolbarHelper::publishList();
         JToolbarHelper::unpublishList();
         JToolbarHelper::divider();
     }
     if ($this->perms->delete) {
         $msg = JText::_($this->input->getCmd('option', 'com_foobar') . '_CONFIRM_DELETE');
         JToolbarHelper::deleteList(strtoupper($msg));
     }
 }