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

84 lines
2.8 KiB
PHP
Raw Normal View History

2020-05-07 08:36:24 +02:00
<?php echo template::formOpen('configManageForm'); ?>
<div class="row">
<div class="col2">
2020-05-07 16:51:24 +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">
<?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">
2020-05-07 16:51:24 +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">
<?php echo template::file('configManageImportFile', [
'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">
<?php echo template::checkbox('configManageImportUser', true, 'Préserver les comptes des utilisateurs déjà installés', [
'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">
2020-05-08 16:22:29 +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
}
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,
2020-05-07 16:51:24 +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">
2020-05-07 08:36:24 +02:00
<?php echo template::text('configManageCurrentURL', [
'label' => 'Dossier du site actuel',
'value' => helper::baseUrl(false,false),
'readonly' => true,
2020-05-07 16:51:24 +02:00
'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">
2020-05-07 08:36:24 +02:00
<?php echo template::button('configManageUpdateBaseURLButton', [
'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(); ?>