[ 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_cache 5 * 6 * @copyright (C) 2008 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 17 /** @var \Joomla\Component\Cache\Administrator\View\Cache\HtmlView $this */ 18 19 $listOrder = $this->escape($this->state->get('list.ordering')); 20 $listDirn = $this->escape($this->state->get('list.direction')); 21 22 /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ 23 $wa = $this->document->getWebAssetManager(); 24 $wa->useScript('keepalive') 25 ->useScript('table.columns') 26 ->useScript('multiselect') 27 ->useScript('com_cache.admin-cache'); 28 29 ?> 30 <form action="<?php echo Route::_('index.php?option=com_cache'); ?>" method="post" name="adminForm" id="adminForm"> 31 <div class="row"> 32 <div class="col-md-12"> 33 <div id="j-main-container" class="j-main-container"> 34 <div class="alert alert-info"> 35 <span class="icon-info-circle" aria-hidden="true"></span> 36 <span class="visually-hidden"><?php echo Text::_('INFO'); ?></span> 37 <?php echo Text::_('COM_CACHE_PURGE_INSTRUCTIONS'); ?> 38 </div> 39 <?php echo LayoutHelper::render('joomla.searchtools.default', ['view' => $this]); ?> 40 <?php if (!$this->data) : ?> 41 <div class="alert alert-info"> 42 <span class="icon-info-circle" aria-hidden="true"></span><span class="visually-hidden"><?php echo Text::_('INFO'); ?></span> 43 <?php echo Text::_('JGLOBAL_NO_MATCHING_RESULTS'); ?> 44 </div> 45 <?php else : ?> 46 <table class="table"> 47 <caption class="visually-hidden"> 48 <?php echo Text::_('COM_CACHE_TABLE_CAPTION'); ?>, 49 <span id="orderedBy"><?php echo Text::_('JGLOBAL_SORTED_BY'); ?> </span>, 50 <span id="filteredBy"><?php echo Text::_('JGLOBAL_FILTERED_BY'); ?></span> 51 </caption> 52 <thead> 53 <tr> 54 <td class="w-1 text-center"> 55 <?php echo HTMLHelper::_('grid.checkall'); ?> 56 </td> 57 <th scope="col" class="title"> 58 <?php echo HTMLHelper::_('searchtools.sort', 'COM_CACHE_GROUP', 'group', $listDirn, $listOrder); ?> 59 </th> 60 <th scope="col" class="w-10 text-center"> 61 <?php echo HTMLHelper::_('searchtools.sort', 'COM_CACHE_NUMBER_OF_FILES', 'count', $listDirn, $listOrder); ?> 62 </th> 63 <th scope="col" class="w-10 text-end"> 64 <?php echo HTMLHelper::_('searchtools.sort', 'COM_CACHE_SIZE', 'size', $listDirn, $listOrder); ?> 65 </th> 66 </tr> 67 </thead> 68 <tbody> 69 <?php $i = 0; ?> 70 <?php foreach ($this->data as $folder => $item) : ?> 71 <tr class="row<?php echo $i % 2; ?>"> 72 <td> 73 <input class="form-check-input cache-entry" type="checkbox" id="cb<?php echo $i; ?>" name="cid[]" value="<?php echo $this->escape($item->group); ?>"> 74 </td> 75 <th scope="row"> 76 <label for="cb<?php echo $i; ?>"> 77 <?php echo $this->escape($item->group); ?> 78 </label> 79 </th> 80 <td class="text-center"> 81 <?php echo $item->count; ?> 82 </td> 83 <td class="text-end"> 84 <?php echo '‎' . HTMLHelper::_('number.bytes', $item->size); ?> 85 </td> 86 </tr> 87 <?php $i++; endforeach; ?> 88 </tbody> 89 </table> 90 91 <?php // Load the pagination. ?> 92 <?php echo $this->pagination->getListFooter(); ?> 93 94 <?php endif; ?> 95 <input type="hidden" name="task" value=""> 96 <input type="hidden" name="boxchecked" value="0"> 97 <?php echo HTMLHelper::_('form.token'); ?> 98 </div> 99 </div> 100 </div> 101 </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 |