Ejemplo n.º 1
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();
 }
Ejemplo n.º 2
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');
 }
Ejemplo n.º 3
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');
 }
				<?php 
echo JHtml::_('select.options', InstallerHelper::getExtensionTypes(), 'value', 'text', $this->state->get('filter.type'), true);
?>
			</select>

			<label class="selectlabel" for="filter_group">
				<?php 
echo JText::_('COM_INSTALLER_VALUE_FOLDER_SELECT');
?>
			</label>
			<select name="filter_group" class="inputbox" id="filter_group">
				<option value=""><?php 
echo JText::_('COM_INSTALLER_VALUE_FOLDER_SELECT');
?>
</option>
				<?php 
echo JHtml::_('select.options', array_merge(InstallerHelper::getExtensionGroupes(), array('*' => JText::_('COM_INSTALLER_VALUE_FOLDER_NONAPPLICABLE'))), 'value', 'text', $this->state->get('filter.group'), true);
?>
			</select>

			<button type="submit" id="filter-go">
				<?php 
echo JText::_('JSUBMIT');
?>
</button>

		</div>

</fieldset>
<div class="clr"></div>
Ejemplo n.º 5
0
 /**
  * Method to get the field options.
  *
  * @return  array  The field option objects.
  *
  * @since   3.5
  */
 public function getOptions()
 {
     $options = InstallerHelper::getExtensionGroupes();
     return array_merge(parent::getOptions(), $options);
 }