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

59 lines
2.5 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/' . $this->getUrl(2),
2023-10-04 22:04:18 +02:00
'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-23 18:42:08 +01:00
'value' => template::ico('users'),
'help' => 'Désinscrire en masse',
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'),
2023-11-23 18:42:08 +01:00
'help' => 'Inscription en masse',
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): ?>
<?php echo template::table([3, 4, 1, 1, 1, 1, 1], $module::$courseUsers, ['Nom Prénom', 'Dernière page vue', 'Date' , 'Heure', 'Étiquettes', 'Progression', ''], ['id' => 'dataTables']); ?>
2023-10-04 22:04:18 +02:00
<?php else: ?>
2023-12-03 19:57:28 +01:00
<?php echo template::speech('Aucun participant'); ?>
2023-10-04 22:04:18 +02:00
<?php endif; ?>