Code Duplication    Length = 8-8 lines in 2 locations

src/controllers/DisplayController.php 1 location

@@ 715-722 (lines=8) @@
712
713
            echo "<input type=\"submit\" name=\"cancel\" value=\"{$lang['strcancel']}\" />"."\n";
714
715
            if ($fksprops !== false) {
716
                if ($conf['autocomplete'] != 'default off') {
717
                    echo "<input type=\"checkbox\" id=\"no_ac\" value=\"1\" checked=\"checked\" /><label for=\"no_ac\">{$lang['strac']}</label>"."\n";
718
                } else {
719
                    echo "<input type=\"checkbox\" id=\"no_ac\" value=\"0\" /><label for=\"no_ac\">{$lang['strac']}</label>"."\n";
720
                }
721
            }
722
723
            echo '</p>'."\n";
724
            echo '</form>'."\n";
725
        } else {

src/controllers/TablesController.php 1 location

@@ 1021-1028 (lines=8) @@
1018
                echo "<input type=\"submit\" name=\"insertandrepeat\" accesskey=\"r\" value=\"{$lang['strinsertandrepeat']}\" />\n";
1019
                echo "<input type=\"submit\" name=\"cancel\" value=\"{$lang['strcancel']}\" />\n";
1020
1021
                if ($fksprops !== false) {
1022
                    if ($conf['autocomplete'] != 'default off') {
1023
                        echo "<input type=\"checkbox\" id=\"no_ac\" value=\"1\" checked=\"checked\" /><label for=\"no_ac\">{$lang['strac']}</label>\n";
1024
                    } else {
1025
                        echo "<input type=\"checkbox\" id=\"no_ac\" value=\"0\" /><label for=\"no_ac\">{$lang['strac']}</label>\n";
1026
                    }
1027
                }
1028
                echo "</p>\n";
1029
            } else {
1030
                echo "<p>{$lang['strnofieldsforinsert']}</p>\n";
1031
                echo "<input type=\"submit\" name=\"cancel\" value=\"{$lang['strcancel']}\" />\n";