Browse Source

Minor - Code style - refs CT#7395

Daniel Barreto 10 years ago
parent
commit
13023d37ae
1 changed files with 35 additions and 5 deletions
  1. 35 5
      main/gradebook/lib/gradebook_functions.inc.php

+ 35 - 5
main/gradebook/lib/gradebook_functions.inc.php

@@ -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 .= '&nbsp;<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 .= '&nbsp;<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 .= '&nbsp;<a href="' . api_get_self() . '?movecat=' . $cat->get_id() . '&amp;selectcat=' . $selectcat . ' &amp;cidReq='.$cat->get_course_code().'">