public function viewGetChungChiName($id = 0)
 {
     if ($id) {
         $chungchiModel = new Front_Model_Chungchi();
         $chung_chi = $chungchiModel->fetchRow('cc_id=' . $id . ' and cc_status=1');
         if ($chung_chi) {
             return $chung_chi->cc_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ứng chỉ - ' . $translate->_('TEXT_DEFAULT_TITLE');
     $this->view->headTitle($this->view->title);
     $id = $this->_getParam('id', 0);
     $chungchiModel = new Front_Model_Chungchi();
     $error_message = array();
     $cc_info = $chungchiModel->fetchRow('cc_id=' . $id);
     if (!$cc_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');
             $chungchiModel->delete('cc_id=' . $id);
         }
         $this->_redirect('hethong/chungchi/index/page/' . $this->_page);
     }
     $this->view->cc_info = $cc_info;
     $this->view->error_message = $error_message;
 }