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
4ff7fd4f
Commit
4ff7fd4f
authored
Jun 14, 2017
by
html5-李恒逸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
回车搜索
parent
f05e9569
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
101 additions
and
96 deletions
+101
-96
index.php
html/application/views/admin/building/index.php
+30
-27
distributor.php
html/application/views/admin/sales/distributor.php
+27
-28
index.php
html/application/views/admin/sales/index.php
+44
-41
No files found.
html/application/views/admin/building/index.php
View file @
4ff7fd4f
...
...
@@ -4,23 +4,23 @@
<div
class=
"page-container"
>
<?php
$this
->
load
->
view
(
"admin/leftbar"
);
?>
<div
class=
"page-content-wrapper"
>
<div
class=
"page-content"
>
<div
class=
"page-content"
>
<!-- BEGIN PAGE HEADER-->
<div
class=
"row"
>
<div
class=
"col-md-12"
>
<div
class=
"col-md-12"
>
<!-- BEGIN PAGE TITLE & BREADCRUMB-->
<ul
class=
"page-breadcrumb breadcrumb"
>
<li>
<i
class=
"fa fa-home"
></i>
<a
href=
"
<?php
echo
site_url
(
'admin/index'
);
?>
"
>
主页
</a>
<i
class=
"fa fa-angle-right"
></i>
</li>
<li>
<a
href=
"javascript:;"
>
信息管理
</a>
<i
class=
"fa fa-angle-right"
></i>
</li>
<li>
<a
href=
"
<?php
echo
site_url
(
'admin/buildingadmin/index'
);
?>
"
>
楼盘管理
</a>
</li>
</ul>
<!-- END PAGE TITLE & BREADCRUMB-->
<!-- END PAGE TITLE & BREADCRUMB-->
</div>
</div>
<!-- END PAGE HEADER-->
<!-- END PAGE HEADER-->
<!-- BEGIN PAGE CONTENT-->
<div
class=
"row"
>
<div
class=
"col-md-12"
>
<div
class=
"col-md-12"
>
<!-- BEGIN EXAMPLE TABLE PORTLET-->
<div
class=
"portlet box blue"
>
<div
class=
"portlet-title"
>
...
...
@@ -35,13 +35,13 @@
</div>
<div
class=
"portlet-body clearfix"
>
<div
class=
"btn-group"
>
<a
id=
"sample_editable_1_new"
class=
"btn green"
href=
"
<?php
echo
site_url
(
'admin/buildingadmin/add/'
);
?>
"
>
新增
<i
class=
"fa fa-plus"
></i>
</a>
<a
id=
"sample_editable_1_new"
class=
"btn green"
href=
"
<?php
echo
site_url
(
'admin/buildingadmin/add/'
);
?>
"
>
新增
<i
class=
"fa fa-plus"
></i>
</a>
</div>
<div
class=
"form-body"
style=
"padding:0; margin-top:10px"
>
<div
class=
"form-body"
style=
"padding:0"
>
<div
style=
"margin-bottom: 20px;background: #F9FCEF;padding: 10px 0;border: 1px solid #ccc;"
class=
"text-center"
>
<div
style=
"margin-bottom: 20px;background: #F9FCEF;padding: 10px 0;border: 1px solid #ccc;"
class=
"text-center"
>
城市:
<select
class=
"form-control input-inline select2me"
name=
"region_code"
id=
"region_code"
>
<option
value=
"NULL"
<?php
echo
$con_arr
[
0
]
==
'NULL'
?
'selected'
:
''
;
?>
>
全部
</option>
...
...
@@ -60,7 +60,7 @@
<option
value=
"1"
<?php
echo
$con_arr
[
1
]
==
1
?
'selected="selected"'
:
''
;
?>
>
已删除
</option>
</select>
关键字:
<input
type=
"text"
class=
"form-control input-inline input-small"
value=
"
<?php
echo
!
empty
(
$con_arr
[
2
])
&&
$con_arr
[
2
]
!=
"NULL"
?
urldecode
(
$con_arr
[
2
])
:
""
;
?>
"
id=
"keywords"
>
<input
type=
"text"
class=
"form-control input-inline input-small"
onkeypress=
"EnterPress()"
value=
"
<?php
echo
!
empty
(
$con_arr
[
2
])
&&
$con_arr
[
2
]
!=
"NULL"
?
urldecode
(
$con_arr
[
2
])
:
""
;
?>
"
id=
"keywords"
>
<button
type=
"submit"
class=
"btn blue"
id=
"search"
>
搜索
</button>
<button
type=
"reset"
class=
"btn blue"
id=
"reset"
>
清空
</button>
<input
type=
"hidden"
value=
"
<?php
echo
isset
(
$condition
)
?
$condition
:
''
?>
"
id=
's_keywords'
>
...
...
@@ -97,7 +97,7 @@
</div>
</div>
</div>
<!-- END EXAMPLE TABLE PORTLET-->
<!-- END EXAMPLE TABLE PORTLET-->
</div>
</div>
</div>
...
...
@@ -109,14 +109,14 @@
<!-- BEGIN FOOTER -->
<?php
$this
->
load
->
view
(
'admin/footer'
);
?>
<!-- BEGIN PAGE LEVEL PLUGINS -->
<script
type=
"text/javascript"
src=
"
<?php
echo
APPLICATION_PATH
?>
/assets/plugins/select2/select2.min.js"
></script>
<script
type=
"text/javascript"
src=
"
<?php
echo
APPLICATION_PATH
?>
/assets/plugins/data-tables/jquery.dataTables.js"
></script>
<script
type=
"text/javascript"
src=
"
<?php
echo
APPLICATION_PATH
?>
/assets/plugins/data-tables/DT_bootstrap.js"
></script>
<script
type=
"text/javascript"
src=
"
<?php
echo
APPLICATION_PATH
?>
/assets/plugins/plupload/js/plupload.full.min.js"
></script>
<script
type=
"text/javascript"
src=
"
<?php
echo
APPLICATION_PATH
?>
/assets/plugins/jquery-tags-input/jquery.tagsinput.min.js"
></script>
<!--<script src="
<?php
echo
APPLICATION_PATH
?>
/assets/scripts/custom/ecommerce-products-edit.js"></script> -->
<!-- END PAGE LEVEL PLUGINS -->
<!-- BEGIN PAGE LEVEL SCRIPTS -->
<script
type=
"text/javascript"
src=
"
<?php
echo
APPLICATION_PATH
?>
/assets/plugins/select2/select2.min.js"
></script>
<script
type=
"text/javascript"
src=
"
<?php
echo
APPLICATION_PATH
?>
/assets/plugins/data-tables/jquery.dataTables.js"
></script>
<script
type=
"text/javascript"
src=
"
<?php
echo
APPLICATION_PATH
?>
/assets/plugins/data-tables/DT_bootstrap.js"
></script>
<script
type=
"text/javascript"
src=
"
<?php
echo
APPLICATION_PATH
?>
/assets/plugins/plupload/js/plupload.full.min.js"
></script>
<script
type=
"text/javascript"
src=
"
<?php
echo
APPLICATION_PATH
?>
/assets/plugins/jquery-tags-input/jquery.tagsinput.min.js"
></script>
<!--<script src="
<?php
echo
APPLICATION_PATH
?>
/assets/scripts/custom/ecommerce-products-edit.js"></script> -->
<!-- END PAGE LEVEL PLUGINS -->
<!-- BEGIN PAGE LEVEL SCRIPTS -->
<script
src=
"
<?php
echo
APPLICATION_PATH
?>
/assets/js/backend/core/app.js"
></script>
<script
src=
"
<?php
echo
APPLICATION_PATH
?>
/assets/js/backend/custom/jquery.pagination.js"
></script>
<script
type=
"text/javascript"
>
...
...
@@ -137,7 +137,11 @@
optInit
[
'prev_text'
]
=
"上一页"
;
$
(
".pagination"
).
pagination
(
_total
,
optInit
);
});
function
EnterPress
(){
if
(
event
.
keyCode
==
13
){
$
(
'#search'
).
trigger
(
'click'
);
}
}
function
pageselectCallback
(
page_index
,
jq
){
<?php
if
(
isset
(
$ad
)
&&
$ad
==
"ad"
){
echo
"_condition = 'ad';"
;
...
...
@@ -225,16 +229,16 @@
}
});
}
});
</script>
<!-- END PAGE LEVEL SCRIPTS -->
});
</script>
<!-- END PAGE LEVEL SCRIPTS -->
<script>
jQuery
(
document
).
ready
(
function
()
{
jQuery
(
document
).
ready
(
function
()
{
// initiate layout and plugins
App
.
init
();
//FormSamples.init();
});
</script>
</script>
<!-- END JAVASCRIPTS -->
</body>
<!-- END BODY -->
</html>
\ No newline at end of file
</html>
html/application/views/admin/sales/distributor.php
View file @
4ff7fd4f
...
...
@@ -10,29 +10,29 @@
</style>
<div
class=
"clearfix"
>
</div>
<!-- BEGIN CONTAINER -->
<div
class=
"page-container"
>
<div
class=
"page-container"
>
<!-- BEGIN SIDEBAR -->
<?php
$this
->
load
->
view
(
'admin/leftbar'
);
?>
<!-- END SIDEBAR -->
<!-- END SIDEBAR -->
<!-- BEGIN CONTENT -->
<div
class=
"page-content-wrapper"
>
<div
class=
"page-content"
>
<div
class=
"page-content"
>
<!-- BEGIN PAGE HEADER-->
<div
class=
"row"
>
<div
class=
"col-md-12"
>
<div
class=
"col-md-12"
>
<!-- BEGIN PAGE TITLE & BREADCRUMB-->
<ul
class=
"page-breadcrumb breadcrumb"
>
<li>
<i
class=
"fa fa-home"
></i>
<a
href=
"
<?php
echo
site_url
(
'admin/index'
);
?>
"
>
主页
</a>
<i
class=
"fa fa-angle-right"
></i>
</li>
<li>
<a
href=
"javascript:;"
>
人员管理
</a>
<i
class=
"fa fa-angle-right"
></i>
</li>
<li>
<a
href=
"javascript:;"
>
分销商管理
</a>
</li>
</ul>
<!-- END PAGE TITLE & BREADCRUMB-->
<!-- END PAGE TITLE & BREADCRUMB-->
</div>
</div>
<!-- END PAGE HEADER-->
<!-- END PAGE HEADER-->
<!-- BEGIN PAGE CONTENT-->
<div
class=
"row"
>
<div
class=
"col-md-12"
>
<div
class=
"col-md-12"
>
<!-- BEGIN EXAMPLE TABLE PORTLET-->
<div
class=
"portlet box blue"
>
<div
class=
"portlet-title"
>
...
...
@@ -44,14 +44,14 @@
<button
class=
"btn green"
onclick=
"window.location.href='
<?php
echo
site_url
(
'/admin/distributionadmin/distributorAdd'
);
?>
'"
>
新增分销商
<i
class=
"fa fa-plus"
></i>
</button>
</div>
</div>
<div
style=
"margin-bottom: 20px;background: #F9FCEF;padding: 10px 0;border: 1px solid #ccc;"
class=
"text-center"
>
<div
style=
"margin-bottom: 20px;background: #F9FCEF;padding: 10px 0;border: 1px solid #ccc;"
class=
"text-center"
>
<form
method=
"get"
action=
"
<?php
echo
site_url
(
'admin/distributionadmin/distributor'
);
?>
"
name=
'form'
>
分销商名称:
<input
type=
"text"
class=
"form-control input-inline input-small"
value=
"
<?php
echo
isset
(
$con_arr
[
'company_name'
])
?
$con_arr
[
'company_name'
]
:
""
;
?>
"
id=
"company_name"
name=
"company_name"
>
分销商标识:
<input
type=
"text"
class=
"form-control input-inline input-small"
value=
"
<?php
echo
isset
(
$con_arr
[
'uniqid_id'
])
?
$con_arr
[
'uniqid_id'
]
:
""
;
?>
"
id=
"uniqid_id"
name=
"uniqid_id"
>
<button
type=
"submit"
class=
"btn blue"
id=
"search"
>
搜索
</button>
<a
class=
"btn blue"
href=
"
<?php
echo
site_url
(
'admin/
manageradmin/index
'
);
?>
"
>
清空
</a>
<a
class=
"btn blue"
href=
"
<?php
echo
site_url
(
'admin/
distributionadmin/distributor
'
);
?>
"
>
清空
</a>
</form>
</div>
<table
class=
"table table-striped table-hover table-bordered"
>
...
...
@@ -102,7 +102,7 @@
</table>
</div>
<?php if(isset(
$num_link
)):?>
<div class="
pagination
-
box
">
<div class="
row
">
<div class="
col
-
md
-
8
">
...
...
@@ -112,26 +112,26 @@
</div>
<?php endif;?>
</div>
<!-- END EXAMPLE TABLE PORTLET-->
<!-- END EXAMPLE TABLE PORTLET-->
</div>
</div>
<!-- END PAGE CONTENT -->
<!-- END PAGE CONTENT -->
</div>
</div>
<!-- END CONTENT -->
<!-- END CONTENT -->
</div>
<!-- END CONTAINER -->
<!-- END CONTAINER -->
<!-- BEGIN FOOTER -->
<?php
$this->load
->view('admin/footer');?>
<!-- BEGIN PAGE LEVEL PLUGINS -->
<script type="
text
/
javascript
" src="
<?
php
echo
APPLICATION_PATH
?>
/assets/plugins/select2/select2.min.js"></script>
<script type="text/javascript" src="
<?php
echo
APPLICATION_PATH
?>
/assets/plugins/data-tables/jquery.dataTables.js"></script>
<script type="text/javascript" src="
<?php
echo
APPLICATION_PATH
?>
/assets/plugins/data-tables/DT_bootstrap.js"></script>
<!-- END PAGE LEVEL PLUGINS -->
<!-- BEGIN PAGE LEVEL SCRIPTS -->
<script
src=
"
<?php
echo
APPLICATION_PATH
?>
/assets/js/backend/core/app.js"
></script>
<!-- BEGIN PAGE LEVEL PLUGINS -->
<script type="
text
/
javascript
" src="
<?
php
echo
APPLICATION_PATH
?>
/assets/plugins/select2/select2.min.js"></script>
<script type="text/javascript" src="
<?php
echo
APPLICATION_PATH
?>
/assets/plugins/data-tables/jquery.dataTables.js"></script>
<script type="text/javascript" src="
<?php
echo
APPLICATION_PATH
?>
/assets/plugins/data-tables/DT_bootstrap.js"></script>
<!-- END PAGE LEVEL PLUGINS -->
<!-- BEGIN PAGE LEVEL SCRIPTS -->
<script
src=
"
<?php
echo
APPLICATION_PATH
?>
/assets/js/backend/core/app.js"
></script>
<script>
jQuery
(
document
).
ready
(
function
()
{
jQuery
(
document
).
ready
(
function
()
{
jQuery
(
".delete"
).
click
(
function
(){
var
is_true
=
confirm
(
"您确定要删除这个分销商吗?"
);
if
(
is_true
)
...
...
@@ -146,7 +146,7 @@
success
:
function
(
res
){
if
(
res
.
errcode
==
0
)
{
window
.
location
.
reload
();
window
.
location
.
reload
();
}
else
{
alert
(
res
.
errmsg
);
}
...
...
@@ -156,11 +156,11 @@
}
);
});
</script>
</script>
<script>
jQuery
(
document
).
ready
(
function
()
{
App
.
init
();
jQuery
(
document
).
ready
(
function
()
{
App
.
init
();
});
</script>
</body>
<!-- END BODY -->
</html>
\ No newline at end of file
</html>
html/application/views/admin/sales/index.php
View file @
4ff7fd4f
...
...
@@ -2,31 +2,31 @@
<div
class=
"clearfix"
>
</div>
<!-- BEGIN CONTAINER -->
<div
class=
"page-container"
>
<div
class=
"page-container"
>
<!-- BEGIN SIDEBAR -->
<?php
$this
->
load
->
view
(
'admin/leftbar'
);
?>
<!-- END SIDEBAR -->
<!-- END SIDEBAR -->
<!-- BEGIN CONTENT -->
<div
class=
"page-content-wrapper"
>
<div
class=
"page-content"
>
<div
class=
"page-content"
>
<!-- BEGIN PAGE HEADER-->
<div
class=
"row"
>
<div
class=
"col-md-12"
>
<div
class=
"col-md-12"
>
<!-- BEGIN PAGE TITLE & BREADCRUMB-->
<ul
class=
"page-breadcrumb breadcrumb"
>
<li>
<i
class=
"fa fa-home"
></i>
<a
href=
"
<?php
site_url
(
'admin/index'
)
?>
"
>
主页
</a>
<i
class=
"fa fa-angle-right"
></i>
</li>
<li>
人员管理
<i
class=
"fa fa-angle-right"
></i>
</li>
<li>
销售管理
</li>
</ul>
<!-- END PAGE TITLE & BREADCRUMB-->
<!-- END PAGE TITLE & BREADCRUMB-->
</div>
</div>
<!-- END PAGE HEADER-->
<!-- END PAGE HEADER-->
<!-- BEGIN PAGE CONTENT-->
<div
class=
"row"
>
<div
class=
"col-md-12"
>
<div
class=
"col-md-12"
>
<!-- BEGIN EXAMPLE TABLE PORTLET-->
<div
class=
"portlet box blue"
>
<div
class=
"portlet-title"
>
<div
class=
"caption"
>
<i
class=
"fa fa-globe"
></i>
销售管理
</div>
...
...
@@ -51,11 +51,11 @@
?>
</select>
楼盘名称:
<input
type=
"text"
class=
"form-control input-inline input-small"
value=
"
<?php
echo
!
empty
(
$con_arr
[
1
])
&&
$con_arr
[
1
]
!=
"NULL"
?
urldecode
(
$con_arr
[
1
])
:
""
;
?>
"
id=
"building_title"
>
<input
type=
"text"
onkeypress=
"EnterPress()"
class=
"form-control input-inline input-small"
value=
"
<?php
echo
!
empty
(
$con_arr
[
1
])
&&
$con_arr
[
1
]
!=
"NULL"
?
urldecode
(
$con_arr
[
1
])
:
""
;
?>
"
id=
"building_title"
>
姓名:
<input
type=
"text"
class=
"form-control input-inline input-small"
value=
"
<?php
echo
!
empty
(
$con_arr
[
2
])
&&
$con_arr
[
2
]
!=
"NULL"
?
urldecode
(
$con_arr
[
2
])
:
""
;
?>
"
id=
"customer_user"
>
<input
type=
"text"
onkeypress=
"EnterPress()"
class=
"form-control input-inline input-small"
value=
"
<?php
echo
!
empty
(
$con_arr
[
2
])
&&
$con_arr
[
2
]
!=
"NULL"
?
urldecode
(
$con_arr
[
2
])
:
""
;
?>
"
id=
"customer_user"
>
联系电话:
<input
type=
"text"
class=
"form-control input-inline input-small"
value=
"
<?php
echo
!
empty
(
$con_arr
[
3
])
&&
$con_arr
[
3
]
!=
"NULL"
?
$con_arr
[
3
]
:
""
;
?>
"
id=
"customer_mobile"
>
<input
type=
"text"
onkeypress=
"EnterPress()"
class=
"form-control input-inline input-small"
value=
"
<?php
echo
!
empty
(
$con_arr
[
3
])
&&
$con_arr
[
3
]
!=
"NULL"
?
$con_arr
[
3
]
:
""
;
?>
"
id=
"customer_mobile"
>
<div
style=
'margin-top:5px;'
></div>
类型:
<select
class=
"form-control input-inline"
name=
"recommend_status"
id=
"recommend_status"
>
...
...
@@ -113,43 +113,47 @@
</div>
</div>
</div>
<!-- END EXAMPLE TABLE PORTLET-->
<!-- END EXAMPLE TABLE PORTLET-->
</div>
</div>
<!-- END PAGE CONTENT-->
<!-- END PAGE CONTENT-->
</div>
</div>
<!-- END CONTENT -->
<!-- END CONTENT -->
</div>
<!-- END CONTAINER -->
<!-- END CONTAINER -->
<!-- BEGIN FOOTER -->
<?php
$this
->
load
->
view
(
'admin/footer'
);
?>
<!-- BEGIN PAGE LEVEL PLUGINS -->
<link
rel=
"stylesheet"
href=
"
<?php
echo
APPLICATION_PATH
?>
/assets/plugins/data-tables/DT_bootstrap.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
<?php
echo
APPLICATION_PATH
?>
/assets/plugins/bootstrap-datepicker/css/datepicker.css"
/>
<script
type=
"text/javascript"
src=
"
<?php
echo
APPLICATION_PATH
?>
/assets/plugins/bootstrap-datepicker/js/bootstrap-datepicker.js"
></script>
<script
type=
"text/javascript"
src=
"
<?php
echo
APPLICATION_PATH
?>
/assets/plugins/select2/select2.min.js"
></script>
<script
type=
"text/javascript"
src=
"
<?php
echo
APPLICATION_PATH
?>
/assets/plugins/data-tables/jquery.dataTables.js"
></script>
<script
type=
"text/javascript"
src=
"
<?php
echo
APPLICATION_PATH
?>
/assets/plugins/data-tables/DT_bootstrap.js"
></script>
<!-- END PAGE LEVEL PLUGINS -->
<!-- BEGIN PAGE LEVEL SCRIPTS -->
<script
src=
"
<?php
echo
APPLICATION_PATH
?>
/assets/js/backend/core/app.js"
></script>
<script
src=
"
<?php
echo
APPLICATION_PATH
?>
/assets/js/backend/custom/jquery.pagination.js"
></script>
<script
type=
"text/javascript"
src=
"
<?php
echo
APPLICATION_PATH
?>
/assets/plugins/bootstrap-datepicker/js/bootstrap-datepicker.js"
></script>
<script
type=
"text/javascript"
src=
"
<?php
echo
APPLICATION_PATH
?>
/assets/plugins/select2/select2.min.js"
></script>
<script
type=
"text/javascript"
src=
"
<?php
echo
APPLICATION_PATH
?>
/assets/plugins/data-tables/jquery.dataTables.js"
></script>
<script
type=
"text/javascript"
src=
"
<?php
echo
APPLICATION_PATH
?>
/assets/plugins/data-tables/DT_bootstrap.js"
></script>
<!-- END PAGE LEVEL PLUGINS -->
<!-- BEGIN PAGE LEVEL SCRIPTS -->
<script
src=
"
<?php
echo
APPLICATION_PATH
?>
/assets/js/backend/core/app.js"
></script>
<script
src=
"
<?php
echo
APPLICATION_PATH
?>
/assets/js/backend/custom/jquery.pagination.js"
></script>
<script>
jQuery
(
document
).
ready
(
function
()
{
jQuery
(
document
).
ready
(
function
()
{
App
.
init
();
});
</script>
</script>
<script
type=
"text/javascript"
>
$
(
function
(){
$
(
"#search"
).
click
(
function
()
{
location
.
href
=
"
<?php
echo
site_url
(
'admin/salesadmin/index'
)
?>
/"
+
$
(
"#city_code"
).
val
()
+
"_"
+
encodeURIComponent
(
$
(
"#building_title"
).
val
())
+
"_"
+
encodeURIComponent
(
$
(
"#customer_user"
).
val
())
location
.
href
=
"
<?php
echo
site_url
(
'admin/salesadmin/index'
)
?>
/"
+
$
(
"#city_code"
).
val
()
+
"_"
+
encodeURIComponent
(
$
(
"#building_title"
).
val
())
+
"_"
+
encodeURIComponent
(
$
(
"#customer_user"
).
val
())
+
"_"
+
$
(
"#customer_mobile"
).
val
()
+
"_"
+
$
(
"#recommend_status"
).
val
()
+
"_"
+
$
(
'#user_source'
).
val
();
});
});
function
EnterPress
(){
if
(
event
.
keyCode
==
13
){
$
(
'#search'
).
trigger
(
'click'
);
}
}
var
_total
=
<?php
echo
isset
(
$count
)
&&
$count
>
0
?
$count
:
0
;
?>
,
_condition
=
'
<?php
echo
isset
(
$condition
)
?
$condition
:
""
;
?>
'
,
_page_no
=
1
,
...
...
@@ -179,7 +183,7 @@
fa_class
=
"fa fa-lock"
;
var
btn_class
=
"red"
;
}
_html
+=
'<tr id="'
+
item
.
id
+
'">'
+
'<td>'
+
res
.
num_start
+
'</td>'
+
'<td>'
+
(
item
.
user_type
==
'4'
?
item
.
manager_id
:
item
.
sale_id
)
+
'</td>'
...
...
@@ -217,30 +221,30 @@
});
jQuery
(
document
).
on
(
"click"
,
"#view"
,
function
(){
var
$this
=
$
(
this
),
$data
=
$this
.
attr
(
'data'
);
var
$this
=
$
(
this
),
$data
=
$this
.
attr
(
'data'
);
var
$strs
=
$data
.
split
(
"|"
);
if
(
$strs
[
1
]
==
0
){
alert
(
'无客户信息'
);
}
else
{
url
=
"
<?php
echo
site_url
(
'admin/salesadmin/edit'
);
?>
"
+
'/'
+
$strs
[
0
];
window
.
location
.
href
=
url
;
}
});
jQuery
(
document
).
on
(
"click"
,
"#del"
,
function
(){
var
$this
=
$
(
this
),
$data
=
$this
.
attr
(
'data'
);
var
$this
=
$
(
this
),
$data
=
$this
.
attr
(
'data'
);
var
$strs
=
$data
.
split
(
"|"
);
location
.
href
=
"
<?php
echo
site_url
(
'admin/salesadmin/del'
)
?>
/"
+
$
(
"#city_code"
).
val
()
+
"_"
+
encodeURIComponent
(
$
(
"#building_title"
).
val
())
+
"_"
+
encodeURIComponent
(
$
(
"#customer_user"
).
val
())
location
.
href
=
"
<?php
echo
site_url
(
'admin/salesadmin/del'
)
?>
/"
+
$
(
"#city_code"
).
val
()
+
"_"
+
encodeURIComponent
(
$
(
"#building_title"
).
val
())
+
"_"
+
encodeURIComponent
(
$
(
"#customer_user"
).
val
())
+
"_"
+
$
(
"#customer_mobile"
).
val
()
+
"_"
+
$
(
"#recommend_status"
).
val
()
+
"_"
+
$strs
[
0
];
});
</script>
</body>
<!-- END BODY -->
</html>
\ No newline at end of file
</html>
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