Пример #1
0
 public function getAmcMapDataAction()
 {
     $year = $this->_request->getParam('year', '');
     $month = $this->_request->getParam('month', '');
     $product = $this->_request->getParam('product', '');
     $province = $this->_request->getParam('province', '');
     $district = $this->_request->getParam('district', '');
     $amctype = $this->_request->getParam('type', '');
     $level = $this->_request->getParam('level', '');
     $geoModel = new Model_Geo();
     if ($level == 4) {
         $result = $geoModel->getAmcMapData($year, $month, $product, $province, $amctype);
     } else {
         $result = $geoModel->getAmcTehsilMapData($year, $month, $province, $district, $product, $amctype);
     }
     echo Zend_Json::encode($result);
 }