Ejemplo n.º 1
0
 public function indexAction()
 {
     $lecturer_id = $this->sessionGlobal->lecturer_id;
     $giangvien = new Model_Giangvien();
     $findOne = $giangvien->findOneGiangvien($lecturer_id);
     $this->view->findOne = $findOne;
     if ($this->_request->isPost()) {
         $data = $this->_getParam('searchParam');
         $giangvien->ReUpdateGiangVien($lecturer_id, $data);
         header("Refresh:0");
     }
 }
Ejemplo n.º 2
0
 public function updateAction()
 {
     $giangvien = new Model_Giangvien();
     $listDegree = $giangvien->findDegree();
     $this->view->listDegree = $listDegree;
     $lecturer_id = $_GET['lecturer_id'];
     $findOne = $giangvien->findOneGiangvien($lecturer_id);
     $this->view->findOne = $findOne;
     if ($this->_request->isPost()) {
         $data = $this->_getParam('searchParam');
         $giangvien->updateGiangvien($lecturer_id, $data);
         echo "<script>alert('Cập nhật dữ liệu thành công');</script>";
         header("/giaovu/lecturer/list:100");
     }
 }