From ef9d287d4390959a9f40a7b0b13e76b513df6a8d Mon Sep 17 00:00:00 2001 From: Patrick Cool Date: Thu, 28 May 2009 14:12:08 +0200 Subject: [PATCH] [svn r21036] move actions to the actions bar --- main/mySpace/myStudents.php | 66 +++++++++++-------------------------- 1 file changed, 19 insertions(+), 47 deletions(-) diff --git a/main/mySpace/myStudents.php b/main/mySpace/myStudents.php index fd19df2729..8433b9d890 100644 --- a/main/mySpace/myStudents.php +++ b/main/mySpace/myStudents.php @@ -1,4 +1,4 @@ - -  '.get_lang('Print').' -  '.get_lang('ExportAsCSV').' - '; + // Actions bar + echo '
'; + echo ' '.get_lang('Print').''; + echo ' '.get_lang('ExportAsCSV').''; + if(!empty($a_infosUser['email'])) + { + $sendMail = Display::encrypted_mailto_link($a_infosUser['email'], /*Display::return_icon('send_mail.gif').' '.*/get_lang('SendMail')); + } + else + { + $sendMail = Display::return_icon('send_mail.gif',get_lang('SendMail')).' '.get_lang('SendMail'); + } + echo $sendMail; + if(!empty($_GET['student']) && !empty($_GET['course'])) + { //only show link to connection details if course and student were defined in the URL + echo ''.Display::return_icon('statistics.gif',get_lang('AccessDetails')).' '.get_lang('AccessDetails').''; + } + echo '
'; // is the user online ? $statistics_database = Database :: get_statistic_database(); @@ -426,48 +440,6 @@ if(!empty($_GET['student'])) - - - - - - - - - - - "; - echo ' '.$sendMail; - echo ""; - } - else - { - echo ""; - } - ?> - - - '; - echo ''; - echo ''; - } - ?> -
- -
-