$conf_type_lists=$confTypeModel->join(" A left join sh_sp_config B on A.`code` = B.type_code and B.sp_id = $id ")->field("A.id,A.`name`,A.`code`,B.`v`")->select();
$region_lists=$regionModel->where("pid = 1 and `status`=0")->select();
$region_city_lists=$regionModel->where("pid > 1 and `status`=0")->select();
$this->sp_lists=$sp_lists;
$this->conf_type_lists=$conf_type_lists;
$this->region_lists=$region_lists;
$this->region_city_lists=$region_city_lists;
$this->display();
...
...
@@ -44,6 +47,7 @@ class SpAction extends CommonAction{
//添加处理
publicfunctionaddHandle(){
$model=D("Sp");
$confModel=D("Conf");
$id=I('id','',int);
$data['name']=I("name");
...
...
@@ -53,11 +57,21 @@ class SpAction extends CommonAction{