diff --git a/main/img/quizz_small.gif b/main/img/quizz_small.gif new file mode 100644 index 0000000000..16cad2083e Binary files /dev/null and b/main/img/quizz_small.gif differ diff --git a/main/img/works_small.gif b/main/img/works_small.gif new file mode 100644 index 0000000000..bb250c78fc Binary files /dev/null and b/main/img/works_small.gif differ diff --git a/main/newscorm/learnpath.class.php b/main/newscorm/learnpath.class.php index 950a14458f..4b46f2e0b8 100644 --- a/main/newscorm/learnpath.class.php +++ b/main/newscorm/learnpath.class.php @@ -7059,7 +7059,7 @@ function display_thread_form($action = 'add', $id = 0, $extra_info = '') $return .= '
'; $resources=api_store_result($res_doc); - + $return .=$this->write_resources_tree('', $resources); $return .='
'; @@ -7073,6 +7073,7 @@ function display_thread_form($action = 'add', $id = 0, $extra_info = '') function write_resources_tree($parent, $resources_array_first = false){ + include_once(api_get_path(LIBRARY_PATH).'fileDisplay.lib.php'); static $resources_array; if($resources_array_first !== false) $resources_array = $resources_array_first; @@ -7090,7 +7091,11 @@ function display_thread_form($action = 'add', $id = 0, $extra_info = '') //It's a file if ($value['filetype'] == 'file') { if($num==0) $num=1; - $return .= '
'.$value['title']."
\r\n"; + //$return .= '
'.$value['title']."
\r\n"; + $icon = choose_image(trim($value['title'])); + $position = strrpos($icon,'.'); + $icon=substr($icon,0,$position).'_small.gif'; + $return .= '
'.$value['title']."
\r\n"; array_shift($resources_array); } //It's a folder @@ -7129,7 +7134,7 @@ function display_thread_form($action = 'add', $id = 0, $extra_info = '') { $return .= '
'; - $return .= ''; + $return .= ''; $return .= '' . $row_quiz['title'] . ''; //$return .= $row_quiz['title']; @@ -7166,7 +7171,7 @@ function display_thread_form($action = 'add', $id = 0, $extra_info = '') { $return .= '
'; - $return .= ''; + $return .= ''; $return .= '' . $row_link['title'] . ''; $return .= '
'; @@ -7198,7 +7203,7 @@ function display_thread_form($action = 'add', $id = 0, $extra_info = '') $return .= '
'.get_lang('Assignments').'
'; $return .= '
'; $return .= '
'; - $return .= ''; + $return .= ''; $return .= '' . get_lang('AddAssignmentPage') . ''; $return .= '
'; $return .= '
';