Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php /* ________________________________________ | GarudaCBT ..
Decoded Output download
<?php
/* ________________________________________
| GarudaCBT |
| https://github.com/garudacbt/cbt |
|________________________________________|
*/
defined("BASEPATH") or exit("No direct script access allowed");
class Datakelas extends CI_Controller
{
public function __construct()
{
goto hWB0k;
vYivU:
if ($this->ion_auth->is_admin()) {
goto sCTE5;
}
goto KW2Zk;
KW2Zk:
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 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:
}
}
?>
Did this file decode correctly?
Original Code
<?php
/* ________________________________________
| GarudaCBT |
| https://github.com/garudacbt/cbt |
|________________________________________|
*/
defined("\102\x41\x53\105\x50\x41\124\x48") or exit("\116\157\x20\x64\x69\x72\145\143\164\x20\163\x63\x72\x69\x70\164\x20\x61\x63\x63\145\x73\163\x20\x61\x6c\154\157\x77\x65\x64");
class Datakelas extends CI_Controller
{
public function __construct()
{
goto hWB0k;
vYivU:
if ($this->ion_auth->is_admin()) {
goto sCTE5;
}
goto KW2Zk;
KW2Zk:
show_error("\110\x61\x6e\171\141\x20\x41\144\x6d\151\x6e\151\163\x74\162\141\164\x6f\162\40\171\x61\156\x67\40\144\151\142\x65\x72\151\x20\150\x61\153\x20\165\x6e\164\x75\x6b\40\155\145\156\147\x61\x6b\163\x65\163\x20\x68\x61\154\141\155\141\x6e\x20\151\x6e\151\54\40\x3c\141\x20\x68\162\145\146\75\42" . base_url("\144\141\163\150\142\x6f\x61\x72\x64") . "\x22\x3e\x4b\x65\x6d\x62\x61\x6c\x69\40\153\145\40\155\x65\156\165\x20\141\x77\x61\x6c\x3c\x2f\x61\76", 403, "\x41\153\x73\145\x73\40\124\145\x72\x6c\x61\x72\141\156\x67");
goto wKsCW;
wKsCW:
sCTE5:
goto FZlKY;
hWB0k:
parent::__construct();
goto knKzM;
elL1m:
$this->load->model("\x52\x61\160\157\162\x5f\x6d\x6f\x64\145\154", "\162\141\160\157\x72");
goto Kt3Zl;
IjyZ0:
$this->load->model("\x44\162\157\160\x64\157\x77\156\x5f\155\x6f\x64\x65\154", "\144\162\157\x70\x64\157\167\x6e");
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("\x4d\141\163\x74\x65\162\137\x6d\x6f\x64\145\154", "\155\x61\163\164\145\162");
goto IjyZ0;
aA4Wi:
$this->load->model("\104\141\x73\150\x62\x6f\x61\162\144\137\155\157\x64\145\154", "\x64\x61\163\x68\142\x6f\x61\162\x64");
goto Uxom2;
EEGd7:
redirect("\141\x75\x74\150");
goto s8IhH;
s8IhH:
aXHiK:
goto QiCCq;
QiCCq:
$this->load->library(["\x64\141\164\141\x74\x61\142\154\x65\163", "\x66\x6f\162\155\x5f\166\x61\x6c\151\x64\141\x74\151\x6f\156"]);
goto RVOj7;
RVOj7:
$this->load->model("\x4b\x65\154\x61\x73\x5f\x6d\x6f\x64\x65\x6c", "\153\x65\154\141\163");
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("\141\160\160\x6c\151\143\141\x74\x69\157\156\57\152\x73\157\156")->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["\164\160"] = $this->dashboard->getTahun();
goto vJdne;
ZnL6I:
$this->load->view("\x5f\164\145\x6d\160\x6c\141\x74\145\163\x2f\144\141\x73\x68\142\157\x61\x72\144\x2f\137\x68\x65\x61\x64\145\162", $data);
goto yFkVK;
FNz0p:
$this->load->view("\x5f\164\145\155\160\x6c\x61\164\x65\163\x2f\144\141\163\x68\142\157\141\162\x64\57\x5f\x66\x6f\157\164\x65\x72");
goto jCK7y;
vJdne:
$data["\x74\160\x5f\x61\143\164\151\x76\145"] = $tp;
goto FDUXV;
bWDNM:
$kelas_lama = $this->kelas->getKelasList($tp->id_tp - 1, "\62");
goto QbQxA;
AxQCV:
$data["\x6b\x65\x6c\x61\x73"] = $kelas;
goto malCw;
E1PiO:
$data["\152\x75\x72\x75\163\141\156"] = $this->kelas->get_jurusan();
goto ZvmN4;
yFkVK:
$this->load->view("\x6d\141\x73\164\145\162\57\x6b\x65\x6c\141\x73\x2f\x64\x61\164\x61");
goto FNz0p;
yZ9bV:
$data["\x73\155\x74\137\141\143\x74\151\x76\145"] = $smt;
goto tloij;
Puksk:
$smt = $this->dashboard->getSemesterActive();
goto FNZ0B;
FDUXV:
$data["\x73\155\164"] = $this->dashboard->getSemester();
goto yZ9bV;
QbQxA:
kmF3i:
goto AxQCV;
LaQgM:
$data["\147\x75\162\165"] = $this->kelas->get_guru();
goto KLJuF;
NDGfD:
$kelas = $this->kelas->getKelasList($tp->id_tp, $smt->id_smt);
goto bWDNM;
tloij:
$data["\160\x72\x6f\x66\151\154\145"] = $this->dashboard->getProfileAdmin($user->id);
goto UQQoy;
malCw:
$data["\x6b\145\x6c\141\x73\137\x6c\141\x6d\x61"] = $kelas_lama;
goto E1PiO;
ZvmN4:
$data["\x6c\145\x76\x65\154"] = $this->kelas->getLevel($setting->jenjang);
goto LaQgM;
VLtD9:
$kelas_lama = [];
goto nUgPY;
IGCE5:
$user = $this->ion_auth->user()->row();
goto hD3NU;
hZn74:
$data = ["\x75\x73\145\x72" => $user, "\x6a\165\144\x75\x6c" => "\x4b\x65\154\141\163", "\163\x75\142\x6a\165\144\x75\154" => "\104\141\164\141\40\113\x65\x6c\141\163", "\163\145\164\x74\x69\156\x67" => $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["\x73\x69\x73\167\x61"] = $this->kelas->getAllSiswa($tp->id_tp, $smt->id_smt);
goto ZnL6I;
jCK7y:
}
public function detail($id)
{
goto nczwW;
xi7s2:
$data["\x67\165\x72\x75"] = $this->kelas->get_guru();
goto U3FS0;
qmA_m:
$data["\x74\x70\x5f\141\143\x74\x69\166\145"] = $tp;
goto g3X03;
iHHZs:
$data["\154\x65\x76\x65\x6c"] = $this->kelas->getLevel($setting->jenjang);
goto xi7s2;
uxQud:
$this->load->view("\x6d\x61\x73\164\145\x72\x2f\x6b\x65\154\x61\163\x2f\x64\x65\164\141\x69\x6c");
goto JWUN6;
U3FS0:
$data["\163\151\x73\167\141\163"] = $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["\x73\x74\162\165\153\164\x75\x72"] = $struktur;
goto DRpZY;
J9X8w:
$smt = $this->dashboard->getSemesterActive();
goto i3oA9;
rE5q2:
$tp = $this->dashboard->getTahunActive();
goto J9X8w;
a3w1A:
$data["\x6a\165\x72\165\x73\x61\x6e"] = $this->kelas->get_jurusan();
goto iHHZs;
V4Fmf:
$data["\153\x65\154\141\x73"] = $this->kelas->get_one($id);
goto a3w1A;
i3oA9:
$data["\164\160"] = $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 = ["\165\163\x65\x72" => $user, "\x6a\165\144\165\154" => "\x44\145\164\x61\151\x6c\40\x4b\x65\154\x61\x73", "\x73\x75\x62\x6a\x75\x64\165\154" => "\104\x65\164\x61\151\x6c\x20\113\145\154\141\163", "\163\145\164\164\x69\156\x67" => $setting];
goto rE5q2;
g3X03:
$data["\163\155\x74"] = $this->dashboard->getSemester();
goto Jmqct;
JWUN6:
$this->load->view("\x5f\164\145\155\160\x6c\141\164\x65\x73\57\x64\x61\163\x68\142\x6f\x61\x72\144\57\137\x66\157\157\164\145\162");
goto O4ST0;
djW62:
$this->load->view("\137\164\145\155\x70\x6c\141\164\x65\x73\x2f\144\x61\163\150\142\x6f\x61\162\144\57\x5f\x68\145\x61\x64\145\x72", $data);
goto uxQud;
zwstR:
aSlk0:
goto n6CNp;
n6CNp:
$data["\x73\164\162\x75\x6b\164\165\162"] = json_decode(json_encode($this->kelas->dummyStruktur()));
goto eQfGK;
eDqXv:
$data["\160\x72\157\x66\151\154\145"] = $this->dashboard->getProfileAdmin($user->id);
goto V4Fmf;
C0UqD:
if ($struktur == null) {
goto aSlk0;
}
goto TlIbQ;
Jmqct:
$data["\x73\155\x74\x5f\141\143\x74\151\166\x65"] = $smt;
goto eDqXv;
O4ST0:
}
public function add()
{
goto IyVfy;
iq6MH:
$smt = $this->dashboard->getSemesterActive();
goto R02Ic;
aQFeK:
$this->load->view("\x5f\x74\145\155\160\154\x61\164\x65\163\x2f\144\141\163\150\x62\x6f\x61\x72\x64\x2f\x5f\x66\157\x6f\164\x65\162");
goto w7CTg;
DEbPp:
$tp = $this->dashboard->getTahunActive();
goto iq6MH;
Y4xQ1:
$data["\164\160\137\141\x63\164\151\166\145"] = $tp;
goto aqAcl;
s81V5:
$setting = $this->dashboard->getSetting();
goto Q92zC;
j195l:
$this->load->view("\x5f\x74\x65\x6d\160\x6c\141\x74\x65\x73\x2f\x64\x61\x73\x68\142\157\x61\x72\144\x2f\x5f\x68\x65\141\144\145\x72", $data);
goto sdJZP;
xfbmf:
$data["\163\x6d\164\x5f\x61\143\x74\151\x76\x65"] = $smt;
goto ligQa;
R02Ic:
$data["\164\160"] = $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 = ["\x75\x73\x65\162" => $user, "\152\165\144\x75\x6c" => "\113\145\154\141\x73", "\163\165\142\x6a\x75\x64\165\154" => "\124\x61\155\142\x61\x68\x20\x4b\x65\x6c\141\x73", "\163\145\164\164\151\x6e\x67" => $setting];
goto DEbPp;
slroP:
$data["\x73\151\163\x77\x61\153\145\154\x61\163"] = array();
goto j195l;
f6HoQ:
$data["\163\151\163\x77\x61"] = $siswa;
goto slroP;
uq79J:
$data["\x6b\x65\154\x61\x73"] = json_decode(json_encode($this->kelas->dummy()));
goto d6YMy;
ligQa:
$data["\160\162\157\146\151\154\145"] = $this->dashboard->getProfileAdmin($user->id);
goto uq79J;
sdJZP:
$this->load->view("\155\141\x73\164\x65\162\x2f\x6b\x65\154\141\x73\x2f\x61\x64\144");
goto aQFeK;
aqAcl:
$data["\x73\x6d\x74"] = $this->dashboard->getSemester();
goto xfbmf;
HfAxq:
$data["\x67\x75\162\x75"] = $this->kelas->get_guru();
goto u3vG9;
d6YMy:
$data["\x6a\165\162\x75\x73\141\156"] = $this->kelas->get_jurusan();
goto PGcqc;
PGcqc:
$data["\154\x65\x76\x65\154"] = $this->kelas->getLevel($setting->jenjang);
goto HfAxq;
w7CTg:
}
public function edit($id = '')
{
goto OpNtD;
nOXkp:
$data["\x74\x70\x5f\141\x63\164\151\x76\145"] = $tp;
goto O8OfB;
ZKbpP:
$data["\x73\x6d\164\x5f\141\143\x74\151\166\145"] = $smt;
goto L9X0z;
o65p_:
$this->load->view("\x6d\141\x73\x74\x65\162\57\153\x65\154\141\x73\57\141\144\144");
goto rXAhr;
MyA4g:
$data["\x67\x75\x72\165"] = $this->kelas->getWaliKelas($tp->id_tp, $smt->id_smt);
goto HiL6Q;
a00n9:
$tp = $this->dashboard->getTahunActive();
goto Kccp8;
rXAhr:
$this->load->view("\x5f\x74\x65\x6d\x70\154\x61\x74\145\x73\57\144\141\x73\x68\x62\x6f\x61\x72\x64\x2f\137\x66\157\x6f\x74\x65\162");
goto oVrMu;
O8OfB:
$data["\x73\155\x74"] = $this->dashboard->getSemester();
goto ZKbpP;
mUGd4:
$data["\x6a\165\162\165\163\141\156"] = $this->kelas->get_jurusan();
goto IcJFF;
B7L7X:
$data = ["\165\x73\145\162" => $user, "\x6a\x75\x64\x75\154" => "\113\145\x6c\x61\163", "\x73\165\x62\x6a\x75\x64\x75\154" => "\x45\144\151\164\40\113\145\154\141\x73", "\163\145\x74\164\151\x6e\x67" => $setting];
goto a00n9;
jZ5I1:
$this->load->view("\137\x74\x65\155\x70\154\141\x74\x65\163\57\x64\x61\x73\150\142\x6f\141\x72\x64\x2f\137\x68\145\141\x64\145\x72", $data);
goto o65p_;
le9oh:
$data["\164\160"] = $this->dashboard->getTahun();
goto nOXkp;
AC_A9:
$data["\151\x64\137\x6b\x65\x6c\x61\163"] = $id;
goto t1RW5;
Kccp8:
$smt = $this->dashboard->getSemesterActive();
goto le9oh;
t1RW5:
$data["\x6b\145\x6c\141\163"] = $this->kelas->get_one($id);
goto mUGd4;
L9X0z:
$data["\x70\162\157\146\x69\154\145"] = $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["\x73\151\x73\167\x61"] = $this->kelas->getAllSiswa($tp->id_tp, $smt->id_smt);
goto WBoTg;
WBoTg:
$data["\x73\x69\x73\167\x61\153\145\x6c\141\163"] = $this->kelas->get_siswa_kelas($id, $tp->id_tp, $smt->id_smt);
goto jZ5I1;
IcJFF:
$data["\x6c\x65\166\x65\x6c"] = $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] = ["\151\x64\137\x6b\x65\x6c\x61\163\x5f\163\x69\x73\167\x61" => $id_tp . $id_smt . $id_siswa, "\151\x64\x5f\x74\x70" => $id_tp, "\x69\144\137\163\x6d\x74" => $id_smt, "\151\x64\137\x6b\145\154\141\x73" => 0, "\151\144\x5f\x73\x69\x73\167\x61" => $id_siswa];
ybMOY:
}
goto iZ_1s;
fTazR:
$i++;
goto OlcRv;
R7bN2:
$data["\x73\x69\x73\x77\x61"] = $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("\x67\165\x72\x75\x5f\151\144", 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("\x69\144\x5f\153\145\154\x61\163", $id);
goto So2QG;
v1jAB:
$siswas = $this->input->post("\163\x69\x73\167\x61", true);
goto GUc1H;
ZIog_:
cK0_m:
goto e7_CG;
viN67:
jZv53:
goto qb1nO;
oUC04:
$status = $this->db->update("\155\x61\163\x74\145\162\x5f\153\x65\154\141\163", $insert);
goto kOhRg;
qI6Ik:
JmB_d:
goto YR414;
CAxGe:
$status = $this->db->insert("\x6d\141\163\164\145\162\137\153\145\x6c\141\163", $insert);
goto WH2ID;
vRvOC:
goto wfDQ8;
goto sXgQJ;
YR414:
$this->db->where("\x69\144\137\x6b\x65\x6c\141\163", $id);
goto oUC04;
ctZkW:
$id_new = null;
goto ULpsu;
yXU5j:
wfDQ8:
goto DJ4Uo;
B2QgH:
$insert[$id_tp . $id_smt . $idsiswa]["\x69\x64\x5f\x6b\145\x6c\x61\x73"] = $new_id_kelas;
goto rYLp0;
Rq7Xa:
I6wCw:
goto HWNZ6;
sXgQJ:
YsvaB:
goto whENQ;
vnnSd:
iYVxa:
goto cfk9O;
So2QG:
$this->db->where("\151\144\137\152\141\142\141\164\141\x6e\137\x67\x75\x72\165", $guru_id . $id_tp . $id_smt);
goto clGXA;
XHGJh:
$insert = array("\x6e\x61\x6d\x61\137\153\x65\154\141\x73" => strip_tags($this->input->post("\x6e\141\x6d\141\137\x6b\x65\154\x61\x73", TRUE)), "\153\x6f\144\145\x5f\153\145\154\x61\x73" => strip_tags($this->input->post("\x6b\x6f\144\x65\x5f\153\145\154\x61\163", TRUE)), "\152\x75\162\x75\163\x61\156\137\151\x64" => strip_tags($this->input->post("\152\165\x72\165\163\141\156\137\151\144", TRUE)), "\x69\x64\x5f\x74\160" => $id_tp, "\x69\144\x5f\163\155\x74" => $id_smt, "\x6c\145\x76\x65\x6c\137\151\x64" => strip_tags($this->input->post("\x6c\145\166\145\x6c\137\151\144", TRUE)), "\147\x75\162\x75\137\x69\144" => strip_tags($this->input->post("\147\165\x72\165\137\x69\x64", TRUE)), "\x73\151\x73\167\141\x5f\151\144" => strip_tags($this->input->post("\163\151\x73\167\141\137\x69\x64", TRUE)), "\152\165\x6d\154\141\150\137\163\x69\x73\167\141" => $jumlah);
goto ctZkW;
IDki6:
CN3fl:
goto CAxGe;
tBH4M:
$data["\151\x6e\x73\x65\162\x74"] = $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("\x66\x69\145\154\144" => "\156\x61\155\x61\137\x6b\145\x6c\x61\163", "\154\141\142\x65\x6c" => "\116\x61\155\141\40\113\145\154\141\x73", "\162\x75\154\x65\x73" => "\164\x72\151\x6d"), array("\146\x69\145\x6c\x64" => "\x6b\x6f\x64\145\137\153\145\154\141\x73", "\154\141\142\x65\154" => "\x4b\x6f\x64\x65\40\x4b\145\154\141\x73", "\x72\165\154\x65\163" => "\164\x72\x69\x6d"), array("\146\151\x65\x6c\144" => "\x6a\165\x72\x75\163\141\x6e\137\x69\x64", "\154\x61\142\x65\154" => "\x4a\x75\x72\165\x73\141\x6e", "\x72\x75\x6c\145\x73" => "\x74\162\x69\x6d"), array("\x66\x69\x65\x6c\x64" => "\154\145\x76\x65\154\x5f\151\144", "\154\x61\142\x65\154" => "\x4c\145\166\x65\x6c", "\x72\165\x6c\145\163" => "\164\x72\151\155"), array("\x66\x69\145\154\144" => "\x67\x75\162\x75\137\151\144", "\x6c\141\x62\145\x6c" => "\x47\165\x72\x75", "\162\165\x6c\x65\163" => "\x74\x72\151\x6d"), array("\x66\x69\x65\x6c\144" => "\163\x69\163\167\x61\x5f\x69\144", "\x6c\141\142\145\154" => "\123\x69\x73\167\x61", "\x72\x75\x6c\x65\x73" => "\164\162\151\x6d"));
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["\x75\160\x64\141\164\145"] = $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("\153\145\x6c\141\x73\x5f\x73\x69\x73\167\141", $ins)) {
goto kvO0t;
}
goto aV5ZE;
T4JmP:
kvO0t:
goto JG0NL;
wEvLv:
}
goto v1rQK;
C0Pki:
$id = $this->input->post("\x69\144\x5f\x6b\145\x6c\141\163", 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["\163\164\141\x74\x75\x73"] = $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, ["\x69\x64" => $id_siswa]);
goto DR48t;
Fcdtv:
$insert[$id_tp . $id_smt . $idsiswa] = ["\151\144\137\153\x65\x6c\x61\x73\x5f\x73\x69\163\167\x61" => $id_tp . $id_smt . $idsiswa, "\x69\144\137\164\x70" => $id_tp, "\151\x64\x5f\163\155\164" => $id_smt, "\151\x64\x5f\x6b\x65\154\141\x73" => $new_id_kelas, "\151\x64\137\163\151\163\167\141" => $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("\152\x61\x62\x61\164\141\x6e\x5f\147\x75\162\165");
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("\x73\151\x73\x77\141\133" . $i . "\x5d", true);
goto SMEY2;
aVSc8:
$i = 0;
goto j1c2T;
AGQSm:
XsrWj:
goto tu8tK;
SqkWV:
$this->db->replace("\x6b\x65\x6c\141\x73\137\163\x69\x73\x77\141", $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 = ["\151\144\137\x6b\x65\154\141\x73\137\x73\x69\x73\x77\141" => $id_tp . $id_smt . $id_siswa, "\151\144\137\164\160" => $id_tp, "\151\144\137\x73\x6d\x74" => $id_smt, "\151\144\x5f\153\x65\x6c\x61\163" => $id, "\x69\144\x5f\x73\x69\x73\x77\x61" => $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("\x73\x69\x73\167\141", 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("\153\x65\x6c\141\163\x5f\x73\151\163\x77\x61", $insert);
goto t4rlD;
t4rlD:
bVZfH:
goto Ezsbw;
aMzB3:
$insert = ["\x69\144\137\x6b\x65\x6c\x61\163\137\x73\151\x73\167\x61" => $id_tp . $id_smt . $id_siswa, "\151\x64\x5f\x74\160" => $id_tp, "\151\144\x5f\163\x6d\x74" => $id_smt, "\x69\x64\137\x6b\x65\x6c\141\x73" => 0, "\x69\144\x5f\x73\151\x73\x77\141" => $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["\x6b\145\x6c\141\163"] = $this->dropdown->getAllKelas($tp->id_tp, "\x31");
goto MrJxj;
dMkDR:
$smt = $this->dashboard->getSemesterActive();
goto kiayU;
dPm9P:
$this->load->view("\137\x74\x65\155\160\154\x61\164\145\163\x2f\144\141\x73\150\142\x6f\141\162\144\x2f\x5f\x66\157\157\164\x65\x72");
goto par1p;
g28ha:
$this->load->view("\137\x74\145\155\x70\x6c\x61\x74\x65\x73\57\144\141\x73\x68\x62\157\x61\162\144\x2f\137\150\145\x61\144\145\x72", $data);
goto C3LbT;
kiayU:
$data["\164\x70"] = $this->dashboard->getTahun();
goto mRdKr;
MrJxj:
$data["\153\x65\x6c\141\x73\x32"] = $this->dropdown->getAllKelas($tp->id_tp, "\x32");
goto g28ha;
mRdKr:
$data["\x74\x70\137\141\143\164\151\x76\x65"] = $tp;
goto HrHyg;
ieIyd:
$data["\x70\162\157\x66\x69\154\145"] = $this->dashboard->getProfileAdmin($user->id);
goto L0wo2;
znKCs:
$data["\x73\x6d\164\137\141\x63\164\151\x76\x65"] = $smt;
goto ieIyd;
C3LbT:
$this->load->view("\x6d\x61\163\x74\145\162\x2f\x6b\x65\154\141\163\57\160\145\162\x73\x65\155\x65\163\164\145\162");
goto dPm9P;
Nlafy:
$tp = $this->dashboard->getTahunActive();
goto dMkDR;
GWtLK:
$user = $this->ion_auth->user()->row();
goto sA92x;
HrHyg:
$data["\163\155\164"] = $this->dashboard->getSemester();
goto znKCs;
sA92x:
$data = ["\x75\163\x65\162" => $user, "\152\x75\x64\x75\x6c" => "\x43\157\x70\171\x20\x4b\145\x6c\x61\163", "\163\x75\x62\x6a\x75\x64\165\154" => "\x43\157\x70\x79\x20\x44\x61\164\x61\40\113\x65\154\141\x73\x20\153\x65\40\x53\115\x54\x20\x49\x49", "\x73\145\x74\164\151\x6e\x67" => $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, "\61");
goto ucfNz;
ucfNz:
$data2 = $this->kelas->getKelasSiswa($kelas, $tp->id_tp, "\x32");
goto qyNlH;
jr2qm:
foreach ($data2 as $s) {
$ids[] = $s->id_siswa;
JB6YU:
}
goto g_IZb;
avxJz:
NAekk:
goto T3jNg;
T3jNg:
$this->output_json(["\163\155\x74\61" => $data1, "\x73\x6d\x74\62" => $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, "\61");
goto OeT76;
UGDt5:
$arrSiswa = unserialize($kelas->jumlah_siswa);
goto cgjvt;
OeT76:
$data = array("\156\141\x6d\141\x5f\x6b\145\154\x61\x73" => $kelas2, "\x6b\x6f\x64\145\137\x6b\x65\x6c\141\x73" => $kelas->kode_kelas, "\152\165\x72\x75\163\141\x6e\x5f\x69\144" => $kelas->jurusan_id, "\x69\x64\x5f\x74\x70" => $tp->id_tp, "\x69\x64\x5f\163\x6d\x74" => $smt->id_smt, "\154\145\166\145\x6c\137\151\x64" => $kelas->level_id, "\x67\x75\162\x75\137\x69\144" => $kelas->guru_id, "\x73\151\x73\x77\141\x5f\x69\144" => $kelas->siswa_id, "\x6a\x75\x6d\x6c\x61\150\137\163\151\163\167\141" => $kelas->jumlah_siswa);
goto P3MVF;
elr9e:
PLdui:
goto GB4VY;
mcALn:
$res = [];
goto UGDt5;
h2HNZ:
$kelas1 = $this->input->post("\153\x65\154\141\163\x5f\154\141\155\x61", true);
goto uoAlq;
cgjvt:
foreach ($arrSiswa as $value) {
goto xHnA9;
xHnA9:
$id_siswa = $value["\151\x64"];
goto ZrKn4;
O7hck:
F52CI:
goto kUhhs;
sI94b:
$res[] = $this->db->replace("\153\x65\154\x61\x73\137\x73\x69\x73\167\141", $insert);
goto O7hck;
kUhhs:
VbzEN:
goto tHo2O;
ZrKn4:
if (!($id_siswa != null)) {
goto F52CI;
}
goto SaJPK;
SaJPK:
$insert = ["\151\144\x5f\153\x65\x6c\x61\163\137\x73\151\x73\x77\141" => $tp->id_tp . $smt->id_smt . $id_siswa, "\151\x64\137\164\160" => $tp->id_tp, "\x69\144\137\x73\x6d\164" => $smt->id_smt, "\151\x64\137\153\145\154\x61\x73" => $idk, "\151\144\x5f\x73\x69\163\167\x61" => $id_siswa];
goto sI94b;
tHo2O:
}
goto elr9e;
CEU3l:
$smt = $this->dashboard->getSemesterActive();
goto h2HNZ;
P3MVF:
$this->db->insert("\x6d\x61\x73\x74\x65\x72\x5f\153\x65\154\141\163", $data);
goto PTUea;
uoAlq:
$kelas2 = $this->input->post("\x6b\145\x6c\141\163\137\142\141\x72\165", 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, "\x31");
goto K3H4F;
d4GO9:
iIp68:
goto f4kUr;
uSHqS:
$this->db->insert("\x6d\x61\x73\164\x65\162\137\153\145\x6c\141\163", $data);
goto zm0df;
ODSbW:
$data = array("\x6e\x61\155\x61\137\x6b\145\x6c\x61\x73" => $kelas->nama_kelas, "\153\x6f\144\x65\x5f\x6b\145\154\141\163" => $kelas->kode_kelas, "\x6a\x75\x72\165\x73\x61\x6e\x5f\151\144" => $kelas->jurusan_id, "\151\144\137\x74\x70" => $tp->id_tp, "\x69\144\137\163\155\x74" => $smt->id_smt, "\x6c\x65\x76\x65\x6c\137\151\144" => $kelas->level_id, "\147\x75\162\165\x5f\x69\x64" => $kelas->guru_id, "\x73\151\x73\167\141\137\151\x64" => $kelas->siswa_id, "\152\165\x6d\154\141\150\x5f\163\151\x73\x77\141" => $jumlah);
goto uSHqS;
OG9_5:
foreach ($siswakelas[$ik] as $s) {
goto bwDc9;
b3p0q:
w4For:
goto ftC4W;
JCQNo:
$res[] = $this->db->replace("\x6b\x65\x6c\x61\163\x5f\163\x69\x73\x77\x61", $insert);
goto b3p0q;
bwDc9:
$insert = ["\x69\144\137\153\x65\x6c\x61\x73\137\x73\151\163\x77\x61" => $tp->id_tp . $smt->id_smt . $s["\x69\144"], "\x69\144\137\x74\x70" => $tp->id_tp, "\x69\144\x5f\x73\x6d\x74" => $smt->id_smt, "\151\144\x5f\x6b\x65\154\141\x73" => $idk, "\x69\x64\137\x73\x69\163\x77\141" => $s["\x69\x64"]];
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("\x6b\145\x6c\x61\163", 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][] = ["\x69\x64" => $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["\x70\162\157\146\151\154\145"] = $this->dashboard->getProfileAdmin($user->id);
goto PPe4V;
TPxek:
$data = ["\x75\x73\x65\x72" => $user, "\x6a\165\144\165\x6c" => "\113\145\x6e\141\x69\x6b\153\141\156\40\x4b\x65\x6c\141\163", "\163\x75\142\x6a\x75\x64\165\154" => "\x4e\x61\x69\153\40\113\145\154\141\163\x20\123\x69\x73\167\x61", "\x73\x65\x74\x74\151\156\x67" => $setting];
goto ej_g5;
svUgY:
$data["\x73\x6d\164\x5f\x61\x63\164\151\x76\x65"] = $smt;
goto tCFPq;
kpQuY:
tvF52:
goto R6pGg;
wSNju:
$data["\x6b\x65\154\141\163\145\163"] = $this->dropdown->getAllKelas($tp->id_tp - 1, "\62", "\75" . ($lvlKls->level_id + 1));
goto kpQuY;
x3Tpv:
if (!($kelas != null)) {
goto tvF52;
}
goto UXKZ_;
R6pGg:
$this->load->view("\x5f\164\x65\x6d\x70\x6c\141\x74\x65\163\57\144\x61\x73\150\x62\x6f\x61\162\144\57\137\150\145\x61\x64\x65\x72", $data);
goto nDKF2;
rKbV_:
$data["\x73\151\163\x77\141\x73"] = $this->rapor->getKenaikanSiswa($kelas, $tp->id_tp - 1, "\x32");
goto RQG3h;
hu261:
$data["\164\x70\x5f\141\x63\164\x69\x76\x65"] = $tp;
goto cQEGS;
RQG3h:
$data["\x6b\145\x6c\141\x73\137\163\x65\154\145\143\x74\145\144"] = $kelas;
goto yf8rS;
ht2_v:
$data["\x6b\145\154\141\x73\x5f\x6c\x61\x6d\141"] = $this->dropdown->getAllKelas($tp->id_tp - 1, "\x32", "\x21\x3d" . $level);
goto VXsA9;
cQEGS:
$data["\163\x6d\164"] = $this->dashboard->getSemester();
goto svUgY;
yf8rS:
$lvlKls = $this->kelas->get_one($kelas, $tp->id_tp - 1, "\x32");
goto wSNju;
VXsA9:
$data["\153\x65\154\141\x73\137\142\141\x72\165"] = $this->dropdown->getAllKelas($tp->id_tp, "\61");
goto x3Tpv;
F02EM:
$smt = $this->dashboard->getSemesterActive();
goto MhGnX;
MhGnX:
$data["\x74\160"] = $this->dashboard->getTahun();
goto hu261;
ej_g5:
$tp = $this->dashboard->getTahunActive();
goto F02EM;
oBGmX:
$kelas = $this->input->get("\153\x65\x6c\x61\163", 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("\x5f\164\x65\x6d\160\154\141\x74\x65\x73\57\144\141\163\150\142\x6f\141\162\x64\57\137\146\157\x6f\164\145\x72");
goto zeGDw;
UXKZ_:
$data["\x73\151\163\167\141\137\x6b\x65\x6c\141\163\137\142\x61\162\165"] = $this->master->getSiswaKelasBaru($tp->id_tp, $smt->id_smt);
goto rKbV_;
nDKF2:
$this->load->view("\155\x61\163\x74\x65\x72\57\153\145\x6c\141\x73\x2f\156\141\x69\x6b\x6b\145\x6c\x61\x73");
goto kguRM;
PPe4V:
$level = $setting->jenjang == "\61" ? "\66" : ($setting->jenjang == "\x32" ? "\x39" : ($setting->jenjang == "\x31" ? "\x33" : "\x31\62"));
goto ht2_v;
zeGDw:
}
public function naikKelas()
{
goto cqJON;
i32yw:
$idkelases = array_unique($idkelases);
goto XezUn;
y0fF9:
$posts = json_decode($this->input->post("\153\x65\154\x61\163", 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["\162\x65\163"] = $siswakelas;
goto wESTI;
cLTxU:
foreach ($posts as $d) {
goto ijN_T;
BvFV0:
gwsnA:
goto VXdWM;
eGd3R:
$siswakelas[$d->kelas_baru][] = ["\x69\x64" => $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("\x6d\157\144\x65", 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("\x6d\x61\163\x74\x65\x72\x5f\x6b\x65\x6c\141\163", $data);
goto nJ1Po;
pDmSN:
vsdvY:
goto jlRqH;
k3Srt:
Wm4gi:
goto zNh2C;
PbfNT:
$data = array("\156\x61\x6d\x61\137\153\x65\154\x61\x73" => $kelas->nama_kelas, "\x6b\157\144\x65\137\x6b\x65\154\141\163" => $kelas->kode_kelas, "\152\x75\x72\x75\x73\x61\156\137\x69\x64" => $kelas->jurusan_id, "\151\144\x5f\x74\x70" => $tp->id_tp, "\151\144\137\x73\x6d\164" => $smt->id_smt, "\154\x65\x76\x65\154\x5f\x69\144" => $kelas->level_id, "\x67\x75\x72\165\x5f\x69\144" => $kelas->guru_id, "\x73\x69\x73\x77\x61\x5f\x69\x64" => $kelas->siswa_id, "\x6a\x75\x6d\154\141\150\x5f\163\151\163\x77\x61" => $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("\x6b\145\154\141\x73\137\x73\151\163\167\141", $insert);
goto L5iAx;
OXhlg:
$insert = ["\x69\144\x5f\x6b\145\154\x61\x73\x5f\163\x69\163\167\x61" => $tp->id_tp . $smt->id_smt . $s["\151\144"], "\151\144\137\x74\x70" => $tp->id_tp, "\x69\144\137\x73\x6d\164" => $smt->id_smt, "\151\x64\137\x6b\145\154\141\163" => $idk, "\151\x64\x5f\163\x69\x73\167\141" => $s["\x69\x64"]];
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["\x69\x64"] != $s["\x69\x64"])) {
goto n0HzS;
}
goto miOlR;
VIwuy:
yn10G:
goto QoGeF;
H64JJ:
n0HzS:
goto VIwuy;
miOlR:
array_push($jmlLama, ["\151\x64" => $s["\151\x64"]]);
goto co2QP;
QoGeF:
}
goto Q78Ra;
byEey:
LrbBH:
goto geyKi;
geyKi:
}
goto C37vR;
KO1l1:
$jumlah = serialize($jmlLama);
goto oxkYr;
O4_yE:
$this->db->where("\151\x64\137\x6b\x65\x6c\141\x73", $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 == "\160\x65\x72\x73\x69\163\x77\x61") {
goto Wm4gi;
}
goto pYs9H;
s8yOB:
$this->db->update("\155\x61\x73\164\145\x72\137\153\x65\154\x61\163", $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, "\62");
goto WzfdD;
B3G2H:
if ($kelas_baru == null) {
goto vsdvY;
}
goto ayIlg;
RdCRF:
$data = array("\156\x61\x6d\x61\x5f\153\x65\x6c\141\x73" => $kelas->nama_kelas, "\153\157\144\x65\137\153\x65\154\x61\163" => $kelas->kode_kelas, "\152\x75\x72\165\x73\x61\156\137\x69\x64" => $kelas->jurusan_id, "\151\x64\x5f\x74\160" => $tp->id_tp, "\x69\x64\137\x73\155\164" => $smt->id_smt, "\154\145\166\145\x6c\137\x69\x64" => $kelas->level_id, "\x67\x75\x72\165\x5f\x69\144" => $kelas->guru_id, "\163\x69\x73\167\141\x5f\151\x64" => $kelas->siswa_id, "\x6a\x75\155\154\141\x68\137\163\x69\163\x77\141" => $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["\x73\151\163\167\141"] = $this->master->delete("\x6b\x65\x6c\141\163\137\163\x69\163\x77\x61", $id_kelas, "\x69\x64\x5f\153\x65\154\x61\x73");
goto wyeLQ;
wyeLQ:
$delete["\153\x65\x6c\x61\163"] = $this->master->delete("\155\141\163\x74\x65\162\x5f\x6b\x65\154\141\163", $id_kelas, "\151\144\137\x6b\145\154\x61\163");
goto LRmNi;
LRmNi:
$this->output_json($delete);
goto U0WYM;
U0WYM:
}
}
Function Calls
None |
Stats
MD5 | ff8eabc54d63318e993594a21d0aaddc |
Eval Count | 0 |
Decode Time | 133 ms |