/* Decoded by unphp.net */ load->model("Master_model", "master"); goto OMPaI; TMRLQ: parent::__construct(); goto PRnUt; V_qAk: redirect("auth"); goto jkND_; C9ZOY: $this->load->model("Log_model", "logging"); goto Cnppx; Cnppx: $this->load->model("Dropdown_model", "dropdown"); goto nfPqS; PRnUt: if ($this->ion_auth->logged_in()) { goto tc3T5; } goto V_qAk; OMPaI: $this->load->model("Dashboard_model", "dashboard"); goto C9ZOY; nfPqS: $this->load->model("Cbt_model", "cbt"); goto PVxS9; jkND_: tc3T5: goto T7cey; PVxS9: } public function admin_box($setting, $tp, $smt) { goto r3XpP; OgC0D: dN3GC: goto qMTqU; qMTqU: $where = "jenjang=0 OR jenjang=1"; goto tk_hH; SsGzO: if ($setting->jenjang == "1") { goto dN3GC; } goto QgTis; PJM9r: $info_box = json_decode(json_encode($box), FALSE); goto CbgJn; V5b2B: Qe5Ms: goto FLcQo; r3XpP: $where = ''; goto SsGzO; FLcQo: $where = "jenjang=2 OR jenjang=1"; goto PZZb9; PZZb9: hnnNj: goto c1GbD; QgTis: if ($setting->jenjang == "2") { goto Qe5Ms; } goto HB_PP; tk_hH: goto hnnNj; goto V5b2B; c1GbD: $box = [["box" => "blue", "total" => $this->dashboard->total("master_siswa"), "title" => "Siswa", "url" => "datasiswa", "icon" => "users"], ["box" => "cyan", "total" => $this->dashboard->total("master_kelas", "id_tp=" . $tp . " AND id_smt=" . $smt), "title" => "Rombel", "url" => "datakelas", "icon" => "bell"], ["box" => "teal", "total" => $this->dashboard->total("master_guru"), "title" => "Guru", "url" => "dataguru", "icon" => "user"], ["box" => "fuchsia", "total" => $this->dashboard->totalWaliKelas($tp, $smt), "title" => "Wali Kelas", "url" => "dataguru", "icon" => "user"], ["box" => "success", "total" => $this->dashboard->total("master_mapel", $where), "title" => "Mapel", "url" => "datamapel", "icon" => "book"], ["box" => "yellow", "total" => $this->dashboard->total("master_ekstra"), "title" => "Ekstrakurikuler", "url" => "dataekstra", "icon" => "book"]]; goto PJM9r; CbgJn: return $info_box; goto KHi52; HB_PP: goto hnnNj; goto OgC0D; KHi52: } public function guru_box($setting) { goto CY2vv; CY2vv: $where = ''; goto F1v30; Xm7fx: $where = "jenjang=2 OR jenjang=1"; goto qHgWH; pf4aC: goto xdRqB; goto kWxN6; gjZ71: return $info_box; goto Bl5Om; F1v30: if ($setting->jenjang == "1") { goto puUiG; } goto IzYYb; PRc1L: $where = "jenjang=0 OR jenjang=1"; goto k8NLa; opDt0: $info_box = json_decode(json_encode($box), FALSE); goto gjZ71; IzYYb: if ($setting->jenjang == "2") { goto jPFfH; } goto pf4aC; kWxN6: puUiG: goto PRc1L; qHgWH: xdRqB: goto s_4lL; A5SAq: jPFfH: goto Xm7fx; k8NLa: goto xdRqB; goto A5SAq; s_4lL: $box = [["box" => "teal", "total" => $this->dashboard->total("master_kelas"), "title" => "Rombel", "icon" => "user"], ["box" => "blue", "total" => $this->dashboard->total("master_siswa"), "title" => "Siswa", "icon" => "users"], ["box" => "fuchsia", "total" => $this->dashboard->total("master_guru"), "title" => "Guru", "icon" => "user"], ["box" => "success", "total" => $this->dashboard->total("master_mapel", $where), "title" => "Mapel", "icon" => "book"]]; goto opDt0; Bl5Om: } public function ujian_box() { goto xS1Tz; JVnkB: $info_box = json_decode(json_encode($box), FALSE); goto MRBqj; xS1Tz: $box = [["box" => "indigo", "total" => $this->dashboard->total("cbt_ruang"), "title" => "Ruang Ujian", "url" => "cbtruang", "icon" => "school"], ["box" => "maroon", "total" => $this->dashboard->total("cbt_sesi"), "title" => "Sesi", "url" => "cbtsesi", "icon" => "clock"], ["box" => "green", "total" => $this->dashboard->total("cbt_bank_soal"), "title" => "Bank Soal", "url" => "cbtbanksoal", "icon" => "folder"], ["box" => "teal", "total" => $this->dashboard->totalJadwal(), "title" => "Jadwal", "url" => "cbtjadwal", "icon" => "clock"]]; goto JVnkB; MRBqj: return $info_box; goto KXB0C; KXB0C: } public function menu_siswa_box() { goto ZLC1s; mpYAP: $info_box = json_decode(json_encode($box), FALSE); goto dXmti; dXmti: return $info_box; goto euo7j; ZLC1s: $box = [["title" => "Jadwal Pelajaran", "icon" => "ic_online.png", "link" => "siswa/jadwalpelajaran"], ["title" => "Materi", "icon" => "ic_elearning.png", "link" => "siswa/materi"], ["title" => "Tugas", "icon" => "ic_questions.png", "link" => "siswa/tugas"], ["title" => "Ujian / Ulangan", "icon" => "ic_question.png", "link" => "siswa/cbt"], ["title" => "Nilai Hasil", "icon" => "ic_exam.png", "link" => "siswa/hasil"], ["title" => "Absensi", "icon" => "ic_clipboard.png", "link" => "siswa/kehadiran"], ["title" => "Catatan Guru", "icon" => "ic_student.png", "link" => "siswa/catatan"]]; goto mpYAP; euo7j: } public function index() { goto IPjn3; K89yz: $data["running_text"] = $this->dashboard->getRunningText(); goto yM76e; yM76e: $this->load->view("members/siswa/templates/header", $data); goto aL6RF; oqa70: $tkn["auto"] = "0"; goto pZ8Fb; zKoLo: $this->load->view("members/guru/dashboard"); goto hr40a; wb_G_: vzeys: goto pkHel; y1dI_: wL4ii: goto pMbib; jdq9a: $kelass = []; goto iXoI1; R3T17: $data["tp_active"] = $tp; goto kc04F; sr2Hq: $kbms = $this->dashboard->getJadwalKbm($tp->id_tp, $smt->id_smt); goto fq7hA; lZ22g: foreach ($tglJadwals as $tgl => $jadwalss) { goto SyjJd; xjQU4: K0ljf: goto LbFgW; qoCT3: taMmW: goto xjQU4; SyjJd: foreach ($jadwalss as $mpl => $jadwals) { goto bpqjb; bpqjb: foreach ($jadwals as $jadwal) { goto VSKJZ; VSKJZ: $jadwal->bank_kelas = unserialize($jadwal->bank_kelas); goto Adi2Q; kEeyj: hetZr: goto M4zNG; CLLGW: Maj65: goto kEeyj; Adi2Q: foreach ($jadwal->bank_kelas as $kb) { goto RomB3; ndFgm: VfaBq: goto cLO43; RomB3: if (!($kb["kelas_id"] != '')) { goto Oa_fr; } goto nfGUo; fO2D8: $jadwal->peserta[] = $p; goto kZq8l; nfGUo: $p = $this->cbt->getKelasUjian($kb["kelas_id"]); goto fO2D8; kZq8l: Oa_fr: goto ndFgm; cLO43: } goto CLLGW; M4zNG: } goto gn898; gn898: zMrnm: goto wklbk; wklbk: nMDM2: goto Wdn8u; Wdn8u: } goto qoCT3; LbFgW: } goto wb_G_; EjWvz: $data["kbms"] = $arrKbm; goto rg9FI; DBzlC: $data["info_box"] = $this->admin_box($setting, $tp->id_tp, $smt->id_smt); goto QQXOU; aL6RF: $this->load->view("members/siswa/dashboard"); goto GkWXW; R5mA0: oV7Bo: goto DGukt; wNkSm: $data["info_box"] = $this->admin_box($setting, $tp->id_tp, $smt->id_smt); goto I3t8a; cYDTT: $tp = $this->dashboard->getTahunActive(); goto IMEx_; OrM6C: goto r2nc3; goto vUfGM; I8CUN: foreach ($kbms as $key => $item) { $arrKbm[$item->id_kelas] = $item; EN_xY: } goto Wk0aw; oqCuM: $data["jadwals"] = $arrJadwalKelas[$siswa->id_kelas] ?? []; goto K89yz; fWNpb: $this->load->view("_templates/dashboard/_footer"); goto r_fMu; clqle: $token = $this->cbt->getToken(); goto dekKN; hr40a: $this->load->view("members/guru/templates/footer"); goto OrM6C; NEtfh: Rlep7: goto pG9oG; NjBVH: goto glg4z; goto NEtfh; K0RDj: r2nc3: goto r05ZL; iXoI1: if (!($tp != null)) { goto ndXfP; } goto SdXPk; pMbib: $guru = $this->dashboard->getDataGuruByUserId($user->id, $tp->id_tp, $smt->id_smt); goto ZemHh; pxEY8: $data["guru"] = $guru; goto s06St; S61Md: $tglJadwals = $this->cbt->getAllJadwalByJenis(null, $tp->id_tp, $smt->id_smt); goto lZ22g; pG9oG: $siswa = $this->dashboard->getDataSiswa($user->username, $tp->id_tp, $smt->id_smt); goto bGNur; epo1x: $data["profile"] = $this->dashboard->getProfileAdmin($user->id); goto zUJZh; IMEx_: $smt = $this->dashboard->getSemesterActive(); goto oNikV; pkHel: $data["jadwals_ujian"] = $tglJadwals; goto za0ek; Px9Mx: $data["ruangs"] = $this->cbt->getDistinctRuang($tp->id_tp, $smt->id_smt, []); goto V7ljt; RFPpE: if ($this->ion_auth->in_group("guru")) { goto wL4ii; } goto oAT7J; kc04F: $data["smt"] = $this->dashboard->getSemester(); goto Eqy68; J2pbc: NZFAy: goto NzE1L; SdXPk: $kelass = $this->dropdown->getAllKelas($tp->id_tp, $smt->id_smt); goto LicF_; diYQt: foreach ($jadwal as $key => $item) { $arrJadwalKelas[$item->id_kelas][$item->jam_ke] = $item; vvw30: } goto v8PrR; pZ8Fb: $tkn["jarak"] = "1"; goto jf_6i; GkWXW: $this->load->view("members/siswa/templates/footer"); goto zlgX8; jf_6i: $tkn["elapsed"] = "00:00:00"; goto e9K0e; Aw8Bz: $this->load->view("disable_login", $data); goto K0RDj; r_fMu: goto DCo_O; goto y1dI_; fq7hA: foreach ($kbms as $kbm) { $kbm->istirahat = unserialize($kbm->istirahat); iIpwo: } goto J2pbc; vUfGM: pOKyq: goto Aw8Bz; EhATu: if ($this->ion_auth->in_group("siswa")) { goto Rlep7; } goto clqle; hVC2D: R0oIV: goto wNkSm; TuU8i: $data["ada_ujian"] = $this->cbt->getDataJadwalByTgl(date("Y-m-d")); goto UkU3u; zUJZh: $this->load->view("_templates/dashboard/_header", $data); goto fVRLz; s06St: $this->load->view("members/guru/templates/header", $data); goto zKoLo; I7Gw5: glg4z: goto NVgcc; UkU3u: $data["jadwals"] = $arrJadwalKelas; goto EjWvz; e9K0e: $data["token"] = $token != null ? $token : json_decode(json_encode($tkn)); goto TuU8i; bGNur: if ($siswa == null) { goto oV7Bo; } goto Xy9mZ; za0ek: $data["pengawas"] = $this->cbt->getAllPengawas($tp->id_tp, $smt->id_smt, null, null); goto Px9Mx; COGUA: $data["menu"] = $this->menu_siswa_box(); goto KNhik; yi8jE: $jadwal = $this->dashboard->loadJadwalHariIni($tp->id_tp, $smt->id_smt, null, $day); goto sr2Hq; I3t8a: $data["ujian_box"] = $this->ujian_box(); goto epo1x; LicF_: ndXfP: goto rIDqR; dekKN: $tkn["token"] = ''; goto oqa70; Wk0aw: oMV8e: goto EhATu; oAT7J: goto DCo_O; goto hVC2D; Fzzq5: $day = date("N", strtotime(date("Y-m-d"))); goto yi8jE; KNhik: $data["kbms"] = $arrKbm[$siswa->id_kelas] ?? null; goto oqCuM; Flb4B: $user = $this->ion_auth->user()->row(); goto iqsAo; IPjn3: $setting = $this->dashboard->getSetting(); goto Flb4B; rg9FI: $data["mapels"] = $this->master->getAllMapel(); goto S61Md; OYXsV: uXVlF: goto I7Gw5; QQXOU: $data["ujian_box"] = $this->ujian_box(); goto pxEY8; axvjd: if ($this->ion_auth->is_admin()) { goto R0oIV; } goto RFPpE; iqsAo: $data = ["user" => $user, "judul" => "Beranda", "subjudul" => "Halaman Utama", "setting" => $setting]; goto cYDTT; v8PrR: ULNFn: goto sRfxd; oNikV: $data["tp"] = $this->dashboard->getTahun(); goto R3T17; zlgX8: goto uXVlF; goto R5mA0; sRfxd: $arrKbm = []; goto I8CUN; rIDqR: $data["kelases"] = $kelass; goto Fzzq5; V7ljt: $data["gurus"] = $this->dropdown->getAllGuru(); goto axvjd; Eqy68: $data["smt_active"] = $smt; goto jdq9a; ZemHh: if ($guru == null) { goto pOKyq; } goto DBzlC; r05ZL: DCo_O: goto NjBVH; Xy9mZ: $data["siswa"] = $siswa; goto COGUA; DGukt: $this->load->view("disable_login", $data); goto OYXsV; fVRLz: $this->load->view("dashboard"); goto fWNpb; NzE1L: $arrJadwalKelas = []; goto diYQt; NVgcc: } public function checkTokenJadwal() { goto TRfrW; lsLCk: $data["token"] = $token; goto Q_yGU; exmq0: $token = $this->cbt->getToken(); goto CqPPx; TRfrW: $data["ada_ujian"] = $this->cbt->getDataJadwalByTgl(date("Y-m-d")); goto exmq0; Q_yGU: $this->output_json($data); goto lTnJu; CqPPx: $token->now = date("d-m-Y H:i:s"); goto lsLCk; lTnJu: } public function output_json($data, $encode = true) { goto BIRKj; hl_QV: $this->output->set_content_type("application/json")->set_output($data); goto ACT2n; Q79AD: $data = json_encode($data); goto a_1Gs; a_1Gs: CnUMu: goto hl_QV; BIRKj: if (!$encode) { goto CnUMu; } goto Q79AD; ACT2n: } public function gantiTahun() { goto up4qb; up4qb: $aktif = $this->input->post("active", true); goto MMNDK; JNytP: goto gKU9P; goto mICg6; R6CWc: eimWm: goto hRojK; zmLx1: Q2_z1: goto lTkuE; Uwnl2: $data["update"] = $update; goto a66zD; ucBKx: G2O3U: goto ekaay; lTkuE: $active = 1; goto ucBKx; mICg6: amfWN: goto Ptwtg; hRojK: $i++; goto JNytP; Ptwtg: $this->dashboard->update("master_tp", $update, "id_tp", null, true); goto Uwnl2; o6os1: $this->logging->saveLog(4, "mengganti tahun ajaran aktif"); goto rPQrD; a66zD: $data["status"] = true; goto o6os1; rCBC4: $active = 0; goto CUTFQ; U786S: $id_tp = $this->input->post("id_tp[" . $i . "]", true); goto Oxh0c; BFh2s: gKU9P: goto lppke; Oxh0c: $tahun = $this->input->post("tahun[" . $i . "]", true); goto DxuuV; AfqFR: $i = 0; goto BFh2s; rPQrD: $this->output_json($data); goto R3H5p; MMNDK: $rows = count($this->input->post("tahun", true)); goto AfqFR; DxuuV: if ($id_tp === $aktif) { goto Q2_z1; } goto rCBC4; CUTFQ: goto G2O3U; goto zmLx1; lppke: if (!($i <= $rows)) { goto amfWN; } goto U786S; ekaay: $update[] = array("id_tp" => $id_tp, "tahun" => $tahun, "active" => $active); goto R6CWc; R3H5p: } public function gantiSemester() { goto IIJOa; bz3JY: tRzZT: goto YEU8k; piVZQ: $data["update"] = $update; goto v9Lf3; fwWM6: eTYdB: goto UXHxi; C3M4G: $i = 1; goto hjHsW; qXbfw: goto tRzZT; goto nM0SZ; ka8Xr: $this->output_json($data); goto AParJ; hjHsW: bTDy_: goto QF7Cc; IZ2E1: $rows = count($this->input->post("smt", true)); goto C3M4G; DK_Mv: $active = 0; goto qXbfw; iCDwS: $smt = $this->input->post("smt[" . $i . "]", true); goto bF9Vv; UXHxi: $this->dashboard->update("master_smt", $update, "id_smt", null, true); goto piVZQ; bF9Vv: if ($id_smt === $aktif) { goto aFwXH; } goto DK_Mv; IIJOa: $aktif = $this->input->post("active", true); goto IZ2E1; QF7Cc: if (!($i <= $rows)) { goto eTYdB; } goto RE9g_; v9Lf3: $data["status"] = true; goto znckW; nM0SZ: aFwXH: goto mN8bv; YEU8k: $update[] = array("id_smt" => $id_smt, "smt" => $smt, "active" => $active); goto XAyP3; RE9g_: $id_smt = $this->input->post("id_smt[" . $i . "]", true); goto iCDwS; mN8bv: $active = 1; goto bz3JY; p7FfZ: goto bTDy_; goto fwWM6; qCcis: $i++; goto p7FfZ; znckW: $this->logging->saveLog(4, "mengganti semester aktif"); goto ka8Xr; XAyP3: t6vA4: goto qCcis; AParJ: } public function getNotifikasi() { } public function getLog($limit) { $this->output_json($this->logging->loadAktifitas($limit)); } public function hapusLog() { goto wjcu3; cOtXl: goto gbeRl; goto B73Yl; BS5QB: $this->db->trans_complete(); goto A87F4; Pwxmi: if ($this->db->empty_table("log")) { goto tx0em; } goto s6s5X; SOvq1: gbeRl: goto BS5QB; mzKdY: $deleted = ["status" => true, "message" => "berhasil"]; goto SOvq1; wjcu3: $this->db->trans_start(); goto Pwxmi; s6s5X: $deleted = ["status" => false, "message" => "gagal"]; goto cOtXl; B73Yl: tx0em: goto mzKdY; A87F4: $this->output_json($deleted); goto EwT2a; EwT2a: } public function getLogSiswa($limit) { $this->output_json($this->logging->loadAktifitasSiswa($limit)); } public function getPengumuman($for) { $this->output_json($this->dashboard->loadPengumuman($for)); } public function getJadwalHariIni($id_kelas, $id_hari) { goto HzUiP; HzUiP: $tp = $this->dashboard->getTahunActive(); goto vQpD0; lR5VQ: $this->output_json($this->dashboard->loadJadwalHariIni($tp->id_tp, $smt->id_smt, $id_kelas, $id_hari)); goto lei0w; vQpD0: $smt = $this->dashboard->getSemesterActive(); goto lR5VQ; lei0w: } public function getJadwalKbm($id_kelas) { goto le8LG; k8njX: $istirahat = unserialize($jadwal->istirahat); goto HHvJF; HHvJF: $this->output_json(array("jadwal" => $jadwal, "istirahat" => $istirahat)); goto ARsRB; pKiwQ: $jadwal = $this->dashboard->getJadwalKbm($tp->id_tp, $smt->id_smt, $id_kelas); goto k8njX; le8LG: $tp = $this->dashboard->getTahunActive(); goto vKtKM; vKtKM: $smt = $this->dashboard->getSemesterActive(); goto pKiwQ; ARsRB: } } ?>