public function indexAction() { try { if ($this->getRequest()->isPost()) { $_data = $this->getRequest()->getPost(); $search = array('title' => $_data['title'], 'subjec_name' => $_data['subjec_name'], 'status' => $_data['status_search']); } else { $search = array('title' => '', 'status' => -1); } $db = new Global_Model_DbTable_DbProvince(); $rs_rows = $db->getAllProvince($search); $glClass = new Application_Model_GlobalClass(); $rs = $glClass->getImgActive($rs_rows, BASE_URL, true); $list = new Application_Form_Frmtable(); $collumns = array("EN_PROVINCE", "KH_PROVINCE", "MODIFY_DATE", "STATUS", "BY_USER"); $link = array('module' => 'global', 'controller' => 'province', 'action' => 'edit'); $this->view->list = $list->getCheckList(0, $collumns, $rs, array('province_kh_name' => $link, 'province_en_name' => $link)); } catch (Exception $e) { Application_Form_FrmMessage::message("Application Error"); Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage()); } $frm = new Global_Form_FrmSearchMajor(); $frm = $frm->searchProvinnce(); Application_Model_Decorator::removeAllDecorator($frm); $this->view->frm_search = $frm; }