Пример #1
0
	function display($tpl=null)
	{
		/*
		 * Set toolbar items for the page
		 */
		JToolBarHelper::deleteList( '', 'remove', 'Uninstall' );

		// Get data from the model
		$state		= &$this->get('State');
		$items		= &$this->get('Items');
		$pagination	= &$this->get('Pagination');

		$lists = new stdClass();
		$select[] = JHTML::_('select.option', '-1', JText::_('All'));
		$select[] = JHTML::_('select.option', '0', JText::_('Site Modules'));
		$select[] = JHTML::_('select.option', '1', JText::_('Admin Modules'));
		$lists->client = JHTML::_('select.genericlist',  $select, 'client', 'class="inputbox" size="1" onchange="document.adminForm.submit();"', 'value', 'text', $state->get('filter.client'));

		$this->assignRef('items',		$items);
		$this->assignRef('pagination',	$pagination);
		$this->assignRef('lists',		$lists);

		JHTML::_('behavior.tooltip');
		parent::display($tpl);
	}
Пример #2
0
 function display($tpl = null)
 {
     $canDo = JCKHelper::getActions();
     $app = JFactory::getApplication();
     if (!$canDo->get('jckman.install')) {
         $app->redirect(JRoute::_('index.php?option=com_jckman&view=cpanel', false), JText::_('COM_JCKMAN_PLUGIN_PERM_NO_INSTALL'), 'error');
         return false;
     }
     //end if
     /*
      * Set toolbar items for the page
      */
     $bar =& JToolBar::getInstance('toolbar');
     // Add a Link button for Control Panel
     $bar->appendButton('Link', 'cpanel', JText::_('COM_JCKMAN_SUBMENU_CPANEL_NAME'), 'index.php?option=com_jckman&controller=cpanel');
     JToolBarHelper::help('screen.installer');
     $paths = new stdClass();
     $paths->first = '';
     $lookup = array(JHTML::_('select.option', 0, JText::_('All')));
     $selections =& $this->get('ToolbarList');
     $lists['selections'] = JHTML::_('select.genericlist', $selections, 'selections[]', 'class="inputbox" size="15" multiple="multiple" style=width:182px;', 'value', 'text', $lookup, 'selections');
     $this->assignRef('paths', $paths);
     $this->assignRef('state', $this->get('state'));
     $this->assignRef('lists', $lists);
     parent::display($tpl);
 }
Пример #3
0
 protected function addToolbar()
 {
     JToolBarHelper::publish('sites.publish', 'JTOOLBAR_ENABLE', true);
     JToolBarHelper::unpublish('sites.unpublish', 'JTOOLBAR_DISABLE', true);
     JToolBarHelper::divider();
     parent::addToolbar();
 }
Пример #4
0
 protected function addToolbar()
 {
     JToolBarHelper::custom('oneclick.install_remote', 'upload', 'upload', 'JTOOLBAR_INSTALL', true, false);
     JToolBarHelper::custom('oneclick.find', 'refresh', 'refresh', 'COM_INSTALLER_TOOLBAR_FIND_EXTENSIONS', false, false);
     JToolBarHelper::custom('oneclick.purge', 'purge', 'purge', 'JTOOLBAR_PURGE_CACHE', false, false);
     JToolBarHelper::divider();
     parent::addToolbar();
 }
Пример #5
0
 function display($tpl = null)
 {
     $paths = new stdClass();
     $paths->first = '';
     $this->assignRef('paths', $paths);
     $this->assignRef('state', $this->get('state'));
     $this->_setToolbar();
     parent::display($tpl);
 }
Пример #6
0
 /**
  * Add the page title and toolbar.
  *
  * @return  void
  *
  * @since   1.6
  */
 protected function addToolbar()
 {
     /*
      * Set toolbar items for the page.
      */
     JToolbarHelper::custom('database.fix', 'refresh', 'refresh', 'COM_INSTALLER_TOOLBAR_DATABASE_FIX', false);
     JToolbarHelper::divider();
     parent::addToolbar();
     JToolbarHelper::help('JHELP_EXTENSIONS_EXTENSION_MANAGER_DATABASE');
 }
Пример #7
0
 /**
  * Add the page title and toolbar.
  *
  * @since	1.6
  */
 protected function addToolbar()
 {
     $canDo = InstallerHelper::getActions();
     JToolBarHelper::custom('update.update', 'upload', 'upload', 'COM_INSTALLER_TOOLBAR_UPDATE', true, false);
     JToolBarHelper::custom('update.find', 'refresh', 'refresh', 'COM_INSTALLER_TOOLBAR_FIND_UPDATES', false, false);
     JToolBarHelper::custom('update.purge', 'purge', 'purge', 'JTOOLBAR_PURGE_CACHE', false, false);
     JToolBarHelper::divider();
     parent::addToolbar();
     JToolBarHelper::help('JHELP_EXTENSIONS_EXTENSION_MANAGER_UPDATE');
 }
Пример #8
0
 /**
  * Add the page title and toolbar.
  *
  * @return  void
  *
  * @since   1.6
  */
 protected function addToolbar()
 {
     JToolbarHelper::custom('update.update', 'upload', 'upload', 'COM_INSTALLER_TOOLBAR_UPDATE', true);
     JToolbarHelper::custom('update.find', 'refresh', 'refresh', 'COM_INSTALLER_TOOLBAR_FIND_UPDATES', false);
     JToolbarHelper::custom('update.purge', 'purge', 'purge', 'COM_INSTALLER_TOOLBAR_PURGE', false);
     JToolbarHelper::divider();
     JHtmlSidebar::setAction('index.php?option=com_installer&view=manage');
     parent::addToolbar();
     JToolbarHelper::help('JHELP_EXTENSIONS_EXTENSION_MANAGER_UPDATE');
 }
Пример #9
0
 /**
  * Add the page title and toolbar.
  *
  * @return  void
  *
  * @since   1.6
  */
 protected function addToolbar()
 {
     /*
      * Set toolbar items for the page
      */
     JToolbarHelper::custom('discover.install', 'upload', 'upload', 'JTOOLBAR_INSTALL', true, false);
     JToolbarHelper::custom('discover.refresh', 'refresh', 'refresh', 'COM_INSTALLER_TOOLBAR_DISCOVER', false, false);
     JToolbarHelper::divider();
     parent::addToolbar();
     JToolbarHelper::help('JHELP_EXTENSIONS_EXTENSION_MANAGER_DISCOVER');
 }
Пример #10
0
 /**
  * Add the page title and toolbar.
  *
  * @return  void
  *
  * @since   3.1
  */
 protected function addToolbar()
 {
     /*
      * Set toolbar items for the page.
      */
     JToolbarHelper::custom('discover.install', 'upload', 'upload', 'JTOOLBAR_INSTALL', true);
     JToolbarHelper::custom('discover.refresh', 'refresh', 'refresh', 'COM_INSTALLER_TOOLBAR_DISCOVER', false);
     JToolbarHelper::divider();
     JHtmlSidebar::setAction('index.php?option=com_installer&view=discover');
     parent::addToolbar();
     JToolbarHelper::help('JHELP_EXTENSIONS_EXTENSION_MANAGER_DISCOVER');
 }
Пример #11
0
 function display($tpl = null)
 {
     /*
      * Set toolbar items for the page
      */
     JToolBarHelper::help('screen.installer');
     $paths = new stdClass();
     $paths->first = '';
     $this->assignRef('paths', $paths);
     $this->assignRef('state', $this->get('state'));
     parent::display($tpl);
 }
Пример #12
0
 /**
  * Add the page title and toolbar.
  *
  * @return  void
  *
  * @since   1.6
  */
 protected function addToolbar()
 {
     JToolbarHelper::custom('update.update', 'upload', 'upload', 'COM_INSTALLER_TOOLBAR_UPDATE', true, false);
     JToolbarHelper::custom('update.find', 'refresh', 'refresh', 'COM_INSTALLER_TOOLBAR_FIND_UPDATES', false, false);
     JToolbarHelper::divider();
     JToolbarHelper::help('JHELP_EXTENSIONS_EXTENSION_MANAGER_UPDATE');
     JHtmlSidebar::setAction('index.php?option=com_installer&view=manage');
     JHtmlSidebar::addFilter(JText::_('COM_INSTALLER_VALUE_CLIENT_SELECT'), 'filter_client_id', JHtml::_('select.options', array('0' => 'JSITE', '1' => 'JADMINISTRATOR'), 'value', 'text', $this->state->get('filter.client_id'), true));
     JHtmlSidebar::addFilter(JText::_('COM_INSTALLER_VALUE_TYPE_SELECT'), 'filter_type', JHtml::_('select.options', InstallerHelper::getExtensionTypes(), 'value', 'text', $this->state->get('filter.type'), true));
     JHtmlSidebar::addFilter(JText::_('COM_INSTALLER_VALUE_FOLDER_SELECT'), 'filter_group', JHtml::_('select.options', array_merge(InstallerHelper::getExtensionGroupes(), array('*' => JText::_('COM_INSTALLER_VALUE_FOLDER_NONAPPLICABLE'))), 'value', 'text', $this->state->get('filter.group'), true));
     parent::addToolbar();
 }
Пример #13
0
 /**
  * Add the page title and toolbar.
  *
  * @return  void
  *
  * @since   3.4
  */
 protected function addToolbar()
 {
     $canDo = JHelperContent::getActions('com_installer');
     if ($canDo->get('core.edit.state')) {
         JToolbarHelper::publish('updatesites.publish', 'JTOOLBAR_ENABLE', true);
         JToolbarHelper::unpublish('updatesites.unpublish', 'JTOOLBAR_DISABLE', true);
         JToolbarHelper::divider();
     }
     JHtmlSidebar::setAction('index.php?option=com_installer&view=updatesites');
     parent::addToolbar();
     JToolbarHelper::help('JHELP_EXTENSIONS_EXTENSION_MANAGER_UPDATESITES');
 }
Пример #14
0
 /**
  * Add the page title and toolbar.
  *
  * @since	2.5
  */
 protected function addToolbar()
 {
     $canDo = InstallerHelper::getActions();
     JToolBarHelper::custom('site.install', 'upload', 'upload', 'JTOOLBAR_INSTALL', true, false);
     JToolBarHelper::custom('site.find', 'refresh', 'refresh', 'COM_INSTALLER_TOOLBAR_FIND_EXTENSIONS', false, false);
     JToolBarHelper::custom('site.purge', 'purge', 'purge', 'JTOOLBAR_PURGE_CACHE', false, false);
     JToolBarHelper::divider();
     parent::addToolbar();
     JToolBarHelper::help('JHELP_EXTENSIONS_EXTENSION_MANAGER_UPDATE');
     JToolBarHelper::title(JText::sprintf('COM_INSTALLER_TITLE_SITE', $this->distro->name), 'install');
     $document = JFactory::getDocument();
     $document->setTitle(JText::sprintf('COM_INSTALLER_TITLE_' . $this->getName(), $this->distro->name));
 }
Пример #15
0
 /**
  * Add the page title and toolbar.
  *
  * @return void
  */
 protected function addToolbar()
 {
     $canDo = InstallerHelper::getActions();
     JToolBarHelper::title(JText::_('COM_INSTALLER_HEADER_' . $this->getName()), 'install.png');
     if ($canDo->get('core.admin')) {
         JToolBarHelper::custom('languages.install', 'upload', 'upload', 'COM_INSTALLER_TOOLBAR_INSTALL', true, false);
         JToolBarHelper::custom('languages.find', 'refresh', 'refresh', 'COM_INSTALLER_TOOLBAR_FIND_LANGUAGES', false, false);
         JToolBarHelper::divider();
         parent::addToolbar();
         // TODO: this help screen will need to be created
         JToolBarHelper::help('JHELP_EXTENSIONS_EXTENSION_MANAGER_LANGUAGES');
     }
 }
Пример #16
0
 function display($tpl = null)
 {
     /*
      * Set toolbar items for the page
      */
     JToolBarHelper::deleteList('', 'remove', 'Uninstall');
     JCEToolBarHelper::help('install.plugin');
     // Get data from the model
     $items =& $this->get('Items');
     $pagination =& $this->get('Pagination');
     $this->assignRef('items', $items);
     $this->assignRef('pagination', $pagination);
     parent::display($tpl);
 }
Пример #17
0
 function display($tpl = null)
 {
     /*
      * Set toolbar items for the page
      */
     JToolBarHelper::editHtmlX('editHTML');
     JToolBarHelper::spacer();
     JToolBarHelper::cancel('manage');
     JToolBarHelper::help('screen.installerSelectHtml');
     // Get data from the model
     $item =& $this->get('Items');
     $this->assignRef('item', $item);
     parent::showTemplateHeader();
     parent::display($tpl);
 }
Пример #18
0
 /**
  * Add the page title and toolbar.
  *
  * @return  void
  *
  * @since   3.4
  */
 protected function addToolbar()
 {
     $canDo = JHelperContent::getActions('com_installer');
     if ($canDo->get('core.edit.state')) {
         JToolbarHelper::publish('updatesites.publish', 'JTOOLBAR_ENABLE', true);
         JToolbarHelper::unpublish('updatesites.unpublish', 'JTOOLBAR_DISABLE', true);
         JToolbarHelper::divider();
     }
     JHtmlSidebar::setAction('index.php?option=com_installer&view=updatesites');
     JHtmlSidebar::addFilter(JText::_('COM_INSTALLER_VALUE_CLIENT_SELECT'), 'filter_client_id', JHtml::_('select.options', array('0' => 'JSITE', '1' => 'JADMINISTRATOR'), 'value', 'text', $this->state->get('filter.client_id'), true));
     JHtmlSidebar::addFilter(JText::_('COM_INSTALLER_VALUE_STATE_SELECT'), 'filter_enabled', JHtml::_('select.options', array('0' => 'JDISABLED', '1' => 'JENABLED'), 'value', 'text', $this->state->get('filter.enabled'), true));
     JHtmlSidebar::addFilter(JText::_('COM_INSTALLER_VALUE_TYPE_SELECT'), 'filter_type', JHtml::_('select.options', InstallerHelper::getExtensionTypes(), 'value', 'text', $this->state->get('filter.type'), true));
     JHtmlSidebar::addFilter(JText::_('COM_INSTALLER_VALUE_FOLDER_SELECT'), 'filter_group', JHtml::_('select.options', array_merge(InstallerHelper::getExtensionGroupes(), array('*' => JText::_('COM_INSTALLER_VALUE_FOLDER_NONAPPLICABLE'))), 'value', 'text', $this->state->get('filter.group'), true));
     parent::addToolbar();
     JToolbarHelper::help('JHELP_EXTENSIONS_EXTENSION_MANAGER_UPDATESITES');
 }
Пример #19
0
 function display($tpl = null)
 {
     /*
      * Set toolbar items for the page
      */
     JToolBarHelper::save('saveHTML');
     JToolBarHelper::apply('applyHTML');
     JToolBarHelper::cancel('cancelHTML');
     JToolBarHelper::help('screen.installerSelectCss');
     JRequest::setVar('hidemainmenu', 1);
     // Get data from the model
     $item =& $this->get('Item');
     $this->assignRef('item', $item);
     parent::showTemplateHeader();
     parent::display($tpl);
 }
Пример #20
0
 /**
  * Add the page title and toolbar.
  *
  * @since	1.6
  */
 protected function addToolbar()
 {
     $canDo = InstallerHelper::getActions();
     if ($canDo->get('core.edit.state')) {
         JToolBarHelper::publish('manage.publish', 'JTOOLBAR_ENABLE', true);
         JToolBarHelper::unpublish('manage.unpublish', 'JTOOLBAR_DISABLE', true);
         JToolBarHelper::divider();
     }
     JToolBarHelper::custom('manage.refresh', 'refresh', 'refresh', 'JTOOLBAR_REFRESH_CACHE', true);
     JToolBarHelper::divider();
     if ($canDo->get('core.delete')) {
         JToolBarHelper::deleteList('', 'manage.remove', 'JTOOLBAR_UNINSTALL');
         JToolBarHelper::divider();
     }
     parent::addToolbar();
     JToolBarHelper::help('JHELP_EXTENSIONS_EXTENSION_MANAGER_MANAGE');
 }
Пример #21
0
 /**
  * Add the page title and toolbar.
  *
  * @return  void
  *
  * @since   1.6
  */
 protected function addToolbar()
 {
     $canDo = JHelperContent::getActions('com_installer');
     if ($canDo->get('core.edit.state')) {
         JToolbarHelper::publish('manage.publish', 'JTOOLBAR_ENABLE', true);
         JToolbarHelper::unpublish('manage.unpublish', 'JTOOLBAR_DISABLE', true);
         JToolbarHelper::divider();
     }
     JToolbarHelper::custom('manage.refresh', 'refresh', 'refresh', 'JTOOLBAR_REFRESH_CACHE', true);
     JToolbarHelper::divider();
     if ($canDo->get('core.delete')) {
         JToolbarHelper::deleteList('COM_INSTALLER_CONFIRM_UNINSTALL', 'manage.remove', 'JTOOLBAR_UNINSTALL');
         JToolbarHelper::divider();
     }
     JHtmlSidebar::setAction('index.php?option=com_installer&view=manage');
     parent::addToolbar();
     JToolbarHelper::help('JHELP_EXTENSIONS_EXTENSION_MANAGER_MANAGE');
 }
Пример #22
0
 function display($tpl = null)
 {
     /*
      * Set toolbar items for the page
      */
     JToolBarHelper::custom('discover.install', 'config', 'config', 'Install', true, false);
     JToolBarHelper::custom('discover.refresh', 'refresh', 'refresh', 'Discover', false, false);
     JToolBarHelper::custom('discover.purge', 'purge', 'purge', 'PURGE_CACHE', false, false);
     JToolBarHelper::divider();
     JToolBarHelper::help('screen.installer');
     // Get data from the model
     $state =& $this->get('State');
     $items =& $this->get('Items');
     $pagination =& $this->get('Pagination');
     $this->assignRef('items', $items);
     $this->assignRef('pagination', $pagination);
     parent::display($tpl);
 }
Пример #23
0
 function display($tpl = null)
 {
     /*
      * Set toolbar items for the page
      */
     JToolBarHelper::makeDefault('setDefault');
     JToolBarHelper::spacer();
     JToolBarHelper::deleteList('', 'remove');
     JToolBarHelper::editList('template');
     JToolBarHelper::help('screen.installer2');
     // Get data from the model
     $items =& $this->get('Items');
     $pagination =& $this->get('Pagination');
     $this->assignRef('items', $items);
     $this->assignRef('pagination', $pagination);
     parent::showHeader();
     parent::display($tpl);
 }
Пример #24
0
 /**
  * Add the page title and toolbar.
  *
  * @return  void
  *
  * @since   3.4
  */
 protected function addToolbar()
 {
     $canDo = JHelperContent::getActions('com_installer');
     if ($canDo->get('core.edit.state')) {
         JToolbarHelper::publish('updatesites.publish', 'JTOOLBAR_ENABLE', true);
         JToolbarHelper::unpublish('updatesites.unpublish', 'JTOOLBAR_DISABLE', true);
         JToolbarHelper::divider();
     }
     if ($canDo->get('core.delete')) {
         JToolbarHelper::deleteList('JGLOBAL_CONFIRM_DELETE', 'updatesites.delete', 'JTOOLBAR_DELETE');
         JToolbarHelper::divider();
     }
     if ($canDo->get('core.admin') || $canDo->get('core.options')) {
         JToolbarHelper::custom('updatesites.rebuild', 'refresh.png', 'refresh_f2.png', 'JTOOLBAR_REBUILD', false);
     }
     JHtmlSidebar::setAction('index.php?option=com_installer&view=updatesites');
     parent::addToolbar();
     JToolbarHelper::help('JHELP_EXTENSIONS_EXTENSION_MANAGER_UPDATESITES');
 }
Пример #25
0
 function display($tpl = null)
 {
     /*
      * Set toolbar items for the page
      */
     JToolBarHelper::deleteList('', 'remove', 'Uninstall');
     JToolBarHelper::help('screen.installer');
     // Get data from the model
     $state =& $this->get('State');
     $items =& $this->get('Items');
     $pagination =& $this->get('Pagination');
     $groups =& $this->get('Groups');
     $fields = new stdClass();
     $fields->groups = JHTML::_('select.genericlist', $groups, 'group', 'class="inputbox" size="1" onchange="document.adminForm.submit( );"', 'value', 'text', $state->get('filter.group'));
     $this->assignRef('items', $items);
     $this->assignRef('pagination', $pagination);
     $this->assignRef('fields', $fields);
     parent::display($tpl);
 }
Пример #26
0
 function display($tpl = null)
 {
     /*
      * Set toolbar items for the page
      */
     JToolBarHelper::custom('manage.refresh', 'refresh', 'refresh', 'REFRESH_CACHE', false, false);
     JToolBarHelper::deleteList('', 'manage.remove', 'Uninstall');
     JToolBarHelper::divider();
     JToolBarHelper::help('screen.installer2');
     $dbo =& JFactory::getDBO();
     // Get data from the model
     $state =& $this->get('State');
     $items =& $this->get('Items');
     $pagination =& $this->get('Pagination');
     $this->assignRef('items', $items);
     $this->assignRef('pagination', $pagination);
     $item = new stdClass();
     $lists = array();
     //$this->lists;
     $lists['filter'] = JRequest::getVar('filter');
     $dbo->setQuery('SELECT DISTINCT type FROM #__extensions');
     $type_list = $dbo->loadObjectList();
     $item->type = 'All';
     // will get translated below
     array_unshift($type_list, $item);
     $lists['type'] = JHTML::_('select.genericlist', $type_list, 'extensiontype', 'class="inputbox" size="1" onchange="document.adminForm.submit();"', 'type', 'type', JRequest::getVar('extensiontype'), false, true);
     $select[] = JHTML::_('select.option', '-1', JText::_('All'));
     $select[] = JHTML::_('select.option', '0', JText::_('Site'));
     $select[] = JHTML::_('select.option', '1', JText::_('Admininistrator'));
     $lists['clientid'] = JHTML::_('select.genericlist', $select, 'client', 'class="inputbox" size="1" onchange="document.adminForm.submit();"', 'value', 'text', $state->get('filter.client'));
     $dbo->setQuery('SELECT DISTINCT CASE `folder` WHEN "" THEN "N/A" ELSE `folder` END AS folder from #__extensions');
     $folder_list = $dbo->loadObjectList();
     $item->folder = 'All';
     // will get translated below
     array_unshift($folder_list, $item);
     $lists['folder'] = JHTML::_('select.genericlist', $folder_list, 'folder', 'class="inputbox" size="1" onchange="document.adminForm.submit();"', 'folder', 'folder', JRequest::getVar('folder', 'All'), false, true);
     //$lists['state'] = ''; // published or otherwise?
     $lists['hideprotected'] = JRequest::getBool('hideprotected', 1);
     $this->assignRef('lists', $lists);
     parent::display($tpl);
 }
Пример #27
0
 /**
  * Add the page title and toolbar.
  *
  * @return  void
  *
  * @since   1.6
  */
 protected function addToolbar()
 {
     $canDo = JHelperContent::getActions('com_installer');
     if ($canDo->get('core.edit.state')) {
         JToolbarHelper::publish('manage.publish', 'JTOOLBAR_ENABLE', true);
         JToolbarHelper::unpublish('manage.unpublish', 'JTOOLBAR_DISABLE', true);
         JToolbarHelper::divider();
     }
     JToolbarHelper::custom('manage.refresh', 'refresh', 'refresh', 'JTOOLBAR_REFRESH_CACHE', true);
     JToolbarHelper::divider();
     if ($canDo->get('core.delete')) {
         JToolbarHelper::deleteList('', 'manage.remove', 'JTOOLBAR_UNINSTALL');
         JToolbarHelper::divider();
     }
     JHtmlSidebar::setAction('index.php?option=com_installer&view=manage');
     JHtmlSidebar::addFilter(JText::_('COM_INSTALLER_VALUE_CLIENT_SELECT'), 'filter_client_id', JHtml::_('select.options', array('0' => 'JSITE', '1' => 'JADMINISTRATOR'), 'value', 'text', $this->state->get('filter.client_id'), true));
     JHtmlSidebar::addFilter(JText::_('COM_INSTALLER_VALUE_STATE_SELECT'), 'filter_status', JHtml::_('select.options', array('0' => 'JDISABLED', '1' => 'JENABLED', '2' => 'JPROTECTED', '3' => 'JUNPROTECTED'), 'value', 'text', $this->state->get('filter.status'), true));
     JHtmlSidebar::addFilter(JText::_('COM_INSTALLER_VALUE_TYPE_SELECT'), 'filter_type', JHtml::_('select.options', InstallerHelper::getExtensionTypes(), 'value', 'text', $this->state->get('filter.type'), true));
     JHtmlSidebar::addFilter(JText::_('COM_INSTALLER_VALUE_FOLDER_SELECT'), 'filter_group', JHtml::_('select.options', array_merge(InstallerHelper::getExtensionGroupes(), array('*' => JText::_('COM_INSTALLER_VALUE_FOLDER_NONAPPLICABLE'))), 'value', 'text', $this->state->get('filter.group'), true));
     parent::addToolbar();
     JToolbarHelper::help('JHELP_EXTENSIONS_EXTENSION_MANAGER_MANAGE');
 }
Пример #28
0
 function display($tpl = null)
 {
     /*
      * Set toolbar items for the page
      */
     JToolBarHelper::custom('update.update', 'config', 'config', 'Update', true, false);
     JToolBarHelper::custom('update.find', 'refresh', 'refresh', 'FIND_UPDATES', false, false);
     JToolBarHelper::custom('update.purge', 'purge', 'purge', 'PURGE_CACHE', false, false);
     JToolBarHelper::divider();
     JToolBarHelper::help('screen.installer');
     // Get data from the model
     $state =& $this->get('State');
     $items =& $this->get('Items');
     $pagination =& $this->get('Pagination');
     $paths = new stdClass();
     $paths->first = '';
     $this->assignRef('paths', $paths);
     $this->assignRef('state', $this->get('state'));
     $this->assignRef('items', $items);
     $this->assignRef('pagination', $pagination);
     JHTML::_('behavior.tooltip');
     parent::display($tpl);
 }
Пример #29
0
 function display($tpl = null)
 {
     $canDo = JCKHelper::getActions();
     $app = JFactory::getApplication();
     if (!$canDo->get('jckman.uninstall')) {
         $app->redirect(JRoute::_('index.php?option=com_jckman&view=cpanel', false), JText::_('COM_JCKMAN_PLUGIN_PERM_NO_INSTALL'), 'error');
         return false;
     }
     //end
     /*
      * Set toolbar items for the page
      */
     $bar =& JToolBar::getInstance('toolbar');
     // Add a Link button for Control Panel
     $bar->appendButton('Link', 'cpanel', 'Control Panel', 'index.php?option=com_jckman&controller=cpanel');
     JToolBarHelper::deleteList('', 'remove', 'Uninstall');
     $lookup = array(JHTML::_('select.option', 0, JText::_('All')));
     // Get data from the model
     $items =& $this->get('Items');
     $pagination =& $this->get('Pagination');
     $this->assignRef('items', $items);
     $this->assignRef('pagination', $pagination);
     parent::display($tpl);
 }
Пример #30
0
 /**
  * Add the page title and toolbar.
  *
  * @since	1.6
  */
 protected function addToolbar()
 {
     parent::addToolbar();
     JToolBarHelper::help('JHELP_EXTENSIONS_EXTENSION_MANAGER_INSTALL');
 }