Code Duplication    Length = 8-16 lines in 2 locations

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

@@ 1191-1206 (lines=16) @@
1188
        }
1189
1190
        // DISPLAY MOVE DOWN COMMAND only if it is not the bottom link.
1191
        if ($currentCategory < $countCategories - 1) {
1192
            $tools .= '<a href="'.api_get_self().'?'.api_get_cidreq().'&sec_token='.$token.'&action=down&down='.$categoryId.'&category_id='.$categoryId.'">'.
1193
                Display:: return_icon(
1194
                    'down.png',
1195
                    get_lang('Down'),
1196
                    array(),
1197
                    ICON_SIZE_SMALL
1198
                ).'</a>';
1199
        } else {
1200
            $tools .= Display:: return_icon(
1201
                    'down_na.png',
1202
                    get_lang('Down'),
1203
                    array(),
1204
                    ICON_SIZE_SMALL
1205
                ).'</a>';
1206
        }
1207
1208
        $tools .= '<a href="'.api_get_self().'?'.api_get_cidreq().'&sec_token='.$token.'&action=deletecategory&id='.$categoryId."&category_id=$categoryId\"
1209
            onclick=\"javascript: if(!confirm('".get_lang('CategoryDelconfirm')."')) return false;\">".

main/work/work.lib.php 1 location

@@ 2274-2281 (lines=8) @@
2271
                        }
2272
                    }
2273
2274
                    if ($work['contains_file']) {
2275
                        if ($locked) {
2276
                            $action .= Display::return_icon(
2277
                                'move_na.png',
2278
                                get_lang('Move'),
2279
                                array(),
2280
                                ICON_SIZE_SMALL
2281
                            );
2282
                        } else {
2283
                            $action .= '<a href="'.$url.'work.php?'.api_get_cidreq().'&action=move&item_id='.$item_id.'&id='.$work['parent_id'].'" title="'.get_lang('Move').'">'.
2284
                                Display::return_icon('move.png', get_lang('Move'), array(), ICON_SIZE_SMALL).'</a>';