Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
fenzhan_zsb
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
esf
fenzhan_zsb
Commits
5b47af48
Commit
5b47af48
authored
Apr 06, 2021
by
liuqiao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-lq-04' into release_preview
parents
5c39b217
5b20ee99
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
54 additions
and
8 deletions
+54
-8
rent.php
new_admincp/applications/zsb/controllers/rent.php
+15
-0
sell.php
new_admincp/applications/zsb/controllers/sell.php
+15
-0
rent_manage.php
new_admincp/applications/zsb/views/nj/rent_manage.php
+6
-2
rent_manage_invalid.php
...admincp/applications/zsb/views/nj/rent_manage_invalid.php
+6
-2
sell_manage.php
new_admincp/applications/zsb/views/nj/sell_manage.php
+6
-2
sell_manage_invalid.php
...admincp/applications/zsb/views/nj/sell_manage_invalid.php
+6
-2
No files found.
new_admincp/applications/zsb/controllers/rent.php
View file @
5b47af48
...
...
@@ -1607,6 +1607,7 @@ class Rent extends MY_Controller {
//房源信息数组
$house_info
=
array
();
$nowTime
=
time
();
for
(
$i
=
0
;
$i
<
$row_num
;
$i
++
)
{
//房源地址
...
...
@@ -1724,6 +1725,20 @@ class Rent extends MY_Controller {
$data_info
[
$i
][
'freeze_info'
]
=
$this
->
rent_freeze_model
->
get_freeze_by_rowid
(
$data_info
[
$i
][
'id'
]);
}
}
// 发布天数
$diffTimeStamp
=
$nowTime
-
$data_info
[
$i
][
'lucupdatetime'
];
$publishDays
=
ceil
(
$diffTimeStamp
/
86400
);
$data_info
[
$i
][
'publish_days'
]
=
$publishDays
;
switch
(
$publishDays
)
{
case
$publishDays
<=
30
:
$data_info
[
$i
][
'publish_days_color'
]
=
'green'
;
break
;
case
$publishDays
>=
30
&&
$publishDays
<=
89
:
$data_info
[
$i
][
'publish_days_color'
]
=
'yellow'
;
break
;
case
$publishDays
>=
90
:
$data_info
[
$i
][
'publish_days_color'
]
=
'red'
;
}
$arr_rowid
[]
=
$data_info
[
$i
][
'id'
];
}
...
...
new_admincp/applications/zsb/controllers/sell.php
View file @
5b47af48
...
...
@@ -4257,6 +4257,7 @@ class Sell extends MY_Controller {
else
{
$this
->
load
->
model
(
'pic_model'
);
$nowTime
=
time
();
for
(
$i
=
0
;
$i
<
$row_num
;
$i
++
)
{
...
...
@@ -4440,6 +4441,20 @@ class Sell extends MY_Controller {
$housePics
=
$this
->
pic_model
->
find_house_pic_by
(
'sell'
,
$data_info
[
$i
][
'id'
]);
$data_info
[
$i
][
'pic1'
]
=
$housePics
?
$housePics
[
0
][
'filename'
]
:
STATIC_SOURCE_URL
.
'/zsb/images/v1.0/default.jpg'
;
}
// 发布天数
$diffTimeStamp
=
$nowTime
-
$data_info
[
$i
][
'lucupdatetime'
];
$publishDays
=
ceil
(
$diffTimeStamp
/
86400
);
$data_info
[
$i
][
'publish_days'
]
=
$publishDays
;
switch
(
$publishDays
)
{
case
$publishDays
<=
30
:
$data_info
[
$i
][
'publish_days_color'
]
=
'green'
;
break
;
case
$publishDays
>=
30
&&
$publishDays
<=
89
:
$data_info
[
$i
][
'publish_days_color'
]
=
'yellow'
;
break
;
case
$publishDays
>=
90
:
$data_info
[
$i
][
'publish_days_color'
]
=
'red'
;
}
$arr_rowid
[]
=
$data_info
[
$i
][
'id'
];
}
...
...
new_admincp/applications/zsb/views/nj/rent_manage.php
View file @
5b47af48
...
...
@@ -194,7 +194,8 @@
<td
class=
"w30"
>
</td>
<td
class=
"w260"
style=
"width:380px;"
>
房源基本信息
</td>
<td
class=
"w90"
>
创建时间
</td>
<td
class=
"w60"
>
更新时间
</td>
<!-- <td class="w60">更新时间</td>-->
<td
class=
"w60"
>
发布天数
</td>
<!--<td class="w85">剩余天数</td>-->
<td
class=
"w115"
>
统计
</td>
<td
class=
"w70"
>
刷新
</td>
...
...
@@ -280,8 +281,11 @@
<p>
急推:
<span
class=
"color"
>
<?php
echo
$value
[
'tag_exipire_days'
];
?>
</span></p>
<?php
}
?>
</td>
<!-- <td class="td w60">-->
<!-- <p>-->
<?php
//if($value['updatetime'] > 0) { echo date( 'm-d H:i' , $value['updatetime']);}?><!--</p>-->
<!--
</
td
>-->
<
td
class
="
td
w60
">
<p
>
<?php
if
(
$value
[
'updatetime'
]
>
0
)
{
echo
date
(
'm-d H:i'
,
$value
[
'updatetime'
]);}
?>
</p>
<p
style="
color
:
<?
php
echo
$value
[
'publish_days_color'
];
?>
">
<?php
echo
$value
[
'publish_days'
];
?>
天
</p>
</td>
<!--
<td class="td w85">
...
...
new_admincp/applications/zsb/views/nj/rent_manage_invalid.php
View file @
5b47af48
...
...
@@ -189,7 +189,8 @@
<td
class=
"w30"
>
</td>
<td
class=
"w260"
>
房源基本信息
</td>
<td
class=
"w104"
>
创建时间
</td>
<td
class=
"w104"
>
更新时间
</td>
<td
class=
"w104"
>
发布天数
</td>
<!-- <td class="w104">更新时间</td>-->
<!-- <td class="w90">剩余天数</td>-->
<td
class=
"w130"
>
点击情况
</td>
<td>
操作
</td>
...
...
@@ -231,8 +232,11 @@
<p>
<?php
echo
date
(
'm-d H:i'
,
$value
[
'creattime'
]);
?>
</p>
</td>
<td
class=
"td w104"
>
<p
>
<?php
if
(
$value
[
'updatetime'
]
>
0
)
{
echo
date
(
'm-d H:i'
,
$value
[
'updatetime'
]);}
?>
</p>
<p
style=
"color:
<?php
echo
$value
[
'publish_days_color'
];
?>
"
>
<?php
echo
$value
[
'publish_days'
];
?>
天
</p>
</td>
<!-- <td class="td w104">-->
<!-- <p>-->
<?php
//if($value['updatetime'] > 0) { echo date( 'm-d H:i' , $value['updatetime']);}?><!--</p>-->
<!--
</
td
>-->
<!--
<
td
class
="
td
w90
">-->
<!-- <p>房源:<span class="
color
">--><?php //echo
$value['exipire_days']
;?><!--</span></p>-->
<!-- </td>-->
...
...
new_admincp/applications/zsb/views/nj/sell_manage.php
View file @
5b47af48
...
...
@@ -249,7 +249,8 @@
<td
class=
"w30"
>
</td>
<td
class=
"w260"
style=
"width:380px;"
>
房源基本信息
</td>
<td
class=
"w90"
>
创建时间
</td>
<td
class=
"w60"
>
更新时间
</td>
<td
class=
"w60"
>
发布天数
</td>
<!-- <td class="w60">更新时间</td>-->
<!--<td class="w85">剩余天数</td>-->
<td
class=
"w115"
>
统计
</td>
<td
class=
"w70"
>
刷新
</td>
...
...
@@ -395,8 +396,11 @@
<?php
}
?>
</td>
<td
class=
"td w60"
>
<p
>
<?php
if
(
$value
[
'updatetime'
]
>
0
)
{
echo
date
(
'm-d H:i'
,
$value
[
'updatetime'
]);}
?>
</p>
<p
style=
"color:
<?php
echo
$value
[
'publish_days_color'
];
?>
"
>
<?php
echo
$value
[
'publish_days'
];
?>
天
</p>
</td>
<!-- <td class="td w60">-->
<!-- <p>-->
<?php
//if($value['updatetime'] > 0) { echo date( 'm-d H:i' , $value['updatetime']);}?><!--</p>-->
<!--
</
td
>-->
<!--
<
td
class
="
td
w85
">
<p>房源:<span class="
color
"><?php echo
$value['exipire_days']
;?></span></p>
...
...
new_admincp/applications/zsb/views/nj/sell_manage_invalid.php
View file @
5b47af48
...
...
@@ -197,7 +197,8 @@
<td
class=
"w30"
>
</td>
<td
class=
"w260"
>
房源基本信息
</td>
<td
class=
"w104"
>
创建时间
</td>
<td
class=
"w104"
>
更新时间
</td>
<td
class=
"w104"
>
发布天数
</td>
<!-- <td class="w104">更新时间</td>-->
<!-- <td class="w90">剩余天数</td>-->
<td
class=
"w130"
>
点击情况
</td>
<td>
操作
</td>
...
...
@@ -244,8 +245,11 @@
<p>
<?php
echo
date
(
'm-d H:i'
,
$value
[
'creattime'
]);
?>
</p>
</td>
<td
class=
"td w104"
>
<p
>
<?php
if
(
$value
[
'updatetime'
]
>
0
)
{
echo
date
(
'm-d H:i'
,
$value
[
'updatetime'
]);}
?>
</p>
<p
style=
"color:
<?php
echo
$value
[
'publish_days_color'
];
?>
"
>
<?php
echo
$value
[
'publish_days'
];
?>
天
</p>
</td>
<!-- <td class="td w104">-->
<!-- <p>-->
<?php
//if($value['updatetime'] > 0) { echo date( 'm-d H:i' , $value['updatetime']);}?><!--</p>-->
<!--
</
td
>-->
<!--
<
td
class
="
td
w90
">-->
<!-- <p>房源:<span class="
color
">--><?php //echo
$value['exipire_days']
;?><!--</span></p>-->
<!-- </td>-->
...
...
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