<?Php
	$id_jurusan = $_GET['id'];
	$kode = $_GET['kd'];

	$detail_pengumuman = mysqli_query($conn,"SELECT
        											a.kode,a.judul,a.pengarang,a.kd_jenis,b.jenis,a.kd_penerbit,a.tahun_terbit,
        											a.tempat_terbit,a.halaman,a.ukuran,a.ddc,c.deskripsi,a.isbn,a.kd_kategori,
        											d.kategori,a.kd_sumber,a.kd_rak,f.rak,g.lemari,a.kd_status,h.status,
        											a.keterangan,i.penerbit,a.gambar,a.kd_jurusan
        										FROM
        											m_katalog a
        											LEFT JOIN m_jenis_katalog b ON a.kd_jenis=b.kd_jenis
        											LEFT JOIN m_ddc c ON a.ddc=c.ddc
        											LEFT JOIN m_kategori d ON a.kd_kategori=d.kd_kategori
        											LEFT JOIN m_sumber e ON a.kd_sumber=e.kd_sumber
        											LEFT JOIN m_rak f ON a.kd_rak=f.kd_rak
        											LEFT JOIN m_lemari g ON f.kd_lemari=g.kd_lemari
        											LEFT JOIN m_status h ON a.kd_status=h.kd_status
        											LEFT JOIN m_penerbit i ON a.kd_penerbit=i.kd_penerbit
        									    WHERE
        									        a.kd_jurusan = '$id_jurusan' AND a.kode = '$kode'
							        ");
	$dp = mysqli_fetch_array($detail_pengumuman);
?>
<header id="fh5co-header" class="fh5co-cover fh5co-cover-sm" role="banner" style="background-image:url(images/e-library.jpg);" data-stellar-background-ratio="0.5">
	<div class="overlay"></div>
	<div class="container">
		<div class="row">
			<div class="col-md-8 col-md-offset-2 text-center">
				<div class="display-t">
					<div class="display-tc animate-box" data-animate-effect="fadeIn">
						<h1>e-Library</h1>
						<h2>cek koleksi buku-buku kami disini.</h2>
					</div>
				</div>
			</div>
		</div>
	</div>
</header>

<div id="fh5co-blog">
	<div class="container">
		<div class="row">
			<div class="col-lg-12 col-md-4">
				<div class="fh5co-blog animate-box">
				<?Php
			    echo "
					<table>
			          <tr><td data-toggle='true'>Kode Buku </td><td> : $dp[kode]</td></tr>
			          <tr><td data-hide='phone'>Judul </td><td> : $dp[judul]</td></tr>
			          <tr><td data-hide='phone'>Pengarang </td><td> : $dp[pengarang]</td></tr>
			          <tr><td data-hide='phone'>Penerbit </td><td> : $dp[penerbit]</td></tr>
			          <tr><td data-hide='phone'>Tahun Terbit </td><td> : $dp[tahun_terbit]</td></tr>
			          <tr><td data-hide='phone'>Lemari </td><td> : $dp[lemari]</td></tr>
			          <tr><td data-hide='phone'>Rak </td><td> : $dp[rak]</td></tr>
			          <tr><td data-hide='phone'>Keterangan </td><td> : $dp[keterangan]</td></tr>
			        </table>
			          ";
				?>		 
				</div>
			</div>
		</div>
	</div>
</div>