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

61 lines
2.4 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-09-29 08:45:59 +02: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'
2022-09-28 14:18:05 +02:00
]);*/ ?>
2022-09-29 08:45:59 +02:00
</div>
2022-02-18 12:43:48 +01:00
<div class="col2 offset8">
2022-09-29 08:45:59 +02:00
<?php echo template::submit('userImportSubmit', [
'value' => 'Importer'
]); ?>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
2022-10-03 18:37:25 +02:00
<h4><?php echo helper::translate('Importation de fichier plat CSV'); ?>
2022-09-14 22:54:46 +02:00
</h4>
<div class="row">
2022-02-18 12:43:48 +01:00
<div class="col10">
2022-09-29 08:45:59 +02:00
<?php echo template::file('userImportCSVFile', [
'language' => $this->getData(['user', $this->getUser('id'), 'language']),
2022-09-29 08:45:59 +02:00
'label' => 'Liste d\'utilisateurs :'
]); ?>
</div>
2020-10-07 19:39:31 +02:00
<div class="col2">
2022-09-29 08:45:59 +02:00
<?php echo template::select('userImportSeparator', $module::$separators, [
'label' => 'Séparateur'
]); ?>
2020-10-05 16:56:30 +02:00
</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', [
2022-09-29 08:45:59 +02:00
'checked' => false
]); ?>
2020-10-07 19:39:31 +02:00
</div>
</div>
</div>
</div>
</div>
2020-10-05 16:56:30 +02:00
<?php echo template::formClose(); ?>
2022-09-29 08:45:59 +02:00
<?php if ($module::$users) : ?>
2020-10-08 12:49:09 +02:00
<div class="row">
<div class="col12 textAlignCenter">
2022-09-29 08:45:59 +02:00
<?php echo template::table([1, 3, 3, 1, 1, 2, 1], $module::$users, ['Id', 'Nom', 'Prénom', 'Groupe', 'Pseudo', 'eMail', '']); ?>
<?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>
2022-09-29 08:45:59 +02:00
<?php endif; ?>