function rptZoneAction(){ $db = new Report_Model_DbTable_DbParamater(); $this->view->zone_list = $db->getAllZone(); $key = new Application_Model_DbTable_DbKeycode(); $this->view->data=$key->getKeyCodeMiniInv(TRUE); $frm = new Other_Form_FrmZone(); $frm_co=$frm->FrmAddZone(); Application_Model_Decorator::removeAllDecorator($frm_co); $this->view->frm_zone = $frm_co; if($this->getRequest()->isPost()){ $data = $this->getRequest()->getPost(); //print_r($data);exit(); if(isset($data['btn_search'])){ $this->view->zone_list = $db->getAllZone($data); }else{ $collumn = array("zone_id","zone_num","modify_date","status"); $this->exportFileToExcel('ln_zone',$db->getAllZone(),$collumn); } }else $search = array('txtsearch' => ''); }