|
|
@ -14,7 +14,7 @@ api_block_anonymous_users(); |
|
|
|
$export = isset($_GET['export']) ? $_GET['export'] : false; |
|
|
|
$export = isset($_GET['export']) ? $_GET['export'] : false; |
|
|
|
$sessionId = isset($_GET['id_session']) ? intval($_GET['id_session']) : 0; |
|
|
|
$sessionId = isset($_GET['id_session']) ? intval($_GET['id_session']) : 0; |
|
|
|
$origin = isset($_GET['origin']) ? Security::remove_XSS($_GET['origin']) : ''; |
|
|
|
$origin = isset($_GET['origin']) ? Security::remove_XSS($_GET['origin']) : ''; |
|
|
|
$course_code = isset($_GET['course']) ? Security :: remove_XSS($_GET['course']) : ''; |
|
|
|
$course_code = isset($_GET['course']) ? Security::remove_XSS($_GET['course']) : ''; |
|
|
|
$courseInfo = api_get_course_info($course_code); |
|
|
|
$courseInfo = api_get_course_info($course_code); |
|
|
|
$student_id = intval($_GET['student']); |
|
|
|
$student_id = intval($_GET['student']); |
|
|
|
|
|
|
|
|
|
|
@ -121,11 +121,11 @@ if (isset($_GET['details'])) { |
|
|
|
); |
|
|
|
); |
|
|
|
if (isset($_GET['id_coach']) && intval($_GET['id_coach']) != 0) { |
|
|
|
if (isset($_GET['id_coach']) && intval($_GET['id_coach']) != 0) { |
|
|
|
$interbreadcrumb[] = array ( |
|
|
|
$interbreadcrumb[] = array ( |
|
|
|
"url" => "student.php?id_coach=" . Security :: remove_XSS($_GET['id_coach']), |
|
|
|
"url" => "student.php?id_coach=" . Security::remove_XSS($_GET['id_coach']), |
|
|
|
"name" => get_lang("CoachStudents") |
|
|
|
"name" => get_lang("CoachStudents") |
|
|
|
); |
|
|
|
); |
|
|
|
$interbreadcrumb[] = array ( |
|
|
|
$interbreadcrumb[] = array ( |
|
|
|
"url" => "myStudents.php?student=" . $student_id. '&id_coach=' . Security :: remove_XSS($_GET['id_coach']), |
|
|
|
"url" => "myStudents.php?student=" . $student_id. '&id_coach=' . Security::remove_XSS($_GET['id_coach']), |
|
|
|
"name" => get_lang("StudentDetails") |
|
|
|
"name" => get_lang("StudentDetails") |
|
|
|
); |
|
|
|
); |
|
|
|
} else { |
|
|
|
} else { |
|
|
@ -162,12 +162,12 @@ if (isset($_GET['details'])) { |
|
|
|
if (isset($_GET['id_coach']) && intval($_GET['id_coach']) != 0) { |
|
|
|
if (isset($_GET['id_coach']) && intval($_GET['id_coach']) != 0) { |
|
|
|
if ($sessionId) { |
|
|
|
if ($sessionId) { |
|
|
|
$interbreadcrumb[] = array( |
|
|
|
$interbreadcrumb[] = array( |
|
|
|
"url" => "student.php?id_coach=" . Security :: remove_XSS($_GET['id_coach']) . "&id_session=" . $sessionId, |
|
|
|
"url" => "student.php?id_coach=" . Security::remove_XSS($_GET['id_coach']) . "&id_session=" . $sessionId, |
|
|
|
"name" => get_lang("CoachStudents") |
|
|
|
"name" => get_lang("CoachStudents") |
|
|
|
); |
|
|
|
); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
$interbreadcrumb[] = array( |
|
|
|
$interbreadcrumb[] = array( |
|
|
|
"url" => "student.php?id_coach=" . Security :: remove_XSS($_GET['id_coach']), |
|
|
|
"url" => "student.php?id_coach=" . Security::remove_XSS($_GET['id_coach']), |
|
|
|
"name" => get_lang("CoachStudents") |
|
|
|
"name" => get_lang("CoachStudents") |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
@ -360,10 +360,10 @@ if (!empty($student_id)) { |
|
|
|
echo '<a href="javascript: void(0);" onclick="javascript: window.print();">'. |
|
|
|
echo '<a href="javascript: void(0);" onclick="javascript: window.print();">'. |
|
|
|
Display::return_icon('printer.png', get_lang('Print'),'',ICON_SIZE_MEDIUM).'</a>'; |
|
|
|
Display::return_icon('printer.png', get_lang('Print'),'',ICON_SIZE_MEDIUM).'</a>'; |
|
|
|
|
|
|
|
|
|
|
|
echo '<a href="' . api_get_self() . '?' . Security :: remove_XSS($_SERVER['QUERY_STRING']) . '&export=csv">'. |
|
|
|
echo '<a href="' . api_get_self() . '?' . Security::remove_XSS($_SERVER['QUERY_STRING']) . '&export=csv">'. |
|
|
|
Display::return_icon('export_csv.png', get_lang('ExportAsCSV'),'',ICON_SIZE_MEDIUM).'</a> '; |
|
|
|
Display::return_icon('export_csv.png', get_lang('ExportAsCSV'),'',ICON_SIZE_MEDIUM).'</a> '; |
|
|
|
|
|
|
|
|
|
|
|
echo '<a href="' . api_get_self() . '?' . Security :: remove_XSS($_SERVER['QUERY_STRING']) . '&export=xls">'. |
|
|
|
echo '<a href="' . api_get_self() . '?' . Security::remove_XSS($_SERVER['QUERY_STRING']) . '&export=xls">'. |
|
|
|
Display::return_icon('export_excel.png', get_lang('ExportAsXLS'),'',ICON_SIZE_MEDIUM).'</a> '; |
|
|
|
Display::return_icon('export_excel.png', get_lang('ExportAsXLS'),'',ICON_SIZE_MEDIUM).'</a> '; |
|
|
|
|
|
|
|
|
|
|
|
if (!empty ($user_info['email'])) { |
|
|
|
if (!empty ($user_info['email'])) { |
|
|
|