|
306 | 306 | $status = get_lang('CourseCoach'); |
307 | 307 | break; |
308 | 308 | } |
309 | | - $tools = '<a href="course_information.php?code='.$courseInfo['code'].'&id_session='.$id_session.'">'. |
| 309 | + |
| 310 | + $tools = Display::url( |
| 311 | + Display::return_icon('statistics.gif', get_lang('Stats')), |
| 312 | + api_get_path(WEB_CODE_PATH).'mySpace/myStudents.php?details=true&student='.$userId.'&id_session='.$id_session.'&course='.$courseInfo['code'] |
| 313 | + ); |
| 314 | + $tools .= ' <a href="course_information.php?code='.$courseInfo['code'].'&id_session='.$id_session.'">'. |
310 | 315 | Display::return_icon('synthese_view.gif', get_lang('Overview')).'</a>'. |
311 | 316 | '<a href="'.$courseInfo['course_public_url'].'?id_session='.$id_session.'">'. |
312 | 317 | Display::return_icon('course_home.gif', get_lang('CourseHomepage')).'</a>'; |
|
415 | 420 | $courseCode = $courseInfo['code']; |
416 | 421 | $courseToolInformation = null; |
417 | 422 |
|
418 | | - $tools = '<a href="course_information.php?code='.$courseCode.'">'. |
| 423 | + $tools = Display::url( |
| 424 | + Display::return_icon('statistics.gif', get_lang('Stats')), |
| 425 | + api_get_path(WEB_CODE_PATH).'mySpace/myStudents.php?details=true&student='.$userId.'&id_session=0&course='.$courseCode |
| 426 | + ); |
| 427 | + |
| 428 | + $tools .= ' <a href="course_information.php?code='.$courseCode.'">'. |
419 | 429 | Display::return_icon('synthese_view.gif', get_lang('Overview')).'</a>'. |
420 | 430 | '<a href="'.$courseInfo['course_public_url'].'">'. |
421 | 431 | Display::return_icon('course_home.gif', get_lang('CourseHomepage')).'</a>'. |
|
427 | 437 | } |
428 | 438 |
|
429 | 439 | $timeSpent = api_time_to_hms( |
430 | | - Tracking :: get_time_spent_on_the_course( |
| 440 | + Tracking::get_time_spent_on_the_course( |
431 | 441 | $userId, |
432 | | - $courseInfo['real_id'], |
433 | | - 0 |
| 442 | + $courseInfo['real_id'] |
434 | 443 | ) |
435 | 444 | ); |
436 | 445 |
|
|
0 commit comments