'.get_lang('TeacherInterface').''; } } } if($isCoach) { if($nb_teacher_courses==0 && !api_is_platform_admin()) { $view = 'coach'; } if($view=='coach') { $menu_items[] = get_lang('CoachInterface'); $title = get_lang('YourStatistics'); } else { $menu_items[] = ''.get_lang('CoachInterface').''; } } if(api_is_platform_admin()) { if(!$isCoach && $nb_teacher_courses==0) { $view = 'admin'; } if($view=='admin') { $menu_items[] = get_lang('AdminInterface'); $title = get_lang('CoachList'); } else { $menu_items[] = ''.get_lang('AdminInterface').''; } } if($_user['status']==DRH) { $view = 'drh'; $title = get_lang('DrhInterface'); $menu_items[] = ''.get_lang('DrhInterface').''; } echo '
'.get_lang('Print').' ';
echo (isset($_GET['display']) && $_GET['display'] == 'useroverview')? '' : '
'.get_lang('ExportAsCSV').'';
echo '
'.get_lang('Probationers').' ('.$nbStudents.')'.'
| '.get_lang('InactivesStudents').' | '.$nb_inactive_students.' |
| '.get_lang('AverageTimeSpentOnThePlatform').' | '.api_time_to_hms($avgTimeSpent).' |
| '.get_lang('AverageCoursePerStudent').' | '.$avgCoursesPerStudent.' |
| '.get_lang('AverageProgressInLearnpath').' | '.round($avgTotalProgress,2).' % |
| '.get_lang('AverageResultsToTheExercices').' | '.round($avgResultsToExercises,2).' % |
| '.get_lang('AveragePostsInForum').' | '.round($nb_posts,2).' |
| '.get_lang('AverageAssignments').' | '.round($nb_assignments,2).' |
'.get_lang('Sessions').' ('.$nbSessions.')'.'
| '.get_lang('NbActiveSessions').' | '.$nb_sessions_current.' |
| '.get_lang('NbPastSessions').' | '.$nb_sessions_past.' |
| '.get_lang('NbFutureSessions').' | '.$nb_sessions_future.' |
| '.get_lang('NbStudentPerSession').' | '.round($nbStudents/$nbSessions,2).' |
| '.get_lang('NbCoursesPerSession').' | '.$nb_courses_per_session.' |
.'2rightarrow.gif)
.'2rightarrow.gif)
"; print_r($csv_content); echo "";*/ Export :: export_table_csv($csv_content, 'reporting_index'); } //footer if(!$export_csv) { Display::display_footer(); } /** * This function exports the table that we see in display_tracking_user_overview() * * @author Patrick Cool
| '.get_lang('Course').' | '; $t_head .= ''.cut(get_lang('AvgTimeSpentInTheCourse'),6,true).' | '; $t_head .= ''.cut(get_lang('AvgStudentsProgress'),6,true).' | '; $t_head .= ''.cut(get_lang('AvgCourseScore'),6,true).' | '; //$t_head .= ''.get_lang('AvgExercisesScore').' | ';
$t_head .= ' '.cut(get_lang('AvgMessages'),6,true).' | '; $t_head .= ''.cut(get_lang('AvgAssignments'),6,true).' | '; $t_head .= ''.get_lang('TotalExercisesScoreObtained').' | '; //$t_head .= ''.get_lang('TotalExercisesScorePossible').' | ';
$t_head .= ' '.cut(get_lang('TotalExercisesAnswered'),6,true).' | '; //$t_head .= ''.get_lang('TotalExercisesScorePercentage').' | ';
//$t_head .= ' '.get_lang('FirstLogin').' | ';
$t_head .= ' '.get_lang('LatestLogin').' | '; $t_head .= '
|---|
| '.get_lang('Course').' | '; $return .= ''.get_lang('AvgTimeSpentInTheCourse').' | '; $return .= ''.get_lang('AvgStudentsProgress').' | '; $return .= ''.get_lang('AvgCourseScore').' | '; $return .= ''.get_lang('AvgExercisesScore').' | '; $return .= ''.get_lang('AvgMessages').' | '; $return .= ''.get_lang('AvgAssignments').' | '; $return .= ''.get_lang('TotalExercisesScoreObtained').' | '; $return .= ''.get_lang('TotalExercisesScorePossible').' | '; $return .= ''.get_lang('TotalExercisesAnswered').' | '; $return .= ''.get_lang('TotalExercisesScorePercentage').' | '; $return .= ''.get_lang('FirstLogin').' | '; $return .= ''.get_lang('LatestLogin').' | '; $return .= '
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| '.cut($row[0],20,true).' | '; // time spent in the course $return .= ''.api_time_to_hms(Tracking :: get_time_spent_on_the_course ($user_id, $row[0])).' | ';
// student progress in course
$return .= ' '.round(Tracking :: get_avg_student_progress ($user_id, $row[0]),2).' | ';
// student score
$return .= ' '.round(Tracking :: get_avg_student_score ($user_id, $row[0]),2).' | ';
// student tes score
//$return .= ' '.round(Tracking :: get_avg_student_exercise_score ($user_id, $row[0]),2).'% | ';
// student messages
$return .= ' '.Tracking :: count_student_messages ($user_id, $row[0]).' | ';
// student assignments
$return .= ' '.Tracking :: count_student_assignments ($user_id, $row[0]).' | ';
// student exercises results (obtained score, maximum score, number of exercises answered, score percentage)
$exercises_results = exercises_results($user_id, $row[0]);
$return .= ' '.$exercises_results['score_obtained'].'/'.$exercises_results['score_possible'].'('.$exercises_results['percentage'].'%) | ';
//$return .= ' '.$exercises_results['score_possible'].' | ';
$return .= ' '.$exercises_results['questions_answered'].' | ';
//$return .= ' '.$exercises_results['percentage'].'% | ';
// first connection
//$return .= ' '.Tracking :: get_first_connection_date_on_the_course ($user_id, $row[0]).' | '; // last connection $return .= ''.Tracking :: get_last_connection_date_on_the_course ($user_id, $row[0]).' | ';
$return .= '