From 9f703741cfda307c770e50e0c7fb1988a4a62dfe Mon Sep 17 00:00:00 2001 From: Eric Marguin Date: Tue, 27 Mar 2007 11:37:52 +0200 Subject: [PATCH] [svn r11714] details for students progress in lp --- main/mySpace/lp_tracking.php | 64 ++++++++++++++++++++++++++++++++++-- main/newscorm/lp_stats.php | 53 +++++++++++++++++++---------- 2 files changed, 97 insertions(+), 20 deletions(-) diff --git a/main/mySpace/lp_tracking.php b/main/mySpace/lp_tracking.php index 3bae4fbf14..5528bf018d 100644 --- a/main/mySpace/lp_tracking.php +++ b/main/mySpace/lp_tracking.php @@ -49,6 +49,66 @@ $interbreadcrumb[] = array("url" => "myStudents.php?student=".$_GET['student_id' $nameTools = get_lang('LearningPathDetails'); +$htmlHeadXtra[] = ' +'; + Display :: display_header($nameTools); $user_id = intval($_GET['student_id']); @@ -56,8 +116,8 @@ $lp_id = intval($_GET['lp_id']); $list = learnpath :: get_flat_ordered_items_list($lp_id); - +$origin = 'tracking'; include_once('../newscorm/lp_stats.php'); - ?> + diff --git a/main/newscorm/lp_stats.php b/main/newscorm/lp_stats.php index 84779268a4..9ef060eb4f 100644 --- a/main/newscorm/lp_stats.php +++ b/main/newscorm/lp_stats.php @@ -19,22 +19,26 @@ require_once ('resourcelinker.inc.php'); //$list = $_SESSION['oLP']->get_flat_ordered_items_list($lp_id); //$user_id = $_user['user_id']; //$stats_charset = $_SESSION['oLP']->encoding - -if (!empty ($stats_charset)) { - $charset_lang = $stats_charset; -} else { - $charset_lang = 'ISO-8859-1'; +if(!isset($origin)) + $origin = ''; +if($origin != 'tracking') +{ + if (!empty ($stats_charset)) { + $charset_lang = $stats_charset; + } else { + $charset_lang = 'ISO-8859-1'; + } + $dokeos_charset = 'ISO-8859-1'; + $charset = $charset_lang; + $w = $tablewidth -20; + $htmlHeadXtra[] = ''.''; + include_once ('../inc/reduced_header.inc.php'); + echo ''; } -$dokeos_charset = 'ISO-8859-1'; -$charset = $charset_lang; -$w = $tablewidth -20; -$htmlHeadXtra[] = ''.''; -include_once ('../inc/reduced_header.inc.php'); -echo ''; //if display in fullscreen required if (strcmp($_GET["fs"], "true") == 0) { @@ -46,11 +50,21 @@ if (strcmp($_GET["fs"], "true") == 0) { //check if the user asked for the "extend all" option $extend_all_link = ''; $extend_all = 0; + +if($origin == 'tracking') +{ + $url_suffix = '&course='.$_GET['course'].'&student_id='.$_GET['student_id'].'&lp_id='.$_GET['lp_id']; +} +else +{ + $url_suffix = ''; +} + if (!empty ($_GET['extend_all'])) { - $extend_all_link = 'fold_view'; + $extend_all_link = 'fold_view'; $extend_all = 1; } else { - $extend_all_link = 'extend_view'; + $extend_all_link = 'extend_view'; } $output .= "
".htmlentities(get_lang('ScormMystatus'), ENT_QUOTES, $dokeos_charset)."
"." ".""."\n".''.'\n".'\n".'\n".'\n"; @@ -291,7 +305,10 @@ $output .= "\n"."\n".''."\n".'\n".''."\n"."\n"; $output .= "
'.$extend_all_link.'
'.htmlentities(get_lang('ScormLessonTitle'), ENT_QUOTES, $dokeos_charset)."
'.htmlentities(get_lang('ScormStatus'), ENT_QUOTES, $dokeos_charset)."
'.htmlentities(get_lang('ScormScore'), ENT_QUOTES, $dokeos_charset)."
'.htmlentities(get_lang('ScormTime'), ENT_QUOTES, $dokeos_charset)."
'. ($total_score == 0 ? '-' : $total_percent.'%')."
'.$total_time.'
"; -$output .= ""; +if($origin != 'tracking') +{ + $output .= ""; +} echo $output; ?>