<?php
include("db.php");


?>



<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
    <title>Driver Logbook</title>
    <link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="assets/fonts/font-awesome.min.css">
    <link rel="stylesheet" href="assets/css/Login-Form-Clean.css">
    <link rel="stylesheet" href="assets/css/Login-Form-Dark.css">
    <link rel="stylesheet" href="assets/css/Registration-Form-with-Photo.css">
    <link rel="stylesheet" href="assets/css/styles.css">
</head>

<body style="background-image: url(&quot;assets/img/star-sky.jpg&quot;);">
  <div class="form-container" style="padding-top:60px">
    <div class="card" style=" max-width:900px; width:80%; margin:auto; border-radius:20px;" >
      <div class="card-header">
        <h5 class="mb-0">Choose Car</h5>

      </div><br>
        <div class="card-body" >
          <div class="input-group" style="margin:0 auto; margin-left:50px;">
            <?php $result = mysqli_query($conn, "SELECT * FROM cars");
            while($row = mysqli_fetch_array($result)){?>
              <form action="admin-trip.php" method="POST">
            <div style="width:159px;height:210px;margin-top:20px;margin-left:20px;background-color:rgb(213,200,200);">
              <i class="fa fa-car" style="font-size:60px;margin-top:20px;margin-left:57px;color:#fff;"></i>
              <h1 style="font-size:20px;text-align:center;"><?php echo $row['car']?></h1>
              <input type="hidden" name="car" value="<?php echo $row['car']?>">
              <input type="submit" value="Record Journey" name="profile" style="background: #f4476b;
              border: none;
              border-radius: 4px;
              padding: 7px;
              box-shadow: none;
              margin-left:20px;
              text-shadow: none;
              outline: none !important;">
            </form>
            </div>
          <?php ;} ?>
             </div><br>
        <div class="form-group"><a href="index.php" class="btn btn-primary btn-block"  style="background-color: rgb(231,62,8); width:40%; margin:0 auto">Logout</a></div></form>

    </div>
  </div>
</div>
    <script src="assets/js/jquery.min.js"></script>
    <script src="assets/bootstrap/js/bootstrap.min.js"></script>
</body>

</html>
