<?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;
}
$carikelas3=$this->db->query("SELECT * FROM web_kelas where kode='".$kdkelas."'");
	foreach ($carikelas3->result() as $baris3) {
		$namakelas=$baris3->nama;
	}
 ?>
	<div class="app-bar-container ml-auto">
	<a href="lihattiket.html" class="app-bar-item">
			<span class="mif-bell"></span>
			<span class="badge bg-orange fg-white mt-2 mr-1">10</span>
		</a>
	<div class="app-bar-container">
		
		<a href="#" class="app-bar-item">
			<img src="<?php echo base_url('upload/profil/'.$filex1.'');?>" class="avatar">
			<span class="ml-2 app-bar-name"><?php echo $sesinama;?></span>
		</a>
		<div class="user-block shadow-1" data-role="collapse" data-collapsed="true">
			<div class="bg-darkCyan fg-white p-2 text-center">
				<img src="<?php echo base_url('upload/profil/'.$filex1.'');?>" class="avatar">
				<div class="h4 mb-0"><?php echo $sesinama;?></div>
				<div><?php echo $namakelas;?></div>
			</div>

			<div class="bg-white d-flex flex-justify-between flex-equal-items p-2 bg-light">
				<a href="akun_profil.html" class="button primary drop-shadow mt-1">Profile</a>
				<a href="akun_logout.html" class="button dark drop-shadow mt-1">Keluar</a>
			</div>
		</div>
	</div>
	</div>