public function indexAction(){ try{ $db = new Payroll_Model_DbTable_DbDepartment(); if($this->getRequest()->isPost()){ $search=$this->getRequest()->getPost(); } else{ $search = array( 'adv_search' => '', 'status_search' => -1); } $rs_rows= $db->getAllStaffDepartment($search); $glClass = new Application_Model_GlobalClass(); $rs_rows = $glClass->getImgActive($rs_rows, BASE_URL, true); $list = new Application_Form_Frmtable(); $collumns = array("DEPARTMENT_KH","DEPARTMENT_EN","DISPLAY_BY","DATE","STATUS","USER"); $link=array( 'module'=>'payroll','controller'=>'department','action'=>'edit', ); $this->view->list=$list->getCheckList(0, $collumns,$rs_rows,array('department_kh'=>$link,'department_en'=>$link)); }catch (Exception $e){ Application_Form_FrmMessage::message("Application Error"); echo $e->getMessage(); Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage()); } $frm = new Payroll_Form_FrmDepartment(); $frm_partment=$frm->FrmAddDepartment(); Application_Model_Decorator::removeAllDecorator($frm_partment); $this->view->frm_department = $frm_partment; }