Beispiel #1
0
 public function detail_krs()
 {
     $cek = $this->session->userdata('logged_in');
     $stts = $this->session->userdata('stts');
     if (!empty($cek) && $stts == 'dosen') {
         $bc['nim'] = $this->uri->segment(3);
         $bc['status'] = $this->uri->segment(4);
         $bc['smt_skr'] = $this->web_app_model->getSemesterMax($bc['nim']);
         $bc['ipk'] = $this->web_app_model->getIpk($bc['nim'], $bc['smt_skr'] - 1);
         $bc['dosen_wali'] = $this->web_app_model->getDosenWali($bc['nim']);
         $bc['tahun_ajaran'] = $this->web_app_model->getTahunAjaran();
         $bc['beban_studi'] = beban_studi($bc['ipk']);
         $dt_mhs = $this->web_app_model->getSelectedData("tbl_mahasiswa", "nim", $bc['nim']);
         foreach ($dt_mhs->result() as $dm) {
             $bc['nama_mhs'] = $dm->nama_mahasiswa;
             $bc['program'] = $dm->kelas_program;
             $bc['jurusan'] = $dm->jurusan;
             $bc['kelas_program'] = $dm->kelas_program;
         }
         $bc['detailfrs'] = $this->web_app_model->getDetailKrsPersetujuan($bc['nim'], $bc['kelas_program']);
         $this->load->view('dosen/bg_detail_krs', $bc);
     } else {
         header('location:' . base_url() . 'web');
     }
 }
Beispiel #2
0
 public function krs()
 {
     $cek = $this->session->userdata('logged_in');
     $stts = $this->session->userdata('stts');
     if (!empty($cek) && $stts == 'mahasiswa') {
         $d['judul'] = "Kartu Rencana Studi - Sistem Informasi Akademik Online";
         $bc['nama'] = $this->session->userdata('nama');
         $bc['status'] = $this->session->userdata('stts');
         $bc['nim'] = $this->session->userdata('nim');
         $bc['program'] = $this->session->userdata('program');
         $bc['jurusan'] = $this->session->userdata('jurusan');
         $bc['smt_skr'] = $this->web_app_model->getSemesterMax($bc['nim']);
         $bc['ipk'] = $this->web_app_model->getIpk($bc['nim'], $bc['smt_skr'] - 1);
         $bc['dosen_wali'] = $this->web_app_model->getDosenWali($bc['nim']);
         $bc['tahun_ajaran'] = $this->web_app_model->getTahunAjaran();
         $bc['detail_krs'] = $this->web_app_model->getDetailKrs($bc['nim']);
         $bc['beban_studi'] = beban_studi($bc['ipk']);
         $bc['menu'] = $this->load->view('mahasiswa/menu', '', true);
         $bc['bio'] = $this->load->view('mahasiswa/bio', $bc, true);
         $kls = $this->session->userdata('program');
         $bc['jadwal'] = $this->web_app_model->getJadwal($bc['nim'], $kls);
         $bc['detailfrs'] = $this->web_app_model->getDetailKrsPersetujuan($bc['nim'], $bc['program']);
         $st = '';
         $cek = $this->web_app_model->getSelectedData('tbl_perwalian_header', 'nim', $bc['nim']);
         foreach ($cek->result() as $c) {
             $st = $c->status;
         }
         $this->load->view('global/bg_top', $d);
         if ($st == 0) {
             $this->load->view('mahasiswa/bg_jadwal', $bc);
         } else {
             if ($st == 1) {
                 $this->load->view('mahasiswa/bg_detail_krs', $bc);
             }
         }
         $this->load->view('global/bg_footer', $d);
     } else {
         header('location:' . base_url() . 'web');
     }
 }