Form 2.10 amélioration affichage des données reçues

This commit is contained in:
Fred Tempez 2021-09-15 15:38:52 +02:00
parent baffa9cc16
commit 992576613b
2 changed files with 7 additions and 4 deletions

View File

@ -16,7 +16,7 @@
class form extends common { class form extends common {
const VERSION = '2.9'; const VERSION = '2.10';
const REALNAME = 'Formulaire'; const REALNAME = 'Formulaire';
const DELETE = true; const DELETE = true;
const UPDATE = '0.0'; const UPDATE = '0.0';

View File

@ -18,13 +18,16 @@
<div class="col2"> <div class="col2">
<?php echo template::button('formDataBack', [ <?php echo template::button('formDataBack', [
'href' => helper::baseUrl() . $this->getUrl(0) . '/export2csv' . '/' . $_SESSION['csrf'], 'href' => helper::baseUrl() . $this->getUrl(0) . '/export2csv' . '/' . $_SESSION['csrf'],
'ico' => 'download', 'ico' => 'download',
'value' => 'Export CSV' 'value' => 'Export CSV'
]); ?> ]); ?>
</div> </div>
</div> </div>
<?php echo template::table([11, 1], $module::$data, ['Données', '']); ?> <?php if($module::$data): ?>
<?php echo $module::$pagination; ?> <?php echo template::table([11, 1], $module::$data, ['Données', '']); ?>
<?php else: ?>
<?php echo template::speech('Aucune donnée'); ?>
<?php endif; ?>
<div class="moduleVersion">Version <div class="moduleVersion">Version
<?php echo $module::VERSION; ?> <?php echo $module::VERSION; ?>
</div> </div>