@ -6,6 +6,9 @@ use Chamilo\CoreBundle\Component\Utils\ChamiloApi;
use Chamilo\CoreBundle\Framework\Container;
use Chamilo\CourseBundle\Entity\CQuiz;
use ChamiloSession as Session;
use Chamilo\CoreBundle\Component\Utils\ActionIcon;
use Chamilo\CoreBundle\Component\Utils\ObjectIcon;
use Chamilo\CoreBundle\Component\Utils\StateIcon;
require_once __DIR__.'/../inc/global.inc.php';
@ -97,7 +100,7 @@ $js = "<script>
function foldup(id) {
var show = function () {\$(this).css('outline', '1px solid red')};
var hide = function () {\$(this).css('outline', '1px solid gree')};
$('#reporting_table .data_table tr td:nth-child(' + (id + 1) + ')').toggle();
$('#reporting_table .data_table tr th:nth-child(' + (id + 1) + ')').toggle();
$('div#unhideButtons a:nth-child(' + (id + 1) + ')').toggle();
@ -108,12 +111,7 @@ $js = "<script>
$('#reporting_table .data_table tr th').each(
function(index) {
$(this).prepend(
'< div style = \"cursor:pointer\" onclick = \"foldup(' + index + ' ) \ " > ".Display::return_icon(
'visible.png',
get_lang('Hide column'),
['align' => 'absmiddle', 'hspace' => '3px'],
ICON_SIZE_SMALL
)."< / div > '
'< div style = \"cursor:pointer\" onclick = \"foldup(' + index + ' ) \ " > ".Display::getMdiIcon(StateIcon::ACTIVE, 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('Hide column'))."< / div > '
);
}
);
@ -202,7 +200,7 @@ Display::display_header($nameTools, 'Tracking');
$actionsLeft = TrackingCourseLog::actionsLeft('users', $sessionId, false);
$actionsRight = '< a href = "javascript: void(0);" onclick = "javascript: window.print();" > '.
Display::return_icon('printer.png', get_lang('Print'), '', ICON_SIZE_MEDIUM ).'< / a > ';
Display::getMdiIcon(ActionIcon::PRINT, 'ch-tool-icon', null, ICON_SIZE_MEDIUM, get_lang('Print') ).'< / a > ';
$additionalParams = '';
if (isset($_GET['additional_profile_field'])) {
@ -218,7 +216,7 @@ if (isset($_GET['users_tracking_per_page'])) {
$actionsRight .= '< a
href="'.api_get_self().'?'.api_get_cidreq().'& export=csv& '.$additionalParams.$users_tracking_per_page.'">
'.Display::return_icon('export_csv.png', get_lang('CSV export'), '', ICON_SIZE_MEDIUM ).'< / a > ';
'.Display::getMdiIcon(ActionIcon::EXPORT_CSV, 'ch-tool-icon', null, ICON_SIZE_MEDIUM, get_lang('CSV export') ).'< / a > ';
// Create a search-box.
$form_search = new FormValidator(
'search_simple',
@ -244,25 +242,10 @@ echo Display::toolbarAction(
$course_name = get_lang('Course').' '.$course->getTitle();
if ($sessionId) {
$titleSession = Display::return_icon(
'session.png',
get_lang('Session'),
[],
ICON_SIZE_SMALL
).' '.api_get_session_name($sessionId);
$titleCourse = Display::return_icon(
'course.png',
get_lang('Course'),
[],
ICON_SIZE_SMALL
).' '.$course_name;
$titleSession = Display::getMdiIcon(ObjectIcon::SESSION, 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('Session')).' '.api_get_session_name($sessionId);
$titleCourse = Display::getMdiIcon(ObjectIcon::COURSE, 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('Course')).' '.$course_name;
} else {
$titleSession = Display::return_icon(
'course.png',
get_lang('Course'),
[],
ICON_SIZE_SMALL
).' '.$course->getTitle();
$titleSession = Display::getMdiIcon(ObjectAction::COURSE, 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('Course')).' '.$course->getTitle();
}
$teacherList = CourseManager::getTeacherListFromCourseCodeToString(
@ -298,9 +281,9 @@ if ($showReporting) {
$sessionList = SessionManager::get_session_by_course($courseId);
if (!empty($sessionList)) {
$html .= Display::page_subheader2(get_lang('Session list'));
$icon = Display::return_i con(
'session.png' ,
null ,
$icon = Display::getMdiI con(
ObjectIcon::SESSION ,
'ch-tool-icon' ,
null,
ICON_SIZE_TINY
);
@ -584,7 +567,7 @@ if ($nbStudents > 0) {
];
$el = $form->addSelect(
'since',
Display::getMdiIcon('alert' ).get_lang('Remind learners inactive since'),
Display::getMdiIcon(StateIcon::WARNING, 'ch-tool-icon', null, ICON_SIZE_SMALL ).get_lang('Remind learners inactive since'),
$options,
['disable_js' => true, 'class' => 'col-sm-3']
);
@ -655,14 +638,14 @@ if ($nbStudents > 0) {
$table->set_header(
$headerCounter++,
get_lang('Time').' '.
Display::return_icon('info3.gif', get_lang('Time spent in the course'), [], ICON_SIZE_TINY ),
Display::getMdiIcon('clock-outline', 'ch-tool-icon', null, ICON_SIZE_TINY, get_lang('Time spent in the course') ),
false
);
$headers['training_time'] = get_lang('Time');
$table->set_header(
$headerCounter++,
get_lang('Progress').' '.
Display::return_icon('info3.gif', get_lang('Average progress in courses'), [], ICON_SIZE_TINY ),
Display::getMdiIcon(ObjectIcon::COURSE_PROGRESS, 'ch-tool-icon', null, ICON_SIZE_TINY, get_lang('Average progress in courses') ),
false
);
$headers['course_progress'] = get_lang('Course progress');
@ -670,28 +653,28 @@ if ($nbStudents > 0) {
$table->set_header(
$headerCounter++,
get_lang('Exercise progress').' '.
Display::return_icon('info3.gif' , get_lang('Progress of exercises taken by the student'), [], ICON_SIZE_TINY ),
Display::getMdiIcon(ObjectIcon::COURSE_PROGRESS, 'ch-tool-icon', null, ICON_SIZE_TINY , get_lang('Progress of exercises taken by the student')),
false
);
$headers['exercise_progress'] = get_lang('Exercise progress');
$table->set_header(
$headerCounter++,
get_lang('Exercise average').' '.
Display::return_icon('info3.gif' , get_lang('Average of best grades of each exercise attempt'), [], ICON_SIZE_TINY ),
Display::getMdiIcon('format-annotation-plus', 'ch-tool-icon', null, ICON_SIZE_TINY , get_lang('Average of best grades of each exercise attempt')),
false
);
$headers['exercise_average'] = get_lang('Exercise average');
$table->set_header(
$headerCounter++,
get_lang('Score').' '.
Display::return_icon('info3.gif' , get_lang('Average of tests in Learning Paths'), [], ICON_SIZE_TINY ),
Display::getMdiIcon('format-annotation-plus', 'ch-tool-icon', null, ICON_SIZE_TINY , get_lang('Average of tests in Learning Paths')),
false
);
$headers['score'] = get_lang('Score');
$table->set_header(
$headerCounter++,
$bestScoreLabel.' '.
Display::return_icon('info3.gif' , get_lang('Average of tests in Learning Paths'), [], ICON_SIZE_TINY ),
Display::getMdiIcon('format-annotation-plus', 'ch-tool-icon', null, ICON_SIZE_TINY , get_lang('Average of tests in Learning Paths')),
false
);
$headers['score_best'] = $bestScoreLabel;