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

32 lines
1.1 KiB
PHP
Raw Normal View History

2023-09-08 22:09:25 +02:00
<div class="row">
<div class="col1">
2023-10-04 21:05:39 +02:00
<?php echo template::button('courseBack', [
2023-09-08 22:09:25 +02:00
'class' => 'buttonGrey',
2023-11-25 21:44:50 +01:00
'href' => helper::baseUrl(),
'value' => template::ico('home')
2023-09-08 22:09:25 +02:00
]); ?>
</div>
2023-11-25 21:44:50 +01:00
<?php if ($this->getUser('group') === self::GROUP_ADMIN): ?>
2023-10-04 22:04:18 +02:00
<div class="col1 offset9">
2023-10-04 21:05:39 +02:00
<?php echo template::button('courseCategory', [
2023-09-29 04:49:13 +02:00
'href' => helper::baseUrl() . 'course/category',
'value' => template::ico('table'),
2023-11-25 21:44:50 +01:00
'help' => 'Catégories'
2023-09-29 04:49:13 +02:00
]); ?>
</div>
<div class="col1 ">
2023-10-04 21:05:39 +02:00
<?php echo template::button('courseAdd', [
2023-09-08 22:09:25 +02:00
'class' => 'buttonGreen',
'href' => helper::baseUrl() . 'course/add',
2023-12-07 10:40:47 +01:00
'value' => template::ico('plus'),
'help' => 'Ajouter un espace'
2023-09-08 22:09:25 +02:00
]); ?>
</div>
2023-11-25 21:44:50 +01:00
<?php endif; ?>
2023-09-12 22:16:25 +02:00
</div>
2023-09-30 09:18:08 +02:00
<?php if($module::$courses): ?>
2023-10-21 13:55:14 +02:00
<?php echo template::table([2, 2, 2, 3, 1, 1, 1], $module::$courses, ['Titre court', 'Auteur', 'Description', 'Lien direct', '', '', ''], ['id' => 'dataTables']); ?>
2023-09-30 09:18:08 +02:00
<?php else: ?>
2023-12-07 10:40:47 +01:00
<?php echo template::speech('Aucun espace'); ?>
2023-09-30 09:18:08 +02:00
<?php endif; ?>