[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @package Joomla.Administrator 4 * @subpackage com_actionlogs 5 * 6 * @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org> 7 * @license GNU General Public License version 2 or later; see LICENSE.txt 8 */ 9 10 defined('_JEXEC') or die; 11 12 use Joomla\CMS\HTML\HTMLHelper; 13 use Joomla\CMS\Language\Text; 14 use Joomla\CMS\Layout\LayoutHelper; 15 use Joomla\CMS\Router\Route; 16 use Joomla\Component\Actionlogs\Administrator\Helper\ActionlogsHelper; 17 use Joomla\Component\Actionlogs\Administrator\View\Actionlogs\HtmlView; 18 19 /** @var HtmlView $this */ 20 21 $listOrder = $this->escape($this->state->get('list.ordering')); 22 $listDirn = $this->escape($this->state->get('list.direction')); 23 24 /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ 25 $wa = $this->document->getWebAssetManager(); 26 $wa->useScript('keepalive') 27 ->useScript('table.columns') 28 ->useScript('multiselect') 29 ->useScript('com_actionlogs.admin-actionlogs'); 30 31 ?> 32 33 <form action="<?php echo Route::_('index.php?option=com_actionlogs&view=actionlogs'); ?>" method="post" name="adminForm" id="adminForm"> 34 <div id="j-main-container" class="j-main-container"> 35 <?php // Search tools bar ?> 36 <?php echo LayoutHelper::render('joomla.searchtools.default', array('view' => $this)); ?> 37 <?php if (empty($this->items)) : ?> 38 <div class="alert alert-info"> 39 <span class="icon-info-circle" aria-hidden="true"></span><span class="visually-hidden"><?php echo Text::_('INFO'); ?></span> 40 <?php echo Text::_('JGLOBAL_NO_MATCHING_RESULTS'); ?> 41 </div> 42 <?php else : ?> 43 <table class="table" id="logsList"> 44 <caption class="visually-hidden"> 45 <?php echo Text::_('COM_ACTIONLOGS_TABLE_CAPTION'); ?>, 46 <span id="orderedBy"><?php echo Text::_('JGLOBAL_SORTED_BY'); ?> </span>, 47 <span id="filteredBy"><?php echo Text::_('JGLOBAL_FILTERED_BY'); ?></span> 48 </caption> 49 <thead> 50 <tr> 51 <td class="w-1 text-center"> 52 <?php echo HTMLHelper::_('grid.checkall'); ?> 53 </td> 54 <th scope="col" class="d-md-table-cell"> 55 <?php echo HTMLHelper::_('searchtools.sort', 'COM_ACTIONLOGS_ACTION', 'a.message', $listDirn, $listOrder); ?> 56 </th> 57 <th scope="col" class="w-15 d-none d-md-table-cell"> 58 <?php echo HTMLHelper::_('searchtools.sort', 'COM_ACTIONLOGS_EXTENSION', 'a.extension', $listDirn, $listOrder); ?> 59 </th> 60 <th scope="col" class="w-15 d-none d-md-table-cell"> 61 <?php echo HTMLHelper::_('searchtools.sort', 'COM_ACTIONLOGS_DATE', 'a.log_date', $listDirn, $listOrder); ?> 62 </th> 63 <th scope="col" class="w-10 d-md-table-cell"> 64 <?php echo HTMLHelper::_('searchtools.sort', 'COM_ACTIONLOGS_NAME', 'a.user_id', $listDirn, $listOrder); ?> 65 </th> 66 <?php if ($this->showIpColumn) : ?> 67 <th scope="col" class="w-10 d-none d-md-table-cell"> 68 <?php echo HTMLHelper::_('searchtools.sort', 'COM_ACTIONLOGS_IP_ADDRESS', 'a.ip_address', $listDirn, $listOrder); ?> 69 </th> 70 <?php endif; ?> 71 <th scope="col" class="w-1 d-none d-md-table-cell"> 72 <?php echo HTMLHelper::_('searchtools.sort', 'JGRID_HEADING_ID', 'a.id', $listDirn, $listOrder); ?> 73 </th> 74 </tr> 75 </thead> 76 <tbody> 77 <?php foreach ($this->items as $i => $item) : 78 $extension = strtok($item->extension, '.'); 79 ActionlogsHelper::loadTranslationFiles($extension); ?> 80 <tr class="row<?php echo $i % 2; ?>"> 81 <td class="text-center"> 82 <?php echo HTMLHelper::_('grid.id', $i, $item->id); ?> 83 </td> 84 <th scope="row" class="d-md-table-cell"> 85 <?php echo ActionlogsHelper::getHumanReadableLogMessage($item); ?> 86 </th> 87 <td class="d-none d-md-table-cell"> 88 <?php echo $this->escape(Text::_($extension)); ?> 89 </td> 90 <td class="d-none d-md-table-cell"> 91 <?php if ($this->dateRelative) : ?> 92 <?php echo HTMLHelper::_('date.relative', $item->log_date); ?> 93 <div class="small"> 94 <?php endif; ?> 95 <?php echo HTMLHelper::_('date', $item->log_date, Text::_('DATE_FORMAT_LC6')); ?> 96 <?php if ($this->dateRelative) : ?> 97 </div> 98 <?php endif; ?> 99 </td> 100 <td class="d-md-table-cell"> 101 <?php echo $this->escape($item->name); ?> 102 </td> 103 <?php if ($this->showIpColumn) : ?> 104 <td class="d-none d-md-table-cell"> 105 <?php echo Text::_($this->escape($item->ip_address)); ?> 106 </td> 107 <?php endif;?> 108 <td class="d-none d-md-table-cell"> 109 <?php echo (int) $item->id; ?> 110 </td> 111 </tr> 112 <?php endforeach; ?> 113 </tbody> 114 </table> 115 116 <?php // Load the pagination. ?> 117 <?php echo $this->pagination->getListFooter(); ?> 118 119 <?php endif;?> 120 <input type="hidden" name="task" value="" /> 121 <input type="hidden" name="boxchecked" value="0" /> 122 <?php echo HTMLHelper::_('form.token'); ?> 123 </div> 124 </form> 125 <form action="<?php echo Route::_('index.php?option=com_actionlogs&view=actionlogs'); ?>" method="post" name="exportForm" id="exportForm"> 126 <input type="hidden" name="task" value="" /> 127 <input type="hidden" name="cids" value="" /> 128 <?php echo HTMLHelper::_('form.token'); ?> 129 </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 |