/* Decoded by unphp.net */
?>b'load->model(\'m_admin\');
error_reporting(0);
}
public function raport($id_siswa,$semester)
{
$this->session->set_flashdata(\'pesan\',\'
Kesalahan Tak Terduga
\');
if(empty($id_siswa) OR empty($semester)) redirect(base_url(\'admin/raport\'));
//jika kosong id_siswa dan kosong Id raport balek lagi
$x[\'rank\']=$this->m_admin->raport($id_siswa,$semester)->num_rows();
if ($x[\'rank\'] > 0) {
$sql=$this->m_admin->raport($id_siswa,$semester)->result_array();
$hasil_cek=$this->m_admin->rangk_siswa($sql[0][\'id_kelas\'],$sql[0][\'semester\']);
$x[\'peringkat\'] = "";
$x[\'jumlah_siswa\'] = $hasil_cek->num_rows();
$x[\'judul\']="Daftar Nilai Kolektif Siswa";
$x[\'data\']= $this->m_admin->raport($id_siswa,$semester);
$x[\'nama\']= $sql[0][\'nama_s\'];
$x[\'nisn\']= $sql[0][\'nisn\'];
$x[\'nama_kelas\']= $sql[0][\'nama_kelas\'];
$x[\'ket\']= $sql[0][\'ket\'];
$this->load->view(\'laporan/raport\',$x);
}else{
$this->session->set_flashdata(\'pesan\',\'Tidak Dapat Mencetak Data
\');
redirect(base_url(\'admin/raport\'));
}
}
}'