public function viewGetChucVuDangName($id = 0)
 {
     if ($id) {
         $chucvudangModel = new Front_Model_ChucVuDang();
         $chucvu = $chucvudangModel->fetchRow('cvdang_id=' . $id . ' and cvdang_status=1');
         if ($chucvu) {
             return $chucvu->cvdang_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ý chức vụ đảng - ' . $translate->_('TEXT_DEFAULT_TITLE');
     $this->view->headTitle($this->view->title);
     $id = $this->_getParam('id', 0);
     $chucvuModel = new Front_Model_ChucVuDang();
     $error_message = array();
     $cvdang_info = $chucvuModel->fetchRow('cvdang_id=' . $id);
     if (!$cvdang_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');
             $chucvuModel->delete('cvdang_id=' . $id);
         }
         $this->_redirect('hethong/chucvudang/index/page/' . $this->_page);
     }
     $this->view->cvdang_info = $cvdang_info;
     $this->view->error_message = $error_message;
 }