ZwiiCampus/core/module/course/view/index/index.php
2023-11-15 18:06:49 +01:00

29 lines
1014 B
PHP

<div class="row">
<div class="col1">
<?php echo template::button('courseBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl() . $this->getUrl(2),
'value' => template::ico('left')
]); ?>
</div>
<div class="col1 offset9">
<?php echo template::button('courseCategory', [
'href' => helper::baseUrl() . 'course/category',
'value' => template::ico('table'),
'help' => 'Catégories de contenu'
]); ?>
</div>
<div class="col1 ">
<?php echo template::button('courseAdd', [
'class' => 'buttonGreen',
'href' => helper::baseUrl() . 'course/add',
'value' => template::ico('plus')
]); ?>
</div>
</div>
<?php if($module::$courses): ?>
<?php echo template::table([2, 2, 2, 3, 1, 1, 1], $module::$courses, ['Titre court', 'Auteur', 'Description', 'Lien direct', '', '', ''], ['id' => 'dataTables']); ?>
<?php else: ?>
<?php echo template::speech('Aucun Contenu'); ?>
<?php endif; ?>