Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
U
User
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhangjun
User
Commits
245f1a7a
Commit
245f1a7a
authored
Dec 20, 2022
by
zhangjun
Browse files
Options
Browse Files
Download
Plain Diff
合并分支 'zj_edit_2' 到 'release'
修改 查看合并请求
!15
parents
de631078
b6e87d18
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
23 deletions
+50
-23
user.php
center/controllers/user.php
+6
-1
constants.php
esf_core/config/constants.php
+34
-17
user_model.php
esf_core/models/user_model.php
+10
-5
No files found.
center/controllers/user.php
View file @
245f1a7a
...
...
@@ -544,6 +544,11 @@ class User extends MY_Controller
echo
$result
;
exit
;
}
if
(
isset
(
$_GET
[
'zj'
])
&&
$_GET
[
'zj'
]
==
1
)
{
var_dump
(
$house
);
die
();
}
//分页开始
$data
[
'collect_num'
]
=
$this
->
num_5
;
$data
[
'pagesize'
]
=
5
;
//设定每一页显示的记录数
...
...
@@ -552,7 +557,7 @@ class User extends MY_Controller
$data
[
'page'
]
=
(
$data
[
'page'
]
>
$data
[
'pages'
]
&&
$data
[
'pages'
]
!=
0
)
?
$data
[
'pages'
]
:
$data
[
'page'
];
//判断跳转页数
$data
[
'offset'
]
=
$data
[
'pagesize'
]
*
(
$data
[
'page'
]
-
1
);
//计算记录偏移量
$data
[
'collect'
]
=
$this
->
user_model
->
getcollect
(
5
,
$this
->
user_id
,
$data
[
'offset'
],
$data
[
'pagesize'
]);
$data
[
'sarr'
]
=
$this
->
user_model
->
getSeachcondStr
(
$data
[
'collect'
]);
$data
[
'sarr'
]
=
$this
->
user_model
->
getSeachcondStr
(
$data
[
'collect'
]
,
'rent'
);
$data
[
'surl'
]
=
$this
->
user_model
->
getSeachcondUrl
(
$data
[
'collect'
],
5
);
//获取你可能感兴趣的租房
$data
[
'likerent'
]
=
$this
->
user_model
->
getlikehouse
(
$this
->
user_id
,
'rent'
,
4
);
...
...
esf_core/config/constants.php
View file @
245f1a7a
...
...
@@ -563,7 +563,8 @@ $conf_house['nj']= array(
//担保所用区属
"dist"
=>
array
(
'玄武区'
=>
'玄武区'
,
'鼓楼区'
=>
'鼓楼区'
,
'白下区'
=>
'白下区'
,
'建邺区'
=>
'建邺区'
,
'秦淮区'
=>
'秦淮区'
,
'下关区'
=>
'下关区'
,
'雨花台区'
=>
'雨花台区'
,
'栖霞区'
=>
'栖霞区'
,
'江宁区'
=>
'江宁区'
,
'浦口区'
=>
'浦口区'
,
'六合区'
=>
'六合区'
,
'大厂区'
=>
'大厂区'
,
'溧水县'
=>
'溧水县'
,
'高淳县'
=>
'高淳县'
),
"price_sell"
=>
array
(
'1'
=>
'40万以下'
,
'2'
=>
'40-60万'
,
'3'
=>
'60-90万'
,
'4'
=>
'90-120万'
,
'5'
=>
'120-150万'
,
'6'
=>
'150-200万'
,
'7'
=>
'200-300万'
,
'8'
=>
'300-500万'
,
'9'
=>
'500万以上'
),
"buildarea"
=>
array
(
'1'
=>
'40㎡以下'
,
'2'
=>
'40-60㎡'
,
'3'
=>
'60-80㎡'
,
'4'
=>
'80-100㎡'
,
'5'
=>
'100-120㎡'
,
'6'
=>
'120-140㎡'
,
'7'
=>
'140-200㎡'
,
'8'
=>
'200-400㎡'
,
'9'
=>
'400㎡以上'
),
"buildarea"
=>
array
(
'1'
=>
'50㎡以下'
,
'2'
=>
'50-80㎡'
,
'3'
=>
'80-100㎡'
,
'4'
=>
'100-120㎡'
,
'5'
=>
'120-150㎡'
,
'6'
=>
'150-200㎡'
,
'7'
=>
'200-300㎡'
,
'8'
=>
'300㎡以上'
),
"rent_buildarea"
=>
array
(
'1'
=>
'50㎡以下'
,
'2'
=>
'50-100㎡'
,
'3'
=>
'100-200㎡'
,
'4'
=>
'200-300㎡'
,
'5'
=>
'300-500㎡'
,
'6'
=>
'500-1000㎡'
,
'7'
=>
'1000㎡以上'
),
"price_rent"
=>
array
(
'1'
=>
'800元以下'
,
'2'
=>
'800-1200元'
,
'3'
=>
'1200-2000元'
,
'4'
=>
'2000-3000元'
,
'5'
=>
'3000-5000元'
,
'6'
=>
'5000-10000元'
,
'7'
=>
'10000元以上'
),
//写字楼价格
"price_office"
=>
array
(
'1'
=>
'1元/平米*天以下'
,
'2'
=>
'1-2元'
,
'3'
=>
' 2-3元'
,
'4'
=>
'3-4元'
,
'5'
=>
' 4-5元'
,
'6'
=>
'5-7元'
,
'7'
=>
'7-9元'
,
'8'
=>
'9-12元'
,
'9'
=>
'12元/平米*天以上'
),
...
...
@@ -575,7 +576,8 @@ $conf_house['nj']= array(
$conf_house
[
'wx'
]
=
array
(
"district"
=>
array
(
'滨湖区'
=>
'滨湖区'
,
'惠山区'
=>
'惠山区'
,
'锡山区'
=>
'锡山区'
,
'梁溪区'
=>
'梁溪区'
,
'新吴区'
=>
'新吴区'
,
'其他'
=>
'其他'
),
"price_sell"
=>
array
(
'1'
=>
'40万以下'
,
'2'
=>
'40-60万'
,
'3'
=>
'60-90万'
,
'4'
=>
'90-120万'
,
'5'
=>
'120-150万'
,
'6'
=>
'150-200万'
,
'7'
=>
'200-300万'
,
'8'
=>
'300-500万'
,
'9'
=>
'500万以上'
),
"buildarea"
=>
array
(
'1'
=>
'50平米以下'
,
'2'
=>
'50-70平米'
,
'3'
=>
'70-90平米'
,
'4'
=>
'90-110平米'
,
'5'
=>
'110-144平米'
,
'6'
=>
'144-200平米'
,
'7'
=>
'200-400平米'
,
'8'
=>
'400平米以上'
),
"buildarea"
=>
array
(
'1'
=>
'50平米以下'
,
'2'
=>
'50-80平米'
,
'3'
=>
'80-100平米'
,
'4'
=>
'100-120平米'
,
'5'
=>
'120-150平米'
,
'6'
=>
'150-200平米'
,
'7'
=>
'200-300平米'
,
'8'
=>
'300平米以上'
),
"rent_buildarea"
=>
array
(
'1'
=>
'50平米以下'
,
'2'
=>
'50-80平米'
,
'3'
=>
'80-100平米'
,
'4'
=>
'100-120平米'
,
'5'
=>
'120-150平米'
,
'6'
=>
'150-200平米'
,
'7'
=>
'200-300平米'
,
'8'
=>
'300平米以上'
),
"price_rent"
=>
array
(
'1'
=>
'800元以下'
,
'2'
=>
'800-1200元'
,
'3'
=>
'1200-2000元'
,
'4'
=>
'2000-3000元'
,
'5'
=>
'3000-5000元'
,
'6'
=>
'5000-10000元'
,
'7'
=>
'10000元以上'
),
//写字楼价格
"price_office"
=>
array
(
'1'
=>
'5000元以下'
,
'2'
=>
'5000-8000元'
,
'3'
=>
'8000-1万元'
,
'4'
=>
'1-1.5万'
,
'5'
=>
'1.5-2万'
,
'6'
=>
'2-5万'
,
'7'
=>
'5万以上'
),
...
...
@@ -597,7 +599,8 @@ $conf_house['cq']= array(
$conf_house
[
'cz'
]
=
array
(
"district"
=>
array
(
'天宁'
=>
'天宁'
,
'钟楼'
=>
'钟楼'
,
'武进'
=>
'武进'
,
'新北'
=>
'新北'
,
'戚墅堰'
=>
'戚墅堰'
,
'金坛'
=>
'金坛'
,
'溧阳'
=>
'溧阳'
,
'常州周边'
=>
'常州周边'
),
"price_sell"
=>
array
(
'1'
=>
'50万以下'
,
'2'
=>
'50-80万'
,
'3'
=>
'80-100万'
,
'4'
=>
'100-120万'
,
'5'
=>
'120-150万'
,
'6'
=>
'150-200万'
,
'7'
=>
'200-300万'
,
'8'
=>
'300万以上'
),
"buildarea"
=>
array
(
'1'
=>
'60平米以下'
,
'2'
=>
'60-80平米'
,
'3'
=>
'80-100平米'
,
'4'
=>
'100-120平米'
,
'5'
=>
'120-150平米'
,
'6'
=>
'150平米以上'
),
"buildarea"
=>
array
(
'1'
=>
'50㎡以下'
,
'2'
=>
'50-80㎡'
,
'3'
=>
'80-100㎡'
,
'4'
=>
'100-120㎡'
,
'5'
=>
'120-150㎡'
,
'6'
=>
'150-200㎡'
,
'7'
=>
'200-300㎡'
,
'8'
=>
'300㎡以上'
),
"rent_buildarea"
=>
array
(
'1'
=>
'50㎡以下'
,
'2'
=>
'50-100㎡'
,
'3'
=>
'100-200㎡'
,
'4'
=>
'200-300㎡'
,
'5'
=>
'300-500㎡'
,
'6'
=>
'500-1000㎡'
,
'7'
=>
'1000㎡以上'
),
"price_rent"
=>
array
(
'1'
=>
'500元以下'
,
'2'
=>
'500-1000元'
,
'3'
=>
'1000-2000元'
,
'4'
=>
'2000-3000元'
,
'5'
=>
'3000-5000元'
,
'6'
=>
'5000元以上'
),
//写字楼价格
"price_office"
=>
array
(
'1'
=>
'5000元以下'
,
'2'
=>
'5000-8000元'
,
'3'
=>
'8000-1万元'
,
'4'
=>
'1-1.5万'
,
'5'
=>
'1.5-2万'
,
'6'
=>
'2-5万'
,
'7'
=>
'5万以上'
),
...
...
@@ -622,7 +625,8 @@ $conf_house['hf']= array(
$conf_house
[
'hz'
]
=
array
(
"district"
=>
array
(
'上城区'
=>
'上城区'
,
'下城区'
=>
'下城区'
,
'江干区'
=>
'江干区'
,
'拱墅区'
=>
'拱墅区'
,
'西湖区'
=>
'西湖区'
,
'滨江区'
=>
'滨江区'
,
'余杭区'
=>
'余杭区'
,
'萧山区'
=>
'萧山区'
,
'富阳市'
=>
'富阳市'
,
'临安市'
=>
'临安市'
,
'建德市'
=>
'建德市'
,
'桐庐县'
=>
'桐庐县'
,
'淳安县'
=>
'淳安县'
,
'其他'
=>
'其他'
),
"price_sell"
=>
array
(
'1'
=>
'40万以下'
,
'2'
=>
'40-60万'
,
'3'
=>
'60-90万'
,
'4'
=>
'90-120万'
,
'5'
=>
'120-150万'
,
'6'
=>
'150-200万'
,
'7'
=>
'200-300万'
,
'8'
=>
'300-500万'
,
'9'
=>
'500万以上'
),
"buildarea"
=>
array
(
'1'
=>
'40平米以下'
,
'2'
=>
'40-60平米'
,
'3'
=>
'60-80平米'
,
'4'
=>
'80-100平米'
,
'5'
=>
'100-120平米'
,
'6'
=>
'120-144平米'
,
'7'
=>
'144-200平米'
,
'8'
=>
'200-400平米'
,
'9'
=>
'400平米以上'
),
"buildarea"
=>
array
(
'1'
=>
'50㎡以下'
,
'2'
=>
'50-80㎡'
,
'3'
=>
'80-100㎡'
,
'4'
=>
'100-120㎡'
,
'5'
=>
'120-150㎡'
,
'6'
=>
'150-200㎡'
,
'7'
=>
'200-300㎡'
,
'8'
=>
'300㎡以上'
),
"rent_buildarea"
=>
array
(
'1'
=>
'50㎡以下'
,
'2'
=>
'50-100㎡'
,
'3'
=>
'100-200㎡'
,
'4'
=>
'200-300㎡'
,
'5'
=>
'300-500㎡'
,
'6'
=>
'500-1000㎡'
,
'7'
=>
'1000㎡以上'
),
"totalf"
=>
array
(
'1'
=>
'多层'
,
'2'
=>
'小高层'
,
'3'
=>
'高层'
,
'4'
=>
'复式'
),
"price_rent"
=>
array
(
'1'
=>
'800元以下'
,
'2'
=>
'800-1200元'
,
'3'
=>
'1200-2000元'
,
'4'
=>
'2000-3000元'
,
'5'
=>
'3000-5000元'
,
'6'
=>
'5000-10000元'
,
'7'
=>
'10000元以上'
),
//写字楼价格
...
...
@@ -645,7 +649,8 @@ $conf_house['ks']= array(
$conf_house
[
'sy'
]
=
array
(
"district"
=>
array
(
'大东'
=>
'大东'
,
'东陵'
=>
'东陵'
,
'和平'
=>
'和平'
,
'皇姑'
=>
'皇姑'
,
'浑南新区'
=>
'浑南新区'
,
'苏家屯'
=>
'苏家屯'
,
'沈北新区'
=>
'沈北新区'
,
'沈河'
=>
'沈河'
,
'铁西'
=>
'铁西'
,
'于洪'
=>
'于洪'
,
'新民'
=>
'新民'
,
'辽中'
=>
'辽中'
,
'其他'
=>
'其他'
),
"price_sell"
=>
array
(
'1'
=>
'30万以下'
,
'2'
=>
'30-50万'
,
'3'
=>
'50-80万'
,
'4'
=>
'80-120万'
,
'5'
=>
'120-150万'
,
'6'
=>
'150-200万'
,
'7'
=>
'200万以上'
),
"buildarea"
=>
array
(
'1'
=>
'50平米以下'
,
'2'
=>
'50-80平米'
,
'3'
=>
'80-120平米'
,
'4'
=>
'120-140平米'
,
'5'
=>
'140-200平米'
,
'6'
=>
'200-300平米'
,
'7'
=>
'300平米以上'
),
"buildarea"
=>
array
(
'1'
=>
'50㎡以下'
,
'2'
=>
'50-80㎡'
,
'3'
=>
'80-100㎡'
,
'4'
=>
'100-120㎡'
,
'5'
=>
'120-150㎡'
,
'6'
=>
'150-200㎡'
,
'7'
=>
'200-300㎡'
,
'8'
=>
'300㎡以上'
),
"rent_buildarea"
=>
array
(
'1'
=>
'50㎡以下'
,
'2'
=>
'50-100㎡'
,
'3'
=>
'100-200㎡'
,
'4'
=>
'200-300㎡'
,
'5'
=>
'300-500㎡'
,
'6'
=>
'500-1000㎡'
,
'7'
=>
'1000㎡以上'
),
"price_rent"
=>
array
(
'1'
=>
'800元以下'
,
'2'
=>
'800-1200元'
,
'3'
=>
'1200-1800元'
,
'4'
=>
'1800-2200元'
,
'5'
=>
'2200-3000元'
,
'6'
=>
'3000-5000元'
,
'7'
=>
'5000元以上'
),
"floortypesell"
=>
array
(
'1'
=>
'任意'
,
'2'
=>
'1层'
,
'3'
=>
'2-5层'
,
'4'
=>
'6-12层'
,
'5'
=>
'13层以上'
)
);
...
...
@@ -653,7 +658,8 @@ $conf_house['sy']= array(
$conf_house
[
'sz'
]
=
array
(
"district"
=>
array
(
'园区'
=>
'园区'
,
'姑苏区'
=>
'姑苏区'
,
'新区'
=>
'新区'
,
'吴中区'
=>
'吴中区'
,
'相城区'
=>
'相城区'
,
'吴江'
=>
'吴江'
,
'昆山'
=>
'昆山'
,
'太仓'
=>
'太仓'
,
'常熟'
=>
'常熟'
,
'张家港'
=>
'张家港'
),
"price_sell"
=>
array
(
'1'
=>
'40万以下'
,
'2'
=>
'40-60万'
,
'3'
=>
'60-90万'
,
'4'
=>
'90-120万'
,
'5'
=>
'120-150万'
,
'6'
=>
'150-200万'
,
'7'
=>
'200-300万'
,
'8'
=>
'300-500万'
,
'9'
=>
'500万以上'
),
"buildarea"
=>
array
(
'1'
=>
'40平米以下'
,
'2'
=>
'40-60平米'
,
'3'
=>
'60-80平米'
,
'4'
=>
'80-100平米'
,
'5'
=>
'100-120平米'
,
'6'
=>
'120-144平米'
,
'7'
=>
'144-200平米'
,
'8'
=>
'200-400平米'
,
'9'
=>
'400平米以上'
),
"buildarea"
=>
array
(
'1'
=>
'50㎡以下'
,
'2'
=>
'50-80㎡'
,
'3'
=>
'80-100㎡'
,
'4'
=>
'100-120㎡'
,
'5'
=>
'120-150㎡'
,
'6'
=>
'150-200㎡'
,
'7'
=>
'200-300㎡'
,
'8'
=>
'300㎡以上'
),
"rent_buildarea"
=>
array
(
'1'
=>
'50㎡以下'
,
'2'
=>
'50-100㎡'
,
'3'
=>
'100-200㎡'
,
'4'
=>
'200-300㎡'
,
'5'
=>
'300-500㎡'
,
'6'
=>
'500-1000㎡'
,
'7'
=>
'1000㎡以上'
),
"price_rent"
=>
array
(
'1'
=>
'800元以下'
,
'2'
=>
'800-1400元'
,
'3'
=>
'1400-2000元'
,
'4'
=>
'2000-3000元'
),
"roomtype"
=>
array
(
'1'
=>
'一室'
,
'2'
=>
'二室'
,
'3'
=>
'三室'
,
'4'
=>
'四室'
,
'5'
=>
'五室'
),
//写字楼价格
...
...
@@ -666,7 +672,8 @@ $conf_house['sz']= array(
$conf_house
[
'wh'
]
=
array
(
"district"
=>
array
(
'镜湖区'
=>
'镜湖区'
,
'鸠江区'
=>
'鸠江区'
,
'弋江区'
=>
'弋江区'
,
'三山区'
=>
'三山区'
,
'开发区'
=>
'开发区'
,
'芜湖县'
=>
'芜湖县'
,
'繁昌县'
=>
'繁昌县'
,
'南陵县'
=>
'南陵县'
,
'无为县'
=>
'无为县'
),
"price_sell"
=>
array
(
'1'
=>
'30万以下'
,
'2'
=>
'30-50万'
,
'3'
=>
'50-60万'
,
'4'
=>
'60-70万'
,
'5'
=>
'70-80万'
,
'6'
=>
'80-100万'
,
'7'
=>
'100-120万'
,
'8'
=>
'120-150万'
,
'9'
=>
'150万以上'
),
"buildarea"
=>
array
(
'1'
=>
'60平米以下'
,
'2'
=>
'60-80平米'
,
'3'
=>
'80-100平米'
,
'4'
=>
'100-120平米'
,
'5'
=>
'120-150平米'
,
'6'
=>
'150平米以上'
),
"buildarea"
=>
array
(
'1'
=>
'50㎡以下'
,
'2'
=>
'50-80㎡'
,
'3'
=>
'80-100㎡'
,
'4'
=>
'100-120㎡'
,
'5'
=>
'120-150㎡'
,
'6'
=>
'150-200㎡'
,
'7'
=>
'200-300㎡'
,
'8'
=>
'300㎡以上'
),
"rent_buildarea"
=>
array
(
'1'
=>
'50㎡以下'
,
'2'
=>
'50-100㎡'
,
'3'
=>
'100-200㎡'
,
'4'
=>
'200-300㎡'
,
'5'
=>
'300-500㎡'
,
'6'
=>
'500-1000㎡'
,
'7'
=>
'1000㎡以上'
),
"price_rent"
=>
array
(
'1'
=>
'500元以下'
,
'2'
=>
'500-800元'
,
'3'
=>
'800-1500元'
,
'4'
=>
'1500-2500元'
,
'5'
=>
'2500-4000元'
,
'6'
=>
'4000元以上'
),
//写字楼价格
"price_office"
=>
array
(
'1'
=>
'5000元以下'
,
'2'
=>
'5000-8000元'
,
'3'
=>
'8000-1万元'
,
'4'
=>
'1-1.5万'
,
'5'
=>
'1.5-2万'
,
'6'
=>
'2-5万'
,
'7'
=>
'5万以上'
),
...
...
@@ -676,7 +683,8 @@ $conf_house['wh']= array(
$conf_house
[
'xa'
]
=
array
(
"district"
=>
array
(
'高新'
=>
'高新'
,
'城南'
=>
'城南'
,
'长安'
=>
'长安'
,
'城北'
=>
'城北'
,
'城西'
=>
'城西'
,
'城东'
=>
'城东'
,
'城内'
=>
'城内'
,
'西安周边'
=>
'西安周边'
,
'临潼'
=>
'临潼'
,
'阎良'
=>
'阎良'
,
'蓝田'
=>
'蓝田'
),
"price_sell"
=>
array
(
'1'
=>
'30万以下'
,
'2'
=>
'30-50万'
,
'3'
=>
'50-80万'
,
'4'
=>
'80-120万'
,
'5'
=>
'120-150万'
,
'6'
=>
'150-200万'
,
'7'
=>
'200万以上'
),
"buildarea"
=>
array
(
'1'
=>
'40㎡以下'
,
'2'
=>
'40-60㎡'
,
'3'
=>
'60-80㎡'
,
'4'
=>
'80-100㎡'
,
'5'
=>
'100-120㎡'
,
'6'
=>
'120-150㎡'
,
'7'
=>
'150-200㎡'
,
'8'
=>
'200-400㎡'
,
'9'
=>
'400㎡以上'
),
"buildarea"
=>
array
(
'1'
=>
'50㎡以下'
,
'2'
=>
'50-80㎡'
,
'3'
=>
'80-100㎡'
,
'4'
=>
'100-120㎡'
,
'5'
=>
'120-150㎡'
,
'6'
=>
'150-200㎡'
,
'7'
=>
'200-300㎡'
,
'8'
=>
'300㎡以上'
),
"rent_buildarea"
=>
array
(
'1'
=>
'50㎡以下'
,
'2'
=>
'50-100㎡'
,
'3'
=>
'100-200㎡'
,
'4'
=>
'200-300㎡'
,
'5'
=>
'300-500㎡'
,
'6'
=>
'500-1000㎡'
,
'7'
=>
'1000㎡以上'
),
"price_rent"
=>
array
(
'1'
=>
'400元以下'
,
'2'
=>
'400-800元'
,
'3'
=>
'800-1200元'
,
'4'
=>
'1200-1800元'
,
'5'
=>
'1800-2200元'
,
'6'
=>
'2200-4000元'
,
'7'
=>
'4000元以上'
),
//写字楼价格
"price_office"
=>
array
(
'1'
=>
'5000元以下'
,
'2'
=>
'5000-8000元'
,
'3'
=>
'8000-1万元'
,
'4'
=>
'1-1.5万'
,
'5'
=>
'1.5-2万'
,
'6'
=>
'2-5万'
,
'7'
=>
'5万以上'
),
...
...
@@ -738,7 +746,7 @@ $conf_house['tx']= array(
$conf_house
[
'jx'
]
=
array
(
"district"
=>
array
(
'嘉善'
=>
'嘉善'
,
'平湖'
=>
'平湖'
,
'海盐'
=>
'海盐'
,
'海宁'
=>
'海宁'
,
'桐乡'
=>
'桐乡'
,
'秀洲新区'
=>
'秀洲新区'
,
'南湖新区'
=>
'南湖新区'
,
'中心城区'
=>
'中心城区'
,
'城西区'
=>
'城西区'
,
'城北区'
=>
'城北区'
,
'西南区'
=>
'西南区'
,
'国际商务区'
=>
'国际商务区'
,
'城南区'
=>
'城南区'
,
'湘家荡度假区'
=>
'湘家荡度假区'
,
'其他'
=>
'其他'
),
"price_sell"
=>
array
(
'1'
=>
'40万以下'
,
'2'
=>
'40-60万'
,
'3'
=>
'60-90万'
,
'4'
=>
'90-120万'
,
'5'
=>
'120-150万'
,
'6'
=>
'150-200万'
,
'7'
=>
'200-300万'
,
'8'
=>
'300-500万'
,
'9'
=>
'500万以上'
),
"buildarea"
=>
array
(
'1'
=>
'
40㎡以下'
,
'2'
=>
'40-60㎡'
,
'3'
=>
'60-80㎡'
,
'4'
=>
'80-100㎡'
,
'5'
=>
'100-120㎡'
,
'6'
=>
'120-150㎡'
,
'7'
=>
'150-200㎡'
,
'8'
=>
'200-400㎡'
,
'9'
=>
'4
00㎡以上'
),
"buildarea"
=>
array
(
'1'
=>
'
100㎡以下'
,
'2'
=>
'100-120㎡'
,
'3'
=>
'120-150㎡'
,
'4'
=>
'150-200㎡'
,
'5'
=>
'200-300㎡'
,
'6'
=>
'3
00㎡以上'
),
"price_rent"
=>
array
(
'1'
=>
'500元以下'
,
'2'
=>
'500-800元'
,
'3'
=>
'800-1500元'
,
'4'
=>
'1500-2500元'
,
'5'
=>
'2500-4000元'
,
'6'
=>
'4000元以上'
),
//写字楼价格
"price_office"
=>
array
(
'1'
=>
'5000元以下'
,
'2'
=>
'5000-8000元'
,
'3'
=>
'8000-1万元'
,
'4'
=>
'1-1.5万'
,
'5'
=>
'1.5-2万'
,
'6'
=>
'2-5万'
,
'7'
=>
'5万以上'
),
...
...
@@ -758,7 +766,8 @@ $conf_house['bb']= array(
$conf_house
[
'gy'
]
=
array
(
"district"
=>
array
(
'云岩'
=>
'云岩'
,
'南明'
=>
'南明'
,
'观山湖'
=>
'观山湖'
,
'小河'
=>
'小河'
,
'乌当'
=>
'乌当'
,
'花溪'
=>
'花溪'
,
'白云'
=>
'白云'
,
'清镇'
=>
'清镇'
,
'开阳'
=>
'开阳'
,
'修文'
=>
'修文'
,
'息烽'
=>
'息烽'
,
'其他'
=>
'其他'
),
"price_sell"
=>
array
(
'1'
=>
'40万以下'
,
'2'
=>
'40-60万'
,
'3'
=>
'60-90万'
,
'4'
=>
'90-120万'
,
'5'
=>
'120-150万'
,
'6'
=>
'150-200万'
,
'7'
=>
'200-300万'
,
'8'
=>
'300-500万'
,
'9'
=>
'500万以上'
),
"buildarea"
=>
array
(
'1'
=>
'40㎡以下'
,
'2'
=>
'40-60㎡'
,
'3'
=>
'60-80㎡'
,
'4'
=>
'80-100㎡'
,
'5'
=>
'100-120㎡'
,
'6'
=>
'120-150㎡'
,
'7'
=>
'150-200㎡'
,
'8'
=>
'200-400㎡'
,
'9'
=>
'400㎡以上'
),
"buildarea"
=>
array
(
'1'
=>
'50㎡以下'
,
'2'
=>
'50-80㎡'
,
'3'
=>
'80-100㎡'
,
'4'
=>
'100-120㎡'
,
'5'
=>
'120-150㎡'
,
'6'
=>
'150-200㎡'
,
'7'
=>
'200-300㎡'
,
'8'
=>
'300㎡以上'
),
"rent_buildarea"
=>
array
(
'1'
=>
'50㎡以下'
,
'2'
=>
'50-100㎡'
,
'3'
=>
'100-200㎡'
,
'4'
=>
'200-300㎡'
,
'5'
=>
'300-500㎡'
,
'6'
=>
'500-1000㎡'
,
'7'
=>
'1000㎡以上'
),
"price_rent"
=>
array
(
'1'
=>
'500元以下'
,
'2'
=>
'500-800元'
,
'3'
=>
'800-1500元'
,
'4'
=>
'1500-2500元'
,
'5'
=>
'2500-4000元'
,
'6'
=>
'4000元以上'
),
//写字楼价格
"price_office"
=>
array
(
'1'
=>
'5000元以下'
,
'2'
=>
'5000-8000元'
,
'3'
=>
'8000-1万元'
,
'4'
=>
'1-1.5万'
,
'5'
=>
'1.5-2万'
,
'6'
=>
'2-5万'
,
'7'
=>
'5万以上'
),
...
...
@@ -768,7 +777,8 @@ $conf_house['gy']= array(
$conf_house
[
'sh'
]
=
array
(
"district"
=>
array
(
'浦东'
=>
'浦东'
,
'闵行'
=>
'闵行'
,
'徐汇'
=>
'徐汇'
,
'宝山'
=>
'宝山'
,
'普陀'
=>
'普陀'
,
'长宁'
=>
'长宁'
,
'杨浦'
=>
'杨浦'
,
'松江'
=>
'松江'
,
'嘉定'
=>
'嘉定'
,
'虹口'
=>
'虹口'
,
'闸北'
=>
'闸北'
,
'静安'
=>
'静安'
,
'黄浦'
=>
'黄浦'
,
'卢湾'
=>
'卢湾'
,
'青浦'
=>
'青浦'
,
'奉贤'
=>
'奉贤'
,
'金山'
=>
'金山'
,
'崇明'
=>
'崇明'
,
'上海周边'
=>
'上海周边'
),
"price_sell"
=>
array
(
'1'
=>
'40万以下'
,
'2'
=>
'40-60万'
,
'3'
=>
'60-90万'
,
'4'
=>
'90-120万'
,
'5'
=>
'120-150万'
,
'6'
=>
'150-200万'
,
'7'
=>
'200-300万'
,
'8'
=>
'300-500万'
,
'9'
=>
'500万以上'
),
"buildarea"
=>
array
(
'1'
=>
'40㎡以下'
,
'2'
=>
'40-60㎡'
,
'3'
=>
'60-80㎡'
,
'4'
=>
'80-100㎡'
,
'5'
=>
'100-120㎡'
,
'6'
=>
'120-150㎡'
,
'7'
=>
'150-200㎡'
,
'8'
=>
'200-400㎡'
,
'9'
=>
'400㎡以上'
),
"buildarea"
=>
array
(
'1'
=>
'50㎡以下'
,
'2'
=>
'50-80㎡'
,
'3'
=>
'80-100㎡'
,
'4'
=>
'100-120㎡'
,
'5'
=>
'120-150㎡'
,
'6'
=>
'150-200㎡'
,
'7'
=>
'200-300㎡'
,
'8'
=>
'300㎡以上'
),
"rent_buildarea"
=>
array
(
'1'
=>
'50㎡以下'
,
'2'
=>
'50-100㎡'
,
'3'
=>
'100-200㎡'
,
'4'
=>
'200-300㎡'
,
'5'
=>
'300-500㎡'
,
'6'
=>
'500-1000㎡'
,
'7'
=>
'1000㎡以上'
),
"price_rent"
=>
array
(
'1'
=>
'500元以下'
,
'2'
=>
'500-800元'
,
'3'
=>
'800-1500元'
,
'4'
=>
'1500-2500元'
,
'5'
=>
'2500-4000元'
,
'6'
=>
'4000元以上'
),
//写字楼价格
"price_office"
=>
array
(
'1'
=>
'5000元以下'
,
'2'
=>
'5000-8000元'
,
'3'
=>
'8000-1万元'
,
'4'
=>
'1-1.5万'
,
'5'
=>
'1.5-2万'
,
'6'
=>
'2-5万'
,
'7'
=>
'5万以上'
),
...
...
@@ -778,7 +788,8 @@ $conf_house['sh']= array(
$conf_house
[
'bh'
]
=
array
(
"district"
=>
array
(
'海城区'
=>
'海城区'
,
'银海区'
=>
'银海区'
,
'铁山港'
=>
'铁山港'
,
'合浦县'
=>
'合浦县'
,
'其他区县'
=>
'其他区县'
),
"price_sell"
=>
array
(
'1'
=>
'40万以下'
,
'2'
=>
'40-60万'
,
'3'
=>
'60-90万'
,
'4'
=>
'90-120万'
,
'5'
=>
'120-150万'
,
'6'
=>
'150-200万'
,
'7'
=>
'200-300万'
,
'8'
=>
'300-500万'
,
'9'
=>
'500万以上'
),
"buildarea"
=>
array
(
'1'
=>
'40㎡以下'
,
'2'
=>
'40-60㎡'
,
'3'
=>
'60-80㎡'
,
'4'
=>
'80-100㎡'
,
'5'
=>
'100-120㎡'
,
'6'
=>
'120-150㎡'
,
'7'
=>
'150-200㎡'
,
'8'
=>
'200-400㎡'
,
'9'
=>
'400㎡以上'
),
"buildarea"
=>
array
(
'1'
=>
'50㎡以下'
,
'2'
=>
'50-80㎡'
,
'3'
=>
'80-100㎡'
,
'4'
=>
'100-120㎡'
,
'5'
=>
'120-150㎡'
,
'6'
=>
'150-200㎡'
,
'7'
=>
'200-300㎡'
,
'8'
=>
'300㎡以上'
),
"rent_buildarea"
=>
array
(
'1'
=>
'50㎡以下'
,
'2'
=>
'50-100㎡'
,
'3'
=>
'100-200㎡'
,
'4'
=>
'200-300㎡'
,
'5'
=>
'300-500㎡'
,
'6'
=>
'500-1000㎡'
,
'7'
=>
'1000㎡以上'
),
"price_rent"
=>
array
(
'1'
=>
'500元以下'
,
'2'
=>
'500-800元'
,
'3'
=>
'800-1500元'
,
'4'
=>
'1500-2500元'
,
'5'
=>
'2500-4000元'
,
'6'
=>
'4000元以上'
),
//写字楼价格
"price_office"
=>
array
(
'1'
=>
'5000元以下'
,
'2'
=>
'5000-8000元'
,
'3'
=>
'8000-1万元'
,
'4'
=>
'1-1.5万'
,
'5'
=>
'1.5-2万'
,
'6'
=>
'2-5万'
,
'7'
=>
'5万以上'
),
...
...
@@ -799,7 +810,8 @@ $conf_house['nc']= array(
$conf_house
[
'lyg'
]
=
array
(
"district"
=>
array
(
'新浦'
=>
'新浦'
,
'海州'
=>
'海州'
,
'连云'
=>
'连云'
,
'开发'
=>
'开发'
,
'灌南'
=>
'灌南'
,
'灌云'
=>
'灌云'
,
'东海'
=>
'东海'
,
'赣榆'
=>
'赣榆'
),
"price_sell"
=>
array
(
'1'
=>
'40万以下'
,
'2'
=>
'40-60万'
,
'3'
=>
'60-90万'
,
'4'
=>
'90-120万'
,
'5'
=>
'120-150万'
,
'6'
=>
'150-200万'
,
'7'
=>
'200-300万'
,
'8'
=>
'300-500万'
,
'9'
=>
'500万以上'
),
"buildarea"
=>
array
(
'1'
=>
'40㎡以下'
,
'2'
=>
'40-60㎡'
,
'3'
=>
'60-80㎡'
,
'4'
=>
'80-100㎡'
,
'5'
=>
'100-120㎡'
,
'6'
=>
'120-150㎡'
,
'7'
=>
'150-200㎡'
,
'8'
=>
'200-400㎡'
,
'9'
=>
'400㎡以上'
),
"buildarea"
=>
array
(
'1'
=>
'50㎡以下'
,
'2'
=>
'50-80㎡'
,
'3'
=>
'80-100㎡'
,
'4'
=>
'100-120㎡'
,
'5'
=>
'120-150㎡'
,
'6'
=>
'150-200㎡'
,
'7'
=>
'200-300㎡'
,
'8'
=>
'300㎡以上'
),
"rent_buildarea"
=>
array
(
'1'
=>
'50㎡以下'
,
'2'
=>
'50-100㎡'
,
'3'
=>
'100-200㎡'
,
'4'
=>
'200-300㎡'
,
'5'
=>
'300-500㎡'
,
'6'
=>
'500-1000㎡'
,
'7'
=>
'1000㎡以上'
),
"price_rent"
=>
array
(
'1'
=>
'500元以下'
,
'2'
=>
'500-800元'
,
'3'
=>
'800-1500元'
,
'4'
=>
'1500-2500元'
,
'5'
=>
'2500-4000元'
,
'6'
=>
'4000元以上'
),
//写字楼价格
"price_office"
=>
array
(
'1'
=>
'5000元以下'
,
'2'
=>
'5000-8000元'
,
'3'
=>
'8000-1万元'
,
'4'
=>
'1-1.5万'
,
'5'
=>
'1.5-2万'
,
'6'
=>
'2-5万'
,
'7'
=>
'5万以上'
),
...
...
@@ -841,7 +853,8 @@ $conf_house['ty']= array(
$conf_house
[
'aq'
]
=
array
(
"district"
=>
array
(
'迎江区'
=>
'迎江区'
,
'大观区'
=>
'大观区'
,
'宜秀区'
=>
'宜秀区'
,
'怀宁县'
=>
'怀宁县'
,
'枞阳县'
=>
'枞阳县'
,
'潜山县'
=>
'潜山县'
,
'太湖县'
=>
'太湖县'
,
'宿松县'
=>
'宿松县'
,
'望江县'
=>
'望江县'
,
'岳西县'
=>
'岳西县'
,
'桐城市'
=>
'桐城市'
),
"price_sell"
=>
array
(
'1'
=>
'40万以下'
,
'2'
=>
'40-60万'
,
'3'
=>
'60-90万'
,
'4'
=>
'90-120万'
,
'5'
=>
'120-150万'
,
'6'
=>
'150-200万'
,
'7'
=>
'200-300万'
,
'8'
=>
'300-500万'
,
'9'
=>
'500万以上'
),
"buildarea"
=>
array
(
'1'
=>
'40㎡以下'
,
'2'
=>
'40-60㎡'
,
'3'
=>
'60-80㎡'
,
'4'
=>
'80-100㎡'
,
'5'
=>
'100-120㎡'
,
'6'
=>
'120-150㎡'
,
'7'
=>
'150-200㎡'
,
'8'
=>
'200-400㎡'
,
'9'
=>
'400㎡以上'
),
"buildarea"
=>
array
(
'1'
=>
'50㎡以下'
,
'2'
=>
'50-80㎡'
,
'3'
=>
'80-100㎡'
,
'4'
=>
'100-120㎡'
,
'5'
=>
'120-150㎡'
,
'6'
=>
'150-200㎡'
,
'7'
=>
'200-300㎡'
,
'8'
=>
'300㎡以上'
),
"rent_buildarea"
=>
array
(
'1'
=>
'50㎡以下'
,
'2'
=>
'50-100㎡'
,
'3'
=>
'100-200㎡'
,
'4'
=>
'200-300㎡'
,
'5'
=>
'300-500㎡'
,
'6'
=>
'500-1000㎡'
,
'7'
=>
'1000㎡以上'
),
"price_rent"
=>
array
(
'1'
=>
'500元以下'
,
'2'
=>
'500-800元'
,
'3'
=>
'800-1500元'
,
'4'
=>
'1500-2500元'
,
'5'
=>
'2500-4000元'
,
'6'
=>
'4000元以上'
),
//写字楼价格
"price_office"
=>
array
(
'1'
=>
'5000元以下'
,
'2'
=>
'5000-8000元'
,
'3'
=>
'8000-1万元'
,
'4'
=>
'1-1.5万'
,
'5'
=>
'1.5-2万'
,
'6'
=>
'2-5万'
,
'7'
=>
'5万以上'
),
...
...
@@ -878,7 +891,8 @@ $conf_house['bd']= array(
$conf_house
[
'nn'
]
=
array
(
"district"
=>
array
(
'兴宁区'
=>
'兴宁区'
,
'青秀区'
=>
'青秀区'
,
'江南区'
=>
'江南区'
,
'西乡塘区'
=>
'西乡塘区'
,
'良庆区'
=>
'良庆区'
,
'邕宁区'
=>
'邕宁区'
,
'武鸣区'
=>
'武鸣区'
),
"price_sell"
=>
array
(
'1'
=>
'20万以下'
,
'2'
=>
'20-30万'
,
'3'
=>
'30-40万'
,
'4'
=>
'40-50万'
,
'5'
=>
'50-60万'
,
'6'
=>
'60-70万'
,
'7'
=>
'70-100万'
,
'8'
=>
'100万以上'
),
"buildarea"
=>
array
(
'1'
=>
'40㎡以下'
,
'2'
=>
'40-60㎡'
,
'3'
=>
'60-80㎡'
,
'4'
=>
'80-100㎡'
,
'5'
=>
'100-120㎡'
,
'6'
=>
'120-150㎡'
,
'7'
=>
'150-200㎡'
,
'8'
=>
'200-400㎡'
,
'9'
=>
'400㎡以上'
),
"buildarea"
=>
array
(
'1'
=>
'50㎡以下'
,
'2'
=>
'50-80㎡'
,
'3'
=>
'80-100㎡'
,
'4'
=>
'100-120㎡'
,
'5'
=>
'120-150㎡'
,
'6'
=>
'150-200㎡'
,
'7'
=>
'200-300㎡'
,
'8'
=>
'300㎡以上'
),
"rent_buildarea"
=>
array
(
'1'
=>
'50㎡以下'
,
'2'
=>
'50-100㎡'
,
'3'
=>
'100-200㎡'
,
'4'
=>
'200-300㎡'
,
'5'
=>
'300-500㎡'
,
'6'
=>
'500-1000㎡'
,
'7'
=>
'1000㎡以上'
),
"price_rent"
=>
array
(
'1'
=>
'500元以下'
,
'2'
=>
'500-800元'
,
'3'
=>
'800-1500元'
,
'4'
=>
'1500-2500元'
,
'5'
=>
'2500-4000元'
,
'6'
=>
'4000元以上'
),
//写字楼价格
"price_office"
=>
array
(
'1'
=>
'5000元以下'
,
'2'
=>
'5000-8000元'
,
'3'
=>
'8000-1万元'
,
'4'
=>
'1-1.5万'
,
'5'
=>
'1.5-2万'
,
'6'
=>
'2-5万'
,
'7'
=>
'5万以上'
),
...
...
@@ -903,8 +917,11 @@ $conf_house_base = array(
"officetype"
=>
array
(
'1'
=>
'甲级'
,
'2'
=>
'乙级'
,
'3'
=>
'丙级'
),
"floortyperent"
=>
array
(
'1'
=>
'任意'
,
'2'
=>
'1层'
,
'3'
=>
'2-5层'
,
'4'
=>
'6-12层'
,
'5'
=>
'13层以上'
),
"infofrom"
=>
array
(
'1'
=>
'个人'
,
'2'
=>
'中介门店'
,
'5'
=>
'中介'
),
"renttype"
=>
array
(
'整租'
=>
'整租'
,
'转租'
=>
'转租'
,
'合租'
=>
'合租'
,
'日租,短租'
=>
'日租,短租'
),
"renttype_num"
=>
array
(
'1'
=>
'整租'
,
'2'
=>
'转租'
,
'3'
=>
'合租'
,
'4'
=>
'日租,短租'
),
// "renttype" => array ('整租'=>'整租', '转租'=>'转租', '合租'=>'合租','日租,短租'=>'日租,短租'),
// "renttype_num" => array ('1'=>'整租', '2'=>'转租','3'=>'合租','4'=>'日租,短租'),
"renttype"
=>
array
(
'整租'
=>
'整租'
,
'合租'
=>
'合租'
),
// 方式
"renttype_num"
=>
array
(
'1'
=>
'整租'
,
'2'
=>
'合租'
),
"fitment"
=>
array
(
'毛坯'
=>
'毛坯'
,
'简装'
=>
'简装'
,
'精装'
=>
'精装'
,
'豪华装'
=>
'豪华装'
),
"fitment_num"
=>
array
(
'1'
=>
'毛坯'
,
'2'
=>
'简装'
,
'3'
=>
'精装'
,
'4'
=>
'豪华装'
),
"priceunit"
=>
array
(
'1'
=>
'元/月'
,
'2'
=>
'元/天*平方米'
,
'3'
=>
'元/月*平方米'
,
'4'
=>
'元/天'
),
...
...
esf_core/models/user_model.php
View file @
245f1a7a
...
...
@@ -1132,9 +1132,10 @@ class User_model extends MY_Model
* getSeachcondStr 转化找房条件
*
* @param array $sarr
* @param string $tab 出租/处说
* @return array
*/
function
getSeachcondStr
(
$sarr
)
function
getSeachcondStr
(
$sarr
,
$tab
=
'sell'
)
{
global
$house
;
...
...
@@ -1276,7 +1277,9 @@ class User_model extends MY_Model
if
(
isset
(
$search
[
'buildarea'
]
)
&&
$search
[
'buildarea'
]
>
0
&&
$search
[
'buildarea'
]
!=
99
)
{
$str
.=
isset
(
$house
[
'buildarea'
][
$search
[
'buildarea'
]])
?
$house
[
'buildarea'
][
$search
[
'buildarea'
]]
.
'<em class="t-line">|</em>'
:
''
;
$buildareaArr
=
$house
[
'buildarea'
];
if
(
$tab
==
'rent'
)
$buildareaArr
=
!
empty
(
$house
[
'rent_buildarea'
])
?
$house
[
'rent_buildarea'
]
:
array
()
;
$str
.=
isset
(
$buildareaArr
[
$search
[
'buildarea'
]])
?
$buildareaArr
[
$search
[
'buildarea'
]]
.
'<em class="t-line">|</em>'
:
''
;
}
else
{
...
...
@@ -1651,7 +1654,7 @@ class User_model extends MY_Model
if
(
empty
(
$housedetail
)
)
{
$wherecond
=
$this
->
getsearchcond
(
$searcharr
);
$wherecond
=
$this
->
getsearchcond
(
$searcharr
,
$tbl
);
if
(
!
empty
(
$datatime
))
{
...
...
@@ -1672,7 +1675,7 @@ class User_model extends MY_Model
if
(
isset
(
$selldetail
[
'Record'
][
0
]))
{
$housedetail
=
$selldetail
[
'Record'
][
0
];
$housedetail
[
'time'
]
=
time_tran
(
$housedetail
[
'UPDATETIME'
])
;
$housedetail
[
'time'
]
=
!
empty
(
$housedetail
[
'UPDATETIME'
]
)
?
mb_convert_encoding
(
time_tran
(
$housedetail
[
'UPDATETIME'
]),
'gbk'
,
'utf-8'
)
:
''
;
$streetname
=
$this
->
block_model
->
getstreetname
(
$housedetail
[
'STREETID'
]);
$housedetail
[
'streetname'
]
=
$streetname
[
'streetname'
];
}
...
...
@@ -1687,9 +1690,10 @@ class User_model extends MY_Model
/**
* 根据搜索条件获得sql
* @param type $searcharr
* @param string $tab
* @return string
*/
function
getsearchcond
(
$searcharr
)
function
getsearchcond
(
$searcharr
,
$tab
=
'sell'
)
{
GLOBAL
$house
;
...
...
@@ -1863,6 +1867,7 @@ class User_model extends MY_Model
{
//搜索面板条件
$where_buildarea_sell
=
empty
(
$house
[
'buildarea'
][
$searcharr
[
'buildarea'
]])
?
''
:
$house
[
'buildarea'
][
$searcharr
[
'buildarea'
]];
if
(
$tab
==
'rent'
)
$where_buildarea_sell
=
empty
(
$house
[
'rent_buildarea'
][
$searcharr
[
'buildarea'
]])
?
''
:
$house
[
'rent_buildarea'
][
$searcharr
[
'buildarea'
]];
if
(
!
empty
(
$where_buildarea_sell
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment