@@ -989,7 +989,7 @@ |
||
| 989 | 989 | $data_learnpath[$i][] = $progress . '%'; |
| 990 | 990 | } |
| 991 | 991 | |
| 992 | - ?> |
|
| 992 | + ?> |
|
| 993 | 993 | </tbody> |
| 994 | 994 | </table> |
| 995 | 995 | </div> |
@@ -64,52 +64,52 @@ discard block |
||
| 64 | 64 | if (isset($_GET['details'])) { |
| 65 | 65 | if ($origin == 'user_course') { |
| 66 | 66 | if (empty ($cidReq)) { |
| 67 | - $interbreadcrumb[] = array ( |
|
| 68 | - "url" => api_get_path(WEB_COURSE_PATH) . $courseInfo['directory'], |
|
| 67 | + $interbreadcrumb[] = array( |
|
| 68 | + "url" => api_get_path(WEB_COURSE_PATH).$courseInfo['directory'], |
|
| 69 | 69 | 'name' => $courseInfo['title'] |
| 70 | 70 | ); |
| 71 | 71 | } |
| 72 | - $interbreadcrumb[] = array ( |
|
| 73 | - "url" => "../user/user.php?cidReq=" . $course_code, |
|
| 72 | + $interbreadcrumb[] = array( |
|
| 73 | + "url" => "../user/user.php?cidReq=".$course_code, |
|
| 74 | 74 | "name" => get_lang("Users") |
| 75 | 75 | ); |
| 76 | 76 | } else |
| 77 | 77 | if ($origin == 'tracking_course') { |
| 78 | - $interbreadcrumb[] = array ( |
|
| 79 | - "url" => "../tracking/courseLog.php?cidReq=".$course_code.'&id_session=' . api_get_session_id(), |
|
| 78 | + $interbreadcrumb[] = array( |
|
| 79 | + "url" => "../tracking/courseLog.php?cidReq=".$course_code.'&id_session='.api_get_session_id(), |
|
| 80 | 80 | "name" => get_lang("Tracking") |
| 81 | 81 | ); |
| 82 | 82 | } else |
| 83 | 83 | if ($origin == 'resume_session') { |
| 84 | - $interbreadcrumb[] = array ( |
|
| 84 | + $interbreadcrumb[] = array( |
|
| 85 | 85 | 'url' => "../session/session_list.php", |
| 86 | 86 | "name" => get_lang('SessionList') |
| 87 | 87 | ); |
| 88 | - $interbreadcrumb[] = array ( |
|
| 89 | - 'url' => "../session/resume_session.php?id_session=" . $sessionId, |
|
| 88 | + $interbreadcrumb[] = array( |
|
| 89 | + 'url' => "../session/resume_session.php?id_session=".$sessionId, |
|
| 90 | 90 | "name" => get_lang('SessionOverview') |
| 91 | 91 | ); |
| 92 | 92 | } else { |
| 93 | - $interbreadcrumb[] = array ( |
|
| 93 | + $interbreadcrumb[] = array( |
|
| 94 | 94 | "url" => "index.php", |
| 95 | 95 | "name" => get_lang('MySpace') |
| 96 | 96 | ); |
| 97 | 97 | if (isset ($_GET['id_coach']) && intval($_GET['id_coach']) != 0) { |
| 98 | - $interbreadcrumb[] = array ( |
|
| 99 | - "url" => "student.php?id_coach=" . Security :: remove_XSS($_GET['id_coach']), |
|
| 98 | + $interbreadcrumb[] = array( |
|
| 99 | + "url" => "student.php?id_coach=".Security :: remove_XSS($_GET['id_coach']), |
|
| 100 | 100 | "name" => get_lang("CoachStudents") |
| 101 | 101 | ); |
| 102 | - $interbreadcrumb[] = array ( |
|
| 103 | - "url" => "myStudents.php?student=" . Security :: remove_XSS($_GET['student']) . '&id_coach=' . Security :: remove_XSS($_GET['id_coach']), |
|
| 102 | + $interbreadcrumb[] = array( |
|
| 103 | + "url" => "myStudents.php?student=".Security :: remove_XSS($_GET['student']).'&id_coach='.Security :: remove_XSS($_GET['id_coach']), |
|
| 104 | 104 | "name" => get_lang("StudentDetails") |
| 105 | 105 | ); |
| 106 | 106 | } else { |
| 107 | - $interbreadcrumb[] = array ( |
|
| 107 | + $interbreadcrumb[] = array( |
|
| 108 | 108 | "url" => "student.php", |
| 109 | 109 | "name" => get_lang("MyStudents") |
| 110 | 110 | ); |
| 111 | - $interbreadcrumb[] = array ( |
|
| 112 | - "url" => "myStudents.php?student=" . Security :: remove_XSS($_GET['student']), |
|
| 111 | + $interbreadcrumb[] = array( |
|
| 112 | + "url" => "myStudents.php?student=".Security :: remove_XSS($_GET['student']), |
|
| 113 | 113 | "name" => get_lang("StudentDetails") |
| 114 | 114 | ); |
| 115 | 115 | } |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | $nameTools = get_lang("DetailsStudentInCourse"); |
| 118 | 118 | } else { |
| 119 | 119 | if ($origin == 'resume_session') { |
| 120 | - $interbreadcrumb[] = array ( |
|
| 120 | + $interbreadcrumb[] = array( |
|
| 121 | 121 | 'url' => "../session/session_list.php", |
| 122 | 122 | "name" => get_lang('SessionList') |
| 123 | 123 | ); |
@@ -128,24 +128,24 @@ discard block |
||
| 128 | 128 | ); |
| 129 | 129 | } |
| 130 | 130 | } else { |
| 131 | - $interbreadcrumb[] = array ( |
|
| 131 | + $interbreadcrumb[] = array( |
|
| 132 | 132 | "url" => "index.php", |
| 133 | 133 | "name" => get_lang('MySpace') |
| 134 | 134 | ); |
| 135 | 135 | if (isset ($_GET['id_coach']) && intval($_GET['id_coach']) != 0) { |
| 136 | 136 | if ($sessionId) { |
| 137 | - $interbreadcrumb[] = array ( |
|
| 138 | - "url" => "student.php?id_coach=" . Security :: remove_XSS($_GET['id_coach']) . "&id_session=" . $sessionId, |
|
| 137 | + $interbreadcrumb[] = array( |
|
| 138 | + "url" => "student.php?id_coach=".Security :: remove_XSS($_GET['id_coach'])."&id_session=".$sessionId, |
|
| 139 | 139 | "name" => get_lang("CoachStudents") |
| 140 | 140 | ); |
| 141 | 141 | } else { |
| 142 | - $interbreadcrumb[] = array ( |
|
| 143 | - "url" => "student.php?id_coach=" . Security :: remove_XSS($_GET['id_coach']), |
|
| 142 | + $interbreadcrumb[] = array( |
|
| 143 | + "url" => "student.php?id_coach=".Security :: remove_XSS($_GET['id_coach']), |
|
| 144 | 144 | "name" => get_lang("CoachStudents") |
| 145 | 145 | ); |
| 146 | 146 | } |
| 147 | 147 | } else { |
| 148 | - $interbreadcrumb[] = array ( |
|
| 148 | + $interbreadcrumb[] = array( |
|
| 149 | 149 | "url" => "student.php", |
| 150 | 150 | "name" => get_lang("MyStudents") |
| 151 | 151 | ); |
@@ -316,28 +316,28 @@ discard block |
||
| 316 | 316 | // Actions bar |
| 317 | 317 | echo '<div class="actions">'; |
| 318 | 318 | echo '<a href="javascript: window.history.go(-1);">'. |
| 319 | - Display::return_icon('back.png', get_lang('Back'),'',ICON_SIZE_MEDIUM).'</a>'; |
|
| 319 | + Display::return_icon('back.png', get_lang('Back'), '', ICON_SIZE_MEDIUM).'</a>'; |
|
| 320 | 320 | |
| 321 | 321 | echo '<a href="javascript: void(0);" onclick="javascript: window.print();">'. |
| 322 | - Display::return_icon('printer.png', get_lang('Print'),'',ICON_SIZE_MEDIUM).'</a>'; |
|
| 322 | + Display::return_icon('printer.png', get_lang('Print'), '', ICON_SIZE_MEDIUM).'</a>'; |
|
| 323 | 323 | |
| 324 | - echo '<a href="' . api_get_self() . '?' . Security :: remove_XSS($_SERVER['QUERY_STRING']) . '&export=csv">'. |
|
| 325 | - Display::return_icon('export_csv.png', get_lang('ExportAsCSV'),'',ICON_SIZE_MEDIUM).'</a> '; |
|
| 324 | + echo '<a href="'.api_get_self().'?'.Security :: remove_XSS($_SERVER['QUERY_STRING']).'&export=csv">'. |
|
| 325 | + Display::return_icon('export_csv.png', get_lang('ExportAsCSV'), '', ICON_SIZE_MEDIUM).'</a> '; |
|
| 326 | 326 | |
| 327 | - echo '<a href="' . api_get_self() . '?' . Security :: remove_XSS($_SERVER['QUERY_STRING']) . '&export=xls">'. |
|
| 328 | - Display::return_icon('export_excel.png', get_lang('ExportAsXLS'),'',ICON_SIZE_MEDIUM).'</a> '; |
|
| 327 | + echo '<a href="'.api_get_self().'?'.Security :: remove_XSS($_SERVER['QUERY_STRING']).'&export=xls">'. |
|
| 328 | + Display::return_icon('export_excel.png', get_lang('ExportAsXLS'), '', ICON_SIZE_MEDIUM).'</a> '; |
|
| 329 | 329 | |
| 330 | 330 | if (!empty ($user_info['email'])) { |
| 331 | 331 | $send_mail = '<a href="mailto:'.$user_info['email'].'">'. |
| 332 | - Display :: return_icon('mail_send.png', get_lang('SendMail'),'',ICON_SIZE_MEDIUM).'</a>'; |
|
| 332 | + Display :: return_icon('mail_send.png', get_lang('SendMail'), '', ICON_SIZE_MEDIUM).'</a>'; |
|
| 333 | 333 | } else { |
| 334 | - $send_mail = Display :: return_icon('mail_send_na.png', get_lang('SendMail'),'',ICON_SIZE_MEDIUM); |
|
| 334 | + $send_mail = Display :: return_icon('mail_send_na.png', get_lang('SendMail'), '', ICON_SIZE_MEDIUM); |
|
| 335 | 335 | } |
| 336 | 336 | echo $send_mail; |
| 337 | 337 | if (!empty($student_id) && !empty($_GET['course'])) { |
| 338 | 338 | // Only show link to connection details if course and student were defined in the URL |
| 339 | - echo '<a href="access_details.php?student=' . $student_id . '&course=' . Security :: remove_XSS($_GET['course']) . '&origin=' . $origin. '&cidReq='.Security::remove_XSS($_GET['course']).'&id_session='.$sessionId.'">'. |
|
| 340 | - Display :: return_icon('statistics.png', get_lang('AccessDetails'),'',ICON_SIZE_MEDIUM).'</a>'; |
|
| 339 | + echo '<a href="access_details.php?student='.$student_id.'&course='.Security :: remove_XSS($_GET['course']).'&origin='.$origin.'&cidReq='.Security::remove_XSS($_GET['course']).'&id_session='.$sessionId.'">'. |
|
| 340 | + Display :: return_icon('statistics.png', get_lang('AccessDetails'), '', ICON_SIZE_MEDIUM).'</a>'; |
|
| 341 | 341 | } |
| 342 | 342 | if (api_can_login_as($student_id)) { |
| 343 | 343 | echo '<a href="'.api_get_path(WEB_CODE_PATH).'admin/user_list.php?action=login_as&user_id='.$student_id.'&sec_token='.$token.'">'. |
@@ -402,7 +402,7 @@ discard block |
||
| 402 | 402 | $csv_content[] = array( |
| 403 | 403 | get_lang('Information', '') |
| 404 | 404 | ); |
| 405 | - $csv_content[] = array ( |
|
| 405 | + $csv_content[] = array( |
|
| 406 | 406 | get_lang('Name', ''), |
| 407 | 407 | get_lang('Email', ''), |
| 408 | 408 | get_lang('Tel', '') |
@@ -430,7 +430,7 @@ discard block |
||
| 430 | 430 | strip_tags($first_connection_date), |
| 431 | 431 | strip_tags($last_connection_date), |
| 432 | 432 | $time_spent_on_the_course, |
| 433 | - $avg_student_progress . '%', |
|
| 433 | + $avg_student_progress.'%', |
|
| 434 | 434 | $avg_student_score |
| 435 | 435 | ); |
| 436 | 436 | |
@@ -478,19 +478,19 @@ discard block |
||
| 478 | 478 | </thead> |
| 479 | 479 | <tbody> |
| 480 | 480 | <tr> |
| 481 | - <td><?php echo get_lang('Name') . ' : '.$user_info['complete_name']; ?></td> |
|
| 481 | + <td><?php echo get_lang('Name').' : '.$user_info['complete_name']; ?></td> |
|
| 482 | 482 | </tr> |
| 483 | 483 | <tr> |
| 484 | - <td><?php echo get_lang('Email') . ' : '; |
|
| 484 | + <td><?php echo get_lang('Email').' : '; |
|
| 485 | 485 | if (!empty ($user_info['email'])) { |
| 486 | - echo '<a href="mailto:' . $user_info['email'] . '">' . $user_info['email'] . '</a>'; |
|
| 486 | + echo '<a href="mailto:'.$user_info['email'].'">'.$user_info['email'].'</a>'; |
|
| 487 | 487 | } else { |
| 488 | 488 | echo get_lang('NoEmail'); |
| 489 | 489 | } ?> |
| 490 | 490 | </td> |
| 491 | 491 | </tr> |
| 492 | 492 | <tr> |
| 493 | - <td> <?php echo get_lang('Tel') . ' : '; |
|
| 493 | + <td> <?php echo get_lang('Tel').' : '; |
|
| 494 | 494 | if (!empty ($user_info['phone'])) { |
| 495 | 495 | echo $user_info['phone']; |
| 496 | 496 | } else { |
@@ -500,7 +500,7 @@ discard block |
||
| 500 | 500 | </td> |
| 501 | 501 | </tr> |
| 502 | 502 | <tr> |
| 503 | - <td> <?php echo get_lang('OfficialCode') . ' : '; |
|
| 503 | + <td> <?php echo get_lang('OfficialCode').' : '; |
|
| 504 | 504 | if (!empty ($user_info['official_code'])) { |
| 505 | 505 | echo $user_info['official_code']; |
| 506 | 506 | } else { |
@@ -510,13 +510,13 @@ discard block |
||
| 510 | 510 | </td> |
| 511 | 511 | </tr> |
| 512 | 512 | <tr> |
| 513 | - <td><?php echo get_lang('OnLine') . ' : '.$online; ?> </td> |
|
| 513 | + <td><?php echo get_lang('OnLine').' : '.$online; ?> </td> |
|
| 514 | 514 | </tr> |
| 515 | 515 | <?php |
| 516 | 516 | |
| 517 | 517 | // Display timezone if the user selected one and if the admin allows the use of user's timezone |
| 518 | 518 | $timezone = null; |
| 519 | - $timezone_user = UserManager::get_extra_user_data_by_field($user_info['user_id'],'timezone'); |
|
| 519 | + $timezone_user = UserManager::get_extra_user_data_by_field($user_info['user_id'], 'timezone'); |
|
| 520 | 520 | $use_users_timezone = api_get_setting('use_users_timezone', 'timezones'); |
| 521 | 521 | if ($timezone_user['timezone'] != null && $use_users_timezone == 'true') { |
| 522 | 522 | $timezone = $timezone_user['timezone']; |
@@ -524,7 +524,7 @@ discard block |
||
| 524 | 524 | if ($timezone !== null) { |
| 525 | 525 | ?> |
| 526 | 526 | <tr> |
| 527 | - <td> <?php echo get_lang('Timezone') . ' : '.$timezone; ?> </td> |
|
| 527 | + <td> <?php echo get_lang('Timezone').' : '.$timezone; ?> </td> |
|
| 528 | 528 | </tr> |
| 529 | 529 | <?php |
| 530 | 530 | } |
@@ -556,7 +556,7 @@ discard block |
||
| 556 | 556 | <td align="right"> |
| 557 | 557 | <?php |
| 558 | 558 | echo get_lang('Progress').' '; |
| 559 | - Display :: display_icon('info3.gif', get_lang('ScormAndLPProgressTotalAverage'), array ('align' => 'absmiddle', 'hspace' => '3px'));?> |
|
| 559 | + Display :: display_icon('info3.gif', get_lang('ScormAndLPProgressTotalAverage'), array('align' => 'absmiddle', 'hspace' => '3px')); ?> |
|
| 560 | 560 | </td> |
| 561 | 561 | <td align="left"><?php echo $avg_student_progress.'%' ?></td> |
| 562 | 562 | </tr> |
@@ -564,7 +564,7 @@ discard block |
||
| 564 | 564 | <td align="right"> |
| 565 | 565 | <?php |
| 566 | 566 | echo get_lang('Score').' '; |
| 567 | - Display :: display_icon('info3.gif', get_lang('ScormAndLPTestTotalAverage'), array ('align' => 'absmiddle', 'hspace' => '3px')); ?> |
|
| 567 | + Display :: display_icon('info3.gif', get_lang('ScormAndLPTestTotalAverage'), array('align' => 'absmiddle', 'hspace' => '3px')); ?> |
|
| 568 | 568 | </td> |
| 569 | 569 | <td align="left"><?php |
| 570 | 570 | if (is_numeric($avg_student_score)) { |
@@ -630,9 +630,9 @@ discard block |
||
| 630 | 630 | } |
| 631 | 631 | |
| 632 | 632 | if (!empty($access_start_date) && !empty($access_end_date)) { |
| 633 | - $date_session = get_lang('From') . ' ' . $access_start_date . ' ' . get_lang('Until') . ' ' . $access_end_date; |
|
| 633 | + $date_session = get_lang('From').' '.$access_start_date.' '.get_lang('Until').' '.$access_end_date; |
|
| 634 | 634 | } |
| 635 | - $title = Display::return_icon('session.png', get_lang('Session'), array(), ICON_SIZE_SMALL).' '.$session_name.($date_session?' ('.$date_session.')':''); |
|
| 635 | + $title = Display::return_icon('session.png', get_lang('Session'), array(), ICON_SIZE_SMALL).' '.$session_name.($date_session ? ' ('.$date_session.')' : ''); |
|
| 636 | 636 | } |
| 637 | 637 | |
| 638 | 638 | // Courses |
@@ -687,16 +687,16 @@ discard block |
||
| 687 | 687 | $scoretotal = array(); |
| 688 | 688 | if (isset($cats) && isset($cats[0])) { |
| 689 | 689 | if (!empty($sessionId)) { |
| 690 | - $scoretotal= $cats[0]->calc_score($student_id, null, $courseCodeItem, $sessionId); |
|
| 690 | + $scoretotal = $cats[0]->calc_score($student_id, null, $courseCodeItem, $sessionId); |
|
| 691 | 691 | } else { |
| 692 | - $scoretotal= $cats[0]->calc_score($student_id, null, $courseCodeItem); |
|
| 692 | + $scoretotal = $cats[0]->calc_score($student_id, null, $courseCodeItem); |
|
| 693 | 693 | } |
| 694 | 694 | } |
| 695 | 695 | |
| 696 | 696 | $scoretotal_display = '0/0 (0%)'; |
| 697 | 697 | if (!empty($scoretotal)) { |
| 698 | 698 | $scoretotal_display = |
| 699 | - round($scoretotal[0], 1 ).'/'. |
|
| 699 | + round($scoretotal[0], 1).'/'. |
|
| 700 | 700 | round($scoretotal[1], 1). |
| 701 | 701 | ' ('.round(($scoretotal[0] / $scoretotal[1]) * 100, 2).' %)'; |
| 702 | 702 | } |
@@ -717,9 +717,9 @@ discard block |
||
| 717 | 717 | ); |
| 718 | 718 | |
| 719 | 719 | echo '<tr> |
| 720 | - <td ><a href="' .$courseInfoItem['course_public_url'] .'?id_session=' . $sessionId . '">'. |
|
| 720 | + <td ><a href="' .$courseInfoItem['course_public_url'].'?id_session='.$sessionId.'">'. |
|
| 721 | 721 | $courseInfoItem['title'].'</a></td> |
| 722 | - <td >'.$time_spent_on_course .'</td> |
|
| 722 | + <td >'.$time_spent_on_course.'</td> |
|
| 723 | 723 | <td >'.$progress.'</td> |
| 724 | 724 | <td >'.$score.'</td> |
| 725 | 725 | <td >'.$attendances_faults_avg.'</td> |
@@ -789,7 +789,7 @@ discard block |
||
| 789 | 789 | <table class="table table-striped table-hover"> |
| 790 | 790 | <thead> |
| 791 | 791 | <tr> |
| 792 | - <th><?php echo get_lang('LearningPath');?></th> |
|
| 792 | + <th><?php echo get_lang('LearningPath'); ?></th> |
|
| 793 | 793 | <th> |
| 794 | 794 | <?php |
| 795 | 795 | echo get_lang('Time').' '; |
@@ -864,7 +864,7 @@ discard block |
||
| 864 | 864 | |
| 865 | 865 | if ($progress === null) { |
| 866 | 866 | $progress = '0%'; |
| 867 | - } else { |
|
| 867 | + } else { |
|
| 868 | 868 | $any_result = true; |
| 869 | 869 | } |
| 870 | 870 | |
@@ -891,7 +891,7 @@ discard block |
||
| 891 | 891 | if (!empty($start_time)) { |
| 892 | 892 | $start_time = api_convert_and_format_date($start_time, DATE_TIME_FORMAT_LONG); |
| 893 | 893 | } else { |
| 894 | - $start_time = '-'; |
|
| 894 | + $start_time = '-'; |
|
| 895 | 895 | } |
| 896 | 896 | |
| 897 | 897 | if (!empty($total_time)) $any_result = true; |
@@ -923,11 +923,11 @@ discard block |
||
| 923 | 923 | $i++; |
| 924 | 924 | |
| 925 | 925 | // csv export content |
| 926 | - $csv_content[] = array ( |
|
| 926 | + $csv_content[] = array( |
|
| 927 | 927 | api_html_entity_decode(stripslashes($lp_name), ENT_QUOTES, $charset), |
| 928 | 928 | api_time_to_hms($total_time), |
| 929 | - $score . '%', |
|
| 930 | - $score_latest . '%', |
|
| 929 | + $score.'%', |
|
| 930 | + $score_latest.'%', |
|
| 931 | 931 | $progress.'%', |
| 932 | 932 | $start_time |
| 933 | 933 | ); |
@@ -966,7 +966,7 @@ discard block |
||
| 966 | 966 | if ($any_result === true) { |
| 967 | 967 | $from = ''; |
| 968 | 968 | if ($from_myspace) { |
| 969 | - $from ='&from=myspace'; |
|
| 969 | + $from = '&from=myspace'; |
|
| 970 | 970 | } |
| 971 | 971 | $link = Display::url( |
| 972 | 972 | Display::return_icon('2rightarrow.png', get_lang('Details')), |
@@ -979,14 +979,14 @@ discard block |
||
| 979 | 979 | echo '<td>'; |
| 980 | 980 | if ($any_result === true) { |
| 981 | 981 | echo '<a href="myStudents.php?action=reset_lp&sec_token='.$token.'&cidReq='.Security::remove_XSS($_GET['course']).'&course='.Security::remove_XSS($_GET['course']).'&details='.Security::remove_XSS($_GET['details']).'&origin='.$origin.'&lp_id='.$learnpath->getId().'&student='.$user_info['user_id'].'&details=true&id_session='.$sessionId.'">'; |
| 982 | - echo Display::return_icon('clean.png', get_lang('Clean'),'',ICON_SIZE_SMALL).'</a>'; |
|
| 982 | + echo Display::return_icon('clean.png', get_lang('Clean'), '', ICON_SIZE_SMALL).'</a>'; |
|
| 983 | 983 | echo '</a>'; |
| 984 | 984 | } |
| 985 | 985 | echo '</td>'; |
| 986 | 986 | echo '</tr>'; |
| 987 | 987 | } |
| 988 | 988 | $data_learnpath[$i][] = $lp_name; |
| 989 | - $data_learnpath[$i][] = $progress . '%'; |
|
| 989 | + $data_learnpath[$i][] = $progress.'%'; |
|
| 990 | 990 | } |
| 991 | 991 | |
| 992 | 992 | ?> |
@@ -1004,7 +1004,7 @@ discard block |
||
| 1004 | 1004 | <thead> |
| 1005 | 1005 | <tr> |
| 1006 | 1006 | <th><?php echo get_lang('Exercises'); ?></th> |
| 1007 | - <th><?php echo get_lang('LearningPath');?></th> |
|
| 1007 | + <th><?php echo get_lang('LearningPath'); ?></th> |
|
| 1008 | 1008 | <th><?php echo get_lang('AvgCourseScore').' '.Display :: return_icon('info3.gif', get_lang('AverageScore'), array('align' => 'absmiddle', 'hspace' => '3px')) ?></th> |
| 1009 | 1009 | <th><?php echo get_lang('Attempts'); ?></th> |
| 1010 | 1010 | <th><?php echo get_lang('LatestAttempt'); ?></th> |
@@ -1023,7 +1023,7 @@ discard block |
||
| 1023 | 1023 | ); |
| 1024 | 1024 | |
| 1025 | 1025 | $t_quiz = Database :: get_course_table(TABLE_QUIZ_TEST); |
| 1026 | - $sql = "SELECT quiz.title, id FROM " . $t_quiz . " AS quiz |
|
| 1026 | + $sql = "SELECT quiz.title, id FROM ".$t_quiz." AS quiz |
|
| 1027 | 1027 | WHERE |
| 1028 | 1028 | quiz.c_id = ".$courseInfo['real_id']." AND |
| 1029 | 1029 | (quiz.session_id = $sessionId OR quiz.session_id = 0) AND |
@@ -1088,7 +1088,7 @@ discard block |
||
| 1088 | 1088 | echo '<td>'; |
| 1089 | 1089 | |
| 1090 | 1090 | if ($count_attempts > 0) { |
| 1091 | - echo $score_percentage . '%'; |
|
| 1091 | + echo $score_percentage.'%'; |
|
| 1092 | 1092 | } else { |
| 1093 | 1093 | echo '-'; |
| 1094 | 1094 | $score_percentage = 0; |
@@ -1098,7 +1098,7 @@ discard block |
||
| 1098 | 1098 | echo '<td>'.$count_attempts.'</td>'; |
| 1099 | 1099 | echo '<td>'; |
| 1100 | 1100 | |
| 1101 | - $sql = 'SELECT exe_id FROM ' . $tbl_stats_exercices . ' |
|
| 1101 | + $sql = 'SELECT exe_id FROM '.$tbl_stats_exercices.' |
|
| 1102 | 1102 | WHERE |
| 1103 | 1103 | exe_exo_id = "'.$exercise_id.'" AND |
| 1104 | 1104 | exe_user_id ="'.$student_id.'" AND |
@@ -1111,7 +1111,7 @@ discard block |
||
| 1111 | 1111 | if (Database :: num_rows($result_last_attempt) > 0) { |
| 1112 | 1112 | $id_last_attempt = Database :: result($result_last_attempt, 0, 0); |
| 1113 | 1113 | if ($count_attempts > 0) |
| 1114 | - echo '<a href="../exercice/exercise_show.php?id=' . $id_last_attempt . '&cidReq='.$course_code.'&session_id='.$sessionId.'&student='.$student_id.'&origin='.(empty($origin)?'tracking':$origin).'"> |
|
| 1114 | + echo '<a href="../exercice/exercise_show.php?id='.$id_last_attempt.'&cidReq='.$course_code.'&session_id='.$sessionId.'&student='.$student_id.'&origin='.(empty($origin) ? 'tracking' : $origin).'"> |
|
| 1115 | 1115 | '.Display::return_icon('quiz.gif').' |
| 1116 | 1116 | </a>'; |
| 1117 | 1117 | } |
@@ -1119,11 +1119,11 @@ discard block |
||
| 1119 | 1119 | |
| 1120 | 1120 | echo '<td>'; |
| 1121 | 1121 | $all_attempt_url = "../exercice/exercise_report.php?exerciseId=$exercise_id&cidReq=$course_code&filter_by_user=$student_id&id_session=$sessionId"; |
| 1122 | - echo Display::url(Display::return_icon('test_results.png', get_lang('AllAttempts'), array(), ICON_SIZE_SMALL), $all_attempt_url ); |
|
| 1122 | + echo Display::url(Display::return_icon('test_results.png', get_lang('AllAttempts'), array(), ICON_SIZE_SMALL), $all_attempt_url); |
|
| 1123 | 1123 | |
| 1124 | 1124 | echo '</td></tr>'; |
| 1125 | 1125 | $data_exercices[$i][] = $exercices['title']; |
| 1126 | - $data_exercices[$i][] = $score_percentage . '%'; |
|
| 1126 | + $data_exercices[$i][] = $score_percentage.'%'; |
|
| 1127 | 1127 | $data_exercices[$i][] = $count_attempts; |
| 1128 | 1128 | |
| 1129 | 1129 | $csv_content[] = array( |
@@ -1151,7 +1151,7 @@ discard block |
||
| 1151 | 1151 | $survey_list = SurveyManager::get_surveys($course_code, $sessionId); |
| 1152 | 1152 | |
| 1153 | 1153 | $survey_data = array(); |
| 1154 | - foreach($survey_list as $survey) { |
|
| 1154 | + foreach ($survey_list as $survey) { |
|
| 1155 | 1155 | $user_list = SurveyManager::get_people_who_filled_survey($survey['survey_id'], false, $courseInfo['real_id']); |
| 1156 | 1156 | $survey_done = Display::return_icon("accept_na.png", get_lang('NoAnswer'), array(), ICON_SIZE_SMALL); |
| 1157 | 1157 | if (in_array($student_id, $user_list)) { |
@@ -1176,7 +1176,7 @@ discard block |
||
| 1176 | 1176 | $column = 0; |
| 1177 | 1177 | $table->setCellContents($row, $column, $data); |
| 1178 | 1178 | $class = 'class="row_odd"'; |
| 1179 | - if($row % 2) { |
|
| 1179 | + if ($row % 2) { |
|
| 1180 | 1180 | $class = 'class="row_even"'; |
| 1181 | 1181 | } |
| 1182 | 1182 | $table->setRowAttributes($row, $class, true); |
@@ -864,7 +864,7 @@ discard block |
||
| 864 | 864 | |
| 865 | 865 | if ($progress === null) { |
| 866 | 866 | $progress = '0%'; |
| 867 | - } else { |
|
| 867 | + } else { |
|
| 868 | 868 | $any_result = true; |
| 869 | 869 | } |
| 870 | 870 | |
@@ -894,7 +894,9 @@ discard block |
||
| 894 | 894 | $start_time = '-'; |
| 895 | 895 | } |
| 896 | 896 | |
| 897 | - if (!empty($total_time)) $any_result = true; |
|
| 897 | + if (!empty($total_time)) { |
|
| 898 | + $any_result = true; |
|
| 899 | + } |
|
| 898 | 900 | |
| 899 | 901 | // Quiz in lp |
| 900 | 902 | $score = Tracking::get_avg_student_score( |
@@ -1110,10 +1112,11 @@ discard block |
||
| 1110 | 1112 | $result_last_attempt = Database::query($sql); |
| 1111 | 1113 | if (Database :: num_rows($result_last_attempt) > 0) { |
| 1112 | 1114 | $id_last_attempt = Database :: result($result_last_attempt, 0, 0); |
| 1113 | - if ($count_attempts > 0) |
|
| 1114 | - echo '<a href="../exercice/exercise_show.php?id=' . $id_last_attempt . '&cidReq='.$course_code.'&session_id='.$sessionId.'&student='.$student_id.'&origin='.(empty($origin)?'tracking':$origin).'"> |
|
| 1115 | + if ($count_attempts > 0) { |
|
| 1116 | + echo '<a href="../exercice/exercise_show.php?id=' . $id_last_attempt . '&cidReq='.$course_code.'&session_id='.$sessionId.'&student='.$student_id.'&origin='.(empty($origin)?'tracking':$origin).'"> |
|
| 1115 | 1117 | '.Display::return_icon('quiz.gif').' |
| 1116 | 1118 | </a>'; |
| 1119 | + } |
|
| 1117 | 1120 | } |
| 1118 | 1121 | echo '</td>'; |
| 1119 | 1122 | |