public function viewGetQuanLyNhaNuocName($id = 0)
 {
     if ($id) {
         $rowModel = new Front_Model_QuanLyNhaNuoc();
         $row = $rowModel->fetchRow('qlnn_id=' . $id . ' and qlnn_status=1');
         if ($row) {
             return $row->qlnn_name;
         }
         return '';
     }
     return '';
 }
 public function deleteAction()
 {
     $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ý nhà nước - ' . $translate->_('TEXT_DEFAULT_TITLE');
     $this->view->headTitle($this->view->title);
     $id = $this->_getParam('id', 0);
     $quanlynhanuocModel = new Front_Model_QuanLyNhaNuoc();
     $error_message = array();
     $qlnn_info = $quanlynhanuocModel->fetchRow('qlnn_id=' . $id);
     if (!$qlnn_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');
             $quanlynhanuocModel->delete('qlnn_id=' . $id);
         }
         $this->_redirect('hethong/quanlynhanuoc/index/page/' . $this->_page);
     }
     $this->view->qlnn_info = $qlnn_info;
     $this->view->error_message = $error_message;
 }