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

40 lines
1.5 KiB
PHP
Raw Normal View History

2023-10-04 22:04:18 +02:00
<?php echo template::formOpen('courseUserAddForm'); ?>
<div class="row">
<div class="col1">
<?php echo template::button('courseUserAddBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl() . 'course',
'value' => template::ico('left')
]); ?>
</div>
<div class="col2 offset9">
<?php echo template::submit('courseUserAddSubmit'); ?>
</div>
</div>
2023-11-21 12:46:19 +01:00
<?php echo template::formOpen('courseFilterUserForm'); ?>
<div class="row" id="Bfrtip">
<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',
]); ?>
2023-10-04 22:04:18 +02:00
</div>
2023-11-21 12:46:19 +01:00
<div class="col3">
<?php echo template::select('courseFilterLastName', $module::$alphabet, [
'label' => 'Nom commence par',
'selected' => isset($_POST['courseFilterLastName']) ? $_POST['courseFilterLastName'] : 'all',
]); ?>
</div>
</div>
<?php echo template::formClose(); ?>
<?php if ($module::$courseUsers): ?>
<?php echo '<pre>';var_dump($module::$courseUsers); ?>
<?php else: ?>
<?php echo template::speech('Aucun inscrit'); ?>
<?php endif; ?>