sid/page/groups.php

145 lines
2.2 KiB
PHP
Executable File

<?php require('../manager/security.php'); session_init();
/****************************************
* *
* SECTION "GROUPES" *
* *
*****************************************
*
* [1] Mon Groupe (studend + prof)
* [2] Tout les groupes (tous connecté)
* [3] Modifier les groupes (admin)
* [4] Répartir les élèves (admin)
*
*****************************************/
/* [1] Mon Groupe (eleve)
============================================*/
if( $_SESSION['permissions'] == 'student' ){ ?>
<hgroup class='active'>Mon Groupe</hgroup>
<section>
<table>
<thead>
<tr>
<th>Nom</th>
<th>Prénom</th>
<th>Blablabla</th>
</tr>
</thead>
<tbody>
<tr>
<td>001</td>
<td>002</td>
<td>003</td>
</tr>
<tr>
<td>001</td>
<td>002</td>
<td>003</td>
</tr>
<tr>
<td>001</td>
<td>002</td>
<td>003</td>
</tr>
<tr>
<td>001</td>
<td>002</td>
<td>003</td>
</tr>
<tr>
<td>001</td>
<td>002</td>
<td>003</td>
</tr>
<tr>
<td>001</td>
<td>002</td>
<td>003</td>
</tr>
<tr>
<td>001</td>
<td>002</td>
<td>003</td>
</tr>
<tr>
<td>001</td>
<td>002</td>
<td>003</td>
</tr>
<tr>
<td>001</td>
<td>002</td>
<td>003</td>
</tr>
<tr>
<td>001</td>
<td>002</td>
<td>003</td>
</tr>
</tbody>
</table>
</section>
<?php } ?>
<?php if( $_SESSION['permissions'] == 'teacher' ){ ?>
<hgroup class='active'>Mes Groupe</hgroup>
<section>
<table>
<thead>
<tr>
<th>Nom du groupe</th>
<th>Nombre d'élèves</th>
<th>Nombre de modules</th>
</tr>
</thead>
<tbody>
<tr>
<td>A</td>
<td>30</td>
<td>2</td>
</tr>
<tr>
<td>B</td>
<td>28</td>
<td>3</td>
</tr>
<tr>
<td>D</td>
<td>32</td>
<td>1</td>
</tr>
<tr>
<td>F</td>
<td>21</td>
<td>2</td>
</tr>
</tbody>
</table>
</section>
<?php } ?>
<hgroup>Tout les groupes</hgroup>
<section>
Tout les groupes<br/>
bla<br/>
bla<br/>
</section>
<hgroup>Mon Groupe 2</hgroup>
<section>
Mon Groupe 2<br/>
bla<br/>
bla<br/>
</section>