public function indexAction() { try { $db = new Other_Model_DbTable_DbCreditOfficer(); if ($this->getRequest()->isPost()) { $search = $this->getRequest()->getPost(); } else { $search = array('adv_search' => '', 'status' => -1); } $rs_rows = $db->getAllCreditOfficer($search); $glClass = new Application_Model_GlobalClass(); $rs_rows = $glClass->getImgActive($rs_rows, BASE_URL, true, 1); $list = new Application_Form_Frmtable(); $collumns = array("CODE", "Name Khmer", "Name In ENG", "National ID", "Address", "Tel", "Email", "Degree", "Status"); $link = array('module' => 'other', 'controller' => 'co', 'action' => 'edit'); $this->view->list = $list->getCheckList(0, $collumns, $rs_rows, array('co_code' => $link, 'co_khname' => $link, 'co_engname' => $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_DbCreditOfficer(); if($this->getRequest()->isPost()){ $search=$this->getRequest()->getPost(); } else{ $search = array( 'adv_search' => '', 'status_search' => -1); } $rs_rows= $db->getAllCreditOfficer($search); $glClass = new Application_Model_GlobalClass(); $rs_rows = $glClass->getImgActive($rs_rows, BASE_URL, true); $list = new Application_Form_Frmtable(); $collumns = array("CODE","NAME_KH","NAME_EN","NATIONAL_ID","ADDRESS","PHONE", "EMAIL","DEGREE","DEPARTMENT","ANNUAL_LIVES","STATUS"); $link=array( 'module'=>'payroll','controller'=>'co','action'=>'edit', ); $this->view->list=$list->getCheckList(0, $collumns,$rs_rows,array('co_code'=>$link,'co_khname'=>$link,'co_engname'=>$link)); }catch (Exception $e){ Application_Form_FrmMessage::message("Application Error"); echo $e->getMessage(); Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage()); } $fm = new Other_Form_FrmCO(); $frm_co=$fm->FrmAddCO(); Application_Model_Decorator::removeAllDecorator($frm_co); $this->view->frm_co = $frm_co; }