|
|
|
|
@ -9,7 +9,7 @@ if (empty($allow)) { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$from_myspace = false; |
|
|
|
|
if (isset ($_GET['from']) && $_GET['from'] == 'myspace') { |
|
|
|
|
if (isset($_GET['from']) && $_GET['from'] == 'myspace') { |
|
|
|
|
$from_myspace = true; |
|
|
|
|
$this_section = SECTION_TRACKING; |
|
|
|
|
} else { |
|
|
|
|
@ -19,112 +19,111 @@ if (isset ($_GET['from']) && $_GET['from'] == 'myspace') { |
|
|
|
|
//$nameTools = get_lang('StudentDetails'); |
|
|
|
|
$cidReset = true; |
|
|
|
|
$get_course_code = Security:: remove_XSS($_GET['course']); |
|
|
|
|
if (isset ($_GET['details'])) { |
|
|
|
|
if (!empty ($_GET['origin']) && $_GET['origin'] == 'user_course') { |
|
|
|
|
if (isset($_GET['details'])) { |
|
|
|
|
if (!empty($_GET['origin']) && $_GET['origin'] == 'user_course') { |
|
|
|
|
$course_info = CourseManager:: get_course_information($get_course_code); |
|
|
|
|
if (empty ($cidReq)) { |
|
|
|
|
$interbreadcrumb[] = array( |
|
|
|
|
if (empty($cidReq)) { |
|
|
|
|
$interbreadcrumb[] = [ |
|
|
|
|
"url" => api_get_path(WEB_COURSE_PATH).$course_info['directory'], |
|
|
|
|
'name' => $course_info['title'], |
|
|
|
|
); |
|
|
|
|
]; |
|
|
|
|
} |
|
|
|
|
$interbreadcrumb[] = array( |
|
|
|
|
$interbreadcrumb[] = [ |
|
|
|
|
"url" => "../user/user.php?cidReq=".$get_course_code, |
|
|
|
|
"name" => get_lang("Users"), |
|
|
|
|
); |
|
|
|
|
]; |
|
|
|
|
} else { |
|
|
|
|
if (!empty ($_GET['origin']) && $_GET['origin'] == 'tracking_course') { |
|
|
|
|
if (!empty($_GET['origin']) && $_GET['origin'] == 'tracking_course') { |
|
|
|
|
$course_info = CourseManager:: get_course_information($get_course_code); |
|
|
|
|
if (empty ($cidReq)) { |
|
|
|
|
if (empty($cidReq)) { |
|
|
|
|
//$interbreadcrumb[] = array ("url" => api_get_path(WEB_COURSE_PATH).$course_info['directory'], 'name' => $course_info['title']); |
|
|
|
|
} |
|
|
|
|
$interbreadcrumb[] = array( |
|
|
|
|
"url" => "../tracking/courseLog.php?cidReq=".$get_course_code.'&studentlist=true&id_session='.(empty ($_SESSION['id_session']) ? '' : $_SESSION['id_session']), |
|
|
|
|
$interbreadcrumb[] = [ |
|
|
|
|
"url" => "../tracking/courseLog.php?cidReq=".$get_course_code.'&studentlist=true&id_session='.(empty($_SESSION['id_session']) ? '' : $_SESSION['id_session']), |
|
|
|
|
"name" => get_lang("Tracking"), |
|
|
|
|
); |
|
|
|
|
]; |
|
|
|
|
} else { |
|
|
|
|
if (!empty ($_GET['origin']) && $_GET['origin'] == 'resume_session') { |
|
|
|
|
$interbreadcrumb[] = array( |
|
|
|
|
if (!empty($_GET['origin']) && $_GET['origin'] == 'resume_session') { |
|
|
|
|
$interbreadcrumb[] = [ |
|
|
|
|
'url' => '../admin/index.php', |
|
|
|
|
"name" => get_lang('PlatformAdmin'), |
|
|
|
|
); |
|
|
|
|
$interbreadcrumb[] = array( |
|
|
|
|
]; |
|
|
|
|
$interbreadcrumb[] = [ |
|
|
|
|
'url' => "../admin/session_list.php", |
|
|
|
|
"name" => get_lang('SessionList'), |
|
|
|
|
); |
|
|
|
|
$interbreadcrumb[] = array( |
|
|
|
|
]; |
|
|
|
|
$interbreadcrumb[] = [ |
|
|
|
|
'url' => "../admin/resume_session.php?id_session=".Security:: remove_XSS($_GET['id_session']), |
|
|
|
|
"name" => get_lang('SessionOverview'), |
|
|
|
|
); |
|
|
|
|
]; |
|
|
|
|
} else { |
|
|
|
|
$interbreadcrumb[] = array( |
|
|
|
|
$interbreadcrumb[] = [ |
|
|
|
|
"url" => "index.php", |
|
|
|
|
"name" => get_lang('MySpace'), |
|
|
|
|
); |
|
|
|
|
if (isset ($_GET['id_coach']) && intval($_GET['id_coach']) != 0) { |
|
|
|
|
$interbreadcrumb[] = array( |
|
|
|
|
]; |
|
|
|
|
if (isset($_GET['id_coach']) && intval($_GET['id_coach']) != 0) { |
|
|
|
|
$interbreadcrumb[] = [ |
|
|
|
|
"url" => "student.php?id_coach=".Security:: remove_XSS($_GET['id_coach']), |
|
|
|
|
"name" => get_lang("CoachStudents"), |
|
|
|
|
); |
|
|
|
|
$interbreadcrumb[] = array( |
|
|
|
|
]; |
|
|
|
|
$interbreadcrumb[] = [ |
|
|
|
|
"url" => "myStudents.php?student=".Security:: remove_XSS( |
|
|
|
|
$_GET['student'] |
|
|
|
|
).'&id_coach='.Security:: remove_XSS($_GET['id_coach']), |
|
|
|
|
"name" => get_lang("StudentDetails"), |
|
|
|
|
); |
|
|
|
|
]; |
|
|
|
|
} else { |
|
|
|
|
$interbreadcrumb[] = array( |
|
|
|
|
$interbreadcrumb[] = [ |
|
|
|
|
"url" => "student.php", |
|
|
|
|
"name" => get_lang("MyStudents"), |
|
|
|
|
); |
|
|
|
|
$interbreadcrumb[] = array( |
|
|
|
|
]; |
|
|
|
|
$interbreadcrumb[] = [ |
|
|
|
|
"url" => "myStudents.php?student=".Security:: remove_XSS($_GET['student']), |
|
|
|
|
"name" => get_lang("StudentDetails"), |
|
|
|
|
); |
|
|
|
|
]; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
$nameTools = get_lang("DetailsStudentInCourse"); |
|
|
|
|
} else { |
|
|
|
|
|
|
|
|
|
if (!empty ($_GET['origin']) && $_GET['origin'] == 'resume_session') { |
|
|
|
|
$interbreadcrumb[] = array( |
|
|
|
|
if (!empty($_GET['origin']) && $_GET['origin'] == 'resume_session') { |
|
|
|
|
$interbreadcrumb[] = [ |
|
|
|
|
'url' => '../admin/index.php', |
|
|
|
|
"name" => get_lang('PlatformAdmin'), |
|
|
|
|
); |
|
|
|
|
$interbreadcrumb[] = array( |
|
|
|
|
]; |
|
|
|
|
$interbreadcrumb[] = [ |
|
|
|
|
'url' => "../admin/session_list.php", |
|
|
|
|
"name" => get_lang('SessionList'), |
|
|
|
|
); |
|
|
|
|
$interbreadcrumb[] = array( |
|
|
|
|
]; |
|
|
|
|
$interbreadcrumb[] = [ |
|
|
|
|
'url' => "../admin/resume_session.php?id_session=".Security:: remove_XSS($_GET['id_session']), |
|
|
|
|
"name" => get_lang('SessionOverview'), |
|
|
|
|
); |
|
|
|
|
]; |
|
|
|
|
} else { |
|
|
|
|
$interbreadcrumb[] = array( |
|
|
|
|
$interbreadcrumb[] = [ |
|
|
|
|
"url" => "index.php", |
|
|
|
|
"name" => get_lang('MySpace'), |
|
|
|
|
); |
|
|
|
|
if (isset ($_GET['id_coach']) && intval($_GET['id_coach']) != 0) { |
|
|
|
|
if (isset ($_GET['id_session']) && intval($_GET['id_session']) != 0) { |
|
|
|
|
$interbreadcrumb[] = array( |
|
|
|
|
]; |
|
|
|
|
if (isset($_GET['id_coach']) && intval($_GET['id_coach']) != 0) { |
|
|
|
|
if (isset($_GET['id_session']) && intval($_GET['id_session']) != 0) { |
|
|
|
|
$interbreadcrumb[] = [ |
|
|
|
|
"url" => "student.php?id_coach=".Security:: remove_XSS( |
|
|
|
|
$_GET['id_coach'] |
|
|
|
|
)."&id_session=".$_GET['id_session'], |
|
|
|
|
"name" => get_lang("CoachStudents"), |
|
|
|
|
); |
|
|
|
|
]; |
|
|
|
|
} else { |
|
|
|
|
$interbreadcrumb[] = array( |
|
|
|
|
$interbreadcrumb[] = [ |
|
|
|
|
"url" => "student.php?id_coach=".Security:: remove_XSS($_GET['id_coach']), |
|
|
|
|
"name" => get_lang("CoachStudents"), |
|
|
|
|
); |
|
|
|
|
]; |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
$interbreadcrumb[] = array( |
|
|
|
|
$interbreadcrumb[] = [ |
|
|
|
|
"url" => "student.php", |
|
|
|
|
"name" => get_lang("MyStudents"), |
|
|
|
|
); |
|
|
|
|
]; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
@ -151,8 +150,7 @@ $student_id = intval($_GET['student']); |
|
|
|
|
// Action behaviour |
|
|
|
|
$check = Security::check_token('get'); |
|
|
|
|
|
|
|
|
|
if (!empty ($_GET['student'])) // infos about user |
|
|
|
|
{ |
|
|
|
|
if (!empty($_GET['student'])) { // infos about user |
|
|
|
|
$info_user = api_get_user_info($student_id); |
|
|
|
|
} |
|
|
|
|
if (api_is_drh() && !UserManager::is_user_followed_by_drh($student_id, $_user['user_id'])) { |
|
|
|
|
@ -169,18 +167,18 @@ $info_user['name'] = api_get_person_name($info_user['firstname'], $info_user['la |
|
|
|
|
echo $info_user['name']; ?> |
|
|
|
|
</th> |
|
|
|
|
<tr> |
|
|
|
|
<th><?php echo get_lang('module_no') ?></th>
|
|
|
|
|
<th><?php echo get_lang('module_no'); ?></th>
|
|
|
|
|
<th> |
|
|
|
|
<?php echo get_lang('result_exam') ?> |
|
|
|
|
<?php echo get_lang('result_exam'); ?> |
|
|
|
|
</th> |
|
|
|
|
<th> |
|
|
|
|
<?php echo get_lang('result_rep_1') ?> |
|
|
|
|
<?php echo get_lang('result_rep_1'); ?> |
|
|
|
|
</th> |
|
|
|
|
<th> |
|
|
|
|
<?php echo get_lang('result_rep_2') ?> |
|
|
|
|
<?php echo get_lang('result_rep_2'); ?> |
|
|
|
|
</th> |
|
|
|
|
<th> |
|
|
|
|
<?php echo get_lang('comment') ?> |
|
|
|
|
<?php echo get_lang('comment'); ?> |
|
|
|
|
</th> |
|
|
|
|
</tr> |
|
|
|
|
<?php |
|
|
|
|
@ -215,8 +213,7 @@ $info_user['name'] = api_get_person_name($info_user['firstname'], $info_user['la |
|
|
|
|
|
|
|
|
|
"; |
|
|
|
|
$exe_idd = $a_exam['exe_id']; |
|
|
|
|
$student_id = $_GET['student']; |
|
|
|
|
?> |
|
|
|
|
$student_id = $_GET['student']; ?> |
|
|
|
|
</tr> |
|
|
|
|
<?php |
|
|
|
|
} |
|
|
|
|
|