[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_users/tmpl/users/ -> default_batch_body.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Administrator
   5   * @subpackage  com_users
   6   *
   7   * @copyright   (C) 2015 Open Source Matters, Inc. <https://www.joomla.org>
   8   * @license     GNU General Public License version 2 or later; see LICENSE.txt
   9   */
  10  
  11  defined('_JEXEC') or die;
  12  
  13  use Joomla\CMS\HTML\HTMLHelper;
  14  use Joomla\CMS\Language\Text;
  15  
  16  // Create the copy/move options.
  17  $options = array(
  18      HTMLHelper::_('select.option', 'add', Text::_('COM_USERS_BATCH_ADD')),
  19      HTMLHelper::_('select.option', 'del', Text::_('COM_USERS_BATCH_DELETE')),
  20      HTMLHelper::_('select.option', 'set', Text::_('COM_USERS_BATCH_SET'))
  21  );
  22  
  23  // Create the reset password options.
  24  $resetOptions = array(
  25      HTMLHelper::_('select.option', '', Text::_('COM_USERS_NO_ACTION')),
  26      HTMLHelper::_('select.option', 'yes', Text::_('JYES')),
  27      HTMLHelper::_('select.option', 'no', Text::_('JNO'))
  28  );
  29  
  30  /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
  31  $wa = $this->document->getWebAssetManager();
  32  $wa->useScript('joomla.batch-copymove');
  33  
  34  ?>
  35  
  36  <div class="p-3">
  37      <form>
  38          <div class="form-group">
  39              <label id="batch-choose-action-lbl" class="control-label" for="batch-group-id">
  40                  <?php echo Text::_('COM_USERS_BATCH_GROUP'); ?>
  41              </label>
  42              <div id="batch-choose-action" class="combo controls">
  43                  <select class="form-select" name="batch[group_id]" id="batch-group-id">
  44                      <option value=""><?php echo Text::_('JSELECT'); ?></option>
  45                      <?php echo HTMLHelper::_('select.options', HTMLHelper::_('user.groups')); ?>
  46                  </select>
  47              </div>
  48          </div>
  49          <div class="form-group">
  50              <fieldset>
  51                  <legend>
  52                      <?php echo Text::_('COM_USERS_BATCH_ACTIONS'); ?>
  53                  </legend>
  54                  <?php echo HTMLHelper::_('select.radiolist', $options, 'batch[group_action]', '', 'value', 'text', 'add'); ?>
  55              </fieldset>
  56          </div>
  57          <div class="form-group">
  58              <fieldset id="batch-password-reset_id">
  59                  <legend>
  60                      <?php echo Text::_('COM_USERS_REQUIRE_PASSWORD_RESET'); ?>
  61                  </legend>
  62                  <?php echo HTMLHelper::_('select.radiolist', $resetOptions, 'batch[reset_id]', '', 'value', 'text', ''); ?>
  63              </fieldset>
  64          </div>
  65      </form>
  66  </div>


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer