[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
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 $loginActions = []; 22 $actions = []; 23 24 // Split the actions table 25 foreach ($this->actions as $action) : 26 $name = $action[0]; 27 if (in_array($name, ['core.login.site', 'core.login.admin', 'core.login.offline', 'core.login.api', 'core.admin'])) : 28 $loginActions[] = $action; 29 else : 30 $actions[] = $action; 31 endif; 32 endforeach; 33 ?> 34 <form action="<?php echo Route::_('index.php?option=com_users&view=debuguser&user_id=' . (int) $this->state->get('user_id')); ?>" method="post" name="adminForm" id="adminForm"> 35 <div id="j-main-container" class="j-main-container"> 36 <?php echo LayoutHelper::render('joomla.searchtools.default', array('view' => $this)); ?> 37 <div class="d-flex flex-wrap"> 38 <?php foreach ($loginActions as $action) : 39 $name = $action[0]; 40 $check = $this->items[0]->checks[$name]; 41 if ($check === true) : 42 $class = 'text-success icon-check'; 43 $button = 'btn-success'; 44 $text = Text::_('COM_USERS_DEBUG_EXPLICIT_ALLOW'); 45 elseif ($check === false) : 46 $class = 'text-danger icon-times'; 47 $button = 'btn-danger'; 48 $text = Text::_('COM_USERS_DEBUG_EXPLICIT_DENY'); 49 elseif ($check === null) : 50 $class = 'text-danger icon-minus-circle'; 51 $button = 'btn-warning'; 52 $text = Text::_('COM_USERS_DEBUG_IMPLICIT_DENY'); 53 else : 54 $class = ''; 55 $button = ''; 56 $text = ''; 57 endif; 58 ?> 59 <div class=" d-inline p-2"> 60 <?php echo Text::_($action[1]); ?> 61 <span class="<?php echo $class; ?>" aria-hidden="true"></span> 62 <span class="visually-hidden"><?php echo Text::_($text); ?></span> 63 </div> 64 <?php endforeach; ?> 65 </div> 66 67 <table class="table"> 68 <caption class="visually-hidden"> 69 <?php echo Text::_('COM_USERS_DEBUG_USER_TABLE_CAPTION'); ?>, 70 <span id="orderedBy"><?php echo Text::_('JGLOBAL_SORTED_BY'); ?> </span>, 71 <span id="filteredBy"><?php echo Text::_('JGLOBAL_FILTERED_BY'); ?></span> 72 </caption> 73 <thead> 74 <tr> 75 <th scope="col"> 76 <?php echo HTMLHelper::_('searchtools.sort', 'COM_USERS_HEADING_ASSET_TITLE', 'a.title', $listDirn, $listOrder); ?> 77 </th> 78 <th scope="col"> 79 <?php echo HTMLHelper::_('searchtools.sort', 'COM_USERS_HEADING_ASSET_NAME', 'a.name', $listDirn, $listOrder); ?> 80 </th> 81 <?php foreach ($actions as $key => $action) : ?> 82 <th scope="col" class="w-6 text-center"> 83 <?php echo Text::_($action[1]); ?> 84 </th> 85 <?php endforeach; ?> 86 <th scope="col" class="w-6"> 87 <?php echo HTMLHelper::_('searchtools.sort', 'COM_USERS_HEADING_LFT', 'a.lft', $listDirn, $listOrder); ?> 88 </th> 89 <th scope="col" class="w-3"> 90 <?php echo HTMLHelper::_('searchtools.sort', 'JGRID_HEADING_ID', 'a.id', $listDirn, $listOrder); ?> 91 </th> 92 </tr> 93 </thead> 94 <tbody> 95 <?php foreach ($this->items as $i => $item) :?> 96 <tr class="row0" scope="row"> 97 <td> 98 <?php echo $this->escape(Text::_($item->title)); ?> 99 </td> 100 <td> 101 <?php echo LayoutHelper::render('joomla.html.treeprefix', array('level' => $item->level + 1)) . $this->escape($item->name); ?> 102 </td> 103 <?php foreach ($actions as $action) : ?> 104 <?php 105 $name = $action[0]; 106 $check = $item->checks[$name]; 107 if ($check === true) : 108 $class = 'text-success icon-check'; 109 $button = 'btn-success'; 110 $text = Text::_('COM_USERS_DEBUG_EXPLICIT_ALLOW'); 111 elseif ($check === false) : 112 $class = 'text-danger icon-times'; 113 $button = 'btn-danger'; 114 $text = Text::_('COM_USERS_DEBUG_EXPLICIT_DENY'); 115 elseif ($check === null) : 116 $class = 'text-danger icon-minus-circle'; 117 $button = 'btn-warning'; 118 $text = Text::_('COM_USERS_DEBUG_IMPLICIT_DENY'); 119 else : 120 $class = ''; 121 $button = ''; 122 $text = ''; 123 endif; 124 ?> 125 <td class="text-center"> 126 <span class="<?php echo $class; ?>" aria-hidden="true"></span> 127 <span class="visually-hidden"> <?php echo $text; ?></span> 128 </td> 129 <?php endforeach; ?> 130 <td> 131 <?php echo (int) $item->lft; ?> 132 - <?php echo (int) $item->rgt; ?> 133 </td> 134 <td> 135 <?php echo (int) $item->id; ?> 136 </td> 137 </tr> 138 <?php endforeach; ?> 139 </tbody> 140 </table> 141 142 <div class="legend"> 143 <span class="text-danger icon-minus-circle" aria-hidden="true"></span> <?php echo Text::_('COM_USERS_DEBUG_IMPLICIT_DENY'); ?> 144 <span class="text-success icon-check" aria-hidden="true"></span> <?php echo Text::_('COM_USERS_DEBUG_EXPLICIT_ALLOW'); ?> 145 <span class="text-danger icon-times" aria-hidden="true"> </span><?php echo Text::_('COM_USERS_DEBUG_EXPLICIT_DENY'); ?> 146 </div> 147 148 <?php // load the pagination. ?> 149 <?php echo $this->pagination->getListFooter(); ?> 150 151 <input type="hidden" name="task" value=""> 152 <input type="hidden" name="boxchecked" value="0"> 153 <?php echo HTMLHelper::_('form.token'); ?> 154 </div> 155 </form>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |