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

@@ 1009-1016 (lines=8) @@
1006
                echo "<input type=\"submit\" name=\"insertandrepeat\" accesskey=\"r\" value=\"{$lang['strinsertandrepeat']}\" />\n";
1007
                echo "<input type=\"submit\" name=\"cancel\" value=\"{$lang['strcancel']}\" />\n";
1008
1009
                if ($fksprops !== false) {
1010
                    if ($conf['autocomplete'] != 'default off') {
1011
                        echo "<input type=\"checkbox\" id=\"no_ac\" value=\"1\" checked=\"checked\" /><label for=\"no_ac\">{$lang['strac']}</label>\n";
1012
                    } else {
1013
                        echo "<input type=\"checkbox\" id=\"no_ac\" value=\"0\" /><label for=\"no_ac\">{$lang['strac']}</label>\n";
1014
                    }
1015
                }
1016
                echo "</p>\n";
1017
            } else {
1018
                echo "<p>{$lang['strnofieldsforinsert']}</p>\n";
1019
                echo "<input type=\"submit\" name=\"cancel\" value=\"{$lang['strcancel']}\" />\n";