/* Decoded by unphp.net */ ion_auth->is_admin()) { goto sCTE5; } goto KW2Zk; KW2Zk: show_error("Hanya Administrator yang diberi hak untuk mengakses halaman ini, Kembali ke menu awal", 403, "Akses Terlarang"); goto wKsCW; wKsCW: sCTE5: goto FZlKY; hWB0k: parent::__construct(); goto knKzM; elL1m: $this->load->model("Rapor_model", "rapor"); goto Kt3Zl; IjyZ0: $this->load->model("Dropdown_model", "dropdown"); goto elL1m; yFbMv: Zwso1: goto EEGd7; knKzM: if (!$this->ion_auth->logged_in()) { goto Zwso1; } goto vYivU; Kt3Zl: $this->form_validation->set_error_delimiters('', ''); goto KHfUl; Uxom2: $this->load->model("Master_model", "master"); goto IjyZ0; aA4Wi: $this->load->model("Dashboard_model", "dashboard"); goto Uxom2; EEGd7: redirect("auth"); goto s8IhH; s8IhH: aXHiK: goto QiCCq; QiCCq: $this->load->library(["datatables", "form_validation"]); goto RVOj7; RVOj7: $this->load->model("Kelas_model", "kelas"); goto aA4Wi; FZlKY: goto aXHiK; goto yFbMv; KHfUl: } public function output_json($data, $encode = true) { goto W7Izy; U905x: F273X: goto c0vLr; W7Izy: if (!$encode) { goto F273X; } goto XTcZP; c0vLr: $this->output->set_content_type("application/json")->set_output($data); goto l7bP1; XTcZP: $data = json_encode($data); goto U905x; l7bP1: } public function index() { goto IGCE5; UQQoy: $chek = $this->kelas->count_all(); goto e6bIs; FNZ0B: $data["tp"] = $this->dashboard->getTahun(); goto vJdne; ZnL6I: $this->load->view("_templates/dashboard/_header", $data); goto yFkVK; FNz0p: $this->load->view("_templates/dashboard/_footer"); goto jCK7y; vJdne: $data["tp_active"] = $tp; goto FDUXV; bWDNM: $kelas_lama = $this->kelas->getKelasList($tp->id_tp - 1, "2"); goto QbQxA; AxQCV: $data["kelas"] = $kelas; goto malCw; E1PiO: $data["jurusan"] = $this->kelas->get_jurusan(); goto ZvmN4; yFkVK: $this->load->view("master/kelas/data"); goto FNz0p; yZ9bV: $data["smt_active"] = $smt; goto tloij; Puksk: $smt = $this->dashboard->getSemesterActive(); goto FNZ0B; FDUXV: $data["smt"] = $this->dashboard->getSemester(); goto yZ9bV; QbQxA: kmF3i: goto AxQCV; LaQgM: $data["guru"] = $this->kelas->get_guru(); goto KLJuF; NDGfD: $kelas = $this->kelas->getKelasList($tp->id_tp, $smt->id_smt); goto bWDNM; tloij: $data["profile"] = $this->dashboard->getProfileAdmin($user->id); goto UQQoy; malCw: $data["kelas_lama"] = $kelas_lama; goto E1PiO; ZvmN4: $data["level"] = $this->kelas->getLevel($setting->jenjang); goto LaQgM; VLtD9: $kelas_lama = []; goto nUgPY; IGCE5: $user = $this->ion_auth->user()->row(); goto hD3NU; hZn74: $data = ["user" => $user, "judul" => "Kelas", "subjudul" => "Data Kelas", "setting" => $setting]; goto t3NjN; hD3NU: $setting = $this->dashboard->getSetting(); goto hZn74; t3NjN: $tp = $this->dashboard->getTahunActive(); goto Puksk; e6bIs: $kelas = []; goto VLtD9; nUgPY: if (!($chek > 0)) { goto kmF3i; } goto NDGfD; KLJuF: $data["siswa"] = $this->kelas->getAllSiswa($tp->id_tp, $smt->id_smt); goto ZnL6I; jCK7y: } public function detail($id) { goto nczwW; xi7s2: $data["guru"] = $this->kelas->get_guru(); goto U3FS0; qmA_m: $data["tp_active"] = $tp; goto g3X03; iHHZs: $data["level"] = $this->kelas->getLevel($setting->jenjang); goto xi7s2; uxQud: $this->load->view("master/kelas/detail"); goto JWUN6; U3FS0: $data["siswas"] = $this->kelas->get_siswa_kelas($id, $tp->id_tp, $smt->id_smt); goto AmTxO; pXe4J: $setting = $this->dashboard->getSetting(); goto UAMgg; DRpZY: goto UClsC; goto zwstR; eQfGK: UClsC: goto djW62; TlIbQ: $data["struktur"] = $struktur; goto DRpZY; J9X8w: $smt = $this->dashboard->getSemesterActive(); goto i3oA9; rE5q2: $tp = $this->dashboard->getTahunActive(); goto J9X8w; a3w1A: $data["jurusan"] = $this->kelas->get_jurusan(); goto iHHZs; V4Fmf: $data["kelas"] = $this->kelas->get_one($id); goto a3w1A; i3oA9: $data["tp"] = $this->dashboard->getTahun(); goto qmA_m; nczwW: $user = $this->ion_auth->user()->row(); goto pXe4J; AmTxO: $struktur = $this->kelas->getStrukturKelas($id); goto C0UqD; UAMgg: $data = ["user" => $user, "judul" => "Detail Kelas", "subjudul" => "Detail Kelas", "setting" => $setting]; goto rE5q2; g3X03: $data["smt"] = $this->dashboard->getSemester(); goto Jmqct; JWUN6: $this->load->view("_templates/dashboard/_footer"); goto O4ST0; djW62: $this->load->view("_templates/dashboard/_header", $data); goto uxQud; zwstR: aSlk0: goto n6CNp; n6CNp: $data["struktur"] = json_decode(json_encode($this->kelas->dummyStruktur())); goto eQfGK; eDqXv: $data["profile"] = $this->dashboard->getProfileAdmin($user->id); goto V4Fmf; C0UqD: if ($struktur == null) { goto aSlk0; } goto TlIbQ; Jmqct: $data["smt_active"] = $smt; goto eDqXv; O4ST0: } public function add() { goto IyVfy; iq6MH: $smt = $this->dashboard->getSemesterActive(); goto R02Ic; aQFeK: $this->load->view("_templates/dashboard/_footer"); goto w7CTg; DEbPp: $tp = $this->dashboard->getTahunActive(); goto iq6MH; Y4xQ1: $data["tp_active"] = $tp; goto aqAcl; s81V5: $setting = $this->dashboard->getSetting(); goto Q92zC; j195l: $this->load->view("_templates/dashboard/_header", $data); goto sdJZP; xfbmf: $data["smt_active"] = $smt; goto ligQa; R02Ic: $data["tp"] = $this->dashboard->getTahun(); goto Y4xQ1; IyVfy: $user = $this->ion_auth->user()->row(); goto s81V5; u3vG9: $siswa = $this->kelas->getAllSiswa($tp->id_tp, $smt->id_smt); goto f6HoQ; Q92zC: $data = ["user" => $user, "judul" => "Kelas", "subjudul" => "Tambah Kelas", "setting" => $setting]; goto DEbPp; slroP: $data["siswakelas"] = array(); goto j195l; f6HoQ: $data["siswa"] = $siswa; goto slroP; uq79J: $data["kelas"] = json_decode(json_encode($this->kelas->dummy())); goto d6YMy; ligQa: $data["profile"] = $this->dashboard->getProfileAdmin($user->id); goto uq79J; sdJZP: $this->load->view("master/kelas/add"); goto aQFeK; aqAcl: $data["smt"] = $this->dashboard->getSemester(); goto xfbmf; HfAxq: $data["guru"] = $this->kelas->get_guru(); goto u3vG9; d6YMy: $data["jurusan"] = $this->kelas->get_jurusan(); goto PGcqc; PGcqc: $data["level"] = $this->kelas->getLevel($setting->jenjang); goto HfAxq; w7CTg: } public function edit($id = '') { goto OpNtD; nOXkp: $data["tp_active"] = $tp; goto O8OfB; ZKbpP: $data["smt_active"] = $smt; goto L9X0z; o65p_: $this->load->view("master/kelas/add"); goto rXAhr; MyA4g: $data["guru"] = $this->kelas->getWaliKelas($tp->id_tp, $smt->id_smt); goto HiL6Q; a00n9: $tp = $this->dashboard->getTahunActive(); goto Kccp8; rXAhr: $this->load->view("_templates/dashboard/_footer"); goto oVrMu; O8OfB: $data["smt"] = $this->dashboard->getSemester(); goto ZKbpP; mUGd4: $data["jurusan"] = $this->kelas->get_jurusan(); goto IcJFF; B7L7X: $data = ["user" => $user, "judul" => "Kelas", "subjudul" => "Edit Kelas", "setting" => $setting]; goto a00n9; jZ5I1: $this->load->view("_templates/dashboard/_header", $data); goto o65p_; le9oh: $data["tp"] = $this->dashboard->getTahun(); goto nOXkp; AC_A9: $data["id_kelas"] = $id; goto t1RW5; Kccp8: $smt = $this->dashboard->getSemesterActive(); goto le9oh; t1RW5: $data["kelas"] = $this->kelas->get_one($id); goto mUGd4; L9X0z: $data["profile"] = $this->dashboard->getProfileAdmin($user->id); goto AC_A9; NRuJ4: $setting = $this->dashboard->getSetting(); goto B7L7X; OpNtD: $user = $this->ion_auth->user()->row(); goto NRuJ4; HiL6Q: $data["siswa"] = $this->kelas->getAllSiswa($tp->id_tp, $smt->id_smt); goto WBoTg; WBoTg: $data["siswakelas"] = $this->kelas->get_siswa_kelas($id, $tp->id_tp, $smt->id_smt); goto jZ5I1; IcJFF: $data["level"] = $this->kelas->getLevel($setting->jenjang); goto MyA4g; oVrMu: } public function save() { goto C0Pki; t904H: $this->output_json($data); goto GsK7R; Uq5z4: $jumlah = serialize($siswakelas); goto XHGJh; VfQCW: goto sP7u7; goto LF5Wf; FGbC2: foreach ($siswa_kelas as $id_siswa => $sis) { $insert[$id_tp . $id_smt . $id_siswa] = ["id_kelas_siswa" => $id_tp . $id_smt . $id_siswa, "id_tp" => $id_tp, "id_smt" => $id_smt, "id_kelas" => 0, "id_siswa" => $id_siswa]; ybMOY: } goto iZ_1s; fTazR: $i++; goto OlcRv; R7bN2: $data["siswa"] = $siswa_inserted; goto rdiCO; PqzCh: if (!($i <= count($siswas))) { goto a62jd; } goto Ibha1; HWNZ6: $i++; goto VfQCW; C1mCJ: if (!($id != null && $id != '')) { goto iYVxa; } goto TAXPu; WH2ID: $id_new = $this->db->insert_id(); goto EKK92; EKK92: G39Y8: goto vRvOC; swlq_: $new_id_kelas = $id != null && $id != '' ? $id : $id_new; goto e_xa9; Ct_Ko: u0NK6: goto fTazR; ULElH: $guru_id = strip_tags($this->input->post("guru_id", TRUE)); goto qO3Zo; mf0lO: $insert = []; goto C1mCJ; bIByR: if ($this->form_validation->run() == TRUE) { goto CN3fl; } goto qUSmx; whENQ: $this->form_validation->set_rules($config); goto y7kji; DR48t: p0RAd: goto Rq7Xa; pykRe: if (isset($insert[$id_tp . $id_smt . $idsiswa])) { goto spY_H; } goto Fcdtv; cfk9O: $i = 0; goto ZIog_; ULpsu: if ($id != null && $id != '') { goto YsvaB; } goto Nyzrw; Nyzrw: $this->form_validation->set_rules($config); goto bIByR; jnJW3: $id_smt = $this->master->getSemesterActive()->id_smt; goto v1jAB; pGdiW: $siswakelas = []; goto n9vEU; kOhRg: Q16ub: goto yXU5j; zqU32: $this->db->set("id_kelas", $id); goto So2QG; v1jAB: $siswas = $this->input->post("siswa", true); goto GUc1H; ZIog_: cK0_m: goto e7_CG; viN67: jZv53: goto qb1nO; oUC04: $status = $this->db->update("master_kelas", $insert); goto kOhRg; qI6Ik: JmB_d: goto YR414; CAxGe: $status = $this->db->insert("master_kelas", $insert); goto WH2ID; vRvOC: goto wfDQ8; goto sXgQJ; YR414: $this->db->where("id_kelas", $id); goto oUC04; ctZkW: $id_new = null; goto ULpsu; yXU5j: wfDQ8: goto DJ4Uo; B2QgH: $insert[$id_tp . $id_smt . $idsiswa]["id_kelas"] = $new_id_kelas; goto rYLp0; Rq7Xa: I6wCw: goto HWNZ6; sXgQJ: YsvaB: goto whENQ; vnnSd: iYVxa: goto cfk9O; So2QG: $this->db->where("id_jabatan_guru", $guru_id . $id_tp . $id_smt); goto clGXA; XHGJh: $insert = array("nama_kelas" => strip_tags($this->input->post("nama_kelas", TRUE)), "kode_kelas" => strip_tags($this->input->post("kode_kelas", TRUE)), "jurusan_id" => strip_tags($this->input->post("jurusan_id", TRUE)), "id_tp" => $id_tp, "id_smt" => $id_smt, "level_id" => strip_tags($this->input->post("level_id", TRUE)), "guru_id" => strip_tags($this->input->post("guru_id", TRUE)), "siswa_id" => strip_tags($this->input->post("siswa_id", TRUE)), "jumlah_siswa" => $jumlah); goto ctZkW; IDki6: CN3fl: goto CAxGe; tBH4M: $data["insert"] = $insert; goto viN67; qb1nO: K4h43: goto R7bN2; ObtYC: Ksj7n: goto Ct_Ko; n9vEU: $i = 0; goto OaJMy; I3vHq: if (!$updated) { goto jZv53; } goto mf0lO; p_bM7: if (!($id_siswa != null)) { goto p0RAd; } goto jsDs5; GUc1H: $config = array(array("field" => "nama_kelas", "label" => "Nama Kelas", "rules" => "trim"), array("field" => "kode_kelas", "label" => "Kode Kelas", "rules" => "trim"), array("field" => "jurusan_id", "label" => "Jurusan", "rules" => "trim"), array("field" => "level_id", "label" => "Level", "rules" => "trim"), array("field" => "guru_id", "label" => "Guru", "rules" => "trim"), array("field" => "siswa_id", "label" => "Siswa", "rules" => "trim")); goto pGdiW; iWOf0: $status = FALSE; goto LK0Dl; iZ_1s: AU7MV: goto Rd9ZR; e_xa9: if (!($idsiswa != null)) { goto Ksj7n; } goto pykRe; W5Ue0: goto HrBnU; goto CQX5R; qO3Zo: $id_tp = $this->master->getTahunActive()->id_tp; goto jnJW3; TAXPu: $siswa_kelas = $this->kelas->get_status_siswa_kelas($id, $id_tp, $id_smt); goto jDSJz; CdZlJ: $siswa_inserted = 0; goto KtHcq; rdiCO: $data["update"] = $updated; goto dzeGG; KtHcq: if (!$status) { goto K4h43; } goto zqU32; G6Bz6: foreach ($insert as $ins) { goto TaXKr; aV5ZE: $siswa_inserted++; goto T4JmP; JG0NL: EmjPy: goto wEvLv; TaXKr: if (!$this->db->replace("kelas_siswa", $ins)) { goto kvO0t; } goto aV5ZE; T4JmP: kvO0t: goto JG0NL; wEvLv: } goto v1rQK; C0Pki: $id = $this->input->post("id_kelas", true); goto ULElH; jDSJz: if (!(count($siswa_kelas) > 0)) { goto FWij5; } goto FGbC2; e7_CG: if (!($i <= count($siswas))) { goto g6MeU; } goto gx6p4; OlcRv: goto cK0_m; goto VB_CQ; CQX5R: spY_H: goto B2QgH; dzeGG: $data["status"] = $status; goto t904H; qUSmx: $status = FALSE; goto u6qRC; v1rQK: lvK3p: goto tBH4M; DJ4Uo: $updated = false; goto CdZlJ; u6qRC: goto G39Y8; goto IDki6; jsDs5: array_push($siswakelas, ["id" => $id_siswa]); goto DR48t; Fcdtv: $insert[$id_tp . $id_smt . $idsiswa] = ["id_kelas_siswa" => $id_tp . $id_smt . $idsiswa, "id_tp" => $id_tp, "id_smt" => $id_smt, "id_kelas" => $new_id_kelas, "id_siswa" => $idsiswa]; goto W5Ue0; Rd9ZR: FWij5: goto vnnSd; LF5Wf: a62jd: goto Uq5z4; VB_CQ: g6MeU: goto G6Bz6; rYLp0: HrBnU: goto ObtYC; y7kji: if ($this->form_validation->run() == TRUE) { goto JmB_d; } goto iWOf0; gx6p4: $idsiswa = isset($siswas[$i]) ? $siswas[$i] : null; goto swlq_; Ibha1: $id_siswa = isset($siswas[$i]) ? $siswas[$i] : null; goto p_bM7; OaJMy: sP7u7: goto PqzCh; clGXA: $updated = $this->db->update("jabatan_guru"); goto I3vHq; LK0Dl: goto Q16ub; goto qI6Ik; GsK7R: } public function update_kelas($id) { goto qIMss; HrR4C: ZIJTG: goto jGeZI; Ebivu: goto qv3yN; goto AGQSm; df3PQ: $id_siswa = $this->input->post("siswa[" . $i . "]", true); goto SMEY2; aVSc8: $i = 0; goto j1c2T; AGQSm: XsrWj: goto tu8tK; SqkWV: $this->db->replace("kelas_siswa", $insert); goto jKnPX; j1c2T: qv3yN: goto Z9Sxg; jKnPX: Vcf92: goto HrR4C; nuhWl: v31UP: goto rfKeO; r38pB: if (!(count($siswakelas) > 0)) { goto v31UP; } goto xUMCf; ovvCO: $insert = ["id_kelas_siswa" => $id_tp . $id_smt . $id_siswa, "id_tp" => $id_tp, "id_smt" => $id_smt, "id_kelas" => $id, "id_siswa" => $id_siswa]; goto SqkWV; SMEY2: if (!($id_siswa != null)) { goto Vcf92; } goto ovvCO; kfrkB: $siswakelas = $this->kelas->get_status_siswa_kelas($id, $id_tp, $id_smt); goto r38pB; rfKeO: $rowsSelect = count($this->input->post("siswa", true)); goto aVSc8; CDOnj: $id_smt = $this->master->getSemesterActive()->id_smt; goto kfrkB; qIMss: $id_tp = $this->master->getTahunActive()->id_tp; goto CDOnj; Fp1Q1: H8rRE: goto nuhWl; tu8tK: return $siswakelas; goto Twv1M; xUMCf: foreach ($siswakelas as $id_siswa => $sis) { goto aMzB3; t25yZ: $this->db->replace("kelas_siswa", $insert); goto t4rlD; t4rlD: bVZfH: goto Ezsbw; aMzB3: $insert = ["id_kelas_siswa" => $id_tp . $id_smt . $id_siswa, "id_tp" => $id_tp, "id_smt" => $id_smt, "id_kelas" => 0, "id_siswa" => $id_siswa]; goto t25yZ; Ezsbw: } goto Fp1Q1; jGeZI: $i++; goto Ebivu; Z9Sxg: if (!($i <= $rowsSelect)) { goto XsrWj; } goto df3PQ; Twv1M: } public function manage() { goto GWtLK; L0wo2: $data["kelas"] = $this->dropdown->getAllKelas($tp->id_tp, "1"); goto MrJxj; dMkDR: $smt = $this->dashboard->getSemesterActive(); goto kiayU; dPm9P: $this->load->view("_templates/dashboard/_footer"); goto par1p; g28ha: $this->load->view("_templates/dashboard/_header", $data); goto C3LbT; kiayU: $data["tp"] = $this->dashboard->getTahun(); goto mRdKr; MrJxj: $data["kelas2"] = $this->dropdown->getAllKelas($tp->id_tp, "2"); goto g28ha; mRdKr: $data["tp_active"] = $tp; goto HrHyg; ieIyd: $data["profile"] = $this->dashboard->getProfileAdmin($user->id); goto L0wo2; znKCs: $data["smt_active"] = $smt; goto ieIyd; C3LbT: $this->load->view("master/kelas/persemester"); goto dPm9P; Nlafy: $tp = $this->dashboard->getTahunActive(); goto dMkDR; GWtLK: $user = $this->ion_auth->user()->row(); goto sA92x; HrHyg: $data["smt"] = $this->dashboard->getSemester(); goto znKCs; sA92x: $data = ["user" => $user, "judul" => "Copy Kelas", "subjudul" => "Copy Data Kelas ke SMT II", "setting" => $this->dashboard->getSetting()]; goto Nlafy; par1p: } public function getFromSmt1($kelas) { goto m_btX; m_btX: $tp = $this->dashboard->getTahunActive(); goto B2vz4; YgSsQ: if (!(count($data2) > 0)) { goto NAekk; } goto jr2qm; qyNlH: $ids = []; goto YgSsQ; g_IZb: o9qfM: goto avxJz; B2vz4: $data1 = $this->kelas->getKelasSiswa($kelas, $tp->id_tp, "1"); goto ucfNz; ucfNz: $data2 = $this->kelas->getKelasSiswa($kelas, $tp->id_tp, "2"); goto qyNlH; jr2qm: foreach ($data2 as $s) { $ids[] = $s->id_siswa; JB6YU: } goto g_IZb; avxJz: NAekk: goto T3jNg; T3jNg: $this->output_json(["smt1" => $data1, "smt2" => $ids]); goto Gaeii; Gaeii: } public function copyFromSmt1() { goto Rxexh; PTUea: $idk = $this->db->insert_id(); goto mcALn; hYi6c: $kelas = $this->kelas->get_one($kelas1, $tp->id_tp, "1"); goto OeT76; UGDt5: $arrSiswa = unserialize($kelas->jumlah_siswa); goto cgjvt; OeT76: $data = array("nama_kelas" => $kelas2, "kode_kelas" => $kelas->kode_kelas, "jurusan_id" => $kelas->jurusan_id, "id_tp" => $tp->id_tp, "id_smt" => $smt->id_smt, "level_id" => $kelas->level_id, "guru_id" => $kelas->guru_id, "siswa_id" => $kelas->siswa_id, "jumlah_siswa" => $kelas->jumlah_siswa); goto P3MVF; elr9e: PLdui: goto GB4VY; mcALn: $res = []; goto UGDt5; h2HNZ: $kelas1 = $this->input->post("kelas_lama", true); goto uoAlq; cgjvt: foreach ($arrSiswa as $value) { goto xHnA9; xHnA9: $id_siswa = $value["id"]; goto ZrKn4; O7hck: F52CI: goto kUhhs; sI94b: $res[] = $this->db->replace("kelas_siswa", $insert); goto O7hck; kUhhs: VbzEN: goto tHo2O; ZrKn4: if (!($id_siswa != null)) { goto F52CI; } goto SaJPK; SaJPK: $insert = ["id_kelas_siswa" => $tp->id_tp . $smt->id_smt . $id_siswa, "id_tp" => $tp->id_tp, "id_smt" => $smt->id_smt, "id_kelas" => $idk, "id_siswa" => $id_siswa]; goto sI94b; tHo2O: } goto elr9e; CEU3l: $smt = $this->dashboard->getSemesterActive(); goto h2HNZ; P3MVF: $this->db->insert("master_kelas", $data); goto PTUea; uoAlq: $kelas2 = $this->input->post("kelas_baru", true); goto hYi6c; GB4VY: $this->output_json($res); goto fT9S7; Rxexh: $tp = $this->dashboard->getTahunActive(); goto CEU3l; fT9S7: } public function copySiswaFromSmt1() { goto JYbQO; N1vtq: foreach ($idkelases as $ik) { goto qRHaF; iiR6S: rvjOJ: goto d4GO9; zm0df: $idk = $this->db->insert_id(); goto OG9_5; qRHaF: if (!($ik != '')) { goto rvjOJ; } goto j2pmk; vPeej: yLLWc: goto iiR6S; K3H4F: $jumlah = serialize($siswakelas[$ik]); goto ODSbW; j2pmk: $kelas = $this->kelas->get_one($ik, $tp->id_tp, "1"); goto K3H4F; d4GO9: iIp68: goto f4kUr; uSHqS: $this->db->insert("master_kelas", $data); goto zm0df; ODSbW: $data = array("nama_kelas" => $kelas->nama_kelas, "kode_kelas" => $kelas->kode_kelas, "jurusan_id" => $kelas->jurusan_id, "id_tp" => $tp->id_tp, "id_smt" => $smt->id_smt, "level_id" => $kelas->level_id, "guru_id" => $kelas->guru_id, "siswa_id" => $kelas->siswa_id, "jumlah_siswa" => $jumlah); goto uSHqS; OG9_5: foreach ($siswakelas[$ik] as $s) { goto bwDc9; b3p0q: w4For: goto ftC4W; JCQNo: $res[] = $this->db->replace("kelas_siswa", $insert); goto b3p0q; bwDc9: $insert = ["id_kelas_siswa" => $tp->id_tp . $smt->id_smt . $s["id"], "id_tp" => $tp->id_tp, "id_smt" => $smt->id_smt, "id_kelas" => $idk, "id_siswa" => $s["id"]]; goto JCQNo; ftC4W: } goto vPeej; f4kUr: } goto vZX0N; uXk90: $this->output_json($res); goto OInPU; RFdkL: $idkelases = []; goto Oc80O; REyoY: $idkelases = array_unique($idkelases); goto zzsEa; sHYry: WfLzA: goto REyoY; tRe10: $posts = json_decode($this->input->post("kelas", true)); goto RFdkL; T4fJ_: foreach ($posts as $d) { goto U8LFd; U8LFd: $idkelases[] = $d->id_kelas; goto VqPIN; v5osX: WRsf4: goto AEKZP; VqPIN: $siswakelas[$d->id_kelas][] = ["id" => $d->id_siswa]; goto v5osX; AEKZP: } goto sHYry; JYbQO: $tp = $this->dashboard->getTahunActive(); goto pHRhE; zzsEa: $res = []; goto N1vtq; pHRhE: $smt = $this->dashboard->getSemesterActive(); goto tRe10; Oc80O: $siswakelas = []; goto T4fJ_; vZX0N: SWmXo: goto uXk90; OInPU: } public function kenaikan() { goto oBGmX; tCFPq: $data["profile"] = $this->dashboard->getProfileAdmin($user->id); goto PPe4V; TPxek: $data = ["user" => $user, "judul" => "Kenaikkan Kelas", "subjudul" => "Naik Kelas Siswa", "setting" => $setting]; goto ej_g5; svUgY: $data["smt_active"] = $smt; goto tCFPq; kpQuY: tvF52: goto R6pGg; wSNju: $data["kelases"] = $this->dropdown->getAllKelas($tp->id_tp - 1, "2", "=" . ($lvlKls->level_id + 1)); goto kpQuY; x3Tpv: if (!($kelas != null)) { goto tvF52; } goto UXKZ_; R6pGg: $this->load->view("_templates/dashboard/_header", $data); goto nDKF2; rKbV_: $data["siswas"] = $this->rapor->getKenaikanSiswa($kelas, $tp->id_tp - 1, "2"); goto RQG3h; hu261: $data["tp_active"] = $tp; goto cQEGS; RQG3h: $data["kelas_selected"] = $kelas; goto yf8rS; ht2_v: $data["kelas_lama"] = $this->dropdown->getAllKelas($tp->id_tp - 1, "2", "!=" . $level); goto VXsA9; cQEGS: $data["smt"] = $this->dashboard->getSemester(); goto svUgY; yf8rS: $lvlKls = $this->kelas->get_one($kelas, $tp->id_tp - 1, "2"); goto wSNju; VXsA9: $data["kelas_baru"] = $this->dropdown->getAllKelas($tp->id_tp, "1"); goto x3Tpv; F02EM: $smt = $this->dashboard->getSemesterActive(); goto MhGnX; MhGnX: $data["tp"] = $this->dashboard->getTahun(); goto hu261; ej_g5: $tp = $this->dashboard->getTahunActive(); goto F02EM; oBGmX: $kelas = $this->input->get("kelas", true); goto lfh_f; lfh_f: $user = $this->ion_auth->user()->row(); goto VH3ck; VH3ck: $setting = $this->dashboard->getSetting(); goto TPxek; kguRM: $this->load->view("_templates/dashboard/_footer"); goto zeGDw; UXKZ_: $data["siswa_kelas_baru"] = $this->master->getSiswaKelasBaru($tp->id_tp, $smt->id_smt); goto rKbV_; nDKF2: $this->load->view("master/kelas/naikkelas"); goto kguRM; PPe4V: $level = $setting->jenjang == "1" ? "6" : ($setting->jenjang == "2" ? "9" : ($setting->jenjang == "1" ? "3" : "12")); goto ht2_v; zeGDw: } public function naikKelas() { goto cqJON; i32yw: $idkelases = array_unique($idkelases); goto XezUn; y0fF9: $posts = json_decode($this->input->post("kelas", true)); goto BHp2n; cqJON: $tp = $this->dashboard->getTahunActive(); goto NlUP0; qyyIB: T42CO: goto i32yw; rP_TW: $idkelases = []; goto chSsd; wESTI: $this->output_json($data); goto T4PkE; XezUn: $res = []; goto fduFw; Za4EU: $data["res"] = $siswakelas; goto wESTI; cLTxU: foreach ($posts as $d) { goto ijN_T; BvFV0: gwsnA: goto VXdWM; eGd3R: $siswakelas[$d->kelas_baru][] = ["id" => $d->id_siswa]; goto BvFV0; ijN_T: $idkelases[] = $d->kelas_baru; goto eGd3R; VXdWM: } goto qyyIB; fduFw: $idks = []; goto C6zQ0; kE1Np: Meuer: goto Za4EU; BHp2n: $mode = $this->input->post("mode", true); goto rP_TW; chSsd: $siswakelas = []; goto cLTxU; C6zQ0: foreach ($idkelases as $ik) { goto CnMme; jlRqH: $jumlah = serialize($siswakelas[$ik]); goto PbfNT; pYs9H: $jumlah = serialize($siswakelas[$ik]); goto A6n32; cNxqU: $this->db->insert("master_kelas", $data); goto nJ1Po; pDmSN: vsdvY: goto jlRqH; k3Srt: Wm4gi: goto zNh2C; PbfNT: $data = array("nama_kelas" => $kelas->nama_kelas, "kode_kelas" => $kelas->kode_kelas, "jurusan_id" => $kelas->jurusan_id, "id_tp" => $tp->id_tp, "id_smt" => $smt->id_smt, "level_id" => $kelas->level_id, "guru_id" => $kelas->guru_id, "siswa_id" => $kelas->siswa_id, "jumlah_siswa" => $jumlah); goto cNxqU; WzfdD: $kelas_baru = $this->kelas->getKelasByNama($kelas->nama_kelas, $tp->id_tp, $smt->id_smt); goto B3G2H; zNh2C: $jmlLama = unserialize($kelas_baru->jumlah_siswa); goto hQlBp; gjk7H: foreach ($idks as $idk) { goto xDFdF; wDVv0: z9kVw: goto OB8FM; X6ZQ3: MZO2D: goto wDVv0; xDFdF: foreach ($siswakelas[$ik] as $s) { goto OXhlg; tFmhl: $res[] = $this->db->replace("kelas_siswa", $insert); goto L5iAx; OXhlg: $insert = ["id_kelas_siswa" => $tp->id_tp . $smt->id_smt . $s["id"], "id_tp" => $tp->id_tp, "id_smt" => $smt->id_smt, "id_kelas" => $idk, "id_siswa" => $s["id"]]; goto tFmhl; L5iAx: j8eAo: goto vG8V3; vG8V3: } goto X6ZQ3; OB8FM: } goto iOJ85; B1r_4: UIPa9: goto jcODZ; hQlBp: foreach ($siswakelas[$ik] as $s) { goto WZ_sx; Q78Ra: wDwB0: goto byEey; WZ_sx: foreach ($jmlLama as $lama) { goto IuXi3; co2QP: array_push($idks, $kelas_baru->id_kelas); goto H64JJ; IuXi3: if (!($lama["id"] != $s["id"])) { goto n0HzS; } goto miOlR; VIwuy: yn10G: goto QoGeF; H64JJ: n0HzS: goto VIwuy; miOlR: array_push($jmlLama, ["id" => $s["id"]]); goto co2QP; QoGeF: } goto Q78Ra; byEey: LrbBH: goto geyKi; geyKi: } goto C37vR; KO1l1: $jumlah = serialize($jmlLama); goto oxkYr; O4_yE: $this->db->where("id_kelas", $kelas_baru->id_kelas); goto s8yOB; A6n32: array_push($idks, $kelas_baru->id_kelas); goto R3DdL; mKJsK: goto FIvxd; goto pDmSN; iOJ85: e94lr: goto B1r_4; ayIlg: if ($mode == "persiswa") { goto Wm4gi; } goto pYs9H; s8yOB: $this->db->update("master_kelas", $data); goto mKJsK; nJ1Po: array_push($idks, $this->db->insert_id()); goto ktzkV; oxkYr: w8Bk3: goto RdCRF; R3DdL: goto w8Bk3; goto k3Srt; C37vR: CYhXM: goto KO1l1; CnMme: $kelas = $this->kelas->get_one($ik, $tp->id_tp - 1, "2"); goto WzfdD; B3G2H: if ($kelas_baru == null) { goto vsdvY; } goto ayIlg; RdCRF: $data = array("nama_kelas" => $kelas->nama_kelas, "kode_kelas" => $kelas->kode_kelas, "jurusan_id" => $kelas->jurusan_id, "id_tp" => $tp->id_tp, "id_smt" => $smt->id_smt, "level_id" => $kelas->level_id, "guru_id" => $kelas->guru_id, "siswa_id" => $kelas->siswa_id, "jumlah_siswa" => $jumlah); goto O4_yE; ktzkV: FIvxd: goto gjk7H; jcODZ: } goto kE1Np; NlUP0: $smt = $this->dashboard->getSemesterActive(); goto y0fF9; T4PkE: } public function hapus($id_kelas) { goto k3FcG; k3FcG: $delete["siswa"] = $this->master->delete("kelas_siswa", $id_kelas, "id_kelas"); goto wyeLQ; wyeLQ: $delete["kelas"] = $this->master->delete("master_kelas", $id_kelas, "id_kelas"); goto LRmNi; LRmNi: $this->output_json($delete); goto U0WYM; U0WYM: } } ?>