ZwiiCampus/core/module/course/view/users/users.php

59 lines
2.4 KiB
PHP
Raw Normal View History

2023-10-04 22:04:18 +02:00
<div class="row">
<div class="col1">
<?php echo template::button('courseUserBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl() . 'course',
'value' => template::ico('left')
]); ?>
</div>
2023-11-21 12:46:19 +01:00
<div class="col1 offset8">
2023-11-10 08:59:07 +01:00
<?php echo template::button('userDeleteAll', [
2023-11-10 17:59:16 +01:00
'href' => helper::baseUrl() . 'course/usersHistoryExport/' . $this->getUrl(2),
2023-11-10 08:59:07 +01:00
'value' => template::ico('download'),
'help' => 'Exporter',
2023-11-10 17:59:16 +01:00
]) ?>
2023-11-10 08:59:07 +01:00
</div>
<div class="col1">
2023-10-08 14:46:44 +02:00
<?php echo template::button('userDeleteAll', [
'class' => 'userDeleteAll buttonRed',
2023-11-21 19:42:46 +01:00
'href' => helper::baseUrl() . 'course/usersDelete/' . $this->getUrl(2),
2023-11-10 08:59:07 +01:00
'value' => template::ico('trash'),
2023-10-09 17:24:04 +02:00
'help' => 'Désinscrire tous les utilisateurs',
2023-11-10 17:59:16 +01:00
])?>
2023-10-04 22:04:18 +02:00
</div>
2023-11-21 12:46:19 +01:00
<div class="col1">
<?php echo template::button('userDeleteAll', [
'class' => 'buttonGreen',
2023-11-21 19:42:46 +01:00
'href' => helper::baseUrl() . 'course/usersAdd/' . $this->getUrl(2),
2023-11-23 15:08:19 +01:00
'value' => template::ico('users'),
'help' => 'Inscription',
2023-11-21 12:46:19 +01:00
]) ?>
</div>
2023-10-04 22:04:18 +02:00
</div>
2023-10-09 13:47:11 +02:00
<?php echo template::formOpen('courseFilterUserForm'); ?>
<div class="row" id="Bfrtip">
2023-10-15 14:53:20 +02:00
<div class="col3">
<?php echo template::select('courseFilterGroup', $module::$courseGroups, [
'label' => 'Groupes / Profils',
'selected' => isset($_POST['courseFilterGroup']) ? $_POST['courseFilterGroup'] : 'all',
]); ?>
</div>
<div class="col3">
<?php echo template::select('courseFilterFirstName', $module::$alphabet, [
'label' => 'Prénom commence par',
'selected' => isset($_POST['courseFilterFirstName']) ? $_POST['courseFilterFirstName'] : 'all',
]); ?>
</div>
<div class="col3">
<?php echo template::select('courseFilterLastName', $module::$alphabet, [
'label' => 'Nom commence par',
'selected' => isset($_POST['courseFilterLastName']) ? $_POST['courseFilterLastName'] : 'all',
]); ?>
2023-10-09 13:47:11 +02:00
</div>
</div>
<?php echo template::formClose(); ?>
2023-10-08 14:46:44 +02:00
<?php if ($module::$courseUsers): ?>
2023-10-21 13:55:14 +02:00
<?php echo template::table([2, 3, 3, 2, 1, 1], $module::$courseUsers, ['Id', 'Nom Prénom', 'Dernière page vue', 'Date - Heure', 'Progression', ''], ['id' => 'dataTables']); ?>
2023-10-04 22:04:18 +02:00
<?php else: ?>
2023-10-08 14:46:44 +02:00
<?php echo template::speech('Aucun inscrit'); ?>
2023-10-04 22:04:18 +02:00
<?php endif; ?>