public function display($tpl = null) { $context = 'field_id'; $uri = JFactory::getURI(); $app = JFactory::getApplication(); $document = JFactory::getDocument(); $document->setTitle(JText::_('COM_REDSHOP_FIELDS')); JToolBarHelper::title(JText::_('COM_REDSHOP_FIELDS_MANAGEMENT'), 'redshop_fields48'); JToolBarHelper::addNewX(); JToolBarHelper::editListX(); JToolBarHelper::deleteList(); JToolBarHelper::publishList(); JToolBarHelper::unpublishList(); $fields = $this->get('Data'); $total = $this->get('Total'); $pagination = $this->get('Pagination'); $redtemplate = new Redtemplate(); $optiontype = $redtemplate->getFieldTypeSections(); $optionsection = $redtemplate->getFieldSections(); $filter_order = $app->getUserStateFromRequest($context . 'filter_order', 'filter_order', 'field_id'); $filter_order_Dir = $app->getUserStateFromRequest($context . 'filter_order_Dir', 'filter_order_Dir', ''); $filtertypes = $app->getUserStateFromRequest($context . 'filtertypes', 'filtertypes', 0); $filtersection = $app->getUserStateFromRequest($context . 'filtertypes', 'filtersection', 0); $lists['order'] = $filter_order; $lists['order_Dir'] = $filter_order_Dir; $lists['type'] = JHTML::_('select.genericlist', $optiontype, 'filtertypes', 'class="inputbox" size="1" onchange="document.adminForm.submit();" ', 'value', 'text', $filtertypes); $lists['section'] = JHTML::_('select.genericlist', $optionsection, 'filtersection', 'class="inputbox" size="1" onchange="document.adminForm.submit();"', 'value', 'text', $filtersection); $this->lists = $lists; $this->fields = $fields; $this->pagination = $pagination; parent::display($tpl); }
function setVereineToolbar() { // Menubilder laden require_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_clm' . DS . 'images' . DS . 'admin_menue_images.php'; JToolBarHelper::title(JText::_('TITLE_VEREIN'), 'clm_headmenu_vereine.png'); if (CLM_usertype === 'admin') { JToolBarHelper::custom('copy_saison', 'copy.png', 'copy_f2.png', 'VEREIN_BUTTON_COPY_LAST_YEAR', false); } //if (CLM_sl_count !== '0' OR CLM_usertype === 'admin') { if (CLM_usertype === 'admin' || CLM_usertype === 'sl') { JToolBarHelper::custom('gruppen', 'send.png', 'send_f2.png', 'VEREIN_BUTTON_GROUP_EDIT', false); JToolBarHelper::custom('rangliste', 'send.png', 'send_f2.png', 'VEREIN_BUTTON_RANG_EDIT', false); } if (CLM_usertype === 'admin' or CLM_usertype === 'dv' or CLM_usertype === 'dwz') { JToolBarHelper::custom('dwz', 'send.png', 'send_f2.png', 'VEREIN_BUTTON_MEMBER_EDIT', false); } if (CLM_usertype === 'admin' || CLM_usertype === 'dv' || CLM_usertype === 'sl') { JToolBarHelper::publishList(); JToolBarHelper::unpublishList(); } if (CLM_usertype === 'admin') { JToolBarHelper::customX('copy', 'copy.png', 'copy_f2.png', 'VEREIN_BUTTON_COPY'); JToolBarHelper::custom('remove', 'delete.png', 'delete_f2.png', 'VEREIN_BUTTON_DEL', false); } JToolBarHelper::editListX(); if (CLM_usertype === 'admin') { JToolBarHelper::custom('add', 'new.png', 'new_f2.png', 'VEREIN_BUTTON_NEW', false); } JToolBarHelper::help('screen.clm.verein'); }
public function display($tpl = null) { $context = "rating"; $uri = JFactory::getURI(); $app = JFactory::getApplication(); $document = JFactory::getDocument(); $user = JFactory::getUser(); $document->setTitle(JText::_('COM_REDSHOP_RATING')); JToolBarHelper::title(JText::_('COM_REDSHOP_RATING_MANAGEMENT'), 'redshop_rating48'); JToolBarHelper::addNewX(); JToolBarHelper::editListX(); JToolBarHelper::deleteList(); JToolBarHelper::publishList(); JToolBarHelper::unpublishList(); $filter_order = $app->getUserStateFromRequest($context . 'filter_order', 'filter_order', 'rating_id'); $filter_order_Dir = $app->getUserStateFromRequest($context . 'filter_order_Dir', 'filter_order_Dir', ''); $lists['order'] = $filter_order; $lists['order_Dir'] = $filter_order_Dir; $ratings = $this->get('Data'); $total = $this->get('Total'); $pagination = $this->get('Pagination'); $this->user = $user; $this->lists = $lists; $this->ratings = $ratings; $this->pagination = $pagination; $this->request_url = $uri->toString(); parent::display($tpl); }
function display($tpl = null) { $document =& JFactory::getDocument(); $document->addStyleSheet('components/com_acepolls/assets/css/acepolls.css'); JToolBarHelper::title(JText::_('COM_ACEPOLLS_POLLS'), 'acepolls'); JToolBarHelper::addNewX(); JToolBarHelper::editListX(); JToolBarHelper::deleteList(); JToolBarHelper::divider(); JToolBarHelper::publishList(); JToolBarHelper::unpublishList(); JToolBarHelper::divider(); JToolBarHelper::custom('resetVotes', 'cancel.png', 'cancel.png', JText::_('COM_ACEPOLLS_RESET_VOTES'), true, false); JToolBarHelper::preferences('com_acepolls'); $this->mainframe = JFactory::getApplication(); $this->option = JRequest::getWord('option'); $filter_order = $this->mainframe->getUserStateFromRequest($this->option . '.polls.filter_order', 'filter_order', 'm.title', 'string'); $filter_order_Dir = $this->mainframe->getUserStateFromRequest($this->option . '.polls.filter_order_Dir', 'filter_order_Dir', '', 'word'); $filter_state = $this->mainframe->getUserStateFromRequest($this->option . '.polls.filter_state', 'filter_state', '', 'word'); $search = $this->mainframe->getUserStateFromRequest($this->option . '.polls.search', 'search', '', 'string'); JHTML::_('behavior.tooltip'); // state filter $lists['state'] = JHTML::_('grid.state', $filter_state); // table ordering $lists['order_Dir'] = $filter_order_Dir; $lists['order'] = $filter_order; // search filter $lists['search'] = $search; $this->assignRef('user', JFactory::getUser()); $this->assignRef('lists', $lists); $this->assignRef('items', $this->get('Data')); $this->assignRef('pagination', $this->get('Pagination')); parent::display($tpl); }
public function display() { jimport('joomla.html.pagination'); // get database $this->db = JFactory::getDBO(); // set toolbar items $this->joomla->set('JComponentTitle', $this->application->getToolbarTitle(JText::_('Items'))); JToolBarHelper::custom('docopy', 'copy.png', 'copy_f2.png', 'Copy'); JToolBarHelper::deleteList(); JToolBarHelper::editListX(); JToolBarHelper::addNewX(); ZooHelper::toolbarHelp(); JHTML::_('behavior.tooltip'); $state_prefix = $this->option . '_' . $this->application->id . '.submission'; $filter_order = $this->joomla->getUserStateFromRequest($state_prefix . 'filter_order', 'filter_order', 'name', 'cmd'); $filter_order_Dir = $this->joomla->getUserStateFromRequest($state_prefix . 'filter_order_Dir', 'filter_order_Dir', 'desc', 'word'); $table = YTable::getInstance('submission'); $this->groups = ZooHelper::getGroups(); // get data from the table $where = array(); // application filter $where[] = 'application_id = ' . (int) $this->application->id; $options = array('conditions' => array(implode(' AND ', $where)), 'order' => $filter_order . ' ' . $filter_order_Dir); $this->submissions = $table->all($options); $this->submissions = array_merge($this->submissions); // table ordering and search filter $this->lists['order_Dir'] = $filter_order_Dir; $this->lists['order'] = $filter_order; // display view $this->getView()->display(); }
protected function addToolBar() { JToolBarHelper::title(JText::_('COM_webtv_MANAGER_excercises'), 'webtv'); JToolBarHelper::deleteListX('', 'excercises.delete'); JToolBarHelper::editListX('exercise.edit'); JToolBarHelper::addNewX('exercise.add'); }
/** * Easybook view display method * @return void **/ function display($tpl = null) { global $mainframe; JToolBarHelper::title(JText::_('Easybook'), 'easybook'); JToolBarHelper::publishList(); JToolBarHelper::unpublishList(); JToolBarHelper::deleteList(); JToolBarHelper::editListX(); JToolBarHelper::addNewX(); JToolBarHelper::preferences('com_easybook', '500'); JHTML::_('stylesheet', 'easybook.css', 'administrator/components/com_easybook/css/'); // Get data from the model $items =& $this->get('Data'); $pagination = $this->get('Pagination'); $version =& $this->get('Version'); switch ($version->checkVersion(_EASYBOOK_VERSION)) { case 1: $this->assign('version', "<span style='border-bottom: dotted 1px #b9b9b9; padding-right: 5px; padding-left: 5px;'><b>EasyBook " . _EASYBOOK_VERSION . "</b></span><br /><div style='margin-top: 5px;'><a href='http://www.easy-joomla.org/index.php?option=com_versions&catid=3&myVersion=" . _EASYBOOK_VERSION . "' target='_blank'><img src='" . JURI::base() . "components/com_easybook/images/shield.gif' border='0' style='vertical-align: text-bottom; padding-right: 5px;'/> <span style='color: #e2ad43;'><b>" . JTEXT::_('no updates available') . "</b></span></a></div>"); break; case -1: $this->assign('version', "<span style='border-bottom: dotted 1px #b9b9b9; padding-right: 5px; padding-left: 5px;'><b>EasyBook " . _EASYBOOK_VERSION . "</b></span><br /><div style='margin-top: 5px;'><a href='http://www.easy-joomla.org/index.php?option=com_versions&catid=3&myVersion=" . _EASYBOOK_VERSION . "' target='_blank'><img src='" . JURI::base() . "components/com_easybook/images/box.gif' border='0' style='vertical-align: text-bottom; padding-right: 5px;'/> <span style='color: #ce763a;'><b>" . JTEXT::_('updates available') . "</b> EasyBook " . $version->_current . "</span></a></div>"); break; case -2: $this->assign('version', "<span style='border-bottom: dotted 1px #b9b9b9; padding-right: 5px; padding-left: 5px;'><b>EasyBook " . _EASYBOOK_VERSION . "</b></span><br /><div style='margin-top: 5px;'><a href='http://www.easy-joomla.org/index.php?option=com_versions&catid=3&myVersion=" . _EASYBOOK_VERSION . "' target='_blank'><img src='" . JURI::base() . "components/com_easybook/images/fail.gif' border='0' style='vertical-align: middle; padding-right: 5px;'/><span style='color: #e34639;'><b>" . JTEXT::_('connection failed') . "</b></span></a></div>"); break; } $this->assignRef('pagination', $pagination); $this->assignRef('items', $items); parent::display($tpl); }
/** * Playlists view display method * @return void **/ function display($tpl = null) { AvrGenericHelper::addCSS('.icon-48-avreloaded {background-image:url(' . JURI::root() . '/administrator/components/com_avreloaded/assets/avreloaded-48x48.png);}'); JToolBarHelper::title(JText::_('AVR_TITLE_MANAGE_PLAYLISTS') . ' - AllVideos Reloaded', 'avreloaded'); $vdir = AvrGenericHelper::getVdir(); $app =& JFactory::getApplication(); $folder = $app->getUserStateFromRequest('com_avreloaded.playlists_folder', 'folder', $vdir); // Get data from the model $fselect = $this->_getFolderSelect($vdir, $folder); $lists =& $this->_getViewLists($app, $folder); $model =& $this->getModel(); $items =& $model->getData(); if (count($items)) { JToolBarHelper::deleteList(); JToolBarHelper::editListX(); } JToolBarHelper::addNewX(); JToolBarHelper::help('playlists', true); $files = ''; foreach ($items as $i => $item) { if ($i > 0) { $files .= ','; } $files .= "'" . basename($item->filename) . "'"; } $this->assignRef('items', $items); $this->assignRef('lists', $lists); $this->assignRef('fselect', $fselect); $this->assignRef('files', $files); parent::display($tpl); }
function display($tpl = null) { JToolBarHelper::title(JText::_('Счета'), 'Bill'); JToolBarHelper::deleteList(); JToolBarHelper::editListX(); JToolBarHelper::addNewX(); JToolBarHelper::publishList(); JToolBarHelper::unpublishList(); $act = array(); $items =& $this->get('Data'); $users =& $this->get('users'); foreach ($users as $u) { $act[$u->id] = $u->name; } $users = $act; $profiles =& $this->get('profiles'); foreach ($profiles as $p) { $act[$p->id] = $p->name; } $profiles = $act; $this->assignRef('items', $items); $this->assignRef('users', $users); $this->assignRef('profiles', $profiles); $pagination =& $this->get('Pagination'); $this->assignRef('pagination', $pagination); global $option; $apl = JFactory::getApplication(); $filter_order = $apl->getUserStateFromRequest($option . 'filter_order', 'filter_order', 'published'); $filter_order_Dir = JString::strtoupper($apl->getUserStateFromRequest($option . 'filter_order_Dir', 'filter_order_Dir', 'ASC')); $lists = array(); $lists['order_Dir'] = $filter_order_Dir; $lists['order'] = $filter_order; $this->assignRef('lists', $lists); parent::display($tpl); }
public function display($tpl = null) { global $context; $uri = JFactory::getURI(); $app = JFactory::getApplication(); $document = JFactory::getDocument(); $document->setTitle(JText::_('COM_REDSHOP_TAX')); jimport('joomla.html.pagination'); JToolBarHelper::title(JText::_('COM_REDSHOP_TAX_MANAGEMENT'), 'redshop_vat48'); JToolBarHelper::addNewX(); JToolBarHelper::editListX(); JToolBarHelper::deleteList(); $filter_order = $app->getUserStateFromRequest($context . 'filter_order', 'filter_order', 'tax_rate_id'); $filter_order_Dir = $app->getUserStateFromRequest($context . 'filter_order_Dir', 'filter_order_Dir', ''); $limitstart = $app->getUserStateFromRequest($context . 'limitstart', 'limitstart', '0'); $limit = $app->getUserStateFromRequest($context . 'limit', 'limit', '10'); $total = $this->get('Total'); $media = $this->get('Data'); $tax_group_id = $this->get('ProductId'); $lists['order'] = $filter_order; $lists['order_Dir'] = $filter_order_Dir; $lists['tax_group_id'] = $tax_group_id; $pagination = new JPagination($total, $limitstart, $limit); $this->user = JFactory::getUser(); $this->lists = $lists; $this->media = $media; $this->pagination = $pagination; $this->request_url = $uri->toString(); parent::display($tpl); }
/** * Channels view display method * @return void **/ function display($tpl = null) { // Require specific controller if requested $path = JPATH_COMPONENT . DS . 'controllers' . DS . 'orbitscriptsapi.php'; if (file_exists($path)) { require_once $path; } // Create the controller $orbitscriptsapi = new OrbitscriptsControllerOrbitscriptsApi(); JToolBarHelper::title(JText::_('<%SITE_NAME%> Ads Manager'), 'orbitscriptsads64.png'); if (file_exists(JPATH_ROOT . '/modules/mod_orbitscripts_ads/mod_orbitscripts_ads.php')) { $msg = $orbitscriptsapi->testconnect(); if ($msg['code'] == 0) { JToolBarHelper::publishList(); JToolBarHelper::unpublishList(); JToolBarHelper::addNewX('add', 'Create New Channel'); JToolBarHelper::editListX('edit', 'Edit Related Module'); JToolBarHelper::deleteList(); } else { JError::raiseWarning(100, 'Warning: API return error. Code: <b>' . $msg['code'] . ' - ' . $msg['msg'] . '</b>. You cannot add new channels. Please check "Preferences".'); } } else { JError::raiseWarning(100, 'Warning: mod_orbitscripts_ads not found. You cannot add new channels. Please install this module.'); } JToolBarHelper::Preferences('com_orbitscriptsads', '300', '570'); // Get data from the model $items =& $this->get('Data'); $this->assignRef('items', $items); parent::display($tpl); }
public function display($tpl = null) { global $context; $app = JFactory::getApplication(); $document = JFactory::getDocument(); $document->setTitle(JText::_('COM_REDSHOP_CONTAINER')); JToolBarHelper::title(JText::_('COM_REDSHOP_CONTAINER_MANAGEMENT'), 'redshop_container48'); JToolBarHelper::custom('export_data', 'save.png', 'save_f2.png', 'Export Data', false); JToolBarHelper::custom('print_da', 'save.png', 'save_f2.png', 'Print Data', false); JToolBarHelper::addNewX(); JToolBarHelper::editListX(); JToolBarHelper::deleteList(); JToolBarHelper::publishList(); JToolBarHelper::unpublishList(); $uri = JFactory::getURI(); $filter_order = $app->getUserStateFromRequest($context . 'filter_order', 'filter_order', 'container_id'); $filter_order_Dir = $app->getUserStateFromRequest($context . 'filter_order_Dir', 'filter_order_Dir', ''); $lists['order'] = $filter_order; $lists['order_Dir'] = $filter_order_Dir; $containers = $this->get('Data'); $total = $this->get('Total'); $pagination = $this->get('Pagination'); $this->user = JFactory::getUser(); $this->lists = $lists; $this->containers = $containers; $this->pagination = $pagination; $this->request_url = $uri->toString(); parent::display($tpl); }
public function display($tpl = null) { global $context; $uri = JFactory::getURI(); $app = JFactory::getApplication(); $document = JFactory::getDocument(); $document->setTitle(JText::_('COM_REDSHOP_DISCOUNT')); $layout = JRequest::getVar('layout'); JToolBarHelper::title(JText::_('COM_REDSHOP_DISCOUNT_MANAGEMENT'), 'redshop_discountmanagmenet48'); JToolBarHelper::addNewX(); JToolBarHelper::editListX(); JToolBarHelper::deleteList(); $filter_order = $app->getUserStateFromRequest($context . 'filter_order', 'filter_order', 'mass_discount_id'); $filter_order_Dir = $app->getUserStateFromRequest($context . 'filter_order_Dir', 'filter_order_Dir', ''); $lists['order'] = $filter_order; $lists['order_Dir'] = $filter_order_Dir; $discounts = $this->get('Data'); $total = $this->get('Total'); $pagination = $this->get('Pagination'); $this->user = JFactory::getUser(); $this->lists = $lists; $this->discounts = $discounts; $this->pagination = $pagination; $this->request_url = $uri->toString(); parent::display($tpl); }
protected function addToolBar() { JToolBarHelper::title(JText::_('COM_COCOATEREALESTATE_MANAGER_OBJECTS')); JToolBarHelper::deleteListX('', 'objects.delete'); JToolBarHelper::editListX('object.edit'); JToolBarHelper::addNewX('object.add'); }
public function display($tpl = null) { $context = 'template_id'; $uri = JFactory::getURI(); $app = JFactory::getApplication(); $document = JFactory::getDocument(); $document->setTitle(JText::_('COM_REDSHOP_TEMPLATES')); JToolBarHelper::title(JText::_('COM_REDSHOP_TEMPLATES_MANAGEMENT'), 'redshop_templates48'); JToolBarHelper::addNewX(); JToolBarHelper::editListX(); JToolBarHelper::customX('copy', 'copy.png', 'copy_f2.png', JText::_('COM_REDSHOP_TOOLBAR_COPY'), true); JToolBarHelper::deleteList(); JToolBarHelper::publishList(); JToolBarHelper::unpublishList(); $context = 'template'; $filter_order = $app->getUserStateFromRequest($context . 'filter_order', 'filter_order', 'template_id'); $filter_order_Dir = $app->getUserStateFromRequest($context . 'filter_order_Dir', 'filter_order_Dir', ''); $template_section = $app->getUserStateFromRequest($context . 'template_section', 'template_section', 0); $lists['order'] = $filter_order; $lists['order_Dir'] = $filter_order_Dir; $templates = $this->get('Data'); $total = $this->get('Total'); $pagination = $this->get('Pagination'); $redtemplate = new Redtemplate(); $optionsection = $redtemplate->getTemplateSections(); $lists['section'] = JHTML::_('select.genericlist', $optionsection, 'template_section', 'class="inputbox" size="1" onchange="document.adminForm.submit();"', 'value', 'text', $template_section); $this->user = JFactory::getUser(); $this->lists = $lists; $this->templates = $templates; $this->pagination = $pagination; $this->request_url = $uri->toString(); parent::display($tpl); }
public function display($tpl = null) { $context = 'stockroom_id'; $uri = JFactory::getURI(); $app = JFactory::getApplication(); $document = JFactory::getDocument(); $document->setTitle(JText::_('COM_REDSHOP_STOCKROOM')); JToolBarHelper::title(JText::_('COM_REDSHOP_STOCKROOM_MANAGEMENT'), 'redshop_stockroom48'); JToolBarHelper::customX('listing', 'copy.png', 'copy_f2.png', JText::_('COM_REDSHOP_LISTING'), false); JToolBarHelper::addNewX(); JToolBarHelper::editListX(); JToolBarHelper::customX('copy', 'copy.png', 'copy_f2.png', JText::_('COM_REDSHOP_TOOLBAR_COPY'), true); JToolBarHelper::deleteList(); JToolBarHelper::publishList(); JToolBarHelper::unpublishList(); $filter_order = $app->getUserStateFromRequest($context . 'filter_order', 'filter_order', 'stockroom_id'); $filter_order_Dir = $app->getUserStateFromRequest($context . 'filter_order_Dir', 'filter_order_Dir', ''); $lists['order'] = $filter_order; $lists['order_Dir'] = $filter_order_Dir; $stockroom = $this->get('Data'); $pagination = $this->get('Pagination'); $this->lists = $lists; $this->stockroom = $stockroom; $this->pagination = $pagination; $this->request_url = $uri->toString(); parent::display($tpl); }
function display($tpl = null) { global $context; $uri = JFactory::getURI(); $app = JFactory::getApplication(); $document = JFactory::getDocument(); $document->setTitle(JText::_('COM_REDSHOP_xmlexport')); $model = $this->getModel('xmlexport'); JToolBarHelper::title(JText::_('COM_REDSHOP_XML_EXPORT_MANAGEMENT'), 'redshop_export48'); JToolBarHelper::addNewX(); JToolBarHelper::editListX(); JToolBarHelper::deleteList(); JToolBarHelper::publishList(); JToolBarHelper::unpublishList(); $filter_order = $app->getUserStateFromRequest($context . 'filter_order', 'filter_order', 'xmlexport_date'); $filter_order_Dir = $app->getUserStateFromRequest($context . 'filter_order_Dir', 'filter_order_Dir', 'DESC'); $lists['order'] = $filter_order; $lists['order_Dir'] = $filter_order_Dir; $data = $this->get('Data'); $total = $this->get('Total'); $pagination = $this->get('Pagination'); $this->lists = $lists; $this->data = $data; $this->pagination = $pagination; $this->request_url = $uri->toString(); parent::display($tpl); }
/** * List view display method * * Displays a list of all workflows available in the database * * @return void **/ function display() { $app =& JFactory::getApplication(); JHTML::_('stylesheet', 'list.css', 'media/com_jwf/css/'); //Toolbar JToolBarHelper::title(JText::_('JWF'), 'jwf-logo'); JToolBarHelper::publishList(); JToolBarHelper::unpublishList(); JToolBarHelper::deleteList(JText::_('Are you sure?'), 'delete', 'Delete'); JToolBarHelper::editListX(); JToolBarHelper::addNew(); //Get the model $model =& $this->getModel(); $context = 'com_jwf.pending_items'; $limit = $app->getUserStateFromRequest('global.list.limit', 'limit', $app->getCfg('list_limit'), 'int'); $limitStart = $app->getUserStateFromRequest($context . 'limitstart', 'limitstart', 0, 'int'); $response = $model->search($limitStart, $limit, '', false); // Create the pagination object jimport('joomla.html.pagination'); $pagination = new JPagination($response['requestTotal'], $limitStart, $limit); //Send data to the view $this->assignRef('workflows', $response['workflows']); $this->assignRef('pagination', $pagination); //Display the template parent::display(); }
public function display($tpl = null) { $context = 'mail_id'; $uri = JFactory::getURI(); $app = JFactory::getApplication(); $document = JFactory::getDocument(); $document->setTitle(JText::_('COM_REDSHOP_MAIL')); jimport('joomla.html.pagination'); JToolBarHelper::title(JText::_('COM_REDSHOP_MAIL_MANAGEMENT'), 'redshop_mailcenter48'); JToolBarHelper::addNewX(); JToolBarHelper::editListX(); JToolBarHelper::deleteList(); JToolBarHelper::publishList(); JToolBarHelper::unpublishList(); $filter_order = $app->getUserStateFromRequest($context . 'filter_order', 'filter_order', 'm.mail_id'); $filter_order_Dir = $app->getUserStateFromRequest($context . 'filter_order_Dir', 'filter_order_Dir', ''); $filter_section = $app->getUserStateFromRequest($context . 'filter_section', 'filter_section', 0); $lists['order'] = $filter_order; $lists['order_Dir'] = $filter_order_Dir; $redtemplate = new Redtemplate(); $optionsection = $redtemplate->getMailSections(); $lists['mailsection'] = JHTML::_('select.genericlist', $optionsection, 'filter_section', 'class="inputbox" size="1" onchange="document.adminForm.submit();"', 'value', 'text', $filter_section); $total = $this->get('Total'); $media = $this->get('Data'); $pagination = $this->get('Pagination'); $this->user = JFactory::getUser(); $this->lists = $lists; $this->media = $media; $this->pagination = $pagination; $this->request_url = $uri->toString(); parent::display($tpl); }
/** * Playlist view display method * @return void **/ function display($tpl = null) { AvrGenericHelper::addCSS('.icon-48-avreloaded {background-image:url(' . JURI::root() . '/administrator/components/com_avreloaded/assets/avreloaded-48x48.png);}'); // Get data from the model $lists =& $this->_getViewLists(); $model =& $this->getModel(); $data =& $model->getData(); $items = $data->items; $isNew = !file_exists($data->filename); $text = $isNew ? JText::_('New') : JText::_('Edit'); JToolBarHelper::title($text . ' ' . JText::_('AVR_TITLE_PLAYLIST') . ' - AllVideos Reloaded', 'avreloaded'); JToolBarHelper::save(); if ($isNew) { JToolBarHelper::cancel(); } else { // for existing items the button is renamed `close` JToolBarHelper::apply(); JToolBarHelper::cancel('cancel', 'Close'); } if (count($items)) { JToolBarHelper::deleteList(); JToolBarHelper::editListX(); } JToolBarHelper::addNewX(); JToolBarHelper::help('playlist', true); $this->assignRef('items', $items); $this->assignRef('data', $data); $this->assignRef('lists', $lists); parent::display($tpl); }
public function display($tpl = null) { $context = 'quotation_id'; $quotationHelper = new quotationHelper(); $uri = JFactory::getURI(); $app = JFactory::getApplication(); $document = JFactory::getDocument(); $document->setTitle(JText::_('COM_REDSHOP_quotation')); $model = $this->getModel('quotation'); JToolBarHelper::title(JText::_('COM_REDSHOP_QUOTATION_MANAGEMENT'), 'redshop_quotation48'); JToolBarHelper::addNewX(); JToolBarHelper::editListX(); JToolBarHelper::deleteList(); $filter_order = $app->getUserStateFromRequest($context . 'filter_order', 'filter_order', 'quotation_cdate'); $filter_order_Dir = $app->getUserStateFromRequest($context . 'filter_order_Dir', 'filter_order_Dir', 'DESC'); $filter_status = $app->getUserStateFromRequest($context . 'filter_status', 'filter_status', 0); $lists['order'] = $filter_order; $lists['order_Dir'] = $filter_order_Dir; $quotation = $this->get('Data'); $total = $this->get('Total'); $pagination = $this->get('Pagination'); $optionsection = $quotationHelper->getQuotationStatusList(); $lists['filter_status'] = JHTML::_('select.genericlist', $optionsection, 'filter_status', 'class="inputbox" size="1" onchange="document.adminForm.submit();"', 'value', 'text', $filter_status); $this->lists = $lists; $this->quotation = $quotation; $this->pagination = $pagination; $this->request_url = $uri->toString(); parent::display($tpl); }
public function display($tpl = null) { $context = 'newsletter_id'; $uri = JFactory::getURI(); $app = JFactory::getApplication(); $document = JFactory::getDocument(); $document->setTitle(JText::_('COM_REDSHOP_NEWSLETTER')); JToolBarHelper::title(JText::_('COM_REDSHOP_NEWSLETTER_MANAGEMENT'), 'redshop_newsletter48'); $layout = JRequest::getVar('layout'); $task = JRequest::getVar('task'); if ($layout == 'previewlog') { $this->setLayout($layout); } else { JToolBarHelper::custom('send_newsletter_preview', 'send.png', 'send.png', JText::_('COM_REDSHOP_SEND_NEWSLETTER'), true, false); JToolBarHelper::customX('copy', 'copy.png', 'copy_f2.png', JText::_('COM_REDSHOP_TOOLBAR_COPY'), true); JToolBarHelper::addNewX(); JToolBarHelper::editListX(); JToolBarHelper::deleteList(); JToolBarHelper::publishList(); JToolBarHelper::unpublishList(); } $filter_order = $app->getUserStateFromRequest($context . 'filter_order', 'filter_order', 'newsletter_id'); $filter_order_Dir = $app->getUserStateFromRequest($context . 'filter_order_Dir', 'filter_order_Dir', ''); $lists['order'] = $filter_order; $lists['order_Dir'] = $filter_order_Dir; $newsletters = $this->get('Data'); $total = $this->get('Total'); $pagination = $this->get('Pagination'); $this->user = JFactory::getUser(); $this->lists = $lists; $this->newsletters = $newsletters; $this->pagination = $pagination; $this->request_url = $uri->toString(); parent::display($tpl); }
protected function addToolBar() { JToolBarHelper::title(JText::_('COM_HELLOWORLD_MANAGER_HELLOWORLDS')); JToolBarHelper::deleteListX('', 'helloworlds.delete'); JToolBarHelper::editListX('helloworld.edit'); JToolBarHelper::addNewX('helloworld.add'); }
public function display($tpl = null) { // Set toolbar items for the page JToolBarHelper::publishList(); JToolBarHelper::unpublishList(); JToolBarHelper::deleteList(); JToolBarHelper::editListX(); JToolBarHelper::addNewX(); JToolBarHelper::preferences('com_simplelists', '480'); JHTML::_('behavior.tooltip'); // Automatically fetch items, total and pagination - and assign them to the template $this->fetchItems(); // Re-order the items by parent $listview = $this->getFilter('listview'); if ($listview == 'tree') { $tree = new SimplelistsCategoryTree(); $tree->setItems($this->items); $this->items = $tree->getList(); } else { $listview = 'flat'; } // Listview box $options[] = array('id' => 'tree', 'title' => 'Tree'); $options[] = array('id' => 'flat', 'title' => 'Flat list'); $extra = 'onchange="document.adminForm.submit();"'; $this->lists['listview'] = JHTML::_('select.genericlist', $options, 'filter_listview', $extra, 'id', 'title', $listview); parent::display($tpl); }
public function display($tpl = null) { global $context; $shoppergroup = new shoppergroup(); $uri = JFactory::getURI(); $app = JFactory::getApplication(); $document = JFactory::getDocument(); $document->setTitle(JText::_('COM_REDSHOP_SHOPPER_GROUP')); jimport('joomla.html.pagination'); JToolBarHelper::title(JText::_('COM_REDSHOP_SHOPPER_GROUP_MANAGEMENT'), 'redshop_manufact48'); JToolBarHelper::addNewX(); JToolBarHelper::editListX(); JToolBarHelper::deleteList(); JToolBarHelper::publishList(); JToolBarHelper::unpublishList(); $filter_order = $app->getUserStateFromRequest($context . 'filter_order', 'filter_order', 'shopper_group_id'); $filter_order_Dir = $app->getUserStateFromRequest($context . 'filter_order_Dir', 'filter_order_Dir', ''); $lists['order'] = $filter_order; $lists['order_Dir'] = $filter_order_Dir; $groups = $shoppergroup->getshopperGroupListArray(); $pagination = $this->get('Pagination'); $this->user = JFactory::getUser(); $this->lists = $lists; $this->media = $groups; $this->pagination = $pagination; $this->request_url = $uri->toString(); parent::display($tpl); }
function _setToolBar() { JToolBarHelper::title(JText::_('MAPPING GROUPS'), 'mapping'); JToolBarHelper::addNewX(); JToolBarHelper::editListX(); JToolBarHelper::deleteListX(); }
public function display($tpl = null) { global $context; $uri = JFactory::getURI(); $app = JFactory::getApplication(); $document = JFactory::getDocument(); $document->setTitle(JText::_('COM_REDSHOP_GIFTCARD')); JToolBarHelper::title(JText::_('COM_REDSHOP_GIFTCARD_MANAGEMENT'), 'redshop_giftcard_48'); JToolBarHelper::addNewX(); JToolBarHelper::editListX(); JToolBarHelper::customX('copy', 'copy.png', 'copy_f2.png', JText::_('COM_REDSHOP_TOOLBAR_COPY'), true); JToolBarHelper::deleteList(); JToolBarHelper::publishList(); JToolBarHelper::unpublishList(); $filter_order = $app->getUserStateFromRequest($context . 'filter_order', 'filter_order', 'giftcard_id'); $filter_order_Dir = $app->getUserStateFromRequest($context . 'filter_order_Dir', 'filter_order_Dir', ''); $lists['order'] = $filter_order; $lists['order_Dir'] = $filter_order_Dir; $giftcard = $this->get('Data'); $total = $this->get('Total'); $pagination = $this->get('Pagination'); $this->user = JFactory::getUser(); $this->lists = $lists; $this->giftcard = $giftcard; $this->pagination = $pagination; $this->request_url = $uri->toString(); parent::display($tpl); }
public function display($tpl = null) { global $context; $uri = JFactory::getURI(); $app = JFactory::getApplication(); $document = JFactory::getDocument(); $document->setTitle(JText::_('COM_REDSHOP_ORDERSTATUS')); JToolBarHelper::title(JText::_('COM_REDSHOP_ORDERSTATUS_MANAGEMENT'), 'redshop_order48'); JToolBarHelper::addNewX(); JToolBarHelper::editListX(); JToolBarHelper::deleteList(); JToolBarHelper::publishList(); JToolBarHelper::unpublishList(); $filter_order = $app->getUserStateFromRequest($context . 'filter_order', 'filter_order', 'order_status_id'); $filter_order_Dir = $app->getUserStateFromRequest($context . 'filter_order_Dir', 'filter_order_Dir', ''); $lists['order'] = $filter_order; $lists['order_Dir'] = $filter_order_Dir; $orderstatus = $this->get('Data'); $pagination = $this->get('Pagination'); $this->user = JFactory::getUser(); $this->lists = $lists; $this->orderstatus = $orderstatus; $this->pagination = $pagination; $this->request_url = $uri->toString(); parent::display($tpl); }
/** * Установки тулбара */ protected function _setToolBar() { require_once JPATH_COMPONENT . '/helpers/smfaq.php'; JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html'); SmFaqHelper::addSubmenu($this->_name); $canDo = SmFaqHelper::getActions($this->state->get('filter.category_id')); // Выводим нужные кнопки и заголовок JToolBarHelper::title(JText::_('COM_SMFAQ_MANAGER_QUESTIONS'), 'smfaq'); if ($canDo->get('core.create')) { JToolBarHelper::addNewX('smfaq.add', 'JTOOLBAR_NEW'); } if ($canDo->get('core.edit')) { JToolBarHelper::editListX('smfaq.edit', 'JTOOLBAR_EDIT'); } JToolBarHelper::divider(); JToolBarHelper::custom('smfaqlist.publish', 'publish.png', 'publish_f2.png', 'JTOOLBAR_PUBLISH', true); JToolBarHelper::custom('smfaqlist.unpublish', 'unpublish.png', 'unpublish_f2.png', 'JTOOLBAR_UNPUBLISH', true); JToolBarHelper::divider(); JToolBarHelper::checkin('smfaqlist.checkin'); // Замена тулбара карзины на удаление if ($this->state->get('filter.published') == -2) { JToolBarHelper::deleteList('COM_SMFAQ_YOU_WANT_DELETE_THIS', 'smfaqlist.delete', 'JTOOLBAR_EMPTY_TRASH'); } else { JToolBarHelper::trash('smfaqlist.trash', 'JTOOLBAR_TRASH'); } JToolBarHelper::divider(); if ($canDo->get('core.admin')) { JToolBarHelper::preferences('com_smfaq'); } }
function display($tpl = null) { $mainframe = JFactory::getApplication(); $option = JRequest::getVar('option'); $user =& JFactory::getUser(); $document =& JFactory::getDocument(); $params = JComponentHelper::getParams('com_redform'); $rows = $this->get('Data'); $pagination = $this->get('Pagination'); $lists = array(); /* Set variabels */ $this->assignRef('rows', $rows); $this->assignRef('pagination', $pagination); $this->assignRef('lists', $lists); $this->assignRef('params', $params); $this->assignRef('key', JRequest::getVar('submit_key')); JToolBarHelper::title(JText::_('COM_REDFORM_PAYMENTS_HISTORY'), 'redform_submitters'); JToolBarHelper::addNew(); JToolBarHelper::editListX(); JToolBarHelper::deleteListX(); JToolBarHelper::custom('back', 'back', 'back', 'back', false); // set the menu RedformHelper::setMenu(); /* Display the page */ parent::display($tpl); }