my_usession->logged_in) { $data['title'] = 'Owner Area'; $data['uty_url'] = 'application/frontend/utility/'; $data['pro_url'] = 'application/frontend/master/fakultas_prodi/'; $data['kls_url'] = 'application/frontend/master/kelas_ruang/'; $data['mhs_url'] = 'application/frontend/master/mahasiswa/'; $data['dos_url'] = 'application/frontend/master/dosen/'; $data['aka_url'] = 'application/frontend/akademik/'; $data['keu_url'] = 'application/frontend/keuangan/'; $data['main_url'] = 'application/frontend/main/'; $data['dash_url'] = 'application/frontend/dashboard/'; $data['fin_url'] = 'application/frontend/master/pembiayaan/'; $data['job_url'] = 'application/frontend/master/pekerjaan/'; $data['master_aka_url'] = 'application/frontend/master/akademik/'; $data['edu_url'] = 'application/frontend/master/pendidikan/'; $data['com_url'] = 'application/frontend/master/common/'; $this->load->view('index-siak', $data); } else { $this->my_usession->set_userdata('login_resunlaprivate', 0); redirect('auth/login'); } } function get_setting_js(){ $q = "SELECT nilai from v_setting WHERE kdset='".$_POST['kode']."'"; $query = $this->db->query($q); $val= ''; if ($query->num_rows() != 0) { $row = $query->row(); $val=$row->nilai; } echo $val; } function get_setting_js1(){ $q = "SELECT nilai from v_setting WHERE kdset='".$_POST['kode']."'"; $query = $this->db->query($q); $data = array(); if ($query->num_rows() != 0) { $data = $query->result(); $ttl = count($data); $build_array["success"]=true; $build_array["results"]=$ttl; $build_array["data"]=$data; } echo json_encode($build_array); } function get_setting_php($kode){ $q = "SELECT nilai from v_setting WHERE kdset='".$kode."'"; $query = $this->db->query($q); $val= ''; if ($query->num_rows() != 0) { $row = $query->row(); $val=$row->nilai; } return $val; } }