You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

24 lines
593 B

  1. <?php
  2. //Author:fuhc
  3. //Date:20160908
  4. //省市联动
  5. require_once __DIR__.'/../HotelLib.php';
  6. class ProvinceCityLinkAction extends HotelLib{
  7. //得到省级联动
  8. function getProvinceCity($parent_id=0){
  9. $sql="select id as area_id,parent_id,area_name,postcode from base_area as A where A.parent_id=$parent_id and A.cancel_flag=0 AND
  10. A.id<=3222";
  11. writeLog(__FUNCTION__." sql=".$sql);
  12. $data=array();
  13. $rowset=$this->DBTool->queryBySql($sql);
  14. $data['code']=$rowset['code'];
  15. $data['info']=$rowset['info'];
  16. $data['area_list']=$rowset['rowset'];
  17. return $data;
  18. }
  19. }