<?php
session_start();
include ("includes/database.php");

$user=$_SESSION["username"];
$data=mysqli_query($con, "SELECT * from tbl_user where username ='$user'");
$showData=mysqli_fetch_array($data);

$kedai=mysqli_query($con, "SELECT * from tbl_shop");

//buang data



?>
<!doctype html>
<html lang="en">


  <head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>FIX-IT-ALL</title>

    <!-- Bootstrap core CSS -->
    <link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="css/heroic-features.css" rel="stylesheet">

  <meta charset="utf-8">
	<title>BOOKING SESSION</title>
	<link rel="stylesheet" type="text/css" href="styleall.css">
</head>

  <body>

    <!-- Navigation -->
    <!-- w3school -->
    <style>
ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: url(images/pinkk.png);
}

li {
  float: left;
}

li a {
  display: block;
  font-family: verdana;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

li a:hover {
  background-color: #fff2e6;
}
</style>
<body>

<ul>
     <li><a class="active" href="main.php">Home</a></li>
  <li><a href="about.php">About</a></li>
  <li><a href="pilih.php">Choose Shop</a></li>
  <li><a href="profile.php">Profile</a></li>
  <li><a href="feedback.php">Feedback</a></li>
  <li><a href="logout.php">Logout</a></li>
        
</ul>
<br>

    </nav>



<center>
<?php
while ($satukedai=mysqli_fetch_array($kedai))
{
?>

<br>
<br>
<a href="booking.php?id=<?php echo $satukedai['shop_id']; ?>"><img src="shop/<?php echo $satukedai['shop_photo']; ?>" width="300" height="300"></a>
<br>

<div class="form-group" >
<label>Shop Information</label>
<br>
<br>
<a href="booking.php?id=<?php echo $satukedai['shop_id']; ?>"><?php echo $satukedai['shop_details']; ?>
</a>
<br>
<a href="feedback.php?id=<?php echo $satukedai['shop_id']; ?>"><?php echo $satukedai['feedback_id']; ?>Feedback?
</a>
</div>



<?php
}
?>

<br>







//result<br><br>


</center>
<!-- Footer -->
    <footer class="" align="center">
      <div class="">
        <p class="m-0 text-center text-white">Copyright. Respective owner &copy; FIX-IT-ALL 2018</p>
      </div>
      <!-- /.container -->
    </footer>

    <!-- Bootstrap core JavaScript -->
    <script src="vendor/jquery/jquery.min.js"></script>
    <script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
</body>
</html>