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
d1ea0550
Commit
d1ea0550
authored
Jun 15, 2017
by
html5-李恒逸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bugs
parent
7d169742
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
113 additions
and
109 deletions
+113
-109
channeladmin.php
html/application/controllers/admin/channeladmin.php
+2
-2
kpiadmin.php
html/application/controllers/admin/kpiadmin.php
+36
-37
customer_model.php
html/application/models/customer_model.php
+70
-69
customerExport.php
html/application/views/admin/channel/customerExport.php
+2
-0
customerSearch.php
html/application/views/admin/channel/customerSearch.php
+3
-1
No files found.
html/application/controllers/admin/channeladmin.php
View file @
d1ea0550
...
...
@@ -376,7 +376,7 @@ class Channeladmin extends CI_Controller
$admins
=
array
();
$admins
=
$this
->
channel
->
get_all_info
(
$where
,
$page_no
,
self
::
PAGE_SIZE
);
$this
->
data
[
'customers'
]
=
$admins
;
$this
->
data
[
'num_start'
]
=
(
$page_no
-
1
)
*
self
::
PAGE_SIZE
+
1
;
//获取分页
$this
->
data
[
'num_link'
]
=
set_page1
(
$this
,
site_url
(
'admin/channeladmin/customerSearch?distributor_name='
.
$get
[
'distributor_name'
]
.
'&status='
.
$get
[
'status'
]
.
'&channel_id='
.
$get
[
'channel_id'
]
.
'&building_title='
.
$get
[
'building_title'
]
.
'&time='
.
$get
[
'time'
]),
...
...
@@ -467,7 +467,7 @@ class Channeladmin extends CI_Controller
$admins
=
array
();
$admins
=
$this
->
channel
->
get_all_info
(
$where
,
$page_no
,
self
::
PAGE_SIZE
);
$this
->
data
[
'customers'
]
=
$admins
;
$this
->
data
[
'num_start'
]
=
(
$page_no
-
1
)
*
self
::
PAGE_SIZE
+
1
;
//获取分页
$this
->
data
[
'num_link'
]
=
set_page1
(
$this
,
site_url
(
'admin/channeladmin/customerExport?distributor_name='
.
$get
[
'distributor_name'
]
.
'&status='
.
$get
[
'status'
]
.
'&channel_id='
.
$get
[
'channel_id'
]
.
'&building_title='
.
$get
[
'building_title'
]
.
'&time='
.
$get
[
'time'
]),
...
...
html/application/controllers/admin/kpiadmin.php
View file @
d1ea0550
This diff is collapsed.
Click to expand it.
html/application/models/customer_model.php
View file @
d1ea0550
This diff is collapsed.
Click to expand it.
html/application/views/admin/channel/customerExport.php
View file @
d1ea0550
...
...
@@ -90,6 +90,7 @@
<table
class=
"table table-striped table-bordered table-hover"
id=
"sample_1"
>
<thead>
<tr>
<th>
序号
</th>
<th>
用户ID
</th>
<th>
客户姓名
</th>
<th>
客户电话
</th>
...
...
@@ -109,6 +110,7 @@
foreach
(
$customers
as
$customer
)
:
?>
<tr>
<td>
<?php
echo
$num_start
++
;
?>
</td>
<td>
<?php
echo
$customer
[
'id'
];
?>
</td>
<td>
<?php
echo
$customer
[
'customer_user'
];
?>
</td>
<td>
<?php
echo
$customer
[
'customer_mobile'
]
?>
</td>
...
...
html/application/views/admin/channel/customerSearch.php
View file @
d1ea0550
...
...
@@ -88,6 +88,7 @@
<table
class=
"table table-striped table-bordered table-hover"
id=
"sample_1"
>
<thead>
<tr>
<th>
序号
</th>
<th>
用户ID
</th>
<th>
客户姓名
</th>
<th>
客户电话
</th>
...
...
@@ -107,6 +108,7 @@
foreach
(
$customers
as
$customer
)
:
?>
<tr>
<td>
<?php
echo
$num_start
++
;
?>
</td>
<td>
<?php
echo
$customer
[
'id'
];
?>
</td>
<td>
<?php
echo
$customer
[
'customer_user'
];
?>
</td>
<td>
<?php
echo
$customer
[
'customer_mobile'
]
?>
</td>
...
...
@@ -227,7 +229,7 @@
var
e
=
$
(
"#time"
).
val
=
""
;
location
.
href
=
"
<?php
echo
site_url
(
'admin/channeladmin/customerSearch'
)
?>
?distributor_name="
+
a
+
"&status="
+
b
+
"&channel_id="
+
c
+
"&building_title="
+
d
+
"&time="
+
e
})
});
...
...
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