Commit 4e79ab56 authored by Stephane Crozat's avatar Stephane Crozat

Add column api name to CSV file (super-pouvoir)

parent 5b7efec4
......@@ -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 = [['Api','Nom','Prénom','Niveau','Mail','Login'],";
echo "<script>var csvstudents = [['Code','Api','Nom','Prénom','Niveau','Mail','Login'],";
foreach ($students as $s) {
echo "['$s[code]','$s[surname]','$s[firstname]','$s[level]','$s[email]','$s[utclogin]'],";
echo "['$s[code]','$s[name]','$s[surname]','$s[firstname]','$s[level]','$s[email]','$s[utclogin]'],";
}
echo "];</script>";
// Api Menu
......
Markdown is supported
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