public function addJurusan($id = null)
 {
     $jur = new Jurusan($this->registry);
     $fakul = new Fakultas($this->registry);
     $this->view->fakul = $fakul->get_fakul();
     if (isset($_POST['add_jur'])) {
         $fak = $_POST['fakultas'];
         $strata = $_POST['strata'];
         $nama = $_POST['nama'];
         $alamat = $_POST['alamat'];
         $telepon = $_POST['telepon'];
         $pic_jur = $_POST['pic_jur'];
         $telp_pic_jur = $_POST['telp_pic_jur'];
         $status = $_POST['status'];
         $jur->set_kode_fakul($fak);
         $jur->set_kode_strata($strata);
         $jur->set_nama($nama);
         $jur->set_alamat($alamat);
         $jur->set_telepon($telepon);
         $jur->set_pic($pic_jur);
         $jur->set_telp_pic($telp_pic_jur);
         $jur->set_status($status);
         if (!$jur->add_jurusan()) {
             $this->view->d_rekam = $jur;
             $this->view->error = $jur->get_error();
         } else {
             ClassLog::write_log('jurusan', 'rekam', $nama);
         }
     }
     if (!is_null($id)) {
         $fakul = new Fakultas($this->registry);
         $jur->set_kode_jur($id);
         $this->view->d_ubah = $jur->get_jur_by_id($jur);
         $this->view->fakul = $fakul->get_fakul();
     }
     $strata = new Strata();
     $this->view->strata = $strata->get_All();
     $this->view->data = $jur->get_jurusan();
     $this->view->render('admin/jurusan');
 }