Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Stephane Crozat
apisub
Commits
4e79ab56
Commit
4e79ab56
authored
Jun 04, 2019
by
Stephane Crozat
Browse files
Add column api name to CSV file (super-pouvoir)
parent
5b7efec4
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/views.php
View file @
4e79ab56
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment