<?php
    require('common/header.php');
	include 'koneksi.php';
    echo '<br>';
?>

<h1 style="color: #b92c28;"> <font face="gothic" size="40"> Welcome </font> </h1> <h2 style="color: #c9302c"> to Restoran Pondok Edo </h2>

	<div id="myCarousel" class="carousel slide" data-ride="carousel">
    <ol class="carousel-indicators">
        <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
        <li data-target="#myCarousel" data-slide-to="1"></li>
        <li data-target="#myCarousel" data-slide-to="2"></li>
    </ol>
    <div class="carousel-inner" role="listbox">
        <div class="item active"><img src="picture/slide1.jpg"></div>
        <div class="item"><img src="picture/slide2.jpg"></div>
        <div class="item"><img src="picture/slide3.jpg"></div>
    </div>
    <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
        <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
        <span class="sr-only">Previous</span>
    </a>
    <a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
        <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
        <span class="sr-only">Next</span>
    </a>
</div>
<hr> 
<div class="col-md-12">
	<div align="left">
	<h2><font face="gothic" size="7" color="#000090"> Menu Kami  <br> <br> <span class="glyphicon glyphicon-chevron-down"></span></font> </h2>
	<hr>
	</div>
	<?php 
	if(isset($_SESSION['username'])){
	$id_member = $_SESSION['id_member'];
}
		$query = mysqli_query($koneksi, "SELECT * FROM menu WHERE id_menu < 7");
		while($row = mysqli_fetch_array($query)){
			?>
			<div class="col-md-3">
				 <a href="detail.php?id=<?php echo $row['id_menu'];?>&id_member=<?php echo $id_member; ?>" class="btn btn-buy">
					 <img src="picture/<?php echo $row['gambar'] ?>" class="img-rounded" width="250" height="250">
					 <div class="caption">
						<h4 style="color: #3c3c3c;"> <?php echo $row['nama']; ?> </h4>
						<h4> <b> Rp. <?php echo number_format($row['harga']) ?>,- </b> </h4>
					 </div>
				 </a>
			</div>
		<?php
		}
	?>
	<div align="right">
	<a href="member_menu.php" class="btn btn-buy" style="color: #000080"> <font size="5"> Lihat Selengkapnya &raquo; </font> </a>
	</div>
</div>
<br/>
<?php
require ('common/footer.php');
?>