Commit 85339d9f authored by Stephane Crozat's avatar Stephane Crozat
Browse files

Change code by normcode in CSV file (super-pouvoir)

parent 88d30d7e
...@@ -226,8 +226,6 @@ class Views { ...@@ -226,8 +226,6 @@ class Views {
public function adminFunction ($utclogin, $mailresp, $students) { public function adminFunction ($utclogin, $mailresp, $students) {
echo '<h2>Super-pouvoirs</h2>'; echo '<h2>Super-pouvoirs</h2>';
echo "<p>Je suis en train d'ajouter des super-pouvoirs à $utclogin...</p>";
// Resp Emails // Resp Emails
echo '<h3>Mails aux reponsables d\'Api</h3>'; echo '<h3>Mails aux reponsables d\'Api</h3>';
echo '<div>'; echo '<div>';
...@@ -238,13 +236,12 @@ class Views { ...@@ -238,13 +236,12 @@ class Views {
} }
echo "<b><a href='mailto:$all'>[all]</a></b>"; echo "<b><a href='mailto:$all'>[all]</a></b>";
echo '</div>'; echo '</div>';
// Student list // Student list
echo '<h3>Liste des inscrits</h3>'; echo '<h3>Liste des inscrits</h3>';
echo '<script src="js/main.js"></script>'; echo '<script src="js/main.js"></script>';
echo "<script>var csvstudents = [['Semaine','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) { foreach ($students as $s) {
echo "['$s[week]','$s[code]','$s[name]','$s[surname]','$s[firstname]','$s[level]','$s[email]','$s[utclogin]'],"; echo "['$s[week]','$s[normcode]','$s[name]','$s[surname]','$s[firstname]','$s[level]','$s[email]','$s[utclogin]'],";
} }
echo "];</script>"; echo "];</script>";
// Api Menu // 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