goto BGKm6;
DLatP: goto rjV2X;
goto uv1cq;
TZ4EC: rjV2X: goto bPSsB;
g7eRN: $this->form_validation->set_error_delimiters('', '');
goto iAJLX;
uv1cq: t7yVd: goto jyB5t;
bPSsB: $this->load->library(["datatables", "form_validation"]);
goto g7eRN;
BGKm6: parent::__construct();
goto Hc95_;
CgRDx: show_error("Hanya Administrator yang diberi hak untuk mengakses halaman ini, <a href="" . base_url("dashboard") . "">Kembali ke menu awal</a>", 403, "Akses Terlarang");
goto Vu9DZ;
jyB5t: redirect("auth");
goto TZ4EC;
Hc95_: if (!$this->ion_auth->logged_in()) {
goto t7yVd;
}
goto ol3yZ;
Vu9DZ: Gb_14: goto DLatP;
ol3yZ: if ($this->ion_auth->is_admin()) {
goto Gb_14;
}
goto CgRDx;
iAJLX:
}
public function output_json($data, $encode = true) {
goto qcDgp;
fbqwj: hKX4P: goto wBVlL;
wBVlL: $this->output->set_content_type("application/json")->set_output($data);
goto PAPkp;
skqXF: $data = json_encode($data);
goto fbqwj;
qcDgp: if (!$encode) {
goto hKX4P;
}
goto skqXF;
PAPkp:
}
public function index() {
goto nEN7M;
IAn4m: $this->load->view("_templates/dashboard/_footer");
goto ZkKGA;
TdO4t: $data["smt_active"] = $this->dashboard->getSemesterActive();
goto cA1eG;
jOqp9: $this->load->view("cbt/jenis/data");
goto IAn4m;
dI07B: $data["smt"] = $this->dashboard->getSemester();
goto TdO4t;
x7XXl: $data = ["user" => $user, "judul" => "Jenis Ujian", "subjudul" => "Data Jenis Ujian", "profile" => $this->dashboard->getProfileAdmin($user->id), "setting" => $this->dashboard->getSetting()];
goto mpQ90;
cA1eG: $this->load->view("_templates/dashboard/_header", $data);
goto jOqp9;
SOoB9: $data["tp_active"] = $this->dashboard->getTahunActive();
goto dI07B;
mpQ90: $data["tp"] = $this->dashboard->getTahun();
goto SOoB9;
nEN7M: $this->load->model("Dashboard_model", "dashboard");
goto YmUln;
YmUln: $user = $this->ion_auth->user()->row();
goto x7XXl;
ZkKGA:
}
public function data() {
$this->load->model("Cbt_model", "cbt");
$this->output_json($this->cbt->getJenis(), false);
}
public function add() {
goto Lj5Cx;
Lj5Cx: $this->load->model("Master_model", "master");
goto Nptaq;
SQnWl: $this->output_json($data);
goto OZaPV;
OPTwD: $data["status"] = $insert;
goto SQnWl;
kNkb9: $this->master->create("cbt_jenis", $insert, false);
goto OPTwD;
Nptaq: $insert = ["nama_jenis" => $this->input->post("nama_jenis", true), "kode_jenis" => $this->input->post("kode_jenis", true)];
goto kNkb9;
OZaPV:
}
public function update() {
goto oVRQe;
m8PEL: $data = $this->cbt->updateJenis();
goto OJxPt;
OJxPt: $this->output->set_content_type("application/json")->set_output($data);
goto lN220;
oVRQe: $this->load->model("Cbt_model", "cbt");
goto m8PEL;
lN220:
}
public function delete() {
goto K9XAg;
K9XAg: $this->load->model("Master_model", "master");
goto ZEvxo;
ZEvxo: $chk = $this->input->post("checked", true);
goto TsXot;
sGIyd: $this->output_json(["status" => true, "total" => count($chk)]);
goto G39Pj;
acYOi: goto YuypB;
goto KcDsS;
uGYcy: YuypB: goto QOutd;
DAY_W: $this->output_json(["status" => false]);
goto uGYcy;
TsXot: if (!$chk) {
goto jpWu9;
}
goto mQKU6;
KcDsS: jpWu9: goto DAY_W;
G39Pj: hgyVb: goto acYOi;
mQKU6: if (!$this->master->delete("cbt_jenis", $chk, "id_jenis")) {
goto hgyVb;
}
goto sGIyd;
QOutd:
}
public function saveLog($type, $desc) {
goto RARan;
yg_Ly: $this->logging->saveLog($type, $desc);
goto K0oIn;
GgG1Q: $user = $this->ion_auth->user()->row();
goto yg_Ly;
RARan: $this->load->model("Log_model", "logging");
goto GgG1Q;
K0oIn:
}
© 2023 Quttera Ltd. All rights reserved.