|
|
|
|
@ -239,14 +239,44 @@ function build_edit_icons_cat($cat, $selectcat) |
|
|
|
|
if ($cat->is_locked() && !api_is_platform_admin()) { |
|
|
|
|
$modify_icons .= Display::return_icon('edit_na.png', get_lang('Modify'), '', ICON_SIZE_SMALL); |
|
|
|
|
} else { |
|
|
|
|
$modify_icons .= '<a href="gradebook_edit_cat.php?editcat=' . $cat->get_id() . '&cidReq=' . $cat->get_course_code() . '">' . Display::return_icon('edit.png', get_lang('Modify'), '', ICON_SIZE_SMALL) . '</a>'; |
|
|
|
|
$modify_icons .= '<a href="gradebook_edit_cat.php?' . |
|
|
|
|
'editcat=' . $cat->get_id() . '&cidReq=' . |
|
|
|
|
$cat->get_course_code() . '">' . |
|
|
|
|
Display::return_icon( |
|
|
|
|
'edit.png', |
|
|
|
|
get_lang('Modify'), |
|
|
|
|
'', |
|
|
|
|
ICON_SIZE_SMALL |
|
|
|
|
) . '</a>'; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$modify_icons .= '<a href="gradebook_edit_all.php?selectcat=' . $cat->get_id() . '&cidReq=' . $cat->get_course_code() . '">' . Display::return_icon('percentage.png', get_lang('EditAllWeights'), '', ICON_SIZE_SMALL) . '</a>'; |
|
|
|
|
$modify_icons .= '<a href="gradebook_flatview.php?selectcat=' . $cat->get_id() . '&cidReq=' . $cat->get_course_code() . '">' . Display::return_icon('stats.png', get_lang('FlatView'), '', ICON_SIZE_SMALL) . '</a>'; |
|
|
|
|
$modify_icons .= ' <a href="' . api_get_self() . '?visiblecat=' . $cat->get_id() . '&' . $visibility_command . '=&selectcat=' . $selectcat . '&cidReq=' . $cat->get_course_code() .'">' . Display::return_icon($visibility_icon . '.png', get_lang('Visible'), '', ICON_SIZE_SMALL) . '</a>'; |
|
|
|
|
|
|
|
|
|
$modify_icons .= '<a href="gradebook_edit_all.php?selectcat=' . |
|
|
|
|
$cat->get_id() . '&cidReq=' . $cat->get_course_code() . '">' . |
|
|
|
|
Display::return_icon( |
|
|
|
|
'percentage.png', |
|
|
|
|
get_lang('EditAllWeights'), |
|
|
|
|
'', |
|
|
|
|
ICON_SIZE_SMALL |
|
|
|
|
) . '</a>'; |
|
|
|
|
$modify_icons .= '<a href="gradebook_flatview.php?selectcat=' . |
|
|
|
|
$cat->get_id() . '&cidReq=' . $cat->get_course_code() . '">' . |
|
|
|
|
Display::return_icon( |
|
|
|
|
'stats.png', |
|
|
|
|
get_lang('FlatView'), |
|
|
|
|
'', |
|
|
|
|
ICON_SIZE_SMALL |
|
|
|
|
) . '</a>'; |
|
|
|
|
$modify_icons .= ' <a href="' . api_get_self() . |
|
|
|
|
'?visiblecat=' . $cat->get_id() . '&' . |
|
|
|
|
$visibility_command . '=&selectcat=' . $selectcat . |
|
|
|
|
'&cidReq=' . $cat->get_course_code() . '">' . |
|
|
|
|
Display::return_icon( |
|
|
|
|
$visibility_icon . '.png', |
|
|
|
|
get_lang('Visible'), |
|
|
|
|
'', |
|
|
|
|
ICON_SIZE_SMALL |
|
|
|
|
) . '</a>'; |
|
|
|
|
//no move ability for root categories |
|
|
|
|
if ($cat->is_movable()) { |
|
|
|
|
/* $modify_icons .= ' <a href="' . api_get_self() . '?movecat=' . $cat->get_id() . '&selectcat=' . $selectcat . ' &cidReq='.$cat->get_course_code().'"> |
|
|
|
|
|