Fixing CSV report see BT#8490

1.9.x
Julio Montoya 11 years ago
parent 28864e64a2
commit 1759dab8cb
  1. 20
      main/mySpace/myStudents.php

@ -871,7 +871,8 @@ if (empty($_GET['details'])) {
$csv_content[] = array();
$csv_content[] = array(
get_lang('Exercices'),
get_lang('Score'),
get_lang('LearningPath'),
get_lang('AvgCourseScore'),
get_lang('Attempts')
);
@ -898,11 +899,6 @@ if (empty($_GET['details'])) {
$lp_name = '-';
}
$lp_name = !empty($lp_name) ? $lp_name : get_lang('NoLearnpath');
$csv_content[] = array (
$exercices['title'],
$score_percentage . '%',
$count_attempts
);
if ($i % 2) {
$css_class = 'row_odd';
@ -956,6 +952,14 @@ if (empty($_GET['details'])) {
$data_exercices[$i][] = $exercices['title'];
$data_exercices[$i][] = $score_percentage . '%';
$data_exercices[$i][] = $count_attempts;
$csv_content[] = array (
$exercices['title'],
$lp_name,
$score_percentage,
$count_attempts
);
$i++;
}
@ -1020,6 +1024,10 @@ if (empty($_GET['details'])) {
$documents = Tracking::count_student_downloaded_documents($student_id, $course_code, $session_id);
$uploaded_documents = Tracking::count_student_uploaded_documents($student_id, $course_code, $session_id);
$csv_content[] = array(
get_lang('OtherTools')
);
$csv_content[] = array(
get_lang('Student_publication'),
$nb_assignments

Loading…
Cancel
Save