list_window.jsp
2.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><spring:message code='opt.open.receipt' /></title>
<script type="text/javascript" src="<%=basePath%>resource/easyui/jquery.min.js"></script>
<script type="text/javascript" src="<%=basePath%>resource/validate/jquery.validate.js"></script>
<script type="text/javascript" src="<%=basePath%>resource/validate/validate-extends.js"></script>
<!-- validate 验证中英文 -->
<script type="text/javascript"
src="<%=basePath %>resource/validate/jquery.validate-${pageContext.response.locale}.js"></script>
<link rel="stylesheet" href="<%=basePath%>resource/layui/css/layui.css" media="all">
<script type="text/javascript" src="<%=basePath%>resource/layui/layui.js"></script>
</head>
<body>
<div class="layui-row">
<table class="layui-table" lay-even>
<thead>
<tr>
<th>时间</th>
<th>航班</th>
<th>件数</th>
<th>重量</th>
<th>回执内容</th>
</tr>
</thead>
<tbody>
<c:forEach var="data" items="${dataList}" varStatus="status">
<tr>
<td>${data.createDate}</td>
<td>${data.carrier}${data.flightno}</td>
<td>${data.piece}</td>
<td>${data.weight}</td>
<td>
<c:choose>
<c:when test="${fn:indexOf(data.response_text,'41301')>-1}">
<span style="color:green;">${data.response_text}</span>
</c:when>
<c:when test="${fn:indexOf(data.response_text,'45201')>-1}">
<span style="color:green;">${data.response_text}</span>
</c:when>
<c:when test="${fn:indexOf(data.response_text,'分单')>-1}">
<span style="color:black;">${data.response_text}</span>
</c:when>
<c:when test="${fn:indexOf(data.response_text,'主单')>-1}">
<span style="color:black;">${data.response_text}</span>
</c:when>
<c:otherwise>
<span style="color:red;">${data.response_text}</span>
</c:otherwise>
</c:choose>
</td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
<script>
var layer;
layui.use('layer', function() {
layer = layui.layer;
});
</script>
</body>
</html>