function prov2distAction() { $this->_helper->layout->disableLayout(); $type = $this->_request->combo; $locations = new Model_Locations(); if ($type == '4') { if (isset($this->_request->dist_sel) && !empty($this->_request->dist_sel)) { $dist_id = $this->_request->dist_sel; $locations->form_values['geo_level_id'] = 5; $locations->form_values['district_id'] = $dist_id; $result = $locations->getLocationsByLevelByDistrict(); $this->view->result = $result; } } if ($type == '2') { if (isset($this->_request->prov_sel) && !empty($this->_request->prov_sel)) { $prov_id = $this->_request->prov_sel; $locations->form_values['geo_level_id'] = 4; $locations->form_values['province_id'] = $prov_id; $result = $locations->getLocationsByLevelByProvince(); $this->view->result = $result; } } if ($type == '5' && !empty($this->_request->teh_sel)) { $teh_sel = $this->_request->teh_sel; $locations->form_values['geo_level_id'] = 6; $locations->form_values['parent_id'] = $teh_sel; $result = $locations->getLocationsByLevelByTehsil(); $this->view->result = $result; } if ($type == '5' && !empty($this->_request->dist_sel)) { $dist_sel = $this->_request->dist_sel; $locations->form_values['geo_level_id'] = 6; $locations->form_values['district_id'] = $dist_sel; $result = $locations->getLocationsByLevelByDistrict(); $this->view->result = $result; } }