/* Decoded by unphp.net */ Kembali ke menu awal", 403, "Akses Terlarang"); goto Dk4ZN; NWqb_: $this->form_validation->set_error_delimiters('', ''); goto E7iGr; yuRCr: parent::__construct(); goto Us7bq; exQBt: redirect("auth"); goto m_c2i; BpOZs: if ($this->ion_auth->is_admin()) { goto y_nuM; } goto a329v; Us7bq: if (!$this->ion_auth->logged_in()) { goto ZBT5f; } goto BpOZs; ozvHR: ZBT5f: goto exQBt; xMoH2: $this->load->library(["datatables", "form_validation"]); goto NWqb_; XMogP: goto FgKU6; goto ozvHR; m_c2i: FgKU6: goto xMoH2; E7iGr: } public function output_json($data, $encode = true) { goto DyHfC; AzgO0: $this->output->set_content_type("application/json")->set_output($data); goto J_Xd6; lonCo: KmQuy: goto AzgO0; D6ZVa: $data = json_encode($data); goto lonCo; DyHfC: if (!$encode) { goto KmQuy; } goto D6ZVa; J_Xd6: } public function index() { goto obYMm; NHzeG: $this->load->model("Dashboard_model", "dashboard"); goto i5lnl; fWlkQ: ecrZz: goto qRDVJ; y0CRA: $data["filter"] = ["0" => "Semua", "1" => "Tanggal"]; goto ATK9p; gVrcp: if (!(count($id_jenis) > 0)) { goto c_F8b; } goto yK3gd; H2fx0: $tp = $this->dashboard->getTahunActive(); goto XQAli; GkmbF: $data["dari_selected"] = $dari_selected; goto kUKyK; QVgIX: if (count($ids) > 0) { goto GwvU0; } goto SzSlv; kTHoy: $this->load->view("cbt/alokasi/data"); goto vhb0Q; HID57: $data["tp"] = $this->dashboard->getTahun(); goto L08M3; kUHW6: goto YJxFD; goto qw9sm; YcaSM: goto GAEqx; goto WnU7O; hDm2W: $data["jadwals"] = $jadwals; goto uEO1a; YAyL0: $level_selected = $this->input->get("level", true); goto LsJ1L; obYMm: $this->load->model("Dropdown_model", "dropdown"); goto NHzeG; vJaZh: xA7HJ: goto YN55Q; fzwKc: $this->load->view("_templates/dashboard/_header", $data); goto kTHoy; EwSrV: if ($setting->jenjang == "2") { goto ecrZz; } goto zBV99; fR1Qd: goto YJxFD; goto fWlkQ; cJijF: $data["smt"] = $this->dashboard->getSemester(); goto irklR; zBV99: if ($setting->jenjang == "3") { goto SMHgY; } goto kUHW6; qRDVJ: $levels = ["0" => "Pilih Level", "7" => "7", "8" => "8", "9" => "9"]; goto pnlOe; naVsV: $id_jenis = $this->cbt->getDistinctJenisJadwal($tp->id_tp, $smt->id_smt); goto NyvCJ; sP0B9: $sampai_selected = $this->input->get("sampai", true); goto y0CRA; TWV70: $jadwals = $this->cbt->getJadwalByJenis($jenis_selected, $level_selected, $dari_selected, $sampai_selected); goto vJaZh; aH_cN: SMHgY: goto eLymf; iQTnA: rnvEe: goto O9WR4; Cgp8S: if (!($jenis_selected != null && $level_selected != null)) { goto xA7HJ; } goto TWV70; ATK9p: $data["jenis_selected"] = $jenis_selected; goto B7yb9; B7yb9: $data["level_selected"] = $level_selected; goto AmkYe; qw9sm: uEFXE: goto n6U0Y; WnU7O: GwvU0: goto nZ3Rr; dxIeg: $setting = $this->dashboard->getSetting(); goto y0J0s; eLymf: $levels = ["0" => "Pilih Level", "10" => "10", "11" => "11", "12" => "12"]; goto HtE7f; Og5ZE: HbkFL: goto hDm2W; n6U0Y: $levels = ["0" => "Pilih Level", "1" => "1", "2" => "2", "3" => "3", "4" => "4", "5" => "5", "6" => "6"]; goto fR1Qd; O9WR4: c_F8b: goto QVgIX; WSigN: $jenis_selected = $this->input->get("jenis", true); goto YAyL0; R_JMV: $dari_selected = $this->input->get("dari", true); goto sP0B9; SzSlv: $data["jenis"] = ['' => "belum ada jadwal ujian"]; goto YcaSM; ZWhmI: foreach ($jadwals as $key => $row) { goto YZKk8; jNZan: aHbLB: goto YgoDR; nslp5: $ret[$row->tgl_mulai] = []; goto XhsIz; z4hgK: O6cxc: goto EkHKe; kVs_1: goto O6cxc; goto jNZan; EkHKe: x12lk: goto hwspa; XhsIz: array_push($ret[$row->tgl_mulai], $row); goto kVs_1; YgoDR: array_push($ret[$row->tgl_mulai], $row); goto z4hgK; YZKk8: if (isset($ret[$row->tgl_mulai])) { goto aHbLB; } goto nslp5; hwspa: } goto Og5ZE; qSIHo: $data["ruang"] = $this->dropdown->getAllRuang(); goto W0let; AmkYe: $data["filter_selected"] = $filter_selected; goto GkmbF; qPEPd: GAEqx: goto WSigN; kUKyK: $data["sampai_selected"] = $sampai_selected; goto ExpvF; yK3gd: foreach ($id_jenis as $jenis) { array_push($ids, $jenis->id_jenis); M3Q5g: } goto iQTnA; LsJ1L: $filter_selected = $this->input->get("filter", true); goto R_JMV; YRn28: $user = $this->ion_auth->user()->row(); goto dxIeg; ExpvF: $jadwals = []; goto Cgp8S; NNnoO: $ret = []; goto ZWhmI; y0J0s: $data = ["user" => $user, "judul" => "Alokasi Waktu", "subjudul" => "Alokasi Waktu Ujian", "setting" => $setting]; goto H2fx0; XQAli: $smt = $this->dashboard->getSemesterActive(); goto HID57; i5lnl: $this->load->model("Cbt_model", "cbt"); goto YRn28; W0let: $levels = []; goto Uy1f3; z6cjO: $data["levels"] = $levels; goto NNnoO; pnlOe: goto YJxFD; goto aH_cN; vhb0Q: $this->load->view("_templates/dashboard/_footer"); goto J72qK; irklR: $data["smt_active"] = $smt; goto naVsV; nZ3Rr: $data["jenis"] = $this->cbt->getAllJenisUjianByArrJenis($ids); goto qPEPd; HtE7f: YJxFD: goto z6cjO; NyvCJ: $ids = []; goto gVrcp; L08M3: $data["tp_active"] = $tp; goto cJijF; Uy1f3: if ($setting->jenjang == "1") { goto uEFXE; } goto EwSrV; uEO1a: $data["profile"] = $this->dashboard->getProfileAdmin($user->id); goto fzwKc; YN55Q: $data["kelas"] = $this->dropdown->getAllKelas($tp->id_tp, $smt->id_smt); goto qSIHo; J72qK: } public function saveAlokasi() { goto F52xn; eY7Pf: $data["status"] = $update; goto VvLoA; VvLoA: $this->output_json($data); goto PIQXX; a_7iw: $insert = []; goto iwQTX; iwQTX: foreach ($input as $d) { goto wg8c_; wg8c_: if (!($d->id_jadwal != "0")) { goto SzYpZ; } goto ilf1X; iZBNP: yXU2l: goto RoTV7; ilf1X: array_push($insert, ["id_jadwal" => $d->id_jadwal, "jam_ke" => $d->jam_ke]); goto HkFV3; HkFV3: SzYpZ: goto iZBNP; RoTV7: } goto qb2G2; qb2G2: SPW4J: goto Osmpe; F52xn: $input = json_decode($this->input->post("alokasi", true)); goto a_7iw; Osmpe: $update = $this->db->update_batch("cbt_jadwal", $insert, "id_jadwal"); goto eY7Pf; PIQXX: } } ?>