|
|
|
@ -327,7 +327,13 @@ function display_special_courses ($user_id) { |
|
|
|
|
if (($course['status'] == 5 && !api_is_coach()) || empty($course['status'])) { |
|
|
|
|
$status_icon=Display::return_icon('course.gif', get_lang('Course')).' '.Display::return_icon('students.gif', get_lang('Status').': '.get_lang('Student'),array('style'=>'width:11px; height:11px')); |
|
|
|
|
} |
|
|
|
|
$progress_thematic_icon = '<a href="'.api_get_path(WEB_CODE_PATH).'course_description/index.php?action=edit&cidReq='.$course['code'].'&description_type=8'.'">'.get_thematic_progress_icon($course['db_name']).'</a>'; |
|
|
|
|
|
|
|
|
|
if (api_is_allowed_to_edit(null, true)) { |
|
|
|
|
$progress_thematic_icon = '<a href="'.api_get_path(WEB_CODE_PATH).'course_description/index.php?action=edit&cidReq='.$course['code'].'&description_type=8'.'">'.get_thematic_progress_icon($course['db_name']).'</a>'; |
|
|
|
|
} else { |
|
|
|
|
$progress_thematic_icon = get_thematic_progress_icon($course['db_name']); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
echo "\t<tr>\n"; |
|
|
|
|
echo "\t\t<td>\n"; |
|
|
|
|
|
|
|
|
@ -463,7 +469,13 @@ function display_courses_in_category($user_category_id) { |
|
|
|
|
if (($course['status'] == STUDENT && !api_is_coach()) || empty($course['status'])) { |
|
|
|
|
$status_icon=Display::return_icon('course.gif', get_lang('Course')).' '.Display::return_icon('students.gif', get_lang('Status').': '.get_lang('Student'),array('style'=>'width:11px; height:11px')); |
|
|
|
|
} |
|
|
|
|
$progress_thematic_icon = '<a href="'.api_get_path(WEB_CODE_PATH).'course_description/index.php?action=edit&cidReq='.$course['code'].'&description_type=8'.'">'.get_thematic_progress_icon($course['db_name']).'</a>'; |
|
|
|
|
|
|
|
|
|
if (api_is_allowed_to_edit(null,true)) { |
|
|
|
|
$progress_thematic_icon = '<a href="'.api_get_path(WEB_CODE_PATH).'course_description/index.php?action=edit&cidReq='.$course['code'].'&description_type=8'.'">'.get_thematic_progress_icon($course['db_name']).'</a>'; |
|
|
|
|
} else { |
|
|
|
|
$progress_thematic_icon = get_thematic_progress_icon($course['db_name']); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
echo "\t<tr>\n"; |
|
|
|
|
echo "\t\t<td>\n"; |
|
|
|
|
|
|
|
|
@ -785,7 +797,13 @@ function get_logged_user_course_html($course, $session_id = 0, $class='courses') |
|
|
|
|
} else { |
|
|
|
|
$result .= $course_display_title." "." ".get_lang('CourseClosed').""; |
|
|
|
|
} |
|
|
|
|
$progress_thematic_icon = '<a href="'.api_get_path(WEB_CODE_PATH).'course_description/index.php?action=edit&cidReq='.$course['code'].'&description_type=8'.'">'.get_thematic_progress_icon($course_database, $session_id).'</a>'; |
|
|
|
|
|
|
|
|
|
if (api_is_allowed_to_edit(null, true)) { |
|
|
|
|
$progress_thematic_icon = '<a href="'.api_get_path(WEB_CODE_PATH).'course_description/index.php?action=edit&cidReq='.$course['code'].'&description_type=8'.'">'.get_thematic_progress_icon($course_database, $session_id).'</a>'; |
|
|
|
|
} else { |
|
|
|
|
$progress_thematic_icon = get_thematic_progress_icon($course_database, $session_id); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$result .= ' <span>'.$progress_thematic_icon.'</span>'; |
|
|
|
|
// show the course_code and teacher if chosen to display this |
|
|
|
|
if (api_get_setting('display_coursecode_in_courselist') == 'true' || api_get_setting('display_teacher_in_courselist') == 'true') { |
|
|
|
|