@ -103,7 +103,7 @@ function get_course_data($from, $number_of_items, $column, $direction) {
while ($course = Database::fetch_row($res)) {
// Place colour icons in front of courses.
//$course[1] = '< nobr > '.get_course_visibility_icon($course[9]).'< a href = "'.api_get_path(WEB_COURSE_PATH).$course[9].'/index.php" > '.$course[1].'< / a > < / nobr > ';
$course[1] = '< nobr > '.get_course_visibility_icon($course[9]).'< a href = "'.api_get_path(WEB_COURSE_PATH).$course[8 ].'/index.php" > '.$course[1].'< / a > < / nobr > ';
$course[1] = '< nobr > '.get_course_visibility_icon($course[9]).'< a href = "'.api_get_path(WEB_COURSE_PATH).$course[10 ].'/index.php" > '.$course[1].'< / a > < / nobr > ';
$course[5] = $course[5] == SUBSCRIBE_ALLOWED ? get_lang('Yes') : get_lang('No');
$course[6] = $course[6] == UNSUBSCRIBE_ALLOWED ? get_lang('Yes') : get_lang('No');
//$course[7] = CourseManager :: is_virtual_course_from_system_code($course[7]) ? get_lang('Yes') : get_lang('No');
@ -118,10 +118,11 @@ function get_course_data($from, $number_of_items, $column, $direction) {
* Filter to display the edit-buttons
*/
function modify_filter($code) {
$icourse = api_get_course_info($code);
return
'< a href = "course_information.php?code='.$code.'" > '.Display::return_icon('synthese_view.gif', get_lang('Info')).'< / a > '.
//'< a href = "../course_home/course_home.php?cidReq='.$code.'" > '.Display::return_icon('course_home.gif', get_lang('CourseHomepage')).'< / a > '. // This is not the preferable way to go to the homepage.
'< a href = "'.api_get_path(WEB_COURSE_PATH).$code .'/index.php" > '.Display::return_icon('course_home.gif', get_lang('CourseHomepage')).'< / a > '.
'< a href = "'.api_get_path(WEB_COURSE_PATH).$icourse['path'] .'/index.php" > '.Display::return_icon('course_home.gif', get_lang('CourseHomepage')).'< / a > '.
'< a href = "../tracking/courseLog.php?cidReq='.$code.'" > '.Display::return_icon('statistics.gif', get_lang('Tracking')).'< / a > '.
'< a href = "course_edit.php?course_code='.$code.'" > '.Display::return_icon('edit.gif', get_lang('Edit')).'< / a > '.
'< a href = "course_list.php?delete_course='.$code.'" onclick = "javascript: if (!confirm('." ' " . addslashes ( api_htmlentities ( get_lang ( ' ConfirmYourChoice ' ) , ENT_QUOTES ) ) . " ' " . ' ) ) return false ; " > '.Display::return_icon('delete.gif', get_lang('Delete')).'< / a > '.