<header id="fh5co-header" class="fh5co-cover" role="banner" style="background-image:url(images/bg-home-new.png);" data-stellar-background-ratio="0.5"><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<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>Sistem Informasi</h1>
						<h2><?Php echo"$gi[nama_website]";?></h2>
						<p>
						    <a class="btn btn-primary btn-lg btn-video" href="https://www.pmb.siakad-akperpasarrebo.ac.id/reg_mahasiswa_baru-<?Php echo"$ia";?>.html"><i class="icon-user"></i>REG.MAHASISWA BARU</a>
						</p>
					</div>
				</div>
			</div>
		</div>
	</div>
</header>
	
<div id="fh5co-project">
	<div class="container">
		<div class="row animate-box">
			<div class="col-md-8 col-md-offset-2 text-center fh5co-heading">
				<h2>KALENDER AKADEMIK</h2>
				<?Php
				$kd_tahun_ajar = mysqli_query($conn,"SELECT a.deskripsi,b.tahun_ajar
				                                FROM 
				                                    sys_setting a
				                                    INNER JOIN m_tahun_ajar b ON a.deskripsi=b.kd_tahun_ajar
				                                WHERE a.keydata = 'tahun_ajar_current'");
				$kt = mysqli_fetch_array($kd_tahun_ajar);
				$ks = mysqli_fetch_array($kd_semester);
				?>
				<p>Kalender <?Php echo"$kt[tahun_ajar]";?></p>
			</div>
		</div>
	</div>
	<div class="container-fluid proj-bottom">
		<div class="row">
			<div class="col-lg-12 col-md-4">
				<div class="fh5co-blog animate-box">
				<?Php
					$id_jurusan = $_GET['id'];
					$pengumuman = mysqli_query($conn,"SELECT
														a.id,a.kd_tahun_ajar,a.kd_semester,a.kd_jurusan,a.keterangan,a.judul,
													    a.dibaca,a.tgl_mulai,a.tgl_selesai,a.tgl_input,
													    b.tahun_ajar,c.semester,d.jurusan,e.fakultas
													FROM
														t_kalender_akademik a 
													    INNER JOIN m_tahun_ajar b ON a.kd_tahun_ajar=b.kd_tahun_ajar
													    INNER JOIN m_semester c ON a.kd_semester=c.kd_semester
													    INNER JOIN m_jurusan d ON a.kd_jurusan=d.kd_jurusan
													    INNER JOIN m_fakultas e ON d.kd_fakultas=e.kd_fakultas
													WHERE
														a.kd_jurusan = '$id_jurusan' AND a.kd_tahun_ajar = (SELECT deskripsi FROM sys_setting WHERE keydata = 'tahun_ajar_current')
												ORDER BY a.tgl_mulai DESC 
											");
					echo "
					<table class='table'>
			        <thead>
			          <tr>
			            <th data-toggle='true' data-name='id'>No</th>
			            <th data-hide='phone'>Tanggal</th>
			            <th data-hide='phone'>Kegiatan</th>
			            <th data-hide='phone,tablet'>Jurusan</th>
			            <th data-hide='phone'>Keterangan</th>
			          </tr>
			        </thead>
			        <tbody>"; 

			    $no=1;
			    while ($r=mysqli_fetch_array($pengumuman)){
			    	
			       echo "
						<tr class='odd gradeX'>
							<td>$no</td>
							<td>$r[tgl_mulai] sd. $r[tgl_selesai]</td>
							<td>$r[judul]</td>
							<td>$r[jurusan]</td>
							<td>$r[keterangan]</td>
						</tr>";
			      $no++;
			    }
			    echo "</tbody>
			        </table>
			          ";
			          ?>
				</div>
				<!-- GetButton.io widget -->
<script type="text/javascript">
    (function () {
        var options = {
            whatsapp: "+6289520003838", // WhatsApp number
            call_to_action: "hubungi kami", // Call to action
            position: "left", // Position may be 'right' or 'left'
        };
        var proto = document.location.protocol, host = "getbutton.io", url = proto + "//static." + host;
        var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = url + '/widget-send-button/js/init.js';
        s.onload = function () { WhWidgetSendButton.init(host, proto, options); };
        var x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x);
    })();
</script>
<!-- /GetButton.io widget -->
			</div>
		</div>
	</div>
</div>