Code Duplication    Length = 5-5 lines in 3 locations

views/life/editPlayer.php 3 locations

@@ 679-683 (lines=5) @@
676
                        <?php if ($_SESSION['permissions']['edit']['ranks']) {
677
                            echo "<h4>" . $lang['cop'] . ": ";
678
                            echo "<select id='player_coplvl' name='player_coplvl'>";
679
                            for ($lvl = 0;
680
                                 $lvl <= $settings['maxLevels']['cop'];
681
                                 $lvl++) {
682
                                echo '<option value="' . $lvl . '"' . select($lvl, $player->coplevel) . '>' . $lvl . '</option>';
683
                            }
684
                            echo "</select>";
685
                            echo "<h4>" . $lang['medic'] . ": ";
686
                            echo "<select id='player_medlvl' name='player_medlvl'>";
@@ 687-691 (lines=5) @@
684
                            echo "</select>";
685
                            echo "<h4>" . $lang['medic'] . ": ";
686
                            echo "<select id='player_medlvl' name='player_medlvl'>";
687
                            for ($lvl = 0;
688
                                 $lvl <= $settings['maxLevels']['medic'];
689
                                 $lvl++) {
690
                                echo '<option value="' . $lvl . '"' . select($lvl, $player->mediclevel) . '>' . $lvl . '</option>';
691
                            }
692
                            echo "</select>";
693
694
                            if ($_SESSION['permissions']['edit']['ignLVL']) {
@@ 697-701 (lines=5) @@
694
                            if ($_SESSION['permissions']['edit']['ignLVL']) {
695
                                echo "<h4>" . $lang['admin'] . ": ";
696
                                echo "<select id='player_adminlvl' name='player_adminlvl'>";
697
                                for ($lvl = 0;
698
                                     $lvl <= $settings['maxLevels']['admin'];
699
                                     $lvl++) {
700
                                    echo '<option value="' . $lvl . '"' . select($lvl, $player->adminlevel) . '>' . $lvl . '</option>';
701
                                }
702
                                echo "</select>";
703
                                echo "<h4>" . $lang['donator'] . ": ";
704
                                echo "<select id='player_donlvl' name='player_donlvl'>";