华东 $southChinaList=array();//2 => 华南 $centralSouthList=array();//3 => 中南 $northeastList=array();//4 => 东北 $southWestList=array();//5=>西南 $northWestList=array();//6=>西北 $northChinaList=array();//7=>华北 $othersList=array();//8=>其他 /************查询省份*********************/ $provinceList=$model->query("SELECT * FROM province WHERE type!=8 ORDER BY phoneticize ASC"); //dump($provinceList); foreach ($provinceList as $province) { $cityList=$model->query("SELECT * FROM city WHERE province_id=".$province['id']." AND status=1"." ORDER BY CONVERT( city_name USING gbk ) COLLATE gbk_chinese_ci ASC"); //echo $model->GetLastSql()."
"; //dump($province); //$citys=$cityList[0]; //dump($citys); switch($province['type']){ case 1: $eastChinaList[]=array("province"=>$province,"citys"=>$cityList); break; case 2: $southChinaList[]=array("province"=>$province,"citys"=>$cityList); break; case 3: $centralSouthList[]=array("province"=>$province,"citys"=>$cityList); break; case 4: $northeastList[]=array("province"=>$province,"citys"=>$cityList); break; case 5: $southWestList[]=array("province"=>$province,"citys"=>$cityList); break; case 6: $northWestList[]=array("province"=>$province,"citys"=>$cityList); break; case 7: $northChinaList[]=array("province"=>$province,"citys"=>$cityList); break; } } /***************其他************************/ $otherCitylist=$model->query("SELECT city.* FROM city JOIN province ON city.province_id=province.id WHERE province.type=8 AND province.status=1"." ORDER BY CONVERT( city_name USING gbk ) COLLATE gbk_chinese_ci ASC"); $othersList=array("province"=>"其他","citys"=>$otherCitylist); //dump($othersList['citys']); //dump($southWestList); $this->assign("eastChinaList",$eastChinaList); $this->assign("southChinaList",$southChinaList); $this->assign("centralSouthList",$centralSouthList); $this->assign("northeastList",$northeastList); $this->assign("southWestList",$southWestList); $this->assign("northWestList",$northWestList); $this->assign("northChinaList",$northChinaList); $this->assign("othersList",$othersList); /******************城市定位(改版)******************************/ $cityId=$_GET['cityid']; if (isset($cityId)) { //点击城市:传入城市id session('cityid',null); // 删除cityid //session('provinceid',null); // provinceid //将城市信息存入session session('cityid',$cityId); //$cityId = $_SESSION['cityid']; //echo "input cityid=".$cityId; } else { //城市id未传入,获取session中的 //获取session中的 if (session('?cityid')) { //session中存入cityid $cityId = $_SESSION['cityid']; } else{ //session中cityid未存入 //echo "getlocation"."
"; //获取定位信息 当数据库中不存在时值为-1 $myLocation=getLocation(); $locationId=getLocationId($myLocation); $provinceId=$locationId['provinceId']; $cityId=$locationId['cityId']; $this->assign("myCityName",$myLocation['city']); $this->assign("myProvinceName",$myLocation['province']); } } //控制显示 1.!isnull(cityId) && cityId>0 2.!isnull(provinceId) && provinceId>0 if (!is_null($cityId) && $cityId>0) { //前面点击某城市 $locationSql="select * from city join province on city.province_id=province.id where city.id=".$cityId; $locationList=$model->query($locationSql); $myCityName=$locationList[0]['city_name']; $myProvinceName=$locationList[0]['prov_name']; $this->assign("myCityName",$myCityName); $this->assign("myProvinceName",$myProvinceName); } /***************进入XXX建筑劳务网(定位)***************************/ $myLocation=getLocation(); $provinceName=$myLocation['province']; $cityName=$myLocation['city']; if ($provinceName == $cityName) { $this->assign('cityName',$provinceName); } else{ $this->assign('cityName',$cityName); } $locationId=getLocationId($myLocation); $provinceId=$locationId['provinceId']; $cityId=$locationId['cityId']; if (!is_null($cityId) && $cityId>0) { //城市存在 $sql="select * from city where id=".$cityId; $list=$model->query($sql); $provinceId=$list[0]['province_id']; } $this->assign('cityId',$cityId); $this->assign('provinceId',$provinceId); /********************************底部信息************************************/ $footList=getFoot(); $this->assign("footList",$footList); $this->display(); } } ?> 系统发生错误

:(

无法加载控制器:Address

错误位置

FILE: D:\slkj\jz_lw.com\ThinkPHP\Library\Think\App.class.php  LINE: 101

TRACE

#0 D:\slkj\jz_lw.com\ThinkPHP\Library\Think\App.class.php(101): E('\xE6\x97\xA0\xE6\xB3\x95\xE5\x8A\xA0\xE8\xBD\xBD\xE6\x8E\xA7...')
#1 D:\slkj\jz_lw.com\ThinkPHP\Library\Think\App.class.php(204): Think\App::exec()
#2 D:\slkj\jz_lw.com\ThinkPHP\Library\Think\Think.class.php(120): Think\App::run()
#3 D:\slkj\jz_lw.com\ThinkPHP\ThinkPHP.php(97): Think\Think::start()
#4 D:\slkj\jz_lw.com\index.php(30): require('D:\\slkj\\jz_lw.c...')
#5 {main}