|
|
|
@ -957,36 +957,33 @@ class IndexManager { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// My account section. |
|
|
|
|
if ($show_menu) { |
|
|
|
|
$my_account_content = '<ul class="menulist">'; |
|
|
|
|
if ($show_create_link) { |
|
|
|
|
$my_account_content .= '<li><a href="main/create_course/add_course.php">'.(api_get_setting('course_validation') == 'true' ? get_lang('CreateCourseRequest') : get_lang('CourseCreate')).'</a></li>'; |
|
|
|
|
} |
|
|
|
|
if ($show_course_link) { |
|
|
|
|
if (!api_is_drh()) { |
|
|
|
|
$my_account_content .= '<li><a href="main/auth/courses.php">'.get_lang('CourseManagement').'</a></li>'; |
|
|
|
|
|
|
|
|
|
$url = api_get_path(WEB_CODE_PATH).'auth/courses.php?action=sortmycourses'; |
|
|
|
|
$my_account_content .= Display::url(get_lang('SortMyCourses'), $url); |
|
|
|
|
|
|
|
|
|
if (api_get_setting('use_session_mode') == 'true') { |
|
|
|
|
if (isset($_GET['history']) && intval($_GET['history']) == 1) { |
|
|
|
|
$my_account_content .= '<li><a href="user_portal.php">'.get_lang('DisplayTrainingList').'</a></li>'; |
|
|
|
|
} else { |
|
|
|
|
$my_account_content .= '<li><a href="user_portal.php?history=1">'.get_lang('HistoryTrainingSessions').'</a></li>'; |
|
|
|
|
} |
|
|
|
|
// My account section |
|
|
|
|
$my_account_content = '<ul class="menulist">'; |
|
|
|
|
if ($show_create_link) { |
|
|
|
|
$my_account_content .= '<li><a href="main/create_course/add_course.php">'.(api_get_setting('course_validation') == 'true' ? get_lang('CreateCourseRequest') : get_lang('CourseCreate')).'</a></li>'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//Sort courses |
|
|
|
|
$url = api_get_path(WEB_CODE_PATH).'auth/courses.php?action=sortmycourses'; |
|
|
|
|
$my_account_content .= Display::url(get_lang('SortMyCourses'), $url); |
|
|
|
|
|
|
|
|
|
//Course management |
|
|
|
|
if ($show_course_link) { |
|
|
|
|
if (!api_is_drh()) { |
|
|
|
|
$my_account_content .= '<li><a href="main/auth/courses.php">'.get_lang('CourseManagement').'</a></li>'; |
|
|
|
|
|
|
|
|
|
if (api_get_setting('use_session_mode') == 'true') { |
|
|
|
|
if (isset($_GET['history']) && intval($_GET['history']) == 1) { |
|
|
|
|
$my_account_content .= '<li><a href="user_portal.php">'.get_lang('DisplayTrainingList').'</a></li>'; |
|
|
|
|
} else { |
|
|
|
|
$my_account_content .= '<li><a href="user_portal.php?history=1">'.get_lang('HistoryTrainingSessions').'</a></li>'; |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
$my_account_content .= '<li><a href="main/dashboard/index.php">'.get_lang('Dashboard').'</a></li>'; |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
$my_account_content .= '<li><a href="main/dashboard/index.php">'.get_lang('Dashboard').'</a></li>'; |
|
|
|
|
} |
|
|
|
|
if ($show_digest_link) { |
|
|
|
|
//digest never used? |
|
|
|
|
//$my_account_content .= Display :: display_digest($toolsList, $digest, $orderKey, $courses); |
|
|
|
|
} |
|
|
|
|
$my_account_content .= '</ul>'; |
|
|
|
|
} |
|
|
|
|
$my_account_content .= '</ul>'; |
|
|
|
|
|
|
|
|
|
if (!empty($my_account_content)) { |
|
|
|
|
$html = self::show_right_block(get_lang('MenuUser'), $my_account_content); |
|
|
|
|