From b04d9e23747037d3ea41f23e58a51afe04be45dc Mon Sep 17 00:00:00 2001 From: Eric Marguin Date: Fri, 6 Apr 2007 11:16:40 +0200 Subject: [PATCH] [svn r11900] display a title --- main/mySpace/student.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/main/mySpace/student.php b/main/mySpace/student.php index f06b13cc4f..108ab42213 100644 --- a/main/mySpace/student.php +++ b/main/mySpace/student.php @@ -22,9 +22,14 @@ $csv_content = array(); if(isset($_GET['id_coach']) && intval($_GET['id_coach'])!=0){ $nameTools= get_lang("CoachStudents"); + $sql = 'SELECT lastname, firstname FROM '.Database::get_main_table(TABLE_MAIN_USER).' WHERE user_id='.intval($_GET['id_coach']); + $rs = api_sql_query($sql, __FILE__, __LINE__); + $coach_name = mysql_result($rs, 0, 0).' '.mysql_result($rs, 0, 1); + $title = get_lang('Probationers').' - '.$coach_name; } else{ - $nameTools= get_lang("Students"); + $nameTools= get_lang("Students"); + $title = get_lang('Probationers'); } $this_section = "session_my_space"; @@ -84,10 +89,11 @@ function sort_users($a, $b) if($isCoach || api_is_platform_admin()) { - echo '
+ echo '

'.$title.'

+
 '.get_lang('Print').'  '.get_lang('ExportAsCSV').' -
'; +
'; if(isset($_GET['id_coach'])){ $coach_id=intval($_GET['id_coach']);