...
|
...
|
@@ -58,8 +58,14 @@ class SchoolController extends AdminBaseController{ |
|
|
$this -> assign('data',$data);
|
|
|
$this -> assign('grade_class_str',$grade_class_str);
|
|
|
$this -> assign('grade_id_str',$grade_id_str);
|
|
|
$province = Db::name('area')->where(['pid'=>0])->select();
|
|
|
$province = Db::name('area')->where(['level'=>1])->select();
|
|
|
$data_city = Db::name('area')->where(['level'=>2,'name'=>$data['work_city']])->find();
|
|
|
$city = Db::name('area')->where(['pid'=>$data_city['pid'],'level'=>2])->select();
|
|
|
$data_county = Db::name('area')->where(['level'=>3,'name'=>$data['work_county']])->find();
|
|
|
$county = Db::name('area')->where(['level'=>3,'pid'=>$data_county['pid']])->select();
|
|
|
$this->assign('province',$province);
|
|
|
$this->assign('city',$city);
|
|
|
$this->assign('county',$county);
|
|
|
return $this -> fetch();
|
|
|
|
|
|
}
|
...
|
...
|
|