Deltacms/module/gallery/view/config/config.php

83 lines
2.9 KiB
PHP
Raw Normal View History

2022-03-18 07:50:13 +01:00
<?php
// Lexique
2022-09-11 09:42:42 +02:00
$param = '';
include('./module/gallery/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_gallery.php');
echo template::formOpen('galleryConfigForm'); ?>
2022-01-31 09:10:49 +01:00
<div class="row">
<div class="col2">
<?php echo template::button('galleryConfigBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl() . 'page/edit/' . $this->getUrl(0),
'ico' => 'left',
2022-12-04 08:19:08 +01:00
'value' => $text['gallery_view']['config'][0]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
2022-12-09 09:42:36 +01:00
<div class="col2">
<?php echo template::button('galleryIndexHelp', [
'class' => 'buttonHelp',
'ico' => 'help',
'value' => $text['gallery_view']['config'][10]
]); ?>
</div>
<div class="col2 offset6 <?php if($this->getUser('group') < self::GROUP_MODERATOR) echo 'displayNone'; ?> ">
2022-01-31 09:10:49 +01:00
<?php echo template::button('galleryConfigBack', [
'href' => helper::baseUrl() . $this->getUrl(0) . '/theme/' . $_SESSION['csrf'],
2022-11-09 18:45:36 +01:00
'value' => template::ico('brush','right') . $text['gallery_view']['config'][1],
2022-01-31 09:10:49 +01:00
]); ?>
</div>
</div>
2022-12-09 09:42:36 +01:00
<!-- Aide à propos de la configuration de gallery, view config -->
<div class="helpDisplayContent">
<?php echo file_get_contents( $text['gallery_view']['config'][11]) ;?>
</div>
2022-01-31 09:10:49 +01:00
<div class="row">
<div class="col12">
<div class="block">
2022-12-04 08:19:08 +01:00
<div class="blockTitle"><?php echo $text['gallery_view']['config'][2]; ?></div>
2022-01-31 09:10:49 +01:00
<div class="row">
<div class="col6">
<?php echo template::text('galleryConfigName', [
2022-09-11 09:42:42 +02:00
'label' => $text['gallery_view']['config'][3]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
<div class="col5">
<?php echo template::hidden('galleryConfigDirectoryOld', [
'noDirty' => true // Désactivé à cause des modifications en ajax
]); ?>
<?php echo template::select('galleryConfigDirectory', [], [
2022-09-11 09:42:42 +02:00
'label' => $text['gallery_view']['config'][4],
2022-01-31 09:10:49 +01:00
'noDirty' => true // Désactivé à cause des modifications en ajax
]); ?>
</div>
<div class="col1 verticalAlignBottom">
<?php echo template::submit('galleryConfigSubmit', [
'ico' => '',
'value' => template::ico('plus'),
'class' => 'gallerySubmit'
]); ?>
</div>
</div>
</div>
</div>
</div>
<?php echo template::formClose(); ?>
<div class="row">
<div class="col12">
<div class="block">
2022-12-04 08:19:08 +01:00
<div class="blockTitle"><?php echo $text['gallery_view']['config'][5]; ?></div>
2022-01-31 09:10:49 +01:00
<?php if($module::$galleries): ?>
2022-09-11 09:42:42 +02:00
<?php echo template::table([1, 4, 5, 1, 1], $module::$galleries, ['',$text['gallery_view']['config'][3], $text['gallery_view']['config'][6], '', ''], ['id' => 'galleryTable'],$module::$galleriesId); ?>
2022-01-31 09:10:49 +01:00
<?php echo template::hidden('galleryConfigFilterResponse'); ?>
<?php else: ?>
2022-09-11 09:42:42 +02:00
<?php echo template::speech($text['gallery_view']['config'][7]); ?>
2022-01-31 09:10:49 +01:00
<?php endif; ?>
</div>
2022-03-18 07:50:13 +01:00
<div class="moduleVersion">
2022-09-11 09:42:42 +02:00
<?php echo $text['gallery_view']['config'][8]; echo $module::VERSION; ?>
2022-01-31 09:10:49 +01:00
</div>
</div>
2022-09-11 09:42:42 +02:00
<script>
var textConfirm = <?php echo '"'.$text['gallery_view']['config'][9].'"'; ?>;
</script>