/* Decoded by unphp.net */ ion_auth->logged_in()) { goto XUCbN; } goto rI9pm; rTXkw: $this->form_validation->set_error_delimiters('', ''); goto wLGgb; HuFB2: uAJxM: goto I4w9d; WQFPa: XUCbN: goto pr1US; fqICl: parent::__construct(); goto G90VK; I4w9d: goto MdUXC; goto WQFPa; VVJDb: $this->load->library(["datatables", "form_validation"]); goto rTXkw; pr1US: redirect("auth"); goto uDTHJ; uDTHJ: MdUXC: goto VVJDb; rI9pm: if ($this->ion_auth->is_admin()) { goto uAJxM; } goto vVAWM; vVAWM: show_error("Hanya Administrator yang diberi hak untuk mengakses halaman ini, Kembali ke menu awal", 403, "Akses Terlarang"); goto HuFB2; wLGgb: } public function output_json($data, $encode = true) { goto SFxJS; B2HiO: tFXBS: goto Lmzf0; Lmzf0: $this->output->set_content_type("application/json")->set_output($data); goto Wnj7l; SFxJS: if (!$encode) { goto tFXBS; } goto AUpoc; AUpoc: $data = json_encode($data); goto B2HiO; Wnj7l: } public function index() { goto pXw1D; frPeB: $this->load->view("_templates/dashboard/_header", $data); goto ELjO6; QkEn3: $data["tp"] = $this->dashboard->getTahun(); goto Vc69V; SFuW8: $data = ["user" => $user, "judul" => "Jenis Ujian", "subjudul" => "Data Jenis Ujian", "profile" => $this->dashboard->getProfileAdmin($user->id), "setting" => $this->dashboard->getSetting()]; goto QkEn3; ka0IK: $user = $this->ion_auth->user()->row(); goto SFuW8; ELjO6: $this->load->view("cbt/jenis/data"); goto oXu1T; B_4JZ: $data["smt"] = $this->dashboard->getSemester(); goto agtDu; oXu1T: $this->load->view("_templates/dashboard/_footer"); goto MYtKK; pXw1D: $this->load->model("Dashboard_model", "dashboard"); goto ka0IK; agtDu: $data["smt_active"] = $this->dashboard->getSemesterActive(); goto frPeB; Vc69V: $data["tp_active"] = $this->dashboard->getTahunActive(); goto B_4JZ; MYtKK: } public function data() { $this->load->model("Cbt_model", "cbt"); $this->output_json($this->cbt->getJenis(), false); } public function add() { goto LD31y; LD31y: $this->load->model("Master_model", "master"); goto UcxPv; JTUhL: $this->master->create("cbt_jenis", $insert, false); goto TEcVq; UcxPv: $insert = ["nama_jenis" => $this->input->post("nama_jenis", true), "kode_jenis" => $this->input->post("kode_jenis", true)]; goto JTUhL; hVrPp: $this->output_json($data); goto Xe1UN; TEcVq: $data["status"] = $insert; goto hVrPp; Xe1UN: } public function update() { goto LA1zt; LA1zt: $this->load->model("Cbt_model", "cbt"); goto f6ZZL; cvffc: $this->output->set_content_type("application/json")->set_output($data); goto asMDx; f6ZZL: $data = $this->cbt->updateJenis(); goto cvffc; asMDx: } public function delete() { goto zZVjY; XjbvI: $chk = $this->input->post("checked", true); goto AWuME; scDAz: $this->output_json(["status" => false]); goto FIkwW; e1v4G: goto sVYlu; goto inb5F; YcqeO: AqR2W: goto e1v4G; mSogy: $this->output_json(["status" => true, "total" => count($chk)]); goto YcqeO; zto6m: if (!$this->master->delete("cbt_jenis", $chk, "id_jenis")) { goto AqR2W; } goto mSogy; FIkwW: sVYlu: goto JP4_j; zZVjY: $this->load->model("Master_model", "master"); goto XjbvI; AWuME: if (!$chk) { goto OlZSF; } goto zto6m; inb5F: OlZSF: goto scDAz; JP4_j: } public function saveLog($type, $desc) { goto jJ2eT; PXd_3: $this->logging->saveLog($type, $desc); goto IktJW; jJ2eT: $this->load->model("Log_model", "logging"); goto Va2GZ; Va2GZ: $user = $this->ion_auth->user()->row(); goto PXd_3; IktJW: } } ?>