/* Decoded by unphp.net */ ion_auth->logged_in()) { goto WeGit; } goto Kxhf2; Czf1k: goto Idfjz; goto VdDyB; Mrsp1: show_error("Hanya Administrator yang diberi hak untuk mengakses halaman ini, Kembali ke menu awal", 403, "Akses Terlarang"); goto svpl7; VdDyB: WeGit: goto vqSff; VmWqk: $this->form_validation->set_error_delimiters('', ''); goto kcsla; svpl7: dRJdm: goto Czf1k; SLz2B: $this->load->model("Master_model", "master"); goto tVZQB; MSATO: $this->load->model("Kelas_model", "kelas"); goto VmWqk; tVZQB: $this->load->model("Dashboard_model", "dashboard"); goto KQR5O; vqSff: redirect("auth"); goto PF8ku; CEagN: parent::__construct(); goto ELTWU; KQR5O: $this->load->model("Dropdown_model", "dropdown"); goto MSATO; Kxhf2: if (!(!$this->ion_auth->is_admin() && !$this->ion_auth->in_group("guru"))) { goto dRJdm; } goto Mrsp1; PF8ku: Idfjz: goto KqaFb; KqaFb: $this->load->library(["datatables", "form_validation"]); goto SLz2B; kcsla: } public function output_json($data, $encode = true) { goto kMKhG; M3wkQ: XG9b4: goto FgQgn; I5f73: $data = json_encode($data); goto M3wkQ; FgQgn: $this->output->set_content_type("application/json")->set_output($data); goto SnlYj; kMKhG: if (!$encode) { goto XG9b4; } goto I5f73; SnlYj: } public function index() { goto xfUkR; kX68M: $data["guru"] = $this->dropdown->getAllGuru(); goto yKJ6D; in3de: $data["id_guru"] = $guru->id_guru; goto AWMdL; yKJ6D: $this->load->view("_templates/dashboard/_header", $data); goto Gyhgh; rcTLa: $data["smt"] = $this->dashboard->getSemester(); goto BtwcW; kZRyM: $smt = $this->master->getSemesterActive(); goto xJIl0; fr0Jn: goto pfjez; goto Kcv6k; qAPBn: $data["guru"] = $guru; goto in3de; xJIl0: $data["tp"] = $this->dashboard->getTahun(); goto cW4rm; zKyod: $data["profile"] = $this->dashboard->getProfileAdmin($user->id); goto kX68M; AWMdL: $this->load->view("members/guru/templates/header", $data); goto hVpgU; Gyhgh: $this->load->view("kelas/absenharian/data"); goto zFiSm; AWWr6: pfjez: goto pkheq; lmMYF: $tp = $this->master->getTahunActive(); goto kZRyM; xfUkR: $user = $this->ion_auth->user()->row(); goto bURia; bURia: $data = ["user" => $user, "judul" => "Kehadiran Harian Siswa", "subjudul" => "Data Kehadiran Siswa", "setting" => $this->dashboard->getSetting()]; goto lmMYF; AlSqL: $data["kelas"] = $this->dropdown->getAllKelas($tp->id_tp, $smt->id_smt); goto SuBfh; hVpgU: $this->load->view("kelas/absenharian/data"); goto E2jKI; zFiSm: $this->load->view("_templates/dashboard/_footer"); goto AWWr6; ZK7Y4: $guru = $this->dashboard->getDataGuruByUserId($user->id, $tp->id_tp, $smt->id_smt); goto Rv9Gd; SuBfh: $data["mapel"] = $this->dropdown->getAllMapel(); goto ZT5Lc; BtwcW: $data["smt_active"] = $smt; goto AlSqL; Rv9Gd: $nguru[$guru->id_guru] = $guru->nama_guru; goto qAPBn; ZT5Lc: if ($this->ion_auth->is_admin()) { goto mnHCw; } goto ZK7Y4; cW4rm: $data["tp_active"] = $tp; goto rcTLa; Kcv6k: mnHCw: goto zKyod; E2jKI: $this->load->view("members/guru/templates/footer"); goto fr0Jn; pkheq: } public function loadAbsensi() { goto f_YZL; OSAGg: oLjwR: goto lnCu0; aFp_K: if (!(count($arrIdMapel) > 0)) { goto Kvoxd; } goto SZknu; ZpPA4: $id_tp = $this->master->getTahunActive()->id_tp; goto s6jCh; TveMo: $arrIdMapel = []; goto C2wRQ; XHSTo: $log = []; goto C84EM; KJzyT: foreach ($jadwal_materi as $jmtr) { goto I3Wad; ujBxS: sN1ax: goto DLTDJ; DLTDJ: v4MPw: goto Clksp; I3Wad: foreach ($jmtr as $jam) { goto Vp2QH; dtUpK: P4A0C: goto zsDqR; Vp2QH: foreach ($jam as $jns) { array_push($arrIdKjm, $jns->id_kjm); R9lqp: } goto dtUpK; zsDqR: zPeAS: goto zLnLw; zLnLw: } goto ujBxS; Clksp: } goto zmaPP; f_YZL: $id_kelas = $this->input->post("kelas", true); goto dkr3z; GoXv0: $istirahat = unserialize($info->istirahat); goto LQF0c; EvBDf: $siswa = $this->kelas->getKelasSiswa($id_kelas, $id_tp, $id_smt); goto XHSTo; vcej3: $jadwal = $this->dashboard->loadJadwalHariIni($id_tp, $id_smt, $id_kelas, $hari); goto TveMo; z2kdS: $bulan = $this->input->post("bln", true); goto IMvHp; CvP7z: $istirahat = []; goto njFEz; C2wRQ: foreach ($jadwal as $jd) { array_push($arrIdMapel, $jd->id_mapel); pSYF_: } goto xiN7R; LQF0c: aza3y: goto vcej3; s6jCh: $id_smt = $this->master->getSemesterActive()->id_smt; goto phAhW; JVF4D: $jadwal_materi = []; goto aFp_K; dkr3z: $tahun = $this->input->post("thn", true); goto z2kdS; hFtfA: Kvoxd: goto dE9Xr; dE9Xr: $arrIdKjm = []; goto KJzyT; lnCu0: JauBe: goto YE5Oc; xiN7R: OC94v: goto JVF4D; CyN79: $hari = $this->input->post("hari", true); goto ZpPA4; YE5Oc: $this->output_json(array("test" => [$id_kelas, $tahun . "-" . $bulan . "-" . $tanggal, $arrIdMapel], "log" => $log, "info" => $info, "jadwal" => $jadwal, "materi" => $jadwal_materi, "istirahat" => $istirahat)); goto fN46s; URjpM: if ($info != null) { goto bMoOG; } goto CvP7z; SZknu: $jadwal_materi = $this->kelas->getAllMateriByTgl($id_kelas, $tahun . "-" . $bulan . "-" . $tanggal, $arrIdMapel); goto hFtfA; PREYC: $tanggal = str_pad($tanggal, 2, "0", STR_PAD_LEFT); goto AL0u0; njFEz: goto aza3y; goto oHr9F; oHr9F: bMoOG: goto GoXv0; Wy3NM: foreach ($siswa as $s) { goto INvEZ; NFiJw: $log[$s->id_siswa] = ["nama" => $s->nama, "nis" => $s->nis, "kelas" => $s->nama_kelas, "status" => $status]; goto An0uZ; cvdck: q3loa: goto Vmsbz; INvEZ: $status_materi = []; goto yaNRF; MUz8J: icniH: goto NFiJw; sKykO: $status_materi = $this->kelas->getRekapStatusMateri($s->id_siswa, $arrIdKjm); goto cvdck; Vmsbz: $status = []; goto Nf8m7; An0uZ: QAT10: goto df7pu; yaNRF: if (!(count($arrIdKjm) > 0)) { goto q3loa; } goto sKykO; Nf8m7: foreach ($status_materi as $stat) { $status[$stat->jam_ke][$stat->id_mapel][$stat->jenis] = $stat; PSmxC: } goto MUz8J; df7pu: } goto OSAGg; AL0u0: $info = $this->dashboard->getJadwalKbm($id_tp, $id_smt, $id_kelas); goto URjpM; IMvHp: $tanggal = $this->input->post("tgl", true); goto CyN79; zmaPP: XPWbQ: goto EvBDf; C84EM: if (!($info != null)) { goto JauBe; } goto Wy3NM; phAhW: $bulan = str_pad($bulan, 2, "0", STR_PAD_LEFT); goto PREYC; fN46s: } } ?>