ZwiiCMS/core/module/plugin/view/index/index.php

105 lines
3.2 KiB
PHP
Raw Normal View History

2021-06-05 16:40:16 +02:00
<div class="row">
2022-01-20 13:28:33 +01:00
<div class="col1">
2021-06-05 16:40:16 +02:00
<?php echo template::button('configModulesBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl(),
2022-01-20 13:28:33 +01:00
'value' => template::ico('left')
2021-06-05 16:40:16 +02:00
]); ?>
2021-02-16 18:46:58 +01:00
</div>
2022-01-20 13:28:33 +01:00
<div class="col1">
2021-11-04 19:12:27 +01:00
<?php echo template::button('configModulesHelp', [
2022-01-31 14:24:45 +01:00
'href' => 'https://doc.zwiicms.fr/gestion-des-modules',
2021-11-04 19:12:27 +01:00
'target' => '_blank',
2022-01-20 13:28:33 +01:00
'value' => template::ico('help'),
2022-01-20 15:40:56 +01:00
'class' => 'buttonHelp',
'help' => 'Consulter l\'aide en ligne'
2021-06-05 16:40:16 +02:00
]); ?>
</div>
2022-01-31 14:24:45 +01:00
</div>
2022-02-02 17:04:44 +01:00
<div class="row">
2022-02-03 12:16:01 +01:00
<div class="col12">
<div class="row textAlignCenter">
<div class="col3">
<?php echo template::button('configManageModuleButton', [
'value' => 'Modules installés',
'class' => 'activeButton'
]); ?>
</div>
<div class="col3">
<?php echo template::button('configManageDatasButton', [
'value' => 'Données des modules'
]); ?>
</div>
</div>
</div>
</div>
<div id="manageModules">
2022-02-04 08:45:58 +01:00
<div class="row">
<div class="col12">
<div class="block">
<h4>Installation / mise à jour d'un module</h4>
<div class="row textAlignCenter">
<div class="col4">
<?php echo template::button('configModulesStore', [
'href' => helper::baseUrl() . 'plugin/store',
'value' => template::ico('shopping-basket') . ' Catalogue en ligne'
]); ?>
</div>
<div class="col4">
<?php echo template::button('configStoreUpload', [
'href' => helper::baseUrl() . 'plugin/upload',
'value' => template::ico('upload') . ' Depuis une archive ZIP'
]); ?>
</div>
</div>
</div>
</div>
</div>
2022-02-03 12:16:01 +01:00
<?php if($module::$modulesInstalled): ?>
<div class="row">
<div class="col12">
<div class="block">
<h4>Sauvegarde des modules installés</h4>
<?php echo template::table([2, 2, 1, 5, 1, 1], $module::$modulesInstalled, [ 'Modules', 'moduleId', 'Versions', '', '', '']); ?>
</div>
2022-02-02 17:04:44 +01:00
</div>
</div>
2022-02-03 12:16:01 +01:00
<?php else: ?>
<?php echo template::speech('Aucun module installé.'); ?>
<?php endif; ?>
<?php if($module::$modulesOrphan): ?>
<div class="row">
<div class="col12">
<div class="block">
<h4>Désinstallation des modules orphelins</h4>
<?php echo template::table([2, 2, 1, 6, 1], $module::$modulesOrphan, [ 'Modules', 'moduleId', 'Versions', '', '']); ?>
</div>
2022-02-03 09:47:52 +01:00
</div>
</div>
2022-02-03 12:16:01 +01:00
<?php endif; ?>
2022-02-03 09:47:52 +01:00
</div>
2022-02-03 12:16:01 +01:00
<div id="manageDatas" class="displayNone">
<?php if($module::$modulesData): ?>
<div class="row">
<div class="col12">
<div class="block">
2022-02-04 08:45:58 +01:00
<h4>Modules configurés <?php echo template::flag( self::$i18n, '20px'); ?> </h4>
2022-02-03 12:16:01 +01:00
<div class="row">
<div class="col1 offset11">
<?php echo template::button('configModuledataImport', [
'href' => helper::baseUrl() . 'plugin/dataImport',
'value' => template::ico('upload'),
"help" => 'Importer des données de module dans une page libre'
]); ?>
</div>
2022-02-02 17:04:44 +01:00
</div>
2022-02-03 12:16:01 +01:00
<div class="row">
<div class="col12">
2022-02-04 08:45:58 +01:00
<?php echo template::table([2, 2, 1, 5, 1, 1], $module::$modulesData, [ 'Modules', 'moduleId', 'Versions', 'Pages (pageId)', '', '']); ?>
2022-02-03 12:16:01 +01:00
</div>
2022-02-02 17:04:44 +01:00
</div>
</div>
</div>
</div>
2022-02-03 12:16:01 +01:00
<?php endif; ?>
</div>