Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sunac-quanmin
Overview
Overview
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
HTML5-李恒逸
sunac-quanmin
Commits
ad7dacac
Commit
ad7dacac
authored
Jun 26, 2017
by
html5-李恒逸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改经纪人看到的楼盘较少bug,将页面展示数量修改到30
parent
5fd6538a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
building.php
html/application/controllers/distributor/building.php
+6
-6
No files found.
html/application/controllers/distributor/building.php
View file @
ad7dacac
<?php
if
(
!
defined
(
'BASEPATH'
))
exit
(
'No direct script access allowed'
);
class
Building
extends
CI_Controller
{
/**
* 构造器
*/
...
...
@@ -10,11 +10,11 @@ class Building extends CI_Controller {
parent
::
__construct
();
//加载用户语言
$this
->
language
=
$this
->
input
->
cookie
(
'lang'
)
?
$this
->
input
->
cookie
(
'lang'
)
:
$this
->
config
->
item
(
'language'
);
//加载配置文件
$this
->
config
->
load
(
'user_config'
,
true
);
$this
->
lang
->
load
(
'error'
,
$this
->
language
);
//加载辅助函数
$this
->
load
->
helper
(
'util'
);
$this
->
user_id
=
$this
->
session
->
userdata
(
'user_id'
);
...
...
@@ -24,14 +24,14 @@ class Building extends CI_Controller {
$this
->
load
->
model
(
'building_model'
,
'building'
);
$this
->
load
->
model
(
'distributor_model'
,
'distributor'
);
$this
->
load
->
model
(
'building_distributor_model'
,
'bdrelation'
);
}
public
function
index
(){
$this
->
load
->
helper
(
'date'
);
$distributor_ins
=
$this
->
distributor
->
get
(
array
(
'uniqid_id'
=>
$this
->
uniqid_id
));
$buildings
=
$this
->
bdrelation
->
get_all_building
(
array
(
'D.id'
=>
$distributor_ins
[
'id'
],
'R.is_deleted'
=>
0
),
1
,
1
0
);
$buildings
=
$this
->
bdrelation
->
get_all_building
(
array
(
'D.id'
=>
$distributor_ins
[
'id'
],
'R.is_deleted'
=>
0
),
1
,
3
0
);
$this
->
data
[
'buildings'
]
=
$buildings
;
$datestring
=
"%Y-%m-%d"
;
$dataformat
=
"%Y-%m-%d %h:%i"
;
$this
->
data
[
'datestring'
]
=
$datestring
;
...
...
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