public function indexAction(){ try{ $db = new Group_Model_DbTable_DbReturnCollteral(); if($this->getRequest()->isPost()){ $search=$this->getRequest()->getPost(); } else{ $search = array( 'adv_search' => '', 'status_search' => -1, 'start_date'=>date('Y-m-d'), 'end_date'=>date('Y-m-d'), 'branch_id'=>''); }//print_r($search);exit(); $rs_rows= $db->getAllReturnCollteral($search);//call frome model $glClass = new Application_Model_GlobalClass(); $rs_rowss = $glClass->getImgActive($rs_rows, BASE_URL, true); $list = new Application_Form_Frmtable(); $collumns = array("BRANCH_NAME","CUSTOMER_NAME","GIVER_NAME","RECEIVER_NAME","DATE","NOTE","STATUS","BY_USER"); $link=array( 'module'=>'group','controller'=>'Returncollteral','action'=>'edit', ); $this->view->list=$list->getCheckList(0, $collumns,$rs_rowss,array('branch_id'=>$link,'client_name'=>$link,'giver_name'=>$link,'receiver_name'=>$link,'date'=>$link)); }catch (Exception $e){ Application_Form_FrmMessage::message("Application Error"); Application_Model_DbTable_DbUserLog::writeMessageError($e->getMessage()); } $fm = new Group_Form_Frmreturncollteral(); $frm = $fm->FrmReturnCollteral(); Application_Model_Decorator::removeAllDecorator($frm); $this->view->frm_returnCollteral = $frm; }
function rptReturncollteralAction(){ $db = new Report_Model_DbTable_DbRpt(); if($this->getRequest()->isPost()){ $search=$this->getRequest()->getPost(); }else{ $search = array( 'start_date'=> date('Y-m-d'), 'adv_search' => '', 'status_search' => -1, 'start_date'=> date('Y-m-d'), 'end_date'=>date('Y-m-d')); } $this->view->calleteral_list = $db->getAllReturnCollteral($search);//call frome model $this->view->result = $search; $fm = new Group_Form_Frmreturncollteral(); $frm = $fm->FrmReturnCollteral(); Application_Model_Decorator::removeAllDecorator($frm); $this->view->frm_returnCollteral = $frm; $key = new Application_Model_DbTable_DbKeycode(); $this->view->data=$key->getKeyCodeMiniInv(TRUE); }