123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- <?php
- /*
- * Created on 26 mars 07 by Eric Marguin
- *
- * Script to display the tracking of the students in the learning paths.
- */
-
- $language_file = array ('registration', 'index', 'tracking', 'exercice', 'scorm');
- $cidReset = true;
- include ('../inc/global.inc.php');
- include_once(api_get_path(LIBRARY_PATH).'tracking.lib.php');
- include_once(api_get_path(LIBRARY_PATH).'export.lib.inc.php');
- include_once(api_get_path(LIBRARY_PATH).'course.lib.php');
- include_once('../newscorm/learnpath.class.php');
- include_once('../newscorm/learnpathItem.class.php');
- if(!CourseManager :: is_course_teacher($_user['user_id'], $_GET['course']) && !Tracking :: is_allowed_to_coach_student($_user['user_id'],$_GET['student_id']))
- {
- Display::display_header('');
- api_not_allowed();
- Display::display_footer();
- }
- $_course = CourseManager :: get_course_information($_GET['course']);
- $_course['dbNameGlu'] = $_configuration['table_prefix'] . $_course['db_name'] . $_configuration['db_glue'];
- $cidReq = $_GET['course'];
- if(!empty($_GET['origin']) && $_GET['origin'] == 'user_course')
- {
- $interbreadcrumb[] = array ("url" => api_get_path(WEB_COURSE_PATH).$_course['directory'], 'name' => $_course['title']);
- $interbreadcrumb[] = array ("url" => "../user/user.php?cidReq=".$_GET['course'], "name" => get_lang("Users"));
- }
- else if(!empty($_GET['origin']) && $_GET['origin'] == 'tracking_course')
- {
- $interbreadcrumb[] = array ("url" => api_get_path(WEB_COURSE_PATH).$_course['directory'], 'name' => $_course['title']);
- $interbreadcrumb[] = array ("url" => "../tracking/courseLog.php?cidReq=".$_GET['course'].'&studentlist=true', "name" => get_lang("Tracking"));
- }
- else
- {
- $interbreadcrumb[] = array ("url" => "index.php", "name" => get_lang('MySpace'));
- $interbreadcrumb[] = array ("url" => "student.php", "name" => get_lang("MyStudents"));
- $interbreadcrumb[] = array ("url" => "myStudents.php?student=".$_GET['student_id'], "name" => get_lang("StudentDetails"));
- $nameTools=get_lang("DetailsStudentInCourse");
- }
- $interbreadcrumb[] = array("url" => "myStudents.php?student=".$_GET['student_id']."&course=".$_GET['course']."&details=true" , "name" => get_lang("StudentDetails"));
- $nameTools = get_lang('LearningPathDetails');
- $htmlHeadXtra[] = '
- <style>
- div.title {
- font-weight : bold;
- text-align : left;
- }
- div.mystatusfirstrow {
- font-weight : bold;
- text-align : left;
- }
- div.description {
- font-family : Arial, Helvetica, sans-serif;
- font-size: 10px;
- color: Silver;
- }
- .data_table
- {
- border-collapse: collapse;
- }
- .data_table th{
- padding-right: 0px;
- border: 1px solid gray;
- background-color: #eef;
- }
- .data_table tr.row_odd
- {
- background-color: #fafafa;
- }
- .data_table tr.row_odd:hover, .data_table tr.row_even:hover
- {
- background-color: #f0f0f0;
- }
- .data_table tr.row_even
- {
- background-color: #fff;
- }
- .data_table td
- {
- padding: 5px;
- vertical-align: top;
- border-bottom: 1px solid #b1b1b1;
- border-right: 1px dotted #e1e1e1;
- border-left: 1px dotted #e1e1e1;
- }
- .margin_table
- {
- margin-left : 3px;
- width: 80%;
- }
- .margin_table td.title
- {
- background-color: #ffff99;
- }
- .margin_table td.content
- {
- background-color: #ddddff;
- }
- </style>';
- Display :: display_header($nameTools);
- $user_id = intval($_GET['student_id']);
- $lp_id = intval($_GET['lp_id']);
- $list = learnpath :: get_flat_ordered_items_list($lp_id);
- $origin = 'tracking';
- include_once('../newscorm/lp_stats.php');
- Display :: display_footer();
- ?>
|