ZwiiCMS/core/module/user/view/import/import.php

60 lines
2.1 KiB
PHP
Raw Normal View History

2020-10-04 17:14:15 +02:00
<?php echo template::formOpen('userImportForm'); ?>
<div class="row">
2022-02-18 12:43:48 +01:00
<div class="col1">
<?php echo template::button('userImportBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl() . 'user',
2022-02-18 12:43:48 +01:00
'value' => template::ico('left')
]); ?>
</div>
2022-02-18 12:43:48 +01:00
<div class="col1">
<?php echo template::button('userHelp', [
'href' => 'https://doc.zwiicms.fr/importation-d-une-liste-d-utilisateurs',
'target' => '_blank',
2022-02-18 12:43:48 +01:00
'value' => template::ico('help'),
'class' => 'buttonHelp',
'help' => 'Consulter l\'aide en ligne'
]); ?>
</div>
2022-02-18 12:43:48 +01:00
<div class="col2 offset8">
2020-10-06 15:25:12 +02:00
<?php echo template::submit('userImportSubmit', [
'value' => 'Importer'
]); ?>
2020-10-04 17:14:15 +02:00
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
<h4>Importation de fichier plat CSV</h4>
<div class="row">
2022-02-18 12:43:48 +01:00
<div class="col10">
<?php echo template::file('userImportCSVFile', [
'label' => 'Liste d\'utilisateurs :'
]); ?>
</div>
2020-10-07 19:39:31 +02:00
<div class="col2">
2020-10-05 16:56:30 +02:00
<?php echo template::select('userImportSeparator', $module::$separators, [
'label' => 'Séparateur'
]); ?>
</div>
2020-10-07 19:39:31 +02:00
</div>
<div class="row">
<div class="col12">
<?php echo template::checkbox('userImportNotification', true, 'Envoyer un message de confirmation', [
'checked' => false
]); ?>
</div>
</div>
</div>
</div>
</div>
2020-10-05 16:56:30 +02:00
<?php echo template::formClose(); ?>
2020-12-04 20:51:46 +01:00
<?php if ($module::$users): ?>
2020-10-08 12:49:09 +02:00
<div class="row">
<div class="col12 textAlignCenter">
2020-12-04 20:51:46 +01:00
<?php echo template::table([1, 3, 3, 1, 1, 2, 1], $module::$users, ['Id', 'Nom', 'Prénom','Groupe', 'Pseudo', 'eMail', '']); ?>
2020-12-03 14:10:57 +01:00
<?php echo template::ico('check');?> Compte créé | <?php echo template::ico('mail');?> Compte créé et notifié | <?php echo template::ico('cancel');?> Erreur dans le fichier, compte non créé.
2020-10-08 12:49:09 +02:00
</div>
</div>
2021-06-08 08:17:33 +02:00
<?php endif;?>