public function viewGetHuyenName($id = 0)
 {
     if ($id) {
         $huyenModel = new Front_Model_Huyen();
         $huyen = $huyenModel->fetchRow('huyen_id=' . $id . ' and huyen_status=1');
         if ($huyen) {
             return $huyen->huyen_name;
         }
         return '';
     }
     return '';
 }
 public function hdeleteAction()
 {
     $layoutPath = APPLICATION_PATH . '/templates/' . TEMPLATE_USED;
     $option = array('layout' => 'hethong/layout', 'layoutPath' => $layoutPath);
     Zend_Layout::startMvc($option);
     $translate = Zend_Registry::get('Zend_Translate');
     $this->view->title = 'Quản lý quận/huyện - ' . $translate->_('TEXT_DEFAULT_TITLE');
     $this->view->headTitle($this->view->title);
     $tinh_id = $this->_getParam('parent', 0);
     $id = $this->_getParam('id', 0);
     $huyenModel = new Front_Model_Huyen();
     $error_message = array();
     $huyen_info = $huyenModel->fetchRow('huyen_id=' . $id);
     if (!$huyen_info) {
         $error_message[] = 'Không tìm thấy thông tin.';
     }
     if ($this->_request->isPost()) {
         $del = $this->getRequest()->getPost('del');
         if ($del == 'Yes') {
             $id = $this->getRequest()->getPost('id');
             $huyenModel->delete('huyen_id=' . $id);
         }
         $this->_redirect('hethong/tinh/huyen/parent/' . $tinh_id . '/page/' . $this->_page);
     }
     $this->view->parent = $tinh_id;
     $this->view->huyen_info = $huyen_info;
     $this->view->error_message = $error_message;
 }