/** * Setting the toolbar * * @since 2.1.0 */ protected function addToolbar() { // Load specific css component JHtml::_('stylesheet', 'com_externallogin/administrator/externallogin.css', array(), true); $bar = JToolBar::getInstance('toolbar'); // Set the toolbar JToolBarHelper::title(JText::_('COM_EXTERNALLOGIN_MANAGER_USERS'), 'users'); // Add a standard button. $bar->appendButton('Confirm', 'COM_EXTERNALLOGIN_TOOLBAR_ENABLE_JOOMLA_MSG', 'publish', 'COM_EXTERNALLOGIN_TOOLBAR_ENABLE_JOOMLA', 'users.enableJoomla', true); $bar->appendButton('Confirm', 'COM_EXTERNALLOGIN_TOOLBAR_DISABLE_JOOMLA_MSG', 'unpublish', 'COM_EXTERNALLOGIN_TOOLBAR_DISABLE_JOOMLA', 'users.disableJoomla', true); $bar->appendButton('Popup', 'publish', 'COM_EXTERNALLOGIN_TOOLBAR_ENABLE_EXTERNALLOGIN', 'index.php?option=com_externallogin&view=servers&layout=modal&tmpl=component', 875, 550, 0, 0, ''); JToolBarHelper::custom('users.disableExternallogin', 'unpublish', 'users-disable-externallogin', 'COM_EXTERNALLOGIN_TOOLBAR_DISABLE_EXTERNALLOGIN'); JToolBarHelper::preferences('com_externallogin'); JHtml::_('sidebar.setaction', 'index.php?option=com_externallogin&view=users'); JHtml::_('sidebar.addFilter', JText::_('COM_EXTERNALLOGIN_OPTION_SELECT_PLUGIN'), 'filter_plugin', JHtml::_('select.options', ExternalloginHelper::getPlugins(), 'value', 'text', $this->state->get('filter.plugin'), true)); JHtml::_('sidebar.addFilter', JText::_('COM_EXTERNALLOGIN_OPTION_SELECT_SERVER'), 'filter_server', JHtml::_('select.options', ExternalloginHelper::getServers(array('ignore_request' => true)), 'value', 'text', $this->state->get('filter.server'), true)); JHtml::_('sidebar.addFilter', JText::_('COM_EXTERNALLOGIN_OPTION_SELECT_JOOMLA'), 'filter_joomla', JHtml::_('select.options', JHtml::_('jgrid.publishedOptions', array('archived' => false, 'trash' => false, 'all' => false)), 'value', 'text', $this->state->get('filter.joomla'), true)); JHtml::_('sidebar.addFilter', JText::_('COM_EXTERNALLOGIN_OPTION_SELECT_EXTERNAL'), 'filter_external', JHtml::_('select.options', JHtml::_('jgrid.publishedOptions', array('archived' => false, 'trash' => false, 'all' => false)), 'value', 'text', $this->state->get('filter.external'), true)); }
* @package External Login * @subpackage Component * @copyright Copyright (C) 2008-2014 Christophe Demko, Ioannis Barounis, Alexandre Gandois. All rights reserved. * @author Christophe Demko * @author Ioannis Barounis * @author Alexandre Gandois * @link http://www.chdemko.com * @license http://www.gnu.org/licenses/gpl-2.0.html */ // No direct access to this file defined('_JEXEC') or die; // Include the component HTML helpers. JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html'); $user = JFactory::getUser(); $ordering = $this->state->get('list.ordering') == 'a.ordering'; $plugins = JArrayHelper::pivot(ExternalloginHelper::getPlugins(), 'value'); if (!count($this->items)) { ?> <tr class="row<?php echo $i % 2; ?> "> <td colspan="6" class="center"> <?php echo JText::_('COM_EXTERNALLOGIN_NO_RECORDS'); ?> </td> </tr> <?php } else { foreach ($this->items as $i => $item) {
?> "><i class="icon-search"></i></button> <button type="button" class="btn hasTooltip" title="<?php echo JHtml::tooltipText('JSEARCH_FILTER_CLEAR'); ?> " onclick="document.id('filter_search').value='';this.form.submit();"><i class="icon-remove"></i></button> </div> </div> <div class="filter-select fltrt"> <select name="filter_plugin" class="inputbox" onchange="this.form.submit()"> <option value=""><?php echo JText::_('COM_EXTERNALLOGIN_OPTION_SELECT_PLUGIN'); ?> </option> <?php echo JHtml::_('select.options', ExternalloginHelper::getPlugins(), 'value', 'text', $this->state->get('filter.plugin'), true); ?> </select> <select name="filter_published" class="inputbox" onchange="this.form.submit()"> <option value=""><?php echo JText::_('JOPTION_SELECT_PUBLISHED'); ?> </option> <?php echo JHtml::_('select.options', JHtml::_('jgrid.publishedOptions'), 'value', 'text', $this->state->get('filter.published'), true); ?> </select> </div> </fieldset> <div class="clr"></div>
/** * Setting the toolbar * * @since 2.0.0 */ protected function addToolbar() { // Load specific css component JHtml::_('stylesheet', 'com_externallogin/administrator/externallogin.css', array(), true); // Set the toolbar JToolBarHelper::title(JText::_('COM_EXTERNALLOGIN_MANAGER_SERVERS'), 'database'); $bar = JToolBar::getInstance('toolbar'); $bar->appendButton('Popup', 'new', 'JTOOLBAR_NEW', 'index.php?option=com_externallogin&view=plugins&tmpl=component', 875, 550, 0, 0, ''); JToolBarHelper::editList('server.edit'); JToolBarHelper::publishList('servers.publish'); JToolBarHelper::unpublishList('servers.unpublish'); JToolBarHelper::checkin('servers.checkin'); if ($this->state->get('filter.published') == -2) { JToolBarHelper::deleteList('COM_EXTERNALLOGIN_MSG_SERVERS_DELETE', 'servers.delete'); } else { JToolBarHelper::archiveList('servers.archive'); JToolBarHelper::trash('servers.trash'); } JToolBarHelper::preferences('com_externallogin'); JHtml::_('sidebar.addentry', JText::_('COM_EXTERNALLOGIN_SUBMENU_SERVERS'), 'index.php?option=com_externallogin', true); JHtml::_('sidebar.addentry', JText::_('COM_EXTERNALLOGIN_SUBMENU_USERS'), 'index.php?option=com_externallogin&view=users', false); JHtml::_('sidebar.addentry', JText::_('COM_EXTERNALLOGIN_SUBMENU_LOGS'), 'index.php?option=com_externallogin&view=logs', false); JHtml::_('sidebar.addentry', JText::_('COM_EXTERNALLOGIN_SUBMENU_ABOUT'), 'index.php?option=com_externallogin&view=about', false); JHtml::_('sidebar.setaction', 'index.php?option=com_externallogin&view=servers'); JHtml::_('sidebar.addFilter', JText::_('COM_EXTERNALLOGIN_OPTION_SELECT_PLUGIN'), 'filter_plugin', JHtml::_('select.options', ExternalloginHelper::getPlugins(), 'value', 'text', $this->state->get('filter.plugin'), true)); JHtml::_('sidebar.addFilter', JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_published', JHtml::_('select.options', JHtml::_('jgrid.publishedOptions'), 'value', 'text', $this->state->get('filter.published'), true)); }