Beispiel #1
0
 public function save()
 {
     methodpage();
     $data = $this->fungsi->accept_data(array_keys($_POST));
     $msg = $this->batasnilai->save($data);
     $this->flash->success($msg);
     redirect('batasnilai');
 }
Beispiel #2
0
 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");
     }
 }
Beispiel #3
0
 public function delete()
 {
     methodpage();
     $id = $this->input->post('id');
     $result = $this->tahun_ajaran->delete($id);
 }
Beispiel #4
0
 public function delete()
 {
     methodpage();
     $id = $this->input->post('id');
     $result = $this->siswa->delete($id);
 }
Beispiel #5
0
 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');
 }