|
@@ -151,6 +151,7 @@ if ($is_drh) {
|
|
|
|
|
|
echo '<div id="actions" class="actions">';
|
|
|
|
|
|
+
|
|
|
echo '<span style="float:right">';
|
|
|
|
|
|
if ($display == 'useroverview' || $display == 'sessionoverview' || $display == 'courseoverview') {
|
|
@@ -163,6 +164,18 @@ echo '</span>';
|
|
|
|
|
|
if (!empty($session_id)) {
|
|
|
echo '<a href="index.php">'.Display::return_icon('back.png', get_lang('Back'),'',ICON_SIZE_MEDIUM).'</a>';
|
|
|
+ if (api_get_setting('add_users_by_coach') == 'true') {
|
|
|
+ if (!api_is_platform_admin()) {
|
|
|
+ if (!$is_coach) {
|
|
|
+ api_not_allowed(true);
|
|
|
+ } else {
|
|
|
+ echo "<div align=\"right\">";
|
|
|
+ echo '<a href="user_import.php?id_session='.$session_id.'&action=export&type=xml">'.Display::return_icon('excel.gif', get_lang('ImportUserList')).' '.get_lang('ImportUserList').'</a>';
|
|
|
+ echo "</div><br />";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
} else {
|
|
|
echo Display::url(Display::return_icon('stats.png', get_lang('MyStats'),'',ICON_SIZE_MEDIUM),api_get_path(WEB_CODE_PATH)."auth/my_progress.php" );
|
|
|
}
|