Code Duplication    Length = 14-14 lines in 2 locations

views/life/vehicles.php 1 location

@@ 58-71 (lines=14) @@
55
            </thead>
56
            <tbody>
57
            <?php
58
            while ($row = mysqli_fetch_assoc($result_of_query)) {
59
                echo "<tr>";
60
                echo "<td>" . $row["name"] . "</td>";
61
                echo "<td>" . carName($row["classname"]) . "</td>";
62
                echo "<td class='hidden-xs'> " . carType($row["type"], $lang) . "</td>";
63
                echo "<td class='hidden-xs'> " . $row["plate"] . "</td>";
64
                echo "<td class='hidden-xs'> " . yesNo($row["alive"], $lang) . "</td>";
65
                echo "<td class='hidden-xs'> " . yesNo($row["active"], $lang) . "</td>";
66
                if ($_SESSION['permissions']['edit']['vehicles']) {
67
                    echo "<td><a class='btn btn-primary btn-xs' href='" . $settings['url'] . "editVeh/" . $row["id"] . "'>";
68
                    echo "<i class='fa fa-pencil'></i></a></td>";
69
                }
70
                echo "</tr>";
71
            }
72
            echo "</tbody></table>";
73
        include("views/templates/page.php");
74
        ?>

views/steam/life/cars.php 1 location

@@ 55-68 (lines=14) @@
52
            </thead>
53
            <tbody>
54
            <?php
55
            while ($row = mysqli_fetch_assoc($result_of_query)) {
56
                echo "<tr>";
57
                echo "<td>" . nameID($row["pid"], $db_link) . "</td>";
58
                echo "<td>" . carName($row["classname"]) . "</td>";
59
                echo "<td class='hidden-xs'> " . carType($row["type"], $lang) . "</td>";
60
                echo "<td class='hidden-xs'> " . $row["plate"] . "</td>";
61
                echo "<td class='hidden-xs'> " . yesNo($row["alive"], $lang) . "</td>";
62
                echo "<td class='hidden-xs'> " . yesNo($row["active"], $lang) . "</td>";
63
                if ($row["pid"] == $_SESSION['playerid']) {
64
                    echo "<td><a class='btn btn-primary btn-xs' href='" . $settings['url'] . "editVeh/" . $row["id"] . "'>";
65
                    echo "<i class='fa fa-pencil'></i></a></td>";
66
                }
67
                echo "</tr>";
68
            }
69
            echo "</tbody></table>";
70
        include("views/templates/page.php");
71
        ?>