/** * Display a sortable table that contains an overview off all the reporting progress of all users and all courses the user is subscribed to * @author Patrick Cool <*****@*****.**>, Ghent University, Belgium * @version Dokeos 1.8.6 * @since October 2008 */ public static function display_tracking_user_overview() { MySpace::display_user_overview_export_options(); $t_head = ' <table style="width: 100%;border:0;padding:0;border-collapse:collapse;table-layout: fixed">'; //$t_head .= ' <caption>'.get_lang('CourseInformation').'</caption>'; $t_head .= '<tr>'; $t_head .= ' <th width="155px" style="border-left:0;border-bottom:0"><span>' . get_lang('Course') . '</span></th>'; $t_head .= ' <th style="padding:0;border-bottom:0"><span>' . cut(get_lang('AvgTimeSpentInTheCourse'), 6, true) . '</span></th>'; $t_head .= ' <th style="padding:0;border-bottom:0"><span>' . cut(get_lang('AvgStudentsProgress'), 6, true) . '</span></th>'; $t_head .= ' <th style="padding:0;border-bottom:0"><span>' . cut(get_lang('AvgCourseScore'), 6, true) . '</span></th>'; //$t_head .= ' <th><div style="width:40px">'.get_lang('AvgExercisesScore').'</div></th>'; $t_head .= ' <th style="padding:0;border-bottom:0"><span>' . cut(get_lang('TotalNumberOfMessages'), 6, true) . '</span></th>'; $t_head .= ' <th style="padding:0;border-bottom:0"><span>' . cut(get_lang('TotalNumberOfAssignments'), 6, true) . '</span></th>'; $t_head .= ' <th width="105px" style="border-bottom:0"><span>' . get_lang('TotalExercisesScoreObtained') . '</span></th>'; //$t_head .= ' <th><div>'.get_lang('TotalExercisesScorePossible').'</div></th>'; $t_head .= ' <th style="padding:0;border-bottom:0"><span>' . cut(get_lang('TotalExercisesAnswered'), 6, true) . '</span></th>'; //$t_head .= ' <th><div>'.get_lang('TotalExercisesScorePercentage').'</div></th>'; //$t_head .= ' <th><div style="width:60px">'.get_lang('FirstLogin').'</div></th>'; $t_head .= ' <th style="padding:0;border-bottom:0;border-right:0;"><span>' . get_lang('LatestLogin') . '</span></th>'; $t_head .= ' </tr></table>'; $addparams = array('view' => 'admin', 'display' => 'user'); $table = new SortableTable('tracking_user_overview', array('MySpace', 'get_number_of_users_tracking_overview'), array('MySpace', 'get_user_data_tracking_overview'), 0); $table->additional_parameters = $addparams; $table->set_header(0, get_lang('OfficialCode'), true, array('style' => 'font-size:8pt'), array('style' => 'font-size:8pt')); if (api_is_western_name_order()) { $table->set_header(1, get_lang('FirstName'), true, array('style' => 'font-size:8pt'), array('style' => 'font-size:8pt')); $table->set_header(2, get_lang('LastName'), true, array('style' => 'font-size:8pt'), array('style' => 'font-size:8pt')); } else { $table->set_header(1, get_lang('LastName'), true, array('style' => 'font-size:8pt'), array('style' => 'font-size:8pt')); $table->set_header(2, get_lang('FirstName'), true, array('style' => 'font-size:8pt'), array('style' => 'font-size:8pt')); } $table->set_header(3, get_lang('LoginName'), true, array('style' => 'font-size:8pt'), array('style' => 'font-size:8pt')); $table->set_header(4, $t_head, false, array('style' => 'width:90%;border:0;padding:0;font-size:7.5pt;'), array('style' => 'width:90%;padding:0;font-size:7.5pt;')); $table->set_column_filter(4, array('MySpace', 'course_info_tracking_filter')); $table->display(); }