public function indexAction()
 {
     try {
         $db = new Tellerandexchange_Model_DbTable_Dbexchange();
         if ($this->getRequest()->isPost()) {
             $search = $this->getRequest()->getPost();
         } else {
             $search = array('client_id' => -1, 'status' => -1, 'from_date' => date('Y-m-d'), 'to_date' => date('Y-m-d'));
         }
         $rs_rows = $db->getAllExchangeList($search);
         // 			print_r($rs_rows);
         // 			foreach ($rs_rows as $key =>$rs){
         // 				$result[$key]=array(
         // 						'client_id'=>$rs['client_id'],
         // 						'client_number'=>$rs['client_number'],
         // 						'name_kh'=>$rs['name_kh'],
         // 						'name_en'=>$rs['name_en'],
         // 						'sex'=>$this->sex[$rs['sex']],
         // 						'phone'=>$rs['phone'],
         // 						'house'=>$rs['house'],
         // 						'street'=>$rs['street'],
         // 						'village_name'=>$rs['village_name'],
         // 						'spouse_name'=>$rs['spouse_name'],
         // 						'user_name'=>$rs['user_name'],
         // 						'status'=>$rs['status'],
         // 						);
         // 			}
         $glClass = new Application_Model_GlobalClass();
         $rs_rows = $glClass->getImgActive($rs_rows, BASE_URL, true);
         $list = new Application_Form_Frmtable();
         $collumns = array("ឈ្មោះអតិថិជន", "ថ្ងៃ​ប្រតិបត្តិ", "វិ.បត្រ", "ការប្តូរប្រាក់", "ចំនួនទឹកប្រាក់", "អត្រាប្តូរប្រាក់", "ចំនួនទឹកប្រាក់បានប្តូររួច", "ប្រាក់​ទទួល​បាន​", "ប្រាក់​អាប់", "TYPE", "STATUS");
         $link = array('module' => 'tellerandexchange', 'controller' => 'exchanges', 'action' => 'edit');
         $this->view->list = $list->getCheckList(0, $collumns, $rs_rows, array('client_name' => $link, 'invoice_code' => $link, 'date' => $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;
 }