<header id="fh5co-header" class="fh5co-cover fh5co-cover-sm" role="banner" style="background-image:url(images/blog.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>Pengumuman </h1>
						<h2>Lihat selalu halaman pengumuman secara rutin, untuk mengetahui informasi terbaru.</h2>
					</div>
				</div>
			</div>
		</div>
	</div>
</header>

<div id="fh5co-blog">
	<div class="container">
		<div class="row">
			
				<?Php
					$id_jurusan = $_GET['id'];
					$pengumuman = mysqli_query($conn,"SELECT 
													id,kd_semester,kd_tahun_ajar,kd_semester,judul,keterangan,tgl_input,gambar,dibaca
												FROM
													t_pengumuman
												WHERE
													kd_jurusan = '$id_jurusan' AND kd_info_pmb = 'N'
												ORDER BY id DESC
											");
					while($p = mysqli_fetch_array($pengumuman)){
					if(empty($p[gambar])){

					}else{
				?>
				<div class="col-lg-4 col-md-4">
				<div class="fh5co-blog animate-box">
					<a href="detail_pengumuman-<?Php echo"$id_jurusan";?>-<?Php echo"$p[id]";?>.html">
						<img class="img-responsive" src="admin/foto_pengumuman/medium_<?Php echo"$p[gambar]";?>" alt="<?Php echo"$p[keterangan]";?>">
					</a>
				<?Php
					}
				?>
					<div class="blog-text">
						<span class="posted_on"><?Php echo"$p[tgl_input]";?></span>
						<span class="comment"><a href="detail_pengumuman-<?Php echo"$id_jurusan";?>-<?Php echo"$p[id]";?>.html"><?Php echo"$p[dibaca]";?><i class="icon-speech-bubble"></i></a></span>
						<p><?Php echo"<b>$p[judul]</b></br>$p[keterangan]";?></p>
						<a href="detail_pengumuman-<?Php echo"$id_jurusan";?>-<?Php echo"$p[id]";?>.html" class="btn btn-primary">Read More</a>
					</div>
				</div>
			    </div>
				<?Php
					}
				?>
					 
				
		</div>
	</div>
</div>