|
|
|
@ -121,10 +121,24 @@ Display :: display_header($nameTools); |
|
|
|
|
$user_id = intval($_GET['student_id']); |
|
|
|
|
$lp_id = intval($_GET['lp_id']); |
|
|
|
|
|
|
|
|
|
echo '<div align="right"> |
|
|
|
|
$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 '<div align="left" style="float:left"><h4>'.$_course['title'].' - '.$lp_title.' - '.$name.'</h4></div> |
|
|
|
|
<div align="right"> |
|
|
|
|
<a href="#" onclick="window.print()"><img align="absbottom" src="../img/printmgr.gif"> '.get_lang('Print').'</a> |
|
|
|
|
<a href="'.$_SERVER['PHP_SELF'].'?export=csv&'.$_SERVER['QUERY_STRING'].'"><img align="absbottom" src="../img/excel.gif"> '.get_lang('ExportAsCSV').'</a> |
|
|
|
|
</div>'; |
|
|
|
|
</div> |
|
|
|
|
<div class="clear"></div>'; |
|
|
|
|
|
|
|
|
|
$list = learnpath :: get_flat_ordered_items_list($lp_id); |
|
|
|
|
|
|
|
|
|