65 lines
1.7 KiB
PHP
65 lines
1.7 KiB
PHP
<?php
|
|
// Lexique
|
|
$text = [];
|
|
$val = $this->getData(['config', 'i18n', 'langAdmin']);
|
|
switch ($val) {
|
|
case 'fr' :
|
|
$text[0] = 'Retour';
|
|
$text[1] = 'Restaurer';
|
|
$text[2] = 'Archive à restaurer';
|
|
$text[3] = 'Sélectionnez une archive au format ZIP';
|
|
$text[4] = 'L\'archive a été déposée dans le gestionnaire de fichiers.';
|
|
$text[5] = 'Préserver les comptes des utilisateurs déjà installés';
|
|
break;
|
|
case 'en' :
|
|
$text[0] = 'Return';
|
|
$text[1] = 'Restore';
|
|
$text[2] = 'Archive to restore';
|
|
$text[3] = 'Select an archive in ZIP format';
|
|
$text[4] = 'The archive has been dropped into the file manager.';
|
|
$text[5] = 'Preserve user accounts already installed';
|
|
break;
|
|
}
|
|
?>
|
|
<?php echo template::formOpen('configRestoreForm'); ?>
|
|
<div class="row">
|
|
<div class="col2">
|
|
<?php echo template::button('configRestoreBack', [
|
|
'class' => 'buttonGrey',
|
|
'href' => helper::baseUrl() . 'config',
|
|
'ico' => 'left',
|
|
'value' => $text[0]
|
|
]); ?>
|
|
</div>
|
|
<div class="col2 offset8">
|
|
<?php echo template::submit('configRestoreSubmit',[
|
|
'value' => $text[1],
|
|
'uniqueSubmission' => true,
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col12">
|
|
<div class="block">
|
|
<h4><?php echo $text[2]; ?></h4>
|
|
<div class="row">
|
|
<div class="col10 offset1">
|
|
<div class="row">
|
|
<?php echo template::file('configRestoreImportFile', [
|
|
'label' => $text[3],
|
|
'type' => 2,
|
|
'help' => $text[4]
|
|
]); ?>
|
|
</div>
|
|
<div class="row">
|
|
<?php echo template::checkbox('configRestoreImportUser', true, $text[5], [
|
|
'checked' => true
|
|
]); ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php echo template::formClose(); ?>
|