m2u-upass-admin / WebContent / jsp / ss105_content / ibssServiceNoteEnquiry.jsp @ 16:d12529a64c6c
History | View | Annotate | Download (3.57 KB)
1 |
<%@ taglib uri="/WEB-INF/tld/struts-html-el" prefix="htmlEL" %> |
---|---|
2 |
<%@ taglib uri="/WEB-INF/tld/struts-bean" prefix="bean" %> |
3 |
<%@ taglib uri="/WEB-INF/tld/struts-logic-el" prefix="logicEL" %> |
4 |
<%@ taglib uri="/WEB-INF/tld/c" prefix="c" %> |
5 |
|
6 |
<%@page import="java.util.HashMap"%> |
7 |
|
8 |
<bean:define id="viewBean" name="contentForm" property="contentsBean" /> |
9 |
<bean:define id="pagination" name="viewBean" property="pagination" /> |
10 |
|
11 |
<table id="errorTable"> |
12 |
<tr> |
13 |
<td> |
14 |
<span id="serverSideError" class="error"><jsp:include flush="true" page="/jsp/errorHandler.jsp"></jsp:include></span> |
15 |
</td> |
16 |
</tr> |
17 |
</table> |
18 |
|
19 |
<jsp:include page="/jsp/ss105_content/ibssSearchServiceNote.jsp" flush="true"/> |
20 |
|
21 |
<div id="resultBox"></div> |
22 |
|
23 |
<c:if test="${pagination.totalPageNumber gt 1}"> |
24 |
<jsp:include flush="true" page="/jsp/ss105_content/ibssContentPagination.jsp"/> |
25 |
</c:if> |
26 |
|
27 |
<c:choose> |
28 |
<c:when test="${not empty viewBean.map.beanList}"> |
29 |
<table class="tabularData" cellspacing="0"> |
30 |
<thead> |
31 |
<tr> |
32 |
<th height="34"><bean:message key="content_service_code"/></th> |
33 |
<th><bean:message key="content_service_name"/></th> |
34 |
<th><bean:message key="content_directory"/></th> |
35 |
<th><bean:message key="content_status"/></th> |
36 |
<th><bean:message key="content_last_updated_date"/></th> |
37 |
</tr> |
38 |
</thead> |
39 |
<tbody> |
40 |
<c:set var="styleClass" value="alt" /> |
41 |
<logicEL:iterate id="bean" name="viewBean" property="beanList" indexId="i"> |
42 |
<c:choose> |
43 |
<c:when test="${(i mod 2) eq 0}"> |
44 |
<c:set var="styleClass" value="alt"></c:set> |
45 |
</c:when> |
46 |
<c:otherwise> |
47 |
<c:set var="styleClass" value="even"></c:set> |
48 |
</c:otherwise> |
49 |
</c:choose> |
50 |
<bean:define id="indexNo" name="bean" property="indexNo" /> |
51 |
<tr class="<c:out value='${styleClass}'/>"> |
52 |
|
53 |
<bean:define id="contentID" name="bean" property="ID" /> |
54 |
<bean:define id="currentPage" name="viewBean" property="enquiryCurrentPageNo" /> |
55 |
<% |
56 |
HashMap paramsName = new HashMap(); |
57 |
paramsName.put("ID", contentID); |
58 |
paramsName.put("p", currentPage); |
59 |
paramsName.put("SECONDARY_TOKEN", request.getSession().getAttribute("PRIMARY_TOKEN")); |
60 |
|
61 |
pageContext.setAttribute("paramsName", paramsName); |
62 |
%> |
63 |
<td> |
64 |
<htmlEL:link action="/ss105/ServiceNoteDetails.do" name="paramsName" onclick="overlay();" > |
65 |
<c:out value="${bean.map.serviceCode}"/> |
66 |
</htmlEL:link> |
67 |
</td> |
68 |
<td> |
69 |
<c:choose> |
70 |
<c:when test="${not empty bean.map.serviceName}"> |
71 |
<c:out value="${bean.map.serviceName}"/> |
72 |
</c:when> |
73 |
<c:otherwise>-</c:otherwise> |
74 |
</c:choose> |
75 |
</td> |
76 |
<td> |
77 |
<c:forEach var="linkMap" items="${bean.map.linkMap}">/ |
78 |
<htmlEL:link action="${linkMap.key}" name="paramsName" onclick="overlay();"> |
79 |
<c:out value="${linkMap.value}"/> |
80 |
</htmlEL:link> |
81 |
</c:forEach> |
82 |
</td> |
83 |
<td> |
84 |
<c:choose> |
85 |
<c:when test="${not empty bean.map.status}"> |
86 |
<c:out value="${bean.map.status}"/> |
87 |
</c:when> |
88 |
<c:otherwise>-</c:otherwise> |
89 |
</c:choose> |
90 |
</td> |
91 |
<td> |
92 |
<c:choose> |
93 |
<c:when test="${not empty bean.map.lastModTime}"> |
94 |
<c:out value="${bean.map.lastModTime}"/> |
95 |
</c:when> |
96 |
<c:otherwise>-</c:otherwise> |
97 |
</c:choose> |
98 |
</td> |
99 |
</tr> |
100 |
</logicEL:iterate> |
101 |
</tbody> |
102 |
</table> |
103 |
</c:when> |
104 |
|
105 |
<c:otherwise> |
106 |
<table class="tabularForm"width="517" border="1""> |
107 |
<tr> |
108 |
<td> |
109 |
<bean:message key="content_desc_no_result"/>. |
110 |
</td> |
111 |
</tr> |
112 |
</table> |
113 |
</c:otherwise> |
114 |
</c:choose> |
115 |
<c:if test="${pagination.totalPageNumber gt 1}"> |
116 |
<jsp:include flush="true" page="/jsp/ss105_content/ibssContentPagination.jsp"/> |
117 |
</c:if> |
118 |
|