function editAction()
 {
     if ($this->getRequest()->isPost()) {
         $_data = $this->getRequest()->getPost();
         try {
             $_dbmodel = new Global_Model_DbTable_DbHightschool();
             $_dbmodel->updateSchool($_data);
             Application_Form_FrmMessage::Sucessfull("EDIT_SUCCESS", "/global/highschool/index");
         } catch (Exception $e) {
             Application_Form_FrmMessage::message("INSERT_FAIL");
             $err = $e->getMessage();
             Application_Model_DbTable_DbUserLog::writeMessageError($err);
         }
     }
     $id = $this->getRequest()->getParam("id");
     $db = new Global_Model_DbTable_DbHightschool();
     $row = $db->getSchoolById($id);
     $provine = new Global_Form_FrmAddSchool();
     $frm_school = $provine->FrmAddSchool($row);
     Application_Model_Decorator::removeAllDecorator($frm_school);
     $this->view->frm_school = $frm_school;
 }
 function addSchoolAction()
 {
     if ($this->getRequest()->isPost()) {
         $_data = $this->getRequest()->getPost();
         try {
             $_dbmodel = new Global_Model_DbTable_DbProvince();
             $_dbmodel->addNewProvince($_data);
             Application_Form_FrmMessage::Sucessfull("EDIT_SUCCESS", "/global/index/subject-list");
         } catch (Exception $e) {
             Application_Form_FrmMessage::message("INSERT_FAIL");
             $err = $e->getMessage();
             Application_Model_DbTable_DbUserLog::writeMessageError($err);
         }
     }
     $provine = new Global_Form_FrmAddSchool();
     $frm_school = $provine->FrmAddSchool();
     Application_Model_Decorator::removeAllDecorator($frm_school);
     $this->view->frm_school = $frm_school;
 }