Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
T
tongmeng-app
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
林海冰
tongmeng-app
Commits
914e7c9c
提交
914e7c9c
authored
1月 16, 2019
作者:
林海冰
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
init
上级
ae8de3f5
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
8 行增加
和
1394 行删除
+8
-1394
StoreService.java
...va/com/mall/service/mengbeng/store/impl/StoreService.java
+8
-8
banner_edit.jsp
src/main/webapp/WEB-INF/jsp/tongmeng/banner/banner_edit.jsp
+0
-268
banner_list.jsp
src/main/webapp/WEB-INF/jsp/tongmeng/banner/banner_list.jsp
+0
-602
oneclassfy_edit.jsp
...ebapp/WEB-INF/jsp/tongmeng/oneclassfy/oneclassfy_edit.jsp
+0
-164
oneclassfy_list.jsp
...ebapp/WEB-INF/jsp/tongmeng/oneclassfy/oneclassfy_list.jsp
+0
-352
没有找到文件。
src/main/java/com/mall/service/mengbeng/store/impl/StoreService.java
浏览文件 @
914e7c9c
...
...
@@ -28,7 +28,7 @@ public class StoreService implements StoreManager{
* @throws Exception
*/
public
int
save
(
PageData
pd
)
throws
Exception
{
return
(
int
)
dao
.
save
(
"
VehicleUser
Manager.save"
,
pd
);
return
(
int
)
dao
.
save
(
"
Store
Manager.save"
,
pd
);
}
/**删除
...
...
@@ -36,7 +36,7 @@ public class StoreService implements StoreManager{
* @throws Exception
*/
public
void
delete
(
PageData
pd
)
throws
Exception
{
dao
.
delete
(
"
VehicleUser
Manager.delete"
,
pd
);
dao
.
delete
(
"
Store
Manager.delete"
,
pd
);
}
...
...
@@ -45,7 +45,7 @@ public class StoreService implements StoreManager{
* @throws Exception
*/
public
void
edit
(
PageData
pd
)
throws
Exception
{
dao
.
update
(
"
VehicleUser
Manager.edit"
,
pd
);
dao
.
update
(
"
Store
Manager.edit"
,
pd
);
}
/**列表
...
...
@@ -54,7 +54,7 @@ public class StoreService implements StoreManager{
*/
@SuppressWarnings
(
"unchecked"
)
public
List
<
PageData
>
list
(
Page
page
)
throws
Exception
{
return
(
List
<
PageData
>)
dao
.
findForList
(
"
VehicleUser
Manager.datalistPage"
,
page
);
return
(
List
<
PageData
>)
dao
.
findForList
(
"
Store
Manager.datalistPage"
,
page
);
}
/**列表(全部)
...
...
@@ -63,7 +63,7 @@ public class StoreService implements StoreManager{
*/
@SuppressWarnings
(
"unchecked"
)
public
List
<
PageData
>
listAll
(
PageData
pd
)
throws
Exception
{
return
(
List
<
PageData
>)
dao
.
findForList
(
"
VehicleUser
Manager.listAll"
,
pd
);
return
(
List
<
PageData
>)
dao
.
findForList
(
"
Store
Manager.listAll"
,
pd
);
}
/**通过id获取数据
...
...
@@ -71,7 +71,7 @@ public class StoreService implements StoreManager{
* @throws Exception
*/
public
PageData
findById
(
PageData
pd
)
throws
Exception
{
return
(
PageData
)
dao
.
findForObject
(
"
VehicleUser
Manager.findById"
,
pd
);
return
(
PageData
)
dao
.
findForObject
(
"
Store
Manager.findById"
,
pd
);
}
/**批量删除
...
...
@@ -79,7 +79,7 @@ public class StoreService implements StoreManager{
* @throws Exception
*/
public
void
deleteAll
(
String
[]
ArrayDATA_IDS
)
throws
Exception
{
dao
.
delete
(
"
VehicleUser
Manager.deleteAll"
,
ArrayDATA_IDS
);
dao
.
delete
(
"
Store
Manager.deleteAll"
,
ArrayDATA_IDS
);
}
/**
* 查询是否存在该手机该的数据
...
...
@@ -88,7 +88,7 @@ public class StoreService implements StoreManager{
*/
@Override
public
int
findByPhone
(
PageData
pd
)
throws
Exception
{
return
(
int
)
dao
.
findForObject
(
"
VehicleUser
Manager.findByPhone"
,
pd
);
return
(
int
)
dao
.
findForObject
(
"
Store
Manager.findByPhone"
,
pd
);
}
}
...
...
src/main/webapp/WEB-INF/jsp/tongmeng/banner/banner_edit.jsp
浏览文件 @
914e7c9c
<
<<<<<<
HEAD
<%@ page
language=
"java"
contentType=
"text/html; charset=UTF-8"
pageEncoding=
"UTF-8"
%>
<%@ taglib
prefix=
"c"
uri=
"http://java.sun.com/jsp/jstl/core"
%>
<%@ taglib
prefix=
"fmt"
uri=
"http://java.sun.com/jsp/jstl/fmt"
%>
...
...
@@ -264,271 +263,4 @@
//图js start
</script>
</body>
=======
<%@ page
language=
"java"
contentType=
"text/html; charset=UTF-8"
pageEncoding=
"UTF-8"
%>
<%@ taglib
prefix=
"c"
uri=
"http://java.sun.com/jsp/jstl/core"
%>
<%@ taglib
prefix=
"fmt"
uri=
"http://java.sun.com/jsp/jstl/fmt"
%>
<%@ taglib
prefix=
"fn"
uri=
"http://java.sun.com/jsp/jstl/functions"
%>
<%
String
path
=
request
.
getContextPath
();
String
basePath
=
request
.
getScheme
()+
"://"
+
request
.
getServerName
()+
":"
+
request
.
getServerPort
()+
path
+
"/"
;
%>
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<!-- 下拉框 -->
<link
rel=
"stylesheet"
href=
"${pageContext.request.contextPath}/static/ace/css/chosen.css"
/>
<!-- jsp文件头和头部 -->
<%@ include
file=
"../../system/index/top.jsp"
%>
<!-- 日期框 -->
<%-- <link rel="stylesheet" href="${pageContext.request.contextPath}/static/ace/css/datepicker.css" /> --%>
<link
rel=
"stylesheet"
href=
"${pageContext.request.contextPath}/static/fun/bootstrap-datetimepicker.min.css"
/>
<link
rel=
"stylesheet"
href=
"${pageContext.request.contextPath}/static/ace/css/chosen.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"${pageContext.request.contextPath}/static/fun/css/base.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"${pageContext.request.contextPath}/static/fun/css/home.css"
>
<!-- jsp文件头和头部 -->
<%@ include
file=
"../../system/index/top.jsp"
%>
<%-- <script type="text/javascript" src="${pageContext.request.contextPath}/static/fun/js/jquery.min.js"></script> --%>
<script
type=
"text/javascript"
src=
"${pageContext.request.contextPath}/static/fun/js/up.js"
></script>
</head>
<body
class=
"no-skin"
>
<!-- /section:basics/navbar.layout -->
<div
class=
"main-container"
id=
"main-container"
>
<!-- /section:basics/sidebar -->
<div
class=
"main-content"
>
<div
class=
"main-content-inner"
>
<div
class=
"page-content"
>
<div
class=
"row"
>
<div
class=
"col-xs-12"
>
<section
class=
"aui-content"
>
<div
id=
"zhongxin"
style=
"padding-top: 13px;"
>
<div
style=
"height:20px;"
></div>
<div
class=
"aui-content-up"
>
<form
action=
"${msg }.do"
name=
"Form"
id=
"Form"
method=
"post"
enctype=
"multipart/form-data"
>
<!-- <div class="aui-content-up-form">
<h2>开户资质</h2>
</div> -->
<input
type=
"hidden"
name=
"banner_id"
id=
"banner_id"
value=
"${pd.banner_id}"
/>
<input
type=
"hidden"
name=
"type"
id=
"type"
value=
"${pd.type }"
/>
<div
class=
"aui-form-group clear"
>
<label
class=
"aui-label-control"
>
是否启用
<em>
*
</em>
</label>
<div
class=
"aui-form-input"
>
<select
class=
"chosen-select form-control"
name=
"is_satart_up"
id=
"is_satart_up"
data-placeholder=
"请选择"
style=
"vertical-align:top;width: 120px;"
>
<option
value=
"1"
${
pd
.
is_satart_up=
=1?'selected':''
}
>
启用
</option>
<option
value=
"0"
${
pd
.
is_satart_up=
=0?'selected':''
}
>
禁用
</option>
</select>
</div>
</div>
<div
class=
"aui-form-group clear"
>
<label
class=
"aui-label-control"
>
封面
<em>
*
</em>
<span>
小于2M
</span>
</label>
<div
class=
"aui-form-input"
>
<div
class=
"aui-content-img-box aui-content-full"
>
<div
class=
"aui-photo aui-up-img clear"
>
<input
type=
"hidden"
value=
"${pd.icom}"
id=
"icom"
name=
"icom"
>
<img
alt=
""
id=
"image111"
src=
"${pd.icom}"
style=
"width: 130px;height: 110px;"
>
<input
id=
"file"
type=
"file"
name=
"file"
onchange=
"uploadLogo();"
style=
"position: absolute; filter: alpha(opacity = 0); opacity: 0; width: 30px;"
accept=
"image/jpg,image/jpeg,image/png,image/bmp"
>
<a
class=
"btn btn-mini"
onclick=
"chooseImage()"
>
请选择
</a>
(图片比例100:48)
<%-- <section class="aui-file-up fl">
<c:if test="${pd.ICOM !=null}">
<img src="${pd.ICOM}" class="add-img">
</c:if>
<input type="file" name="file" id="file" value="" accept="image/jpg,image/jpeg,image/png,image/bmp" multiple/>
</section> --%>
</div>
</div>
</div>
</div>
</div>
</form>
</div>
<div
class=
"aui-btn-default"
>
<button
class=
"aui-btn aui-btn-account"
style=
"margin-left:30%"
onclick=
"sumitForm()"
>
上架
</button>
<button
class=
"aui-btn aui-btn-account"
onclick=
"top.Dialog.close();"
>
取消
</button>
</div>
</section>
<!-- mask begin -->
<div
class=
"aui-mask aui-works-mask"
>
<div
class=
"aui-mask-content"
>
<p
class=
"aui-delete-text"
>
确定要删除你上传的资料?
</p>
<p
class=
"aui-check-text"
>
<span
class=
"aui-delete aui-accept-ok"
onclick=
"sumintOk()"
id=
"sumintOk"
>
确定
</span>
<span
class=
"aui-accept-no"
>
取消
</span>
</p>
</div>
</div>
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</div>
<!-- /.page-content -->
</div>
</div>
<!-- /.main-content -->
</div>
<!-- /.main-container -->
<%@ include
file=
"../../system/index/foot.jsp"
%>
<!-- 下拉框 -->
<script
src=
"${pageContext.request.contextPath}/static/ace/js/chosen.jquery.js"
></script>
<!-- 日期框 -->
<%-- <script src="${pageContext.request.contextPath}/static/ace/js/date-time/bootstrap-datepicker.js"></script>
--%>
<script
src=
"${pageContext.request.contextPath}/static/fun/bootstrap-datetimepicker.js"
></script>
<script
src=
"${pageContext.request.contextPath}/static/fun/bootstrap-datetimepicker.zh-CN.js"
></script>
<!--提示框-->
<script
type=
"text/javascript"
src=
"${pageContext.request.contextPath}/static/js/jquery.tips.js"
></script>
<script
type=
"text/javascript"
>
$
(
top
.
hangge
());
$
(
function
()
{
$
(
".date-picker"
).
datetimepicker
({
language
:
"zh-CN"
,
format
:
'yyyy-mm-dd hh:ii'
,
autoclose
:
true
,
clearBtn
:
true
//添加清除按钮,可选值:true/false
});
//日期框
/* $('.date-picker').datepicker({
autoclose: true,
todayHighlight: true,
clearBtn:true
}); */
//下拉框
if
(
!
ace
.
vars
[
'touch'
])
{
$
(
'.chosen-select'
).
chosen
({
allow_single_deselect
:
true
});
$
(
window
).
off
(
'resize.chosen'
).
on
(
'resize.chosen'
,
function
()
{
$
(
'.chosen-select'
).
each
(
function
()
{
var
$this
=
$
(
this
);
$this
.
next
().
css
({
'width'
:
$this
.
parent
().
width
()
});
});
}).
trigger
(
'resize.chosen'
);
$
(
document
).
on
(
'settings.ace.chosen'
,
function
(
e
,
event_name
,
event_val
)
{
if
(
event_name
!=
'sidebar_collapsed'
)
return
;
$
(
'.chosen-select'
).
each
(
function
()
{
var
$this
=
$
(
this
);
$this
.
next
().
css
({
'width'
:
$this
.
parent
().
width
()
});
});
});
$
(
'#chosen-multiple-style .btn'
).
on
(
'click'
,
function
(
e
)
{
var
target
=
$
(
this
).
find
(
'input[type=radio]'
);
var
which
=
parseInt
(
target
.
val
());
if
(
which
==
2
)
$
(
'#form-field-select-4'
).
addClass
(
'tag-input-style'
);
else
$
(
'#form-field-select-4'
).
removeClass
(
'tag-input-style'
);
});
}
//复选框全选控制
});
//保存
function
sumitForm
()
{
if
(
$
(
"#file"
).
val
()
==
""
&&
"${pd.icom}"
==
""
){
$
(
"#file"
).
tips
({
side
:
3
,
msg
:
"图标不能为空! "
,
bg
:
'#AE81FF'
,
time
:
3
});
return
false
;
}
$
(
"#Form"
).
submit
();
}
//图js start
function
chooseImage
()
{
$
(
"#file"
).
click
();
}
function
uploadLogo
()
{
var
file
=
document
.
getElementById
(
"file"
).
files
[
0
];
if
(
!
checkPic
(
file
)){
return
false
;
}
/* var logo_url = uploadFile(file); */
var
logo_url
=
getObjectURL
(
file
);
$
(
'#image111'
).
attr
(
'src'
,
logo_url
);
$
(
'#icom'
).
val
(
logo_url
);
}
//建立一個可存取到該file的url
function
getObjectURL
(
file
)
{
var
url
=
null
;
if
(
window
.
createObjectURL
!=
undefined
)
{
// basic
url
=
window
.
createObjectURL
(
file
)
;
}
else
if
(
window
.
URL
!=
undefined
)
{
// mozilla(firefox)
url
=
window
.
URL
.
createObjectURL
(
file
)
;
}
else
if
(
window
.
webkitURL
!=
undefined
)
{
// webkit or chrome
url
=
window
.
webkitURL
.
createObjectURL
(
file
)
;
}
return
url
;
}
function
checkPic
(
file
){
var
fileName
=
file
.
name
.
toLowerCase
().
split
(
'.'
).
splice
(
-
1
);
var
fileSize
=
file
.
size
;
if
(
"png-jpg-gif-jpeg"
.
indexOf
(
fileName
)
<
0
){
alert
(
"只能上传png-jpg-gif-jpeg格式的图片"
);
return
false
;
}
if
(
fileSize
>
2
*
1024
*
1024
){
alert
(
"图片不能超过2M"
);
return
false
;
}
return
true
;
}
//图js start
</script>
</body>
>>>>>>> branch 'master' of http://code.diaosaas.com/linhaibing/tongmeng-app.git
</html>
\ No newline at end of file
src/main/webapp/WEB-INF/jsp/tongmeng/banner/banner_list.jsp
浏览文件 @
914e7c9c
<
<<<<<<
HEAD
<%@ page
language=
"java"
contentType=
"text/html; charset=UTF-8"
pageEncoding=
"UTF-8"
%>
<%@ taglib
prefix=
"c"
uri=
"http://java.sun.com/jsp/jstl/core"
%>
...
...
@@ -598,605 +597,4 @@ $(document).ready(function() {
});
</script>
</body>
=======
<%@ page
language=
"java"
contentType=
"text/html; charset=UTF-8"
pageEncoding=
"UTF-8"
%>
<%@ taglib
prefix=
"c"
uri=
"http://java.sun.com/jsp/jstl/core"
%>
<%@ taglib
prefix=
"fmt"
uri=
"http://java.sun.com/jsp/jstl/fmt"
%>
<%
String
path
=
request
.
getContextPath
();
String
basePath
=
request
.
getScheme
()
+
"://"
+
request
.
getServerName
()
+
":"
+
request
.
getServerPort
()
+
path
+
"/"
;
%>
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<link
rel=
"stylesheet"
href=
"${pageContext.request.contextPath}/static/ace/css/chosen.css"
/>
<!-- jsp文件头和头部 -->
<%@ include
file=
"../../system/index/top.jsp"
%>
<!-- 日期框 -->
<link
rel=
"stylesheet"
href=
"${pageContext.request.contextPath}/static/ace/css/datepicker.css"
/>
<link
rel=
"stylesheet"
href=
"${pageContext.request.contextPath}/static/fun/jquery.growl/stylesheets/jquery.growl.css"
/>
</head>
<style
type=
"text/css"
>
.csshidden
{
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
max-width
:
200px
}
;
</style>
<style>
html
,
body
{
margin
:
0
;
padding
:
0
;
font-family
:
"Microsoft YaHei"
;
}
.wrap-dialog
{
position
:
fixed
;
top
:
0
;
left
:
0
;
width
:
100%
;
height
:
100%
;
font-size
:
16px
;
text-align
:
center
;
background-color
:
rgba
(
0
,
0
,
0
,
.4
);
z-index
:
999
;
}
.dialog
{
position
:
relative
;
margin
:
10%
auto
;
width
:
400px
;
background-color
:
#FFFFFF
;
}
.dialog
.dialog-header
{
height
:
50px
;
padding
:
10px
;
background-color
:
#22b9ff
;
}
.dialog
.dialog-body
{
padding-bottom
:
50px
;
padding
:
20px
;
}
.dialog
.dialog-footer
{
padding
:
8px
;
background-color
:
#f5f5f5
;
}
.dialog-btn
{
width
:
70px
;
padding
:
2px
;
cursor
:
pointer
;
}
.dialog-hide
{
display
:
none
;
}
.dialog-ml50
{
margin-left
:
10px
;
}
</style>
<body
class=
"no-skin"
>
<!-- /section:basics/navbar.layout -->
<div
class=
"main-container"
id=
"main-container"
>
<!-- /section:basics/sidebar -->
<div
class=
"main-content"
>
<div
class=
"main-content-inner"
>
<div
class=
"page-content"
>
<div
class=
"row"
>
<div
class=
"col-xs-12"
>
<!-- 检索 -->
<form
action=
"list.do"
method=
"post"
name=
"Form"
id=
"Form"
>
<table
style=
"margin-top:5px;"
>
<tr>
<!--
<td>
<div class="nav-search">
<span class="input-icon">
<input type="text" placeholder="标题" class="nav-search-input" id="nav-search-input" autocomplete="off" name="keywords" value="${pd.keywords }" placeholder="这里输入关键词" style="width:200px"/>
<i class="ace-icon fa fa-search nav-search-icon"></i>
</span>
</div>
</td>
<td style="padding-left:2px;"><input class="span10 date-picker" name="lastStart" id="lastStart" value="${pd.lastStart }" type="text" data-date-format="yyyy-mm-dd" readonly="readonly" style="width:88px;" placeholder="开始日期" title="开始日期"/></td>
<td style="padding-left:2px;"><input class="span10 date-picker" name="lastEnd" name="lastEnd" value="${pd.lastEnd }" type="text" data-date-format="yyyy-mm-dd" readonly="readonly" style="width:88px;" placeholder="结束日期" title="结束日期"/></td>
-->
<td
style=
"vertical-align:top;padding-left:2px;"
>
<select
class=
"chosen-select form-control"
name=
"is_satart_up"
id=
"is_satart_up"
data-placeholder=
"请选择"
style=
"vertical-align:top;width: 120px;"
>
<option
value=
""
>
全部
</option>
<option
value=
"0"
${
pd
.
is_satart_up=
='0'?'selected':''
}
>
禁用
</option>
<option
value=
"1"
${
pd
.
is_satart_up=
='1'?'selected':''
}
>
启用
</option>
</select>
</td>
<c:if
test=
"
${
QX
.
cha
==
1
}
"
>
<td
style=
"vertical-align:top;padding-left:2px"
><a
class=
"btn btn-light btn-xs"
onclick=
"tosearch();"
title=
"检索"
><i
id=
"nav-search-icon"
class=
"ace-icon fa fa-search bigger-110 nav-search-icon blue"
></i></a></td>
</c:if>
<%--
<c:if test="${QX.toExcel == 1 }"><td style="vertical-align:top;padding-left:2px;"><a class="btn btn-light btn-xs" onclick="toExcel();" title="导出到EXCEL"><i id="nav-search-icon" class="ace-icon fa fa-download bigger-110 nav-search-icon blue"></i></a></td></c:if>
--%>
<td
style=
"vertical-align:top;"
>
<c:if
test=
"
${
QX
.
add
==
1
}
"
>
<input
type=
"button"
value=
"新增"
class=
"dialog-btn dialog-ml50"
id=
"dialog-remove"
>
<!-- <a class="btn btn-mini btn-success" onclick="add();">新增</a> -->
</c:if>
<c:if
test=
"
${
QX
.
del
==
1
}
"
>
<input
type=
"button"
value=
"删除"
onclick=
"makeAll('确定要删除选中的数据吗?');"
>
<!-- <a class="btn btn-mini btn-danger" onclick="makeAll('确定要删除选中的数据吗?');" title="批量删除" ><i class='ace-icon fa fa-trash-o bigger-120'></i></a> -->
</c:if>
</td>
</tr>
</table>
<!-- 检索 -->
<table
id=
"simple-table"
class=
"table table-striped table-bordered table-hover"
style=
"margin-top:5px;"
>
<thead>
<tr>
<th
class=
"center"
style=
"width:35px;"
>
<label
class=
"pos-rel"
><input
type=
"checkbox"
class=
"ace"
id=
"zcheckbox"
/><span
class=
"lbl"
></span></label>
</th>
<th
class=
"center"
>
序号
</th>
<th
class=
"center"
>
类型
</th>
<th
class=
"center"
>
排序
</th>
<th
class=
"center"
>
封面图
</th>
<th
class=
"center"
>
绑定的活动ID
</th>
<th
class=
"center "
>
排序操作
</th>
<th
class=
"center "
>
操作
</th>
</thead>
<tbody>
<!-- 开始循环 -->
<c:choose>
<c:when
test=
"
${
not
empty
varList
}
"
>
<c:if
test=
"
${
QX
.
cha
==
1
}
"
>
<c:forEach
items=
"
${
varList
}
"
var=
"var"
varStatus=
"vs"
>
<tr>
<td
class=
'center'
>
<label
class=
"pos-rel"
><input
type=
'checkbox'
id=
"ids"
name=
'ids'
value=
"${var.banner_id}"
class=
"ace"
/><span
class=
"lbl"
></span></label>
</td>
<td
class=
'center'
>
${(vs.index+1)+((page.currentPage-1)*10)}
</td>
<td
class=
'center'
>
${var.is_satart_up=='0'?'禁用':'启用'}
</td>
<td
class=
'center'
>
${var.type=='1'?'车链接':'资讯链接'}
</td>
<td
class=
'center'
><img
src=
"${var.icom}"
style=
"width: 100px;cursor: pointer; "
/></td>
<td
class=
'center'
id=
"id_${var.banner_id}"
>
${var.show_id}
</td>
<td
class=
"center"
>
<div
class=
"hidden-sm hidden-xs btn-group "
>
<c:if
test=
"
${
QX
.
edit
==
1
}
"
>
<a
class=
" btn btn-xs btn-danger"
title=
"编辑"
onclick=
"editOrder('${var.banner_id}','${var.order_code}',1);"
>
<i
class=
"fa fa-arrow-up"
></i>
</a>
<a
class=
" btn btn-xs btn-danger"
title=
"编辑"
onclick=
"editOrder('${var.banner_id}','${var.order_code}',2);"
style=
"margin-left: 20px"
>
<i
class=
"fa fa-chevron-up"
></i>
</a>
<a
class=
" btn btn-xs btn-danger"
title=
"编辑"
onclick=
"editOrder('${var.banner_id}','${var.order_code}',3);"
style=
"margin-left: 20px"
>
<i
class=
"fa fa-chevron-down"
></i>
</a>
<a
class=
" btn btn-xs btn-danger"
title=
"编辑"
onclick=
"editOrder('${var.banner_id}','${var.order_code}',4);"
style=
" margin-left: 20px"
>
<i
class=
"fa fa-arrow-down"
></i>
</a>
</c:if>
<%-- <c:if test="${QX.del == 1 }">
<a class="btn btn-xs btn-danger" onclick="del('${var.BANNER_ID}');">
<i class="ace-icon fa fa-trash-o bigger-120" title="删除"></i>
</a>
</c:if> --%>
</div>
</td>
<td
class=
"center"
>
<div
class=
"hidden-sm hidden-xs btn-group "
>
<c:if
test=
"
${
QX
.
edit
==
1
}
"
>
<a
style=
"cursor:pointer;"
onclick=
"edit('${var.banner_id}','${var.type}');"
class=
"btn btn-xs btn-danger"
"
data-rel=
"tooltip"
title=
"修改"
>
<span
class=
"while"
>
<i
class=
"ace-icon fa fa-pencil-square-o bigger-120"
></i>
</span>
</a>
<a
style=
"cursor:pointer;"
onclick=
"foruminfoList('${var.banner_id}','${var.type }');"
class=
"btn btn-xs btn-danger"
data-rel=
"tooltip"
title=
"外部链接设置"
>
<span
class=
"while"
>
<i
class=
"ace-icon fa fa-random bigger-120"
></i>
</span>
</a>
</c:if>
</div>
</td>
</tr>
</c:forEach>
</c:if>
<c:if
test=
"
${
QX
.
cha
==
0
}
"
>
<tr>
<td
colspan=
"100"
class=
"center"
>
您无权查看
</td>
</tr>
</c:if>
</c:when>
<c:otherwise>
<tr
class=
"main_info"
>
<td
colspan=
"100"
class=
"center"
>
没有相关数据
</td>
</tr>
</c:otherwise>
</c:choose>
</tbody>
</table>
<div
class=
"page-header position-relative"
>
<table
style=
"width:100%;"
>
<tr>
<td
style=
"vertical-align:top;"
><div
class=
"pagination"
style=
"float: right;padding-top: 0px;margin-top: 0px;"
>
${page.pageStr}
</div></td>
</tr>
</table>
</div>
</form>
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</div>
<!-- /.page-content -->
</div>
</div>
<!-- /.main-content -->
<!-- 返回顶部 -->
<a
href=
"#"
id=
"btn-scroll-up"
class=
"btn-scroll-up btn btn-sm btn-inverse"
>
<i
class=
"ace-icon fa fa-angle-double-up icon-only bigger-110"
></i>
</a>
</div>
<!-- 自定义警告框 -->
<div
class=
"wrap-dialog dialog-hide"
>
<div
class=
"dialog"
id=
"dialog"
>
<div
class=
"dialog-header"
>
<!-- <span class="dialog-title">请选择banner 选择类型</span> -->
</div>
<div
class=
"dialog-body"
>
<span
class=
"dialog-message"
>
你确认删除此条信息?
</span>
</div>
<div
class=
"dialog-footer"
>
<input
type=
"button"
class=
"dialog-btn"
id=
"dialog-confirm"
value=
"车模式"
style=
"margin-left: 50px"
/>
<input
type=
"button"
class=
"dialog-btn dialog-ml50"
id=
"dialog-cancel"
value=
"资讯模式"
style=
"margin:0 auto"
/>
<input
type=
"button"
class=
"dialog-btn dialog-ml51"
value=
"取消"
style=
"margin-right: 50px"
/>
</div>
</div>
</div>
<!-- /.main-container -->
<!-- basic scripts -->
<!-- 页面底部js¨ -->
<%@ include
file=
"../../system/index/foot.jsp"
%>
<!-- 删除时确认窗口 -->
<script
src=
"${pageContext.request.contextPath}/static/ace/js/bootbox.js"
></script>
<!-- ace scripts -->
<script
src=
"${pageContext.request.contextPath}/static/ace/js/ace/ace.js"
></script>
<!-- 下拉框 -->
<script
src=
"${pageContext.request.contextPath}/static/ace/js/chosen.jquery.js"
></script>
<!-- 日期框 -->
<script
src=
"${pageContext.request.contextPath}/static/ace/js/date-time/bootstrap-datepicker.js"
></script>
<!--提示框-->
<script
type=
"text/javascript"
src=
"${pageContext.request.contextPath}/static/js/jquery.tips.js"
></script>
<!-- bootstrap提示 -->
<script
type=
"text/javascript"
src=
"${pageContext.request.contextPath}/static/fun/jquery.growl/javascripts/jquery.growl.js"
></script>
<script
type=
"text/javascript"
>
$
(
top
.
hangge
());
//关闭加载状态
//检索
function
tosearch
(){
top
.
jzts
();
$
(
"#Form"
).
submit
();
}
$
(
function
()
{
//日期框
$
(
'.date-picker'
).
datepicker
({
autoclose
:
true
,
todayHighlight
:
true
,
clearBtn
:
true
});
//下拉框
if
(
!
ace
.
vars
[
'touch'
])
{
$
(
'.chosen-select'
).
chosen
({
allow_single_deselect
:
true
});
$
(
window
)
.
off
(
'resize.chosen'
)
.
on
(
'resize.chosen'
,
function
()
{
$
(
'.chosen-select'
).
each
(
function
()
{
var
$this
=
$
(
this
);
$this
.
next
().
css
({
'width'
:
$this
.
parent
().
width
()});
});
}).
trigger
(
'resize.chosen'
);
$
(
document
).
on
(
'settings.ace.chosen'
,
function
(
e
,
event_name
,
event_val
)
{
if
(
event_name
!=
'sidebar_collapsed'
)
return
;
$
(
'.chosen-select'
).
each
(
function
()
{
var
$this
=
$
(
this
);
$this
.
next
().
css
({
'width'
:
$this
.
parent
().
width
()});
});
});
$
(
'#chosen-multiple-style .btn'
).
on
(
'click'
,
function
(
e
){
var
target
=
$
(
this
).
find
(
'input[type=radio]'
);
var
which
=
parseInt
(
target
.
val
());
if
(
which
==
2
)
$
(
'#form-field-select-4'
).
addClass
(
'tag-input-style'
);
else
$
(
'#form-field-select-4'
).
removeClass
(
'tag-input-style'
);
});
}
//复选框全选控制
var
active_class
=
'active'
;
$
(
'#simple-table > thead > tr > th input[type=checkbox]'
).
eq
(
0
).
on
(
'click'
,
function
(){
var
th_checked
=
this
.
checked
;
//checkbox inside "TH" table header
$
(
this
).
closest
(
'table'
).
find
(
'tbody > tr'
).
each
(
function
(){
var
row
=
this
;
if
(
th_checked
)
$
(
row
).
addClass
(
active_class
).
find
(
'input[type=checkbox]'
).
eq
(
0
).
prop
(
'checked'
,
true
);
else
$
(
row
).
removeClass
(
active_class
).
find
(
'input[type=checkbox]'
).
eq
(
0
).
prop
(
'checked'
,
false
);
});
});
});
//新增
function
add
(){
top
.
jzts
();
var
diag
=
new
top
.
Dialog
();
diag
.
Drag
=
true
;
diag
.
Title
=
"新增"
;
diag
.
URL
=
'${pageContext.request.contextPath}/banner/goAdd.do?type=1'
;
diag
.
Width
=
1024
;
diag
.
Height
=
1024
;
diag
.
Modal
=
true
;
//有无遮罩窗口
diag
.
ShowMaxButton
=
true
;
//最大化按钮
diag
.
ShowMinButton
=
true
;
//最小化按钮
diag
.
CancelEvent
=
function
(){
//关闭事件
if
(
diag
.
innerFrame
.
contentWindow
.
document
.
getElementById
(
'zhongxin'
).
style
.
display
==
'none'
){
nextPage
(
$
{
page
.
totalPage
});
}
diag
.
close
();
};
diag
.
show
();
}
//删除
function
del
(
Id
){
bootbox
.
confirm
(
"确定要删除吗?"
,
function
(
result
)
{
if
(
result
)
{
top
.
jzts
();
var
url
=
"${pageContext.request.contextPath}/banner/delete.do?BANNER_ID="
+
Id
+
"&tm="
+
new
Date
().
getTime
();
$
.
get
(
url
,
function
(
data
){
nextPage
(
$
{
page
.
currentPage
});
});
}
});
}
//修改
function
edit
(
Id
,
type
){
top
.
jzts
();
var
diag
=
new
top
.
Dialog
();
diag
.
Drag
=
true
;
diag
.
Title
=
"编辑"
;
diag
.
URL
=
'${pageContext.request.contextPath}/banner/goEdit.do?banner_id='
+
Id
+
'+&type='
+
type
;
diag
.
Width
=
1024
;
diag
.
Height
=
1024
;
diag
.
Modal
=
true
;
//有无遮罩窗口
diag
.
ShowMaxButton
=
true
;
//最大化按钮
diag
.
ShowMinButton
=
true
;
//最小化按钮
diag
.
CancelEvent
=
function
(){
//关闭事件
if
(
diag
.
innerFrame
.
contentWindow
.
document
.
getElementById
(
'zhongxin'
).
style
.
display
==
'none'
){
nextPage
(
$
{
page
.
currentPage
});
}
diag
.
close
();
};
diag
.
show
();
}
//绑定FORUMINDO_show_id
function
foruminfoList
(
id
,
type
){
top
.
jzts
();
var
diag
=
new
top
.
Dialog
();
diag
.
Drag
=
true
;
diag
.
Title
=
"编辑"
;
diag
.
URL
=
'${pageContext.request.contextPath}/banner/foruminfoList.do?bannerId='
+
id
+
'&TYPE='
+
type
;
diag
.
Width
=
1024
;
diag
.
Height
=
1024
;
diag
.
Modal
=
true
;
//有无遮罩窗口
diag
.
ShowMaxButton
=
true
;
//最大化按钮
diag
.
ShowMinButton
=
true
;
//最小化按钮
diag
.
CancelEvent
=
function
(){
//关闭事件
/* if(diag.innerFrame.contentWindow.document.getElementById('zhongxin').style.display == 'none'){
*/
/* $.growl.error({ title: "", message: "不能为空!" });
$("#order_code_"+index).focus(); */
if
(
diag
.
innerFrame
.
contentWindow
.
document
.
getElementById
(
'showId'
).
type
==
'hidden'
){
$
.
growl
.
notice
({
title
:
" "
,
message
:
"绑定成功!"
});
$
(
"#id_"
+
id
).
html
(
diag
.
innerFrame
.
contentWindow
.
document
.
getElementById
(
'showId'
).
value
);
}
/* nextPage(${page.currentPage}); */
/* } */
diag
.
close
();
};
diag
.
show
();
}
//批量操作
function
makeAll
(
msg
){
bootbox
.
confirm
(
msg
,
function
(
result
)
{
if
(
result
)
{
var
str
=
''
;
for
(
var
i
=
0
;
i
<
document
.
getElementsByName
(
'ids'
).
length
;
i
++
){
if
(
document
.
getElementsByName
(
'ids'
)[
i
].
checked
){
if
(
str
==
''
)
str
+=
document
.
getElementsByName
(
'ids'
)[
i
].
value
;
else
str
+=
','
+
document
.
getElementsByName
(
'ids'
)[
i
].
value
;
}
}
if
(
str
==
''
){
bootbox
.
dialog
({
message
:
"<span class='bigger-110'>您没有选择任何内容!</span>"
,
buttons
:
{
"button"
:{
"label"
:
"确定"
,
"className"
:
"btn-sm btn-success"
}}
});
$
(
"#zcheckbox"
).
tips
({
side
:
1
,
msg
:
'点这里全选'
,
bg
:
'#AE81FF'
,
time
:
8
});
return
;
}
else
{
if
(
msg
==
'确定要删除选中的数据吗?'
){
top
.
jzts
();
$
.
ajax
({
type
:
"POST"
,
url
:
'${pageContext.request.contextPath}/banner/deleteAll.do?tm='
+
new
Date
().
getTime
(),
data
:
{
DATA_IDS
:
str
},
dataType
:
'json'
,
//beforeSend: validateData,
cache
:
false
,
success
:
function
(
data
){
nextPage
(
$
{
page
.
currentPage
});
}
});
}
}
}
});
};
//新增
function
addurl
(){
top
.
jzts
();
var
diag
=
new
top
.
Dialog
();
diag
.
Drag
=
true
;
diag
.
Title
=
"新增"
;
diag
.
URL
=
'${pageContext.request.contextPath}/banner/goAddUrl.do?type=2'
;
diag
.
Width
=
1024
;
diag
.
Height
=
1024
;
diag
.
Modal
=
true
;
//有无遮罩窗口
diag
.
ShowMaxButton
=
true
;
//最大化按钮
diag
.
ShowMinButton
=
true
;
//最小化按钮
diag
.
CancelEvent
=
function
(){
//关闭事件
if
(
diag
.
innerFrame
.
contentWindow
.
document
.
getElementById
(
'zhongxin'
).
style
.
display
==
'none'
){
nextPage
(
$
{
page
.
totalPage
});
}
diag
.
close
();
};
diag
.
show
();
}
function
editOrder
(
clickId
,
clickCOde
,
opetion
){
top
.
jzts
();
var
result
=
"yes"
;
if
(
opetion
==
1
){
result
=
updateCode
(
clickId
,
clickCOde
,
'1'
);
}
else
if
(
opetion
==
2
){
result
=
updateCode
(
clickId
,
clickCOde
,
'2'
);
}
else
if
(
opetion
==
3
){
result
=
updateCode
(
clickId
,
clickCOde
,
'3'
);
}
else
{
result
=
updateCode
(
clickId
,
clickCOde
,
'4'
);
}
if
(
result
==
"ok"
){
nextPage
(
$
{
page
.
currentPage
});
}
else
{
alert
(
"操作异常!"
);
}
}
function
updateCode
(
newId
,
newCode
,
opetion
){
var
result
=
"no"
;
$
.
ajax
({
type
:
"POST"
,
url
:
'${pageContext.request.contextPath}/banner/updateOrderCode.do?tm='
+
new
Date
().
getTime
(),
data
:
{
'newId'
:
newId
,
'newCode'
:
newCode
,
'opetion'
:
opetion
},
dataType
:
'json'
,
//beforeSend: validateData,
cache
:
false
,
async
:
false
,
success
:
function
(
data
){
result
=
data
.
mag
;
}
});
return
result
;
}
/**
* 自定义警告框js
*/
$
(
document
).
ready
(
function
()
{
//自定義部分
window
.
confirm
=
function
(
message
,
yesCallBack
,
noCallBack
)
{
var
message
=
message
||
"确认删除此条信息?"
;
var
choose
=
function
(
tag
){
return
document
.
querySelector
(
tag
);
}
choose
(
".dialog-message"
).
innerHTML
=
message
;
// 显示遮罩和对话框
choose
(
".wrap-dialog"
).
className
=
"wrap-dialog"
;
// 确定按钮
choose
(
"#dialog"
).
onclick
=
function
(
e
){
if
(
e
.
target
.
className
==
"dialog-btn"
){
choose
(
".wrap-dialog"
).
className
=
"wrap-dialog dialog-hide"
;
yesCallBack
();
}
else
if
(
e
.
target
.
className
==
"dialog-btn dialog-ml50"
){
choose
(
".wrap-dialog"
).
className
=
"wrap-dialog dialog-hide"
;
noCallBack
();
}
else
if
(
e
.
target
.
className
==
"dialog-btn dialog-ml51"
){
choose
(
".wrap-dialog"
).
className
=
"wrap-dialog dialog-hide"
;
// ok();
}
};
// 取消按钮
}
$
(
'#dialog-remove'
).
click
(
function
()
{
confirm
(
"请选择类型"
,
add
,
addurl
);
});
});
</script>
</body>
>>>>>>> branch 'master' of http://code.diaosaas.com/linhaibing/tongmeng-app.git
</html>
\ No newline at end of file
src/main/webapp/WEB-INF/jsp/tongmeng/oneclassfy/oneclassfy_edit.jsp
浏览文件 @
914e7c9c
<
<<<<<<
HEAD
<%@ page
language=
"java"
contentType=
"text/html; charset=UTF-8"
pageEncoding=
"UTF-8"
%>
<%@ taglib
prefix=
"c"
uri=
"http://java.sun.com/jsp/jstl/core"
%>
<%@ taglib
prefix=
"fmt"
uri=
"http://java.sun.com/jsp/jstl/fmt"
%>
...
...
@@ -160,167 +159,4 @@
});
</script>
</body>
=======
<%@ page
language=
"java"
contentType=
"text/html; charset=UTF-8"
pageEncoding=
"UTF-8"
%>
<%@ taglib
prefix=
"c"
uri=
"http://java.sun.com/jsp/jstl/core"
%>
<%@ taglib
prefix=
"fmt"
uri=
"http://java.sun.com/jsp/jstl/fmt"
%>
<%@ taglib
prefix=
"fn"
uri=
"http://java.sun.com/jsp/jstl/functions"
%>
<%
String
path
=
request
.
getContextPath
();
String
basePath
=
request
.
getScheme
()+
"://"
+
request
.
getServerName
()+
":"
+
request
.
getServerPort
()+
path
+
"/"
;
%>
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<!-- 下拉框 -->
<link
rel=
"stylesheet"
href=
"${pageContext.request.contextPath}/static/ace/css/chosen.css"
/>
<!-- jsp文件头和头部 -->
<%@ include
file=
"../../system/index/top.jsp"
%>
<!-- 日期框 -->
<link
rel=
"stylesheet"
href=
"${pageContext.request.contextPath}/static/ace/css/datepicker.css"
/>
</head>
<body
class=
"no-skin"
>
<!-- /section:basics/navbar.layout -->
<div
class=
"main-container"
id=
"main-container"
>
<!-- /section:basics/sidebar -->
<div
class=
"main-content"
>
<div
class=
"main-content-inner"
>
<div
class=
"page-content"
>
<div
class=
"row"
>
<div
class=
"col-xs-12"
>
<form
action=
"${msg }.do"
name=
"Form"
id=
"Form"
method=
"post"
enctype=
"multipart/form-data"
>
<input
type=
"hidden"
name=
"CLASSIFY_ID"
id=
"CLASSIFY_ID"
value=
"${pd.CLASSIFY_ID}"
/>
<div
id=
"zhongxin"
style=
"padding-top: 13px;"
>
<table
id=
"table_report"
class=
"table table-striped table-bordered table-hover"
>
<tr>
<td
style=
"width:75px;text-align: right;padding-top: 13px;"
>
名称:
</td>
<td><input
type=
"text"
name=
"NAME"
id=
"NAME"
value=
"${pd.NAME}"
maxlength=
"50"
placeholder=
"这里输入名称"
title=
"名称"
style=
"width:98%;"
/></td>
</tr>
<tr>
<td
style=
"width:75px;text-align: right;padding-top: 13px;"
>
二级类型:
</td>
<td>
<select
id=
"ONE_CLASSFY_TAG"
name=
"ONE_CLASSFY_TAG"
${
msg=
='edit'?'disabled="disabled"
style=
"background-color: #F5F5F5"
'
:
''
}
>
<option
value=
"1"
${
pd
.
ONE_CLASSFY_TAG =
='1'?'selected':''}
>
没有二级
</option>
<option
value=
"2"
${
pd
.
ONE_CLASSFY_TAG =
='2'?'selected':''}
>
车牌
</option>
<option
value=
"3"
${
pd
.
ONE_CLASSFY_TAG =
='3'?'selected':''}
>
二级分类
</option>
</select>
</td>
</tr>
<tr>
<td
style=
"width:75px;text-align: right;padding-top: 13px;"
>
封图:
</td>
<td>
<div
class=
"aui-form-input"
>
<div
class=
"aui-content-img-box aui-content-full"
>
<div
class=
"aui-photo aui-up-img clear"
>
<input
type=
"hidden"
value=
"${pd.ICOM}"
id=
"ICOM"
name=
"ICOM"
>
<img
alt=
""
id=
"add-img"
src=
"${pd.ICOM}"
style=
"width: 130px;height: 110px;"
>
<input
id=
"file"
type=
"file"
name=
"file"
style=
"position: absolute; filter: alpha(opacity = 0); opacity: 0; width: 30px;"
accept=
"image/jpg,image/jpeg,image/png,image/bmp"
/>
<a
class=
"btn btn-mini"
onclick=
"chooseImage()"
>
请选择
</a>
<%--(图片比例100:48)--%>
<%-- <section class="aui-file-up fl">
<c:if test="${pd.ICOM !=null}">
<img src="${pd.icom}" class="add-img" id="icom">
</c:if>
<input type="file" name="file" id="file" value="" accept="image/jpg,image/jpeg,image/png,image/bmp" multiple/>
</section> --%>
</div>
</div>
</div>
</td>
</tr>
<tr>
<td
style=
"text-align: center;"
colspan=
"10"
>
<a
class=
"btn btn-mini btn-primary"
onclick=
"save();"
>
保存
</a>
<a
class=
"btn btn-mini btn-danger"
onclick=
"top.Dialog.close();"
>
取消
</a>
</td>
</tr>
</table>
</div>
<div
id=
"zhongxin2"
class=
"center"
style=
"display:none"
><br/><br/><br/><br/><br/><img
src=
"static/images/jiazai.gif"
/><br/><h4
class=
"lighter block green"
>
提交中...
</h4></div>
</form>
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</div>
<!-- /.page-content -->
</div>
</div>
<!-- /.main-content -->
</div>
<!-- /.main-container -->
<!-- 页面底部js¨ -->
<%@ include
file=
"../../system/index/foot.jsp"
%>
<!-- 下拉框 -->
<script
src=
"${pageContext.request.contextPath}/static/ace/js/chosen.jquery.js"
></script>
<!-- 日期框 -->
<script
src=
"${pageContext.request.contextPath}/static/ace/js/date-time/bootstrap-datepicker.js"
></script>
<!--提示框-->
<script
type=
"text/javascript"
src=
"${pageContext.request.contextPath}/static/js/jquery.tips.js"
></script>
<script
type=
"text/javascript"
>
$
(
top
.
hangge
());
//保存
function
save
(){
if
(
$
(
"#NAME"
).
val
()
==
""
){
$
(
"#NAME"
).
tips
({
side
:
3
,
msg
:
'请输入名称'
,
bg
:
'#AE81FF'
,
time
:
2
});
$
(
"#NAME"
).
focus
();
return
false
;
}
if
(
$
(
"#ICOM"
).
val
()
==
""
){
$
(
"#ICOM"
).
tips
({
side
:
3
,
msg
:
'请输入分类图标'
,
bg
:
'#AE81FF'
,
time
:
2
});
$
(
"#ICOM"
).
focus
();
return
false
;
}
$
(
"#Form"
).
submit
();
$
(
"#zhongxin"
).
hide
();
$
(
"#zhongxin2"
).
show
();
}
//图片预览
function
chooseImage
()
{
$
(
"#file"
).
click
();
}
$
(
"#file"
).
change
(
function
(){
var
objUrl
=
getObjectURL
(
this
.
files
[
0
])
;
console
.
log
(
"objUrl = "
+
objUrl
)
;
if
(
objUrl
)
{
$
(
"#add-img"
).
attr
(
"src"
,
objUrl
)
;
$
(
"#ICOM"
).
val
(
objUrl
);
}
});
//建立一個可存取到該file的url
function
getObjectURL
(
file
)
{
var
url
=
null
;
if
(
window
.
createObjectURL
!=
undefined
)
{
// basic
url
=
window
.
createObjectURL
(
file
)
;
}
else
if
(
window
.
URL
!=
undefined
)
{
// mozilla(firefox)
url
=
window
.
URL
.
createObjectURL
(
file
)
;
}
else
if
(
window
.
webkitURL
!=
undefined
)
{
// webkit or chrome
url
=
window
.
webkitURL
.
createObjectURL
(
file
)
;
}
return
url
;
}
$
(
function
()
{
//日期框
$
(
'.date-picker'
).
datepicker
({
autoclose
:
true
,
todayHighlight
:
true
});
});
</script>
</body>
>>>>>>> branch 'master' of http://code.diaosaas.com/linhaibing/tongmeng-app.git
</html>
\ No newline at end of file
src/main/webapp/WEB-INF/jsp/tongmeng/oneclassfy/oneclassfy_list.jsp
浏览文件 @
914e7c9c
<
<<<<<<
HEAD
<%@ page
language=
"java"
contentType=
"text/html; charset=UTF-8"
pageEncoding=
"UTF-8"
%>
<%@ taglib
prefix=
"c"
uri=
"http://java.sun.com/jsp/jstl/core"
%>
...
...
@@ -348,355 +347,4 @@
</body>
=======
<%@ page
language=
"java"
contentType=
"text/html; charset=UTF-8"
pageEncoding=
"UTF-8"
%>
<%@ taglib
prefix=
"c"
uri=
"http://java.sun.com/jsp/jstl/core"
%>
<%@ taglib
prefix=
"fmt"
uri=
"http://java.sun.com/jsp/jstl/fmt"
%>
<%
String
path
=
request
.
getContextPath
();
String
basePath
=
request
.
getScheme
()
+
"://"
+
request
.
getServerName
()
+
":"
+
request
.
getServerPort
()
+
path
+
"/"
;
%>
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<!-- 下拉框 -->
<link
rel=
"stylesheet"
href=
"${pageContext.request.contextPath}/static/ace/css/chosen.css"
/>
<!-- jsp文件头和头部 -->
<%@ include
file=
"../../system/index/top.jsp"
%>
<!-- 日期框 -->
<link
rel=
"stylesheet"
href=
"${pageContext.request.contextPath}/static/ace/css/datepicker.css"
/>
</head>
<body
class=
"no-skin"
>
<!-- /section:basics/navbar.layout -->
<div
class=
"main-container"
id=
"main-container"
>
<!-- /section:basics/sidebar -->
<div
class=
"main-content"
>
<div
class=
"main-content-inner"
>
<div
class=
"page-content"
>
<div
class=
"row"
>
<div
class=
"col-xs-12"
>
<!-- 检索 -->
<form
action=
"list.do"
method=
"post"
name=
"Form"
id=
"Form"
>
<!--
<table style="margin-top:5px;">
<tr>
<td>
<div class="nav-search">
<span class="input-icon">
<input type="text" placeholder="这里输入关键词" class="nav-search-input" id="nav-search-input" autocomplete="off" name="keywords" value="${pd.keywords }" placeholder="这里输入关键词"/>
<i class="ace-icon fa fa-search nav-search-icon"></i>
</span>
</div>
</td>
<td style="padding-left:2px;"><input class="span10 date-picker" name="lastStart" id="lastStart" value="" type="text" data-date-format="yyyy-mm-dd" readonly="readonly" style="width:88px;" placeholder="开始日期" title="开始日期"/></td>
<td style="padding-left:2px;"><input class="span10 date-picker" name="lastEnd" name="lastEnd" value="" type="text" data-date-format="yyyy-mm-dd" readonly="readonly" style="width:88px;" placeholder="结束日期" title="结束日期"/></td>
<td style="vertical-align:top;padding-left:2px;">
<select class="chosen-select form-control" name="name" id="id" data-placeholder="请选择" style="vertical-align:top;width: 120px;">
<option value=""></option>
<option value="">全部</option>
<option value="">1</option>
<option value="">2</option>
</select>
</td>
<c:if
test=
"
${
QX
.
cha
==
1
}
"
>
<td style="vertical-align:top;padding-left:2px"><a class="btn btn-light btn-xs" onclick="tosearch();" title="检索"><i id="nav-search-icon" class="ace-icon fa fa-search bigger-110 nav-search-icon blue"></i></a></td>
</c:if>
<c:if
test=
"
${
QX
.
toExcel
==
1
}
"
>
<td style="vertical-align:top;padding-left:2px;"><a class="btn btn-light btn-xs" onclick="toExcel();" title="导出到EXCEL"><i id="nav-search-icon" class="ace-icon fa fa-download bigger-110 nav-search-icon blue"></i></a></td>
</c:if>
</tr>
</table>
-->
<!-- 检索 -->
<table
id=
"simple-table"
class=
"table table-striped table-bordered table-hover"
style=
"margin-top:5px;"
>
<thead>
<tr>
<th
class=
"center"
style=
"width:35px;"
>
<label
class=
"pos-rel"
><input
type=
"checkbox"
class=
"ace"
id=
"zcheckbox"
/><span
class=
"lbl"
></span></label>
</th>
<th
class=
"center"
style=
"width:50px;"
>
序号
</th>
<th
class=
"center"
>
一级分类ID
</th>
<th
class=
"center"
>
名称
</th>
<th
class=
"center"
>
分类图标
</th>
<th
class=
"center"
>
二级分类标识
</th>
<th
class=
"center"
>
操作
</th>
</tr>
</thead>
<tbody>
<!-- 开始循环 -->
<c:choose>
<c:when
test=
"
${
not
empty
varList
}
"
>
<c:if
test=
"
${
QX
.
cha
==
1
}
"
>
<c:forEach
items=
"
${
varList
}
"
var=
"var"
varStatus=
"vs"
>
<tr>
<td
class=
'center'
>
<label
class=
"pos-rel"
><input
type=
'checkbox'
name=
'ids'
value=
"${var.CLASSIFY_ID}"
class=
"ace"
/><span
class=
"lbl"
></span></label>
</td>
<td
class=
'center'
style=
"width: 30px;"
>
${vs.index+1}
</td>
<td
class=
'center'
>
${var.CLASSIFY_ID}
</td>
<td
class=
'center'
>
${var.NAME}
</td>
<td
class=
'center'
><img
src=
"${var.ICOM}"
width=
"50px"
height=
"50px"
/></td>
<td
class=
'center'
>
${var.ONE_CLASSFY_TAG=='3'?'二级分类':''}${var.ONE_CLASSFY_TAG=='2'?'车牌分类':''}
</td>
<td
class=
"center"
>
<c:if
test=
"
${
QX
.
edit
!=
1
&&
QX
.
del
!=
1
}
"
>
<span
class=
"label label-large label-grey arrowed-in-right arrowed-in"
><i
class=
"ace-icon fa fa-lock"
title=
"无权限"
></i></span>
</c:if>
<div
class=
"hidden-sm hidden-xs btn-group"
>
<c:if
test=
"
${
QX
.
edit
==
1
}
"
>
<a
class=
"btn btn-xs btn-success"
title=
"编辑"
onclick=
"edit('${var.CLASSIFY_ID}');"
>
<i
class=
"ace-icon fa fa-pencil-square-o bigger-120"
title=
"编辑"
></i>
</a>
</c:if>
<c:if
test=
"
${
QX
.
del
==
1
}
"
>
<a
class=
"btn btn-xs btn-danger"
onclick=
"del('${var.CLASSIFY_ID}');"
>
<i
class=
"ace-icon fa fa-trash-o bigger-120"
title=
"删除"
></i>
</a>
</c:if>
</div>
</td>
</tr>
</c:forEach>
</c:if>
<c:if
test=
"
${
QX
.
cha
==
0
}
"
>
<tr>
<td
colspan=
"100"
class=
"center"
>
您无权查看
</td>
</tr>
</c:if>
</c:when>
<c:otherwise>
<tr
class=
"main_info"
>
<td
colspan=
"100"
class=
"center"
>
没有相关数据
</td>
</tr>
</c:otherwise>
</c:choose>
</tbody>
</table>
<div
class=
"page-header position-relative"
>
<table
style=
"width:100%;"
>
<tr>
<td
style=
"vertical-align:top;"
>
<c:if
test=
"
${
QX
.
add
==
1
}
"
>
<a
class=
"btn btn-mini btn-success"
onclick=
"add();"
>
新增
</a>
</c:if>
<%-- <c:if test="${QX.del == 1 }">
<a class="btn btn-mini btn-danger" onclick="makeAll('确定要删除选中的数据吗?');" title="批量删除" ><i class='ace-icon fa fa-trash-o bigger-120'></i></a>
</c:if> --%>
</td>
<td
style=
"vertical-align:top;"
><div
class=
"pagination"
style=
"float: right;padding-top: 0px;margin-top: 0px;"
>
${page.pageStr}
</div></td>
</tr>
</table>
</div>
</form>
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</div>
<!-- /.page-content -->
</div>
</div>
<!-- /.main-content -->
<!-- 返回顶部 -->
<a
href=
"#"
id=
"btn-scroll-up"
class=
"btn-scroll-up btn btn-sm btn-inverse"
>
<i
class=
"ace-icon fa fa-angle-double-up icon-only bigger-110"
></i>
</a>
</div>
<!-- /.main-container -->
<!-- basic scripts -->
<!-- 页面底部js¨ -->
<%@ include
file=
"../../system/index/foot.jsp"
%>
<!-- 删除时确认窗口 -->
<script
src=
"${pageContext.request.contextPath}/static/ace/js/bootbox.js"
></script>
<!-- ace scripts -->
<script
src=
"${pageContext.request.contextPath}/static/ace/js/ace/ace.js"
></script>
<!-- 下拉框 -->
<script
src=
"${pageContext.request.contextPath}/static/ace/js/chosen.jquery.js"
></script>
<!-- 日期框 -->
<script
src=
"${pageContext.request.contextPath}/static/ace/js/date-time/bootstrap-datepicker.js"
></script>
<!--提示框-->
<script
type=
"text/javascript"
src=
"${pageContext.request.contextPath}/static/js/jquery.tips.js"
></script>
<script
type=
"text/javascript"
>
$
(
top
.
hangge
());
//关闭加载状态
//检索
function
tosearch
(){
top
.
jzts
();
$
(
"#Form"
).
submit
();
}
$
(
function
()
{
//日期框
$
(
'.date-picker'
).
datepicker
({
autoclose
:
true
,
todayHighlight
:
true
});
//下拉框
if
(
!
ace
.
vars
[
'touch'
])
{
$
(
'.chosen-select'
).
chosen
({
allow_single_deselect
:
true
});
$
(
window
)
.
off
(
'resize.chosen'
)
.
on
(
'resize.chosen'
,
function
()
{
$
(
'.chosen-select'
).
each
(
function
()
{
var
$this
=
$
(
this
);
$this
.
next
().
css
({
'width'
:
$this
.
parent
().
width
()});
});
}).
trigger
(
'resize.chosen'
);
$
(
document
).
on
(
'settings.ace.chosen'
,
function
(
e
,
event_name
,
event_val
)
{
if
(
event_name
!=
'sidebar_collapsed'
)
return
;
$
(
'.chosen-select'
).
each
(
function
()
{
var
$this
=
$
(
this
);
$this
.
next
().
css
({
'width'
:
$this
.
parent
().
width
()});
});
});
$
(
'#chosen-multiple-style .btn'
).
on
(
'click'
,
function
(
e
){
var
target
=
$
(
this
).
find
(
'input[type=radio]'
);
var
which
=
parseInt
(
target
.
val
());
if
(
which
==
2
)
$
(
'#form-field-select-4'
).
addClass
(
'tag-input-style'
);
else
$
(
'#form-field-select-4'
).
removeClass
(
'tag-input-style'
);
});
}
//复选框全选控制
var
active_class
=
'active'
;
$
(
'#simple-table > thead > tr > th input[type=checkbox]'
).
eq
(
0
).
on
(
'click'
,
function
(){
var
th_checked
=
this
.
checked
;
//checkbox inside "TH" table header
$
(
this
).
closest
(
'table'
).
find
(
'tbody > tr'
).
each
(
function
(){
var
row
=
this
;
if
(
th_checked
)
$
(
row
).
addClass
(
active_class
).
find
(
'input[type=checkbox]'
).
eq
(
0
).
prop
(
'checked'
,
true
);
else
$
(
row
).
removeClass
(
active_class
).
find
(
'input[type=checkbox]'
).
eq
(
0
).
prop
(
'checked'
,
false
);
});
});
});
//新增
function
add
(){
top
.
jzts
();
var
diag
=
new
top
.
Dialog
();
diag
.
Drag
=
true
;
diag
.
Title
=
"新增"
;
diag
.
URL
=
'${pageContext.request.contextPath}/oneclassfy/goAdd.do'
;
diag
.
Width
=
900
;
diag
.
Height
=
710
;
diag
.
Modal
=
true
;
//有无遮罩窗口
diag
.
ShowMaxButton
=
true
;
//最大化按钮
diag
.
ShowMinButton
=
true
;
//最小化按钮
diag
.
CancelEvent
=
function
(){
//关闭事件
if
(
diag
.
innerFrame
.
contentWindow
.
document
.
getElementById
(
'zhongxin'
).
style
.
display
==
'none'
){
nextPage
(
$
{
page
.
totalPage
});
}
diag
.
close
();
};
diag
.
show
();
}
//删除
function
del
(
Id
){
bootbox
.
confirm
(
"确定要删除吗?"
,
function
(
result
)
{
if
(
result
)
{
top
.
jzts
();
var
url
=
"${pageContext.request.contextPath}/oneclassfy/delete.do?CLASSIFY_ID="
+
Id
+
"&tm="
+
new
Date
().
getTime
();
$
.
get
(
url
,
function
(
data
){
if
(
data
.
flag
==
1
){
nextPage
(
$
{
page
.
currentPage
});
}
else
{
alert
(
data
.
errmsg
);
nextPage
(
$
{
page
.
currentPage
});
}
});
}
});
}
//修改
function
edit
(
Id
){
top
.
jzts
();
var
diag
=
new
top
.
Dialog
();
diag
.
Drag
=
true
;
diag
.
Title
=
"编辑"
;
diag
.
URL
=
'${pageContext.request.contextPath}/oneclassfy/goEdit.do?CLASSIFY_ID='
+
Id
;
diag
.
Width
=
900
;
diag
.
Height
=
710
;
diag
.
Modal
=
true
;
//有无遮罩窗口
diag
.
ShowMaxButton
=
true
;
//最大化按钮
diag
.
ShowMinButton
=
true
;
//最小化按钮
diag
.
CancelEvent
=
function
(){
//关闭事件
if
(
diag
.
innerFrame
.
contentWindow
.
document
.
getElementById
(
'zhongxin'
).
style
.
display
==
'none'
){
nextPage
(
$
{
page
.
currentPage
});
}
diag
.
close
();
};
diag
.
show
();
}
//批量操作
function
makeAll
(
msg
){
bootbox
.
confirm
(
msg
,
function
(
result
)
{
if
(
result
)
{
var
str
=
''
;
for
(
var
i
=
0
;
i
<
document
.
getElementsByName
(
'ids'
).
length
;
i
++
){
if
(
document
.
getElementsByName
(
'ids'
)[
i
].
checked
){
if
(
str
==
''
)
str
+=
document
.
getElementsByName
(
'ids'
)[
i
].
value
;
else
str
+=
','
+
document
.
getElementsByName
(
'ids'
)[
i
].
value
;
}
}
if
(
str
==
''
){
bootbox
.
dialog
({
message
:
"<span class='bigger-110'>您没有选择任何内容!</span>"
,
buttons
:
{
"button"
:{
"label"
:
"确定"
,
"className"
:
"btn-sm btn-success"
}}
});
$
(
"#zcheckbox"
).
tips
({
side
:
1
,
msg
:
'点这里全选'
,
bg
:
'#AE81FF'
,
time
:
8
});
return
;
}
else
{
if
(
msg
==
'确定要删除选中的数据吗?'
){
top
.
jzts
();
$
.
ajax
({
type
:
"POST"
,
url
:
'${pageContext.request.contextPath}/oneclassfy/deleteAll.do?tm='
+
new
Date
().
getTime
(),
data
:
{
DATA_IDS
:
str
},
dataType
:
'json'
,
//beforeSend: validateData,
cache
:
false
,
success
:
function
(
data
){
$
.
each
(
data
.
list
,
function
(
i
,
list
){
tosearch
();
});
}
});
}
}
}
});
};
//导出excel
function
toExcel
(){
window
.
location
.
href
=
'${pageContext.request.contextPath}/oneclassfy/excel.do'
;
}
</script>
</body>
>>>>>>> branch 'master' of http://code.diaosaas.com/linhaibing/tongmeng-app.git
</html>
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论