Code Duplication    Length = 8-16 lines in 2 locations

main/inc/lib/link.lib.php 1 location

@@ 1098-1113 (lines=16) @@
1095
        }
1096
1097
        // DISPLAY MOVE DOWN COMMAND only if it is not the bottom link.
1098
        if ($currentCategory < $countCategories-1) {
1099
            $tools .= '<a href="' . api_get_self() . '?' . api_get_cidreq() .'&sec_token=' . $token .'&action=down&down=' . $categoryId .'&category_id=' . $categoryId . '">'.
1100
                Display:: return_icon(
1101
                    'down.png',
1102
                    get_lang('Down'),
1103
                    array(),
1104
                    ICON_SIZE_SMALL
1105
                ) . '</a>';
1106
        } else {
1107
            $tools .= Display:: return_icon(
1108
                    'down_na.png',
1109
                    get_lang('Down'),
1110
                    array(),
1111
                    ICON_SIZE_SMALL
1112
                ) . '</a>';
1113
        }
1114
1115
        $tools .= '<a href="' . api_get_self() . '?' . api_get_cidreq() .'&sec_token=' . $token .'&action=deletecategory&id='.$categoryId.            "&category_id=$categoryId\"
1116
            onclick=\"javascript: if(!confirm('" . get_lang('CategoryDelconfirm') . "')) return false;\">".

main/work/work.lib.php 1 location

@@ 2138-2145 (lines=8) @@
2135
                        }
2136
                    }
2137
2138
                    if ($work['contains_file']) {
2139
                        if ($locked) {
2140
                            $action .= Display::return_icon('move_na.png', get_lang('Move'),array(), ICON_SIZE_SMALL);
2141
                        } else {
2142
                            $action .= '<a href="'.$url.'work.php?'.api_get_cidreq().'&action=move&item_id='.$item_id.'&id='.$work['parent_id'].'" title="'.get_lang('Move').'">'.
2143
                                Display::return_icon('move.png', get_lang('Move'),array(), ICON_SIZE_SMALL).'</a>';
2144
                        }
2145
                    }
2146
2147
                    if ($work['accepted'] == '1') {
2148
                        $action .= '<a href="'.$url.'work_list_all.php?'.api_get_cidreq().'&id='.$work_id.'&action=make_invisible&item_id='.$item_id.'" title="'.get_lang('Invisible').'" >'.