<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>Data Dosen</h1>
						<h2>Berikut Adalah Daftar Tenaga Pengajar Kami.</h2>
					</div>
				</div>
			</div>
		</div>
	</div>
</header>

<div id="fh5co-blog">
	<div class="container">
		<div class="row">
			
				<?Php
					$id_jurusan = $_GET['id'];
					$dosen = mysqli_query($conn,"SELECT 
                                                	c.nama,c.alamat,c.email,c.nidn,d.pas_photo as foto
                                                FROM
                                                	m_dosen c
                                                	INNER JOIN m_user d ON d.nidn=c.nidn
                                                WHERE
                                                	c.aktif='1'
                                                ORDER BY
                                                	d.pas_photo DESC
											");
					while($p = mysqli_fetch_array($dosen)){
			    ?>
			<div class="col-lg-4 col-md-4">
				<div class="fh5co-blog animate-box">
			    <?Php
					if(empty($p[foto])){
                ?>
					<a href="detail_dosen-<?Php echo"$id_jurusan";?>-<?Php echo"$p[nidn]";?>.html">
						<img class="img-responsive" src="admin/foto_user/face-icon-png.png" alt="<?Php echo"$p[nama]";?>"> 
					</a>
				<?Php
					}else{
				?>
					<a href="detail_dosen-<?Php echo"$id_jurusan";?>-<?Php echo"$p[nidn]";?>.html">
						<img class="img-responsive" src="admin/foto_user/small_<?Php echo"$p[foto]";?>" alt="<?Php echo"$p[nama]";?>" style="height: 300px; width: 100%;" >
					</a>
				<?Php
					}
				?>
					<div class="blog-text">
						<span class="posted_on"><a href="detail_dosen-<?Php echo"$id_jurusan";?>-<?Php echo"$p[nidn]";?>.html"><?Php echo"$p[nama]";?></a></span>
						<!--<p><?Php echo"$p[nidn]";?></p>--></br>
						<a href="detail_dosen-<?Php echo"$id_jurusan";?>-<?Php echo"$p[nidn]";?>.html" class="btn btn-primary">Detail</a>
					</div>
				</div>
			</div>
				<?Php
					}
				?>
					 
				
		</div>
	</div>
</div>