CoreFiles by mySites.guru
default.php136 lines, 6,074 bytes, from Joomla_4.0.0-alpha8-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha7
md5
feee0d0e6c2113bfd851fc1b30c7e63b
sha1
4ac3ecfcf8450a7119d4f91f58d820278b95a79b
sha256
fbe019ff2e2381aa15631ce8693b3135659bb5ce175baeedded14e38102a2071
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_installer
 *
 * @copyright   Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Layout\LayoutHelper;
use Joomla\CMS\Router\Route;

HTMLHelper::_('behavior.multiselect');
HTMLHelper::_('bootstrap.popover');

$listOrder     = $this->escape($this->state->get('list.ordering'));
$listDirection = $this->escape($this->state->get('list.direction'));

?>
<div id="installer-database" class="clearfix">
	<form action="<?php echo Route::_('index.php?option=com_installer&view=database'); ?>" method="post" name="adminForm" id="adminForm">
		<div class="row">
			<div class="col-md-12">
				<div id="j-main-container" class="j-main-container">
					<div class="control-group">
						<?php echo LayoutHelper::render('joomla.searchtools.default', array('view' => $this)); ?>
						<?php if (empty($this->changeSet)) : ?>
							<div class="alert alert-warning">
								<?php echo Text::_('JGLOBAL_NO_MATCHING_RESULTS'); ?>
							</div>
						<?php else : ?>
							<table class="table">
								<caption id="captionTable" class="sr-only">
									<?php echo Text::_('COM_INSTALLER_DATABASE_TABLE_CAPTION'); ?>, <?php echo Text::_('JGLOBAL_SORTED_BY'); ?>
								</caption>
								<thead>
									<tr>
										<td class="text-center" style="width:1%">
											<?php echo HTMLHelper::_('grid.checkall'); ?>
										</td>
										<th scope="col">
											<?php echo HTMLHelper::_('searchtools.sort', 'COM_INSTALLER_HEADING_NAME', 'name', $listDirection, $listOrder); ?>
										</th>
										<th scope="col" style="width:10%">
											<?php echo HTMLHelper::_('searchtools.sort', 'COM_INSTALLER_HEADING_LOCATION', 'client_translated', $listDirection, $listOrder); ?>
										</th>
										<th scope="col" style="width:10%">
											<?php echo HTMLHelper::_('searchtools.sort', 'COM_INSTALLER_HEADING_TYPE', 'type_translated', $listDirection, $listOrder); ?>
										</th>
										<th scope="col" class="d-none d-md-table-cell" style="width:10%">
											<?php echo Text::_('COM_INSTALLER_HEADING_PROBLEMS'); ?>
										</th>
										<th scope="col" class="d-none d-md-table-cell text-right" style="width:10%">
											<span class="hasPopover" data-original-title="<?php echo Text::_('COM_INSTALLER_HEADING_DATABASE_SCHEMA'); ?>"
											    data-content="<?php echo Text::_('COM_INSTALLER_HEADING_DATABASE_SCHEMA_DESC'); ?>" data-placement="top">
												<?php echo Text::_('COM_INSTALLER_HEADING_DATABASE_SCHEMA'); ?>
											</span>
										</th>
										<th scope="col" class="d-none d-md-table-cell" style="width:10%">
											<span class="hasPopover" data-original-title="<?php echo Text::_('COM_INSTALLER_HEADING_UPDATE_VERSION'); ?>"
											    data-content="<?php echo Text::_('COM_INSTALLER_HEADING_UPDATE_VERSION_DESC'); ?>" data-placement="top">
												<?php echo Text::_('COM_INSTALLER_HEADING_UPDATE_VERSION'); ?>
											</span>
										</th>
										<th scope="col" class="d-none d-md-table-cell" style="width:10%">
											<?php echo HTMLHelper::_('searchtools.sort', 'COM_INSTALLER_HEADING_FOLDER', 'folder_translated', $listDirection, $listOrder); ?>
										</th>
										<th scope="col" class="d-none d-md-table-cell" style="width:1%">
											<?php echo HTMLHelper::_('searchtools.sort', 'COM_INSTALLER_HEADING_ID', 'extension_id', $listDirection, $listOrder); ?>
										</th>
									</tr>
								</thead>
								<tbody>
									<?php foreach ($this->changeSet as $i => $item) : ?>
										<?php $extension = $item['extension']; ?>
										<?php $manifest = json_decode($extension->manifest_cache); ?>

										<tr>
											<td class="text-center">
												<?php echo HTMLHelper::_('grid.id', $i, $extension->extension_id); ?>
											</td>
											<th scope="row">
												<label for="cb<?php echo $i; ?>">
													<span class="hasPopover" data-original-title="<?php echo $extension->name; ?>"
														data-content="<?php echo Text::_($manifest->description) ?: Text::_('COM_INSTALLER_MSG_UPDATE_NODESC'); ?>">
														<?php echo $extension->name; ?>
													</span>
												</label>
											</th>
											<td>
												<?php echo $extension->client_translated; ?>
											</td>
											<td>
												<?php echo $extension->type_translated; ?>
											</td>
											<td class="d-none d-md-table-cell">
												<span class="badge badge-<?php echo count($item['results']['error']) ? 'danger' : ($item['errorsCount'] ? 'warning' : 'success'); ?> hasPopover"
													data-content="<ul><li><?php echo implode('</li><li>', $item['errorsMessage']); ?></li></ul>"
													data-original-title="<?php echo Text::plural('COM_INSTALLER_MSG_DATABASE_ERRORS', $item['errorsCount']); ?>">
													<?php echo Text::plural('COM_INSTALLER_MSG_DATABASE_ERRORS', $item['errorsCount']); ?>
												</span>
											</td>
											<td class="d-none d-md-table-cell text-right">
												<?php echo $extension->version_id; ?>
											</td>
											<td class="d-none d-md-table-cell">
												<?php echo '&#x200E;' . $extension->version; ?>
											</td>
											<td class="d-none d-md-table-cell">
												<?php echo $extension->folder_translated; ?>
											</td>
											<td class="d-none d-md-table-cell">
												<?php echo $extension->extension_id; ?>
											</td>
										</tr>
									<?php endforeach; ?>
								</tbody>
							</table>

							<?php // load the pagination. ?>
							<?php echo $this->pagination->getListFooter(); ?>

						<?php endif; ?>
					</div>
					<input type="hidden" name="task" value="">
					<input type="hidden" name="boxchecked" value="0">
					<?php echo HTMLHelper::_('form.token'); ?>
				</div>
			</div>
		</div>
	</form>
</div>

No other release has this exact content. See every version of this file.