public function save() { methodpage(); $data = $this->fungsi->accept_data(array_keys($_POST)); $msg = $this->batasnilai->save($data); $this->flash->success($msg); redirect('batasnilai'); }
public function dologin() { methodpage(); $data = $this->fungsi->accept_data(array_keys($_POST)); $login = $this->userauth->login_user($data['user_id'], md5($data['password'])); if ($login) { redirect('main'); } else { $this->flash->error('username dan password salah'); redirect("login"); } }
public function delete() { methodpage(); $id = $this->input->post('id'); $result = $this->tahun_ajaran->delete($id); }
public function delete() { methodpage(); $id = $this->input->post('id'); $result = $this->siswa->delete($id); }
public function save() { methodpage(); $nis = $this->input->post('nis'); foreach ($nis as $key => $val) { $this->db->where("nis", $key); $this->db->update("siswa", array("jurusan" => $val)); } $this->flash->success("Hasil Perhitungan Jurusan Berhasil Disimpan"); redirect('hasil_jurusan'); }