<?php
//$sesiku = $this->session->userdata('sesiku');
//$sesinama = balikin($this->session->userdata('sesinama'));
$ku_hkode=$_GET['hkode'];
$tiga=$this->db->query("SELECT * from web_login where hkode='$ku_hkode'");
foreach ($tiga->result() as $rt) {
	$sesiku=$rt->sesiku;
	$sesinama=$rt->sesinama;
	$passx=$rt->passx;
	$departemen=$rt->departemen;
}

$ceksiswa=$this->db->query("SELECT * FROM web_siswa WHERE absen='$sesiku'");
foreach ($ceksiswa->result() as $rt1) {
	$kdkelas=$rt1->KD_JENIS_KETENAGAAN;
	$filex1=$rt1->filex1;
	$jenispegawai=$rt1->jenispegawai;
}
$carikelas3=$this->db->query("SELECT * FROM web_kelas where kode='".$kdkelas."'");
	foreach ($carikelas3->result() as $baris3) {
		$namakelas=$baris3->nama;
	}
	
 ?>
        <div class="bg-cyan d-flex flex-align-center">
            <button class="pull-button m-0 bg-darkCyan-hover">
                <span class="mif-menu fg-white"></span>
            </button>
            <h2 class="text-light m-0 fg-white pl-7" style="line-height: 52px">PRESENSI</h2>
        </div>

        <div class="suggest-box">
            <div class="data-box">
								<img id="gambar" src="<?php echo base_url('upload/profil/'.$filex1.'');?>" class="avatar">

                <div class="ml-4 avatar-title flex-column">
                    <a href="#" class="d-block fg-white text-medium no-decor"><span class="reduce-1"><?php echo $sesinama;?></span></a>
                    <p class="m-0"><span class="fg-green mr-2">&#x25cf;</span><span class="text-small">online</span></p>
                </div>
            </div>
            <img src="pandora/images/jek_vorobey.jpg" class="avatar holder ml-2">
        </div>
        <ul class="navview-menu mt-4" id="side-menu">
            <li class="item-header">MAIN NAVIGATION</li>
            <li>
                <a href="utama.html">
                    <span class="icon"><span class="mif-meter"></span></span>
                    <span class="caption">Dashboard</span>
                </a>
            </li>
            <li>
                <a href="cekgps.html">
                    <span class="icon"><span class="mif-alarm-on"></span></span>
                    <span class="caption">Absensi</span>
                </a>
            </li>
			<li>
                <a href="absen2.html">
                    <span class="icon"><span class="mif-alarm-on"></span></span>
                    <span class="caption">Absensi Khusus</span>
                </a>
            </li>
						<li>
                <a href="akun_history.html">
                    <span class="icon"><span class="mif-calendar"></span></span>
                    <span class="caption">Histori</span>
                </a>
            </li>
						<li>
                <a href="ijin.html">
                    <span class="icon"><span class="mif-file-image"></span></span>
                    <span class="caption">Ijin</span>
                </a>
            </li>
			<li>
                <a href="#" class="dropdown-toggle">
                    <span class="icon"><span class="mif-play"></span></span>
                    <span class="caption">Tiket</span>
                </a>
                <ul class="navview-menu stay-open" data-role="dropdown" >
                    <li><a href="tiket.html">
                        <span class="icon"><span class="mif-spinner2"></span></span>
                        <span class="caption">Input Tiket</span>
                    </a></li>
                    <li><a href="lihattiket.html">
                        <span class="icon"><span class="mif-spinner2"></span></span>
                        <span class="caption">Lihat Tiket</span>
                    </a></li>
                </ul>
            </li>
			<li class="item-header">LAPORAN</li>
			<?php if ($jenispegawai==2) {?>
			<li>
                <a href="jurnal.html">
                    <span class="icon"><span class="mif-user-check"></span></span>
                    <span class="caption">Jurnal Kegiatan</span>
                </a>
            </li>
			<?php } ?>
			<?php if ($jenispegawai==3) {?>
			<li>
                <a href="jurnalpegawai.html">
                    <span class="icon"><span class="mif-user-check"></span></span>
                    <span class="caption">Jurnal Kegiatan</span>
                </a>
            </li>
			<?php } ?>
			<li>
                <a href="akun_profil.html">
                    <span class="icon"><span class="mif-user-check"></span></span>
                    <span class="caption">Profile</span>
                </a>
            </li>
			<li>
                <a href="pendidikan.html">
                    <span class="icon"><span class="mif-user-check"></span></span>
                    <span class="caption">Riwayat Pendidikan</span>
                </a>
            </li>
			<li>
                <a href="pelatihan.html">
                    <span class="icon"><span class="mif-user-check"></span></span>
                    <span class="caption">Riwayat</span>
                </a>
            </li>
						<li>
                <a href="akun_pass.html">
                    <span class="icon"><span class="mif-key"></span></span>
                    <span class="caption">Ganti Password</span>
                </a>
            </li>
        </ul>
