示例#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);
 }