|
|
@ -182,16 +182,16 @@ function get_icon_file_name ($type) { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
function build_edit_icons_cat($cat, $selectcat) { |
|
|
|
function build_edit_icons_cat($cat, $selectcat) { |
|
|
|
|
|
|
|
|
|
|
|
$show_message=$cat->show_message_resource_delete($cat->get_name()); |
|
|
|
$show_message=$cat->show_message_resource_delete($cat->get_course_code()); |
|
|
|
if ($show_message===false) { |
|
|
|
if ($show_message===false) { |
|
|
|
$visibility_icon= ($cat->is_visible() == 0) ? 'invisible' : 'visible'; |
|
|
|
$visibility_icon= ($cat->is_visible() == 0) ? 'invisible' : 'visible'; |
|
|
|
$visibility_command= ($cat->is_visible() == 0) ? 'set_visible' : 'set_invisible'; |
|
|
|
$visibility_command= ($cat->is_visible() == 0) ? 'set_visible' : 'set_invisible'; |
|
|
|
$modify_icons= '<a href="gradebook_edit_cat.php?editcat=' . $cat->get_id() . ' &cidReq='.$cat->get_name().'"><img src="../img/edit.gif" border="0" title="' . get_lang('Modify') . '" alt="" /></a>'; |
|
|
|
$modify_icons= '<a href="gradebook_edit_cat.php?editcat=' . $cat->get_id() . ' &cidReq='.$cat->get_course_code().'"><img src="../img/edit.gif" border="0" title="' . get_lang('Modify') . '" alt="" /></a>'; |
|
|
|
$modify_icons .= ' <a href="' . api_get_self() . '?deletecat=' . $cat->get_id() . '&selectcat=' . $selectcat . '&cidReq='.$cat->get_name().'" onclick="return confirmation();"><img src="../img/delete.gif" border="0" title="' . get_lang('DeleteAll') . '" alt="" /></a>'; |
|
|
|
$modify_icons .= ' <a href="' . api_get_self() . '?deletecat=' . $cat->get_id() . '&selectcat=' . $selectcat . '&cidReq='.$cat->get_course_code().'" onclick="return confirmation();"><img src="../img/delete.gif" border="0" title="' . get_lang('DeleteAll') . '" alt="" /></a>'; |
|
|
|
|
|
|
|
|
|
|
|
//no move ability for root categories |
|
|
|
//no move ability for root categories |
|
|
|
if ($cat->is_movable()) { |
|
|
|
if ($cat->is_movable()) { |
|
|
|
$modify_icons .= ' <a href="' . api_get_self() . '?movecat=' . $cat->get_id() . '&selectcat=' . $selectcat . ' &cidReq='.$cat->get_name().'"><img src="../img/deplacer_fichier.gif" border="0" title="' . get_lang('Move') . '" alt="" /></a>'; |
|
|
|
$modify_icons .= ' <a href="' . api_get_self() . '?movecat=' . $cat->get_id() . '&selectcat=' . $selectcat . ' &cidReq='.$cat->get_course_code().'"><img src="../img/deplacer_fichier.gif" border="0" title="' . get_lang('Move') . '" alt="" /></a>'; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
//$modify_icons .= ' <img src="../img/deplacer_fichier_na.gif" border="0" title="' . get_lang('Move') . '" alt="" />'; |
|
|
|
//$modify_icons .= ' <img src="../img/deplacer_fichier_na.gif" border="0" title="' . get_lang('Move') . '" alt="" />'; |
|
|
|
} |
|
|
|
} |
|
|
|