[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_users/tmpl/debuggroup/ -> default.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Administrator
   5   * @subpackage  com_users
   6   *
   7   * @copyright   (C) 2010 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  use Joomla\CMS\Layout\LayoutHelper;
  16  use Joomla\CMS\Router\Route;
  17  
  18  $listOrder = $this->escape($this->state->get('list.ordering'));
  19  $listDirn  = $this->escape($this->state->get('list.direction'));
  20  ?>
  21  <form action="<?php echo Route::_('index.php?option=com_users&view=debuggroup&group_id=' . (int) $this->state->get('group_id')); ?>" method="post" name="adminForm" id="adminForm">
  22      <div id="j-main-container" class="j-main-container">
  23          <?php echo LayoutHelper::render('joomla.searchtools.default', array('view' => $this)); ?>
  24          <div class="table-responsive">
  25              <table class="table">
  26                  <caption class="visually-hidden">
  27                      <?php echo Text::_('COM_USERS_DEBUG_GROUP_TABLE_CAPTION'); ?>,
  28                              <span id="orderedBy"><?php echo Text::_('JGLOBAL_SORTED_BY'); ?> </span>,
  29                              <span id="filteredBy"><?php echo Text::_('JGLOBAL_FILTERED_BY'); ?></span>
  30                  </caption>
  31                  <thead>
  32                      <tr>
  33                          <th scope="col">
  34                              <?php echo HTMLHelper::_('searchtools.sort', 'COM_USERS_HEADING_ASSET_TITLE', 'a.title', $listDirn, $listOrder); ?>
  35                          </th>
  36                          <th scope="col">
  37                              <?php echo HTMLHelper::_('searchtools.sort', 'COM_USERS_HEADING_ASSET_NAME', 'a.name', $listDirn, $listOrder); ?>
  38                          </th>
  39                          <?php foreach ($this->actions as $key => $action) : ?>
  40                          <th scope="col" class="w-6 text-center">
  41                              <?php echo Text::_($key); ?>
  42                          </th>
  43                          <?php endforeach; ?>
  44                          <th scope="col" class="w-6">
  45                              <?php echo HTMLHelper::_('searchtools.sort', 'COM_USERS_HEADING_LFT', 'a.lft', $listDirn, $listOrder); ?>
  46                          </th>
  47                          <th scope="col" class="w-3">
  48                              <?php echo HTMLHelper::_('searchtools.sort', 'JGRID_HEADING_ID', 'a.id', $listDirn, $listOrder); ?>
  49                          </th>
  50                      </tr>
  51                  </thead>
  52                  <tbody>
  53                      <?php foreach ($this->items as $i => $item) : ?>
  54                          <tr class="row0">
  55                              <th scope="row">
  56                                  <?php echo $this->escape(Text::_($item->title)); ?>
  57                              </th>
  58                              <td>
  59                                  <?php echo LayoutHelper::render('joomla.html.treeprefix', array('level' => $item->level + 1)) . $this->escape($item->name); ?>
  60                              </td>
  61                              <?php foreach ($this->actions as $action) : ?>
  62                                  <?php
  63                                  $name  = $action[0];
  64                                  $check = $item->checks[$name];
  65                                  if ($check === true) :
  66                                      $class  = 'text-success icon-check';
  67                                      $button = 'btn-success';
  68                                      $text   = Text::_('COM_USERS_DEBUG_EXPLICIT_ALLOW');
  69                                  elseif ($check === false) :
  70                                      $class  = 'text-danger icon-times';
  71                                      $button = 'btn-danger';
  72                                      $text   = Text::_('COM_USERS_DEBUG_EXPLICIT_DENY');
  73                                  elseif ($check === null) :
  74                                      $class  = 'text-danger icon-minus-circle';
  75                                      $button = 'btn-warning';
  76                                      $text   = Text::_('COM_USERS_DEBUG_IMPLICIT_DENY');
  77                                  else :
  78                                      $class  = '';
  79                                      $button = '';
  80                                      $text   = '';
  81                                  endif;
  82                                  ?>
  83                              <td class="text-center">
  84                                  <span class="<?php echo $class; ?>" aria-hidden="true"></span>
  85                                  <span class="visually-hidden"> <?php echo $text; ?></span>
  86                              </td>
  87                              <?php endforeach; ?>
  88                              <td>
  89                                  <?php echo (int) $item->lft; ?>
  90                                  - <?php echo (int) $item->rgt; ?>
  91                              </td>
  92                              <td>
  93                                  <?php echo (int) $item->id; ?>
  94                              </td>
  95                          </tr>
  96                      <?php endforeach; ?>
  97                  </tbody>
  98              </table>
  99              <div class="legend">
 100                  <span class="text-danger icon-minus-circle" aria-hidden="true"></span>&nbsp;<?php echo Text::_('COM_USERS_DEBUG_IMPLICIT_DENY'); ?>&nbsp;
 101                  <span class="text-success icon-check" aria-hidden="true"></span>&nbsp;<?php echo Text::_('COM_USERS_DEBUG_EXPLICIT_ALLOW'); ?>&nbsp;
 102                  <span class="text-danger icon-times" aria-hidden="true"></span>&nbsp;<?php echo Text::_('COM_USERS_DEBUG_EXPLICIT_DENY'); ?>
 103              </div>
 104  
 105              <?php // load the pagination. ?>
 106              <?php echo $this->pagination->getListFooter(); ?>
 107  
 108          </div>
 109          <input type="hidden" name="task" value="">
 110          <input type="hidden" name="boxchecked" value="0">
 111          <?php echo HTMLHelper::_('form.token'); ?>
 112      </div>
 113  </form>


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