<?php
	require_once("koneksi.php");
    include 'header.php';
?>

	<!-- breadcrumbs -->
		<div class="breadcrumbs">
			<div class="container">
				<ol class="breadcrumb breadcrumb1 animated wow slideInLeft" data-wow-delay=".5s">
					<?php
	                if (isset($_SESSION['pengunjung'])) {
					    echo '
						<li><span><i class="fa fa-sign-in" aria-hidden="true"></i><a href="login.php"> Masuk</a></span></li>
						<li class="active">Informasi Artikel</li> ';
					}
					else {
						echo '
						<li><a href="index.php"><span class="glyphicon glyphicon-home" aria-hidden="true"></span>Beranda</a></li>
						<li class="active">Informasi Artikel</li> ';
					}
				?>
				</ol>
			</div>
		</div>
	<!-- //breadcrumbs -->
		<div class="products">
			<div class="container">
				<div class="agileinfo_single">
					<?php                  
						$query = mysqli_query($koneksi, "SELECT * FROM t_artikel WHERE id_artikel = '$_GET[kd]'");
						$data  = mysqli_fetch_array($query);
					?>
					<div class="col-md-2 agileinfo_single_left">
						<img src="<?php echo $data['gambar_artikel']; ?>"  class="img-responsive" />
					</div>
					<div class="col-md-10">
						Judul Buku				: <h3><?php echo $data['judul_artikel']; ?></h3><br>
						Tanggal Ditambahkan 	: <h4><?php echo $data['tanggal_dibuat']; ?></h4><br>
						Isi Artikel				: <h5><?php echo $data['isi_artikel']; ?></h5>
					</div>
					<div class="clearfix"> </div>
				</div>
			</div>
		</div>
	
<?php
	include 'footer.php';
?>