<div class="home">
    <?php
    
        echo '<div align="right">
                <form method="POST" action="index.php?uc=authentification">
                    <input type="text" name="login" placeholder="Login" required>
                    <input type="password" name="mdp" placeholder="Mot de passe" required>
                    <button id="btnLogin" type="submit">Se connecter</button>
                </form>
            </div>';
    
    ?>

    <div id="Home_title">
        Liste de tous les véhicules
    </div>

    <table class="table table-striped">   
        <tr>
            <th>N°</th>
            <th>Marque</th>
            <th>Modèle</th>  
            <th>Km</th>
            <th>Prix</th>
        </tr>
        <?php
        $compteur= 1 ;
        foreach ($lesVehicules as $leVehicule) {
            echo '<tr>'
            . '<td> <a href= "index.php?uc=accueil&action=detail&id='.$leVehicule['vh_id'].'">'.$compteur. '</a></td>'
            . '<td>' . $leVehicule['mq_libelle'] . '</td>'
            . '<td>' . $leVehicule['md_libelle'] . '</td>'
            . '<td>' . $leVehicule['vh_km'] . '</td>'
            . '<td>' . number_format($leVehicule['vh_prix'], 2, ',', ' ') . ' €</td>'
            . '</tr>';
            $compteur += 1;
        }
        
        ?>
    </table>
</div>