From 01b8c74c459de31621cea1d279d3aa35a1a9404d Mon Sep 17 00:00:00 2001 From: Eric Marguin Date: Fri, 6 Apr 2007 10:22:17 +0200 Subject: [PATCH] [svn r11895] display the informations about course - lp - user in lp_tracking --- main/mySpace/lp_tracking.php | 18 ++++++++++++++++-- main/newscorm/lp_stats.php | 7 +++++-- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/main/mySpace/lp_tracking.php b/main/mySpace/lp_tracking.php index 6617c26ec9..9e70f60b45 100644 --- a/main/mySpace/lp_tracking.php +++ b/main/mySpace/lp_tracking.php @@ -121,10 +121,24 @@ Display :: display_header($nameTools); $user_id = intval($_GET['student_id']); $lp_id = intval($_GET['lp_id']); -echo '
+$sql = 'SELECT name + FROM '.Database::get_course_table(TABLE_LP_MAIN, $_course['db_name']).' + WHERE id='.$lp_id; +$rs = api_sql_query($sql, __FILE__, __LINE__); +$lp_title = mysql_result($rs, 0, 0); + +$sql = 'SELECT lastname, firstname + FROM '.Database::get_main_table(TABLE_MAIN_USER).' + WHERE user_id='.$user_id; +$rs = api_sql_query($sql, __FILE__, __LINE__); +$name = mysql_result($rs, 0, 0).' '.mysql_result($rs, 0, 1); + +echo '

'.$_course['title'].' - '.$lp_title.' - '.$name.'

+
 '.get_lang('Print').'  '.get_lang('ExportAsCSV').' -
'; +
+
'; $list = learnpath :: get_flat_ordered_items_list($lp_id); diff --git a/main/newscorm/lp_stats.php b/main/newscorm/lp_stats.php index 2305a71bf7..3373ad52d7 100644 --- a/main/newscorm/lp_stats.php +++ b/main/newscorm/lp_stats.php @@ -67,8 +67,11 @@ if (!empty ($_GET['extend_all'])) { $extend_all_link = 'extend_view'; } -$output .= "
".htmlentities(get_lang('ScormMystatus'), ENT_QUOTES, $dokeos_charset)."
"." ".""."\n".''.'\n".'\n".'\n".'\n"; - +if($origin != 'tracking') +{ + $output .= ""; +} +$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)."
".htmlentities(get_lang('ScormMystatus'), ENT_QUOTES, $dokeos_charset)."
 
"."\n".''.'\n".'\n".'\n".'\n"; //going through the items using the $items[] array instead of the database order ensures // we get them in the same order as in the imsmanifest file, which is rather random when using // the database table
'.$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)."