Statistics
| Branch: | Revision:

m2u-upass-admin / WebContent / jsp / ss105_content / ibssCurrencyEnquiry.jsp @ 103:1d8b60f0f74e

History | View | Annotate | Download (3.38 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/ibssSearchCurrency.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_currency_code"/></th>
33
      <th>&nbsp;</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/CurrencyCodeDetails.do" name="paramsName" onclick="overlay();" >
65
				<c:out value="${bean.map.currencyCD}"/>
66
			</htmlEL:link>
67
			</td>
68
			<td>&nbsp;</td>
69
			<td>
70
				<c:forEach var="linkMap" items="${bean.map.linkMap}">/
71
					<htmlEL:link action="${linkMap.key}" name="paramsName" onclick="overlay();">
72
						<c:out value="${linkMap.value}"/>
73
					</htmlEL:link>
74
				</c:forEach>
75
			</td>
76
			<td>
77
				<c:choose>
78
					<c:when test="${not empty bean.map.status}">
79
						<c:out value="${bean.map.status}"></c:out>
80
					</c:when>
81
					<c:otherwise>-</c:otherwise>
82
				</c:choose>
83
			</td>
84
			<td>
85
				<c:choose>
86
					<c:when test="${not empty bean.map.lastModTime}">
87
						<c:out value="${bean.map.lastModTime}"></c:out>
88
					</c:when>
89
					<c:otherwise>-</c:otherwise>
90
				</c:choose>
91
			</td>
92
		</tr>
93
		</logicEL:iterate>
94
		</tbody>
95
	</table>
96
	</c:when>
97

    
98
	<c:otherwise>
99
	<br/>
100
	<table class="tabularForm"width="517" border="1"">
101
		<tr>
102
			<td>
103
				<bean:message key="content_desc_no_result"/>.
104
			</td>
105
		</tr>
106
	</table>
107
	<br/>
108
	</c:otherwise>
109
</c:choose>
110
<c:if test="${pagination.totalPageNumber gt 1}">
111
	<jsp:include flush="true" page="/jsp/ss105_content/ibssContentPagination.jsp"/>
112
</c:if>
113