Deltacms/core/module/install/view/update/update.php

61 lines
2.3 KiB
PHP

<?php
// Lexique
$text = [];
$val = $this->getData(['config', 'i18n', 'langAdmin']);
switch ($val) {
case 'fr' :
$text[0] = 'Mise à jour de Deltacms ';
$text[1] = ' vers Deltacms ';
$text[2] = 'Afin d\'assurer le bon fonctionnement de Deltacms, veuillez ne pas fermer cette page avant la fin de l\'opération.';
$text[3] = '1/4 : Préparation...';
$text[4] = '2/4 : Téléchargement...';
$text[5] = '3/4 : Installation...';
$text[6] = '4/4 : Configuration...';
$text[7] = 'Une erreur est survenue lors de l\'étape';
$text[8] = 'Mise à jour terminée avec succès.';
$text[9] = 'Terminer';
break;
case 'en' :
$text[0] = 'Updating Deltacms ';
$text[1] = ' to Deltacms ';
$text[2] = 'To ensure the proper functioning of Deltacms, please do not close this page until the operation is complete.';
$text[3] = '1/4: Preparation...';
$text[4] = '2/4 : Download...';
$text[5] = '3/4 : Installation...';
$text[6] = '4/4 : Configuration...';
$text[7] = 'An error occurred in the step';
$text[8] = 'Update successfully completed.';
$text[9] = 'Finish';
break;
}
?>
<p><strong><?php echo $text[0] . self::DELTA_VERSION . $text[1] . $module::$newVersion; ?>.</strong></p>
<p><?php echo $text[2]; ?></p>
<div class="row">
<div class="col9 verticalAlignMiddle">
<div id="installUpdateProgress">
<?php echo template::ico('spin', '', true); ?>
<span class="installUpdateProgressText" data-id="1"><?php echo $text[3]; ?></span>
<span class="installUpdateProgressText displayNone" data-id="2"><?php echo $text[4]; ?></span>
<span class="installUpdateProgressText displayNone" data-id="3"><?php echo $text[5]; ?></span>
<span class="installUpdateProgressText displayNone" data-id="4"><?php echo $text[6]; ?></span>
</div>
<div id="installUpdateError" class="colorRed displayNone">
<?php echo template::ico('cancel', ''); ?>
<?php echo $text[7]; ?> <span id="installUpdateErrorStep"></span>.
</div>
<div id="installUpdateSuccess" class="colorGreen displayNone">
<?php echo template::ico('check', ''); ?>
<?php echo $text[8]; ?>
</div>
</div>
<div class="col3 verticalAlignMiddle">
<?php echo template::button('installUpdateEnd', [
'value' => $text[9],
'href' => helper::baseUrl() . 'config',
'ico' => 'check',
'class' => 'disabled'
]); ?>
</div>
</div>