Don't show session list in reporting for session course coach - refs BT#12881

remotes/angel/1.11.x
Angel Fernando Quiroz Campos 8 years ago
parent 0532419f13
commit 18c0dc0c60
  1. 32
      main/tracking/courseLog.php

@ -312,22 +312,26 @@ if (!empty($coaches)) {
$html .= $coaches;
}
$sessionList = SessionManager::get_session_by_course($courseInfo['real_id']);
if (!empty($sessionList)) {
$html .= Display::page_subheader2(get_lang('SessionList'));
$icon = Display::return_icon(
'session.png',
null,
null,
ICON_SIZE_TINY
);
if (api_is_platform_admin(true) || api_is_session_general_coach()) {
$sessionList = SessionManager::get_session_by_course($courseInfo['real_id']);
if (!empty($sessionList)) {
$html .= Display::page_subheader2(get_lang('SessionList'));
$icon = Display::return_icon(
'session.png',
null,
null,
ICON_SIZE_TINY
);
$html .= '<ul class="session-list">';
foreach ($sessionList as $session) {
$url = api_get_path(WEB_CODE_PATH).'mySpace/course.php?session_id='.$session['id'].'&cidReq='.$courseInfo['code'];
$html .= Display::tag('li', $icon.' '.Display::url($session['name'], $url));
$html .= '<ul class="session-list">';
foreach ($sessionList as $session) {
$url = api_get_path(WEB_CODE_PATH).'mySpace/course.php?session_id='
.$session['id'].'&cidReq='.$courseInfo['code'];
$html .= Display::tag('li', $icon.' '.Display::url($session['name'], $url));
}
$html .= '</ul>';
}
$html .= '</ul>';
}
$html .= Display::page_subheader2(get_lang('StudentList'));

Loading…
Cancel
Save