public function indexAction() { try { $db = new Other_Model_DbTable_DbCommune(); if ($this->getRequest()->isPost()) { $search = $this->getRequest()->getPost(); } else { $search = array('adv_search' => '', 'status' => -1); } $rs_rows = $db->getAllCommune($search); $glClass = new Application_Model_GlobalClass(); $rs_rows = $glClass->getImgActive($rs_rows, BASE_URL, true); $list = new Application_Form_Frmtable(); $collumns = array("CommuneName Kh", "CommuneName En", "District Name", "Date", "Status", "By"); $link = array('module' => 'other', 'controller' => 'Commune', 'action' => 'edit'); $this->view->list = $list->getCheckList(0, $collumns, $rs_rows, array('commune_namekh' => $link, 'district_name' => $link, 'commune_name' => $link)); } catch (Exception $e) { Application_Form_FrmMessage::message("Application Error"); echo $e->getMessage(); Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage()); } $frm = new Application_Form_FrmAdvanceSearch(); $frm = $frm->AdvanceSearch(); Application_Model_Decorator::removeAllDecorator($frm); $this->view->frm_search = $frm; }
public function indexAction(){ try{ $db = new Other_Model_DbTable_DbCommune(); if($this->getRequest()->isPost()){ $search=$this->getRequest()->getPost(); } else{ $search = array( 'adv_search' => '', 'search_status' => -1); } $rs_rows= $db->getAllCommune($search); $list = new Application_Form_Frmtable(); $collumns = array("COMMUNE_CODE","COMMUNENAME_KH","COMMUNENAME_EN","DISTRICT_NAME","DATE","STATUS","BY"); $link=array( 'module'=>'other','controller'=>'commune','action'=>'edit', ); $this->view->list=$list->getCheckList(0, $collumns, $rs_rows,array('code'=>$link,'commune_namekh'=>$link,'district_name'=>$link,'commune_name'=>$link)); }catch (Exception $e){ Application_Form_FrmMessage::message("Application Error"); Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage()); } $frm = new Other_Form_FrmCommune(); $frm = $frm->FrmAddCommune(); Application_Model_Decorator::removeAllDecorator($frm); $this->view->frm_district = $frm; }