ZwiiCMS/core/module/config/view/manage/manage.php

84 lines
2.8 KiB
PHP
Raw Normal View History

2021-05-20 21:52:09 +02:00
<?php echo template::formOpen('configManageForm'); ?>
2020-05-07 08:36:24 +02:00
<div class="row">
<div class="col2">
2021-05-20 21:52:09 +02:00
<?php echo template::button('configManageBack', [
2020-05-07 08:36:24 +02:00
'class' => 'buttonGrey',
2020-11-21 15:26:41 +01:00
'href' => helper::baseUrl() . 'config/advanced',
2020-05-07 08:36:24 +02:00
'ico' => 'left',
'value' => 'Retour'
]); ?>
</div>
2020-05-07 16:51:24 +02:00
<div class="col2 offset8">
2021-05-20 21:52:09 +02:00
<?php echo template::submit('configManageSubmit',[
'value' => 'Restaurer'
]); ?>
</div>
2020-05-07 08:36:24 +02:00
</div>
<div class="row">
<div class="col12">
<div class="block">
2021-05-20 21:52:09 +02:00
<h4>Paramètres</h4>
2020-05-07 08:36:24 +02:00
<div class="row">
2020-05-07 16:51:24 +02:00
<div class="col10 offset1">
2020-05-07 08:45:46 +02:00
<div class="row">
2021-05-20 21:52:09 +02:00
<?php echo template::file('configManageImportFile', [
2020-05-07 08:45:46 +02:00
'label' => 'Sélectionnez une archive au format ZIP',
'type' => 2,
'help' => 'L\'archive a été déposée dans le gestionnaire de fichiers. Les archives inférieures à la version 9 ne sont pas acceptées.'
2020-05-07 08:45:46 +02:00
]); ?>
</div>
<div class="row">
2021-05-20 21:52:09 +02:00
<?php echo template::checkbox('configManageImportUser', true, 'Préserver les comptes des utilisateurs déjà installés', [
2020-05-07 08:45:46 +02:00
'checked' => true
]); ?>
</div>
2020-05-07 08:45:46 +02:00
</div>
</div>
</div>
</div>
2020-05-07 08:36:24 +02:00
</div>
<div class="row">
<div class="col12">
<div class="block">
2021-05-20 21:52:09 +02:00
<h4>Conversion des URL <?php echo template::help('Conversion des URL des ressources multimédia après le transfert d\'une archive entre deux sites aux adresses différentes.');?></h4>
2020-05-07 08:36:24 +02:00
<div class="row">
2020-05-07 16:51:24 +02:00
<div class="col4 offset1">
<?php
2020-05-07 08:36:24 +02:00
if (is_null($this->getData(['core', 'baseUrl'])) ) {
$baseUrlValue = 'Pas de donnée dans la sauvegarde';
$buttonClass = 'disabled';
2020-05-07 08:36:24 +02:00
} elseif ($this->getData(['core', 'baseUrl']) === '') {
$baseUrlValue = '/';
2020-05-07 08:45:46 +02:00
$buttonClass = helper::baseUrl(false,false) !== $this->getData(['core', 'baseUrl']) ? '' : 'disabled';
2020-05-07 08:36:24 +02:00
} else {
2020-05-07 08:45:46 +02:00
$baseUrlValue = str_replace('?','',$this->getData(['core', 'baseUrl']));
$buttonClass = helper::baseUrl(false,false) !== $baseUrlValue ? '' : 'disabled';
2020-05-07 08:36:24 +02:00
}
2021-05-20 21:52:09 +02:00
echo template::text('configManageBaseURLToConvert', [
2020-05-07 08:45:46 +02:00
'label' => 'Dossier de l\'archive' ,
2020-05-07 08:36:24 +02:00
'value' => $baseUrlValue,
'readonly' => true,
2021-05-20 21:52:09 +02:00
'help' => 'Dossier de base du site stockée dans la sauvegarde.'
2020-05-07 08:36:24 +02:00
]); ?>
</div>
2020-05-07 16:51:24 +02:00
<div class="col4">
2021-05-20 21:52:09 +02:00
<?php echo template::text('configManageCurrentURL', [
2020-05-07 08:36:24 +02:00
'label' => 'Dossier du site actuel',
'value' => helper::baseUrl(false,false),
2021-05-20 21:52:09 +02:00
'readonly' => true,
'help' => 'Dossier du base site actuel.'
2020-05-07 08:36:24 +02:00
]); ?>
</div>
2020-05-07 16:51:24 +02:00
<div class="col2 verticalAlignMiddle">
2021-05-20 21:52:09 +02:00
<?php echo template::button('configManageUpdateBaseURLButton', [
2020-05-07 08:36:24 +02:00
'href' => helper::baseUrl() . 'config/updateBaseUrl',
'class' => $buttonClass,
'value' => 'convertir'
]); ?>
</div>
2020-05-07 08:36:24 +02:00
</div>
</div>
</div>
</div>
<?php echo template::formClose(); ?>