sid/page/groups.php

72 lines
1.4 KiB
PHP
Raw Normal View History

<?php require('../manager/security.php'); session_init();
/****************************************
* *
* SECTION "GROUPES" *
* *
*****************************************
*
2015-10-22 11:50:56 +00:00
* [1] Présentation (studend + prof)
* [2] Tout les groupes (tous connecté)
* [3] Modifier les groupes (admin)
* [4] Répartir les élèves (admin)
*
*****************************************/
2015-10-22 11:50:56 +00:00
?>
2015-10-22 11:50:56 +00:00
<section name='all' title='tous les groupes'>
<?php if( $_SESSION['username'] != null ){
2015-10-22 21:06:25 +00:00
// on lit la liste d'utilisateurs
$userlistFile = file_get_contents('../src/userlistSample.json');
$userlist = JSON_decode($userlistFile);
echo "<table class='basic'>";
// TITRES
echo '<thead><tr>';
foreach($userlist[0] as $key=>$value)
echo '<th>'.$key.'</th>';
echo '</tr></thead>';
// CONTENU
echo '<tbody>';
foreach($userlist as $eleve){
echo '<tr>';
foreach($eleve as $value)
echo '<td>'.$value.'</td>';
echo '</tr>';
}
echo '</tbody>';
echo '</table>';
2015-10-22 11:50:56 +00:00
} ?>
</section>
2015-10-22 11:50:56 +00:00
<section name='groups' title='Groupes'>
Groupes
</section>
2015-10-22 11:50:56 +00:00
<section name='case' title='Suivi'>
Suivi
</section>
2015-10-22 11:50:56 +00:00
<section name='modules' title='Modules'>
Modules
</section>
2015-10-22 11:50:56 +00:00
<section name='marks' title='Notes'>
Notes
</section>
2015-10-22 11:50:56 +00:00
<section name='settings' title='Paramètres'>
Paramètres
</section>