getMainMenu2(); $info=pdo_get('zhtc_yellowstore',array('id'=>$_GPC['id'])); //$area=pdo_getall('zhtc_area',array('uniacid'=>$_W['uniacid'])); $type=pdo_getall('zhtc_yellowtype',array('uniacid'=>$_W['uniacid'],'state'=>1),array(),'','num asc'); //入住类型 $typein=pdo_getall('zhtc_yellowset',array('uniacid'=>$_W['uniacid'])); if($info['imgs']){ if(strpos($info['imgs'],',')){ $imgs= explode(',',$info['imgs']); }else{ $imgs=array( 0=>$info['imgs'] ); } } $coordinates=explode(',',$info['coordinates']); $list['coordinates']=array( 'lat'=>$coordinates['0'], 'lng'=>$coordinates['1'], ); //var_dump( $list['coordinates']);die; if(checksubmit('submit')){ if($_GPC['imgs']){ $data['imgs']=implode(",",$_GPC['imgs']); }else{ $data['imgs']=''; } $data['company_name']=$_GPC['company_name']; $data['company_address']=$_GPC['company_address']; $data['link_tel']=$_GPC['link_tel']; $data['logo']=$_GPC['logo']; $data['content']=$_GPC['content']; $data['coordinates']=$_GPC['op']['lat'].','.$_GPC['op']['lng']; $data['sort']=$_GPC['sort']; $data['views']=$_GPC['views']; $data['type_id']=$_GPC['type_id']; $data['type2_id']=$_GPC['type2_id']; if($_GPC['rz_type']){ $data['rz_type']=$_GPC['rz_type']; $data['time_over']=2; } $data['cityname']= $_COOKIE['cityname']; $res = pdo_update('zhtc_yellowstore', $data, array('id' => $_GPC['id'])); if($res){ message('编辑成功',$this->createWebUrl('inyellowstore',array()),'success'); }else{ message('编辑失败','','error'); } } include $this->template('web/inyellowstoreinfo');