[ 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_installer 6 * 7 * @copyright (C) 2011 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 /** @var \Joomla\CMS\WebAsset\WebAssetManager $wa */ 19 $wa = $this->document->getWebAssetManager(); 20 $wa->useScript('table.columns') 21 ->useScript('multiselect'); 22 23 $listOrder = $this->escape($this->state->get('list.ordering')); 24 $listDirection = $this->escape($this->state->get('list.direction')); 25 26 ?> 27 <div id="installer-database" class="clearfix"> 28 <form action="<?php echo Route::_('index.php?option=com_installer&view=database'); ?>" method="post" name="adminForm" id="adminForm"> 29 <div class="row"> 30 <div class="col-md-12"> 31 <div id="j-main-container" class="j-main-container"> 32 <?php echo LayoutHelper::render('joomla.searchtools.default', array('view' => $this)); ?> 33 <?php if (empty($this->changeSet)) : ?> 34 <div class="alert alert-info"> 35 <span class="icon-info-circle" aria-hidden="true"></span><span class="visually-hidden"><?php echo Text::_('INFO'); ?></span> 36 <?php echo Text::_('JGLOBAL_NO_MATCHING_RESULTS'); ?> 37 </div> 38 <?php else : ?> 39 <table class="table"> 40 <caption class="visually-hidden"> 41 <?php echo Text::_('COM_INSTALLER_DATABASE_TABLE_CAPTION'); ?>, 42 <span id="orderedBy"><?php echo Text::_('JGLOBAL_SORTED_BY'); ?> </span>, 43 <span id="filteredBy"><?php echo Text::_('JGLOBAL_FILTERED_BY'); ?></span> 44 </caption> 45 <thead> 46 <tr> 47 <td class="w-1 text-center"> 48 <?php echo HTMLHelper::_('grid.checkall'); ?> 49 </td> 50 <th scope="col"> 51 <?php echo HTMLHelper::_('searchtools.sort', 'COM_INSTALLER_HEADING_NAME', 'name', $listDirection, $listOrder); ?> 52 </th> 53 <th scope="col" class="w-10 d-none d-md-table-cell"> 54 <?php echo HTMLHelper::_('searchtools.sort', 'COM_INSTALLER_HEADING_LOCATION', 'client_translated', $listDirection, $listOrder); ?> 55 </th> 56 <th scope="col" class="w-10 d-none d-md-table-cell"> 57 <?php echo HTMLHelper::_('searchtools.sort', 'COM_INSTALLER_HEADING_TYPE', 'type_translated', $listDirection, $listOrder); ?> 58 </th> 59 <th scope="col" class="w-10"> 60 <?php echo Text::_('COM_INSTALLER_HEADING_PROBLEMS'); ?> 61 </th> 62 <th scope="col" class="w-10 d-none d-lg-table-cell text-end"> 63 <?php echo Text::_('COM_INSTALLER_HEADING_DATABASE_SCHEMA'); ?> 64 </th> 65 <th scope="col" class="w-10 d-none d-lg-table-cell"> 66 <?php echo Text::_('COM_INSTALLER_HEADING_UPDATE_VERSION'); ?> 67 </th> 68 <th scope="col" class="w-10 d-none d-lg-table-cell"> 69 <?php echo HTMLHelper::_('searchtools.sort', 'COM_INSTALLER_HEADING_FOLDER', 'folder_translated', $listDirection, $listOrder); ?> 70 </th> 71 <th scope="col" class="w-1 d-none d-lg-table-cell"> 72 <?php echo HTMLHelper::_('searchtools.sort', 'COM_INSTALLER_HEADING_ID', 'extension_id', $listDirection, $listOrder); ?> 73 </th> 74 </tr> 75 </thead> 76 <tbody> 77 <?php foreach ($this->changeSet as $i => $item) : ?> 78 <?php $extension = $item['extension']; ?> 79 <?php $manifest = json_decode($extension->manifest_cache); ?> 80 81 <tr class="row<?php echo $i % 2; ?>"> 82 <td class="text-center"> 83 <?php echo HTMLHelper::_('grid.id', $i, $extension->extension_id, false, 'cid', 'cb', $extension->name); ?> 84 </td> 85 <th scope="row"> 86 <?php echo $extension->name; ?> 87 <div class="small"> 88 <?php echo Text::_($manifest->description); ?> 89 </div> 90 </th> 91 <td class="d-none d-md-table-cell"> 92 <?php echo $extension->client_translated; ?> 93 </td> 94 <td class="d-none d-md-table-cell"> 95 <?php echo $extension->type_translated; ?> 96 </td> 97 <td> 98 <span class="badge bg-<?php echo count($item['results']['error']) ? 'danger' : ($item['errorsCount'] ? 'warning text-dark' : 'success'); ?>" tabindex="0"> 99 <?php echo Text::plural('COM_INSTALLER_MSG_DATABASE_ERRORS', $item['errorsCount']); ?> 100 </span> 101 <div role="tooltip" id="tip<?php echo $i; ?>"> 102 <strong><?php echo Text::plural('COM_INSTALLER_MSG_DATABASE_ERRORS', $item['errorsCount']); ?></strong> 103 <ul><li><?php echo implode('</li><li>', $item['errorsMessage']); ?></li></ul> 104 </div> 105 </td> 106 <td class="d-none d-lg-table-cell text-end"> 107 <?php echo $extension->version_id; ?> 108 </td> 109 <td class="d-none d-lg-table-cell"> 110 <?php echo '‎' . $extension->version; ?> 111 </td> 112 <td class="d-none d-lg-table-cell"> 113 <?php echo $extension->folder_translated; ?> 114 </td> 115 <td class="d-none d-lg-table-cell"> 116 <?php echo $extension->extension_id; ?> 117 </td> 118 </tr> 119 <?php endforeach; ?> 120 </tbody> 121 </table> 122 123 <?php // load the pagination. ?> 124 <?php echo $this->pagination->getListFooter(); ?> 125 126 <?php endif; ?> 127 <input type="hidden" name="task" value=""> 128 <input type="hidden" name="boxchecked" value="0"> 129 <?php echo HTMLHelper::_('form.token'); ?> 130 </div> 131 </div> 132 </div> 133 </form> 134 </div>
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 |