Commit 88d30d7e authored by Stephane Crozat's avatar Stephane Crozat
Browse files

Add column week to CSV file (super-pouvoir)

parent 4e79ab56
......@@ -224,7 +224,7 @@ class DB {
$sql = 'SELECT *
FROM vsubscription
WHERE validation
ORDER BY code, surname, firstname';
ORDER BY week, code, surname, firstname';
$st = $this->conn->prepare($sql);
$res = $st->fetchAll(PDO::FETCH_ASSOC);
......@@ -242,9 +242,9 @@ class Views {
// Student list
echo '<h3>Liste des inscrits</h3>';
echo '<script src="js/main.js"></script>';
echo "<script>var csvstudents = [['Code','Api','Nom','Prénom','Niveau','Mail','Login'],";
echo "<script>var csvstudents = [['Semaine','Code','Api','Nom','Prénom','Niveau','Mail','Login'],";
foreach ($students as $s) {
echo "['$s[code]','$s[name]','$s[surname]','$s[firstname]','$s[level]','$s[email]','$s[utclogin]'],";
echo "['$s[week]','$s[code]','$s[name]','$s[surname]','$s[firstname]','$s[level]','$s[email]','$s[utclogin]'],";
echo "];</script>";
// Api Menu
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment