Code Duplication    Length = 11-11 lines in 2 locations

source/DomComponentsByDanielGP.php 2 locations

@@ 544-554 (lines=11) @@
541
                        . '<a href="#" onclick="javascript:checking(\'' . $checkboxFormId
542
                        . '\',\'' . $checkboxName . '\',false);">Uncheck All</a>&nbsp;&nbsp;'
543
                        . '<input type="hidden" name="action" value="multiEdit_' . $checkboxNameS . '" />';
544
                if (isset($ftrs['hiddenInput'])) {
545
                    if (is_array($ftrs['hiddenInput'])) {
546
                        foreach ($ftrs['hiddenInput'] as $valueF) {
547
                            $sReturn .= '<input type="hidden" name="' . $valueF
548
                                    . '" value="' . $_REQUEST[$valueF] . '" />';
549
                        }
550
                    } else {
551
                        $sReturn .= '<input type="hidden" name="' . $ftrs['hiddenInput']
552
                                . '" value="' . $_REQUEST[$ftrs['hiddenInput']] . '" />';
553
                    }
554
                }
555
                $sReturn .= '<input style="margin: 0 3em 0 3em;" type="submit" ' . 'value="Edit selected" />';
556
            }
557
            $sReturn .= '</form>';
@@ 568-578 (lines=11) @@
565
                $sReturn .= $ftrs['visibleInput'];
566
            }
567
            $sReturn .= '<input type="hidden" name="view" value="save_' . $checkboxNameS . '" />';
568
            if (isset($ftrs['hiddenInput'])) {
569
                if (is_array($ftrs['hiddenInput'])) {
570
                    foreach ($ftrs['hiddenInput'] as $valueF) {
571
                        $sReturn .= '<input type="hidden" name="' . $valueF
572
                                . '" value="' . $_REQUEST[$valueF] . '" />';
573
                    }
574
                } else {
575
                    $sReturn .= '<input type="hidden" name="' . $ftrs['hiddenInput']
576
                            . '" value="' . $_REQUEST[$ftrs['hiddenInput']] . '" />';
577
                }
578
            }
579
            $sReturn .= '<input style="margin: 0 3em 0 3em;" type="submit" value="Store the modification" />';
580
            $sReturn .= '</form>';
581
        }