Statistics
| Branch: | Revision:

m2u-upass-admin / WebContent / jsp / ss100_navigation / ibssNavigationSearchResult.jsp @ 33:0eec2c6c7dce

History | View | Annotate | Download (3.68 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="ibssNavigationForm" property="ibssNavigationView" />
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
<jsp:include page="/jsp/ss110_rib_navigation/ibssRetailNavigationSearch.jsp" flush="true"/>
19

    
20
<div id="resultBox"></div>
21

    
22
<c:if test="${pagination.totalPageNumber gt 1}">
23
	<jsp:include flush="true" page="/jsp/ss110_rib_navigation/ibssRetailNavigationPagination.jsp"/>
24
</c:if>
25

    
26
<c:choose>
27

    
28
	<c:when test="${not empty viewBean.map.beanList}">
29
	<table class="tabularData" cellspacing="0">
30
  <thead>
31
    <tr>
32
      <th width="40" height="34"><bean:message key="navigation.node.code"/></th>
33
      <th width="85" ><bean:message key="navigation.node.name_general"/></th>
34
      <th width="85" ><bean:message key="content_directory"/></th>
35
      <th width="45" ><bean:message key="content_status"/></th>
36
      <th width="77" ><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="nodeID" name="bean" property="nodeID" />
54
		<bean:define id="nodeCode" name="bean" property="nodeCode" />
55
<%
56
			HashMap paramsName = new HashMap();
57
			paramsName.put("nodeID", nodeID);
58
			paramsName.put("SECONDARY_TOKEN", request.getSession().getAttribute("PRIMARY_TOKEN"));
59
			
60
			pageContext.setAttribute("paramsName", paramsName);
61
%>
62
			<td>
63
			<htmlEL:link action="/ss100/navigationDetails.do" name="paramsName" onclick="overlay();" >
64
				<c:out value="${bean.map.nodeCode}"/>
65
			</htmlEL:link>
66
			</td>
67
			<td>
68
				<c:choose>
69
					<c:when test="${not empty bean.map.nodeName}">
70
						<c:out value="${bean.map.nodeName}"/>
71
					</c:when>
72
					<c:otherwise>-</c:otherwise>
73
				</c:choose>
74
			</td>
75
			<td>
76
				<c:forEach var="linkMap" items="${bean.map.linkMap}">/
77
					<htmlEL:link action="${linkMap.key}" name="paramsName" onclick="overlay();">
78
						<c:out value="${linkMap.value}"/>
79
					</htmlEL:link>
80
				</c:forEach>
81
			</td>
82
			<td>
83
				<c:choose>
84
					<c:when test="${not empty bean.map.nodeStatusDisplay}">
85
						<c:out value="${bean.map.nodeStatusDisplay}"/>
86
					</c:when>
87
					<c:otherwise>-</c:otherwise>
88
				</c:choose>
89
			</td>
90
			<td>
91
				<c:choose>
92
					<c:when test="${not empty bean.map.nodeUpdatedDate}">
93
						<c:out value="${bean.map.nodeUpdatedDate}"/>
94
					</c:when>
95
					<c:otherwise>-</c:otherwise>
96
				</c:choose>
97
			</td>
98
		</tr>
99
		</logicEL:iterate>
100
		</tbody>
101
	</table>
102
	</c:when>
103
	
104

    
105
	<c:otherwise>
106
	<br/>
107
	<table class="tabularForm"width="517" border="1"">
108
		<tr>
109
			<td>
110
				<bean:message key="content_desc_no_result"/>.
111
			</td>
112
		</tr>
113
	</table>
114
	<br/>
115
	</c:otherwise>
116
</c:choose>
117
<c:if test="${pagination.totalPageNumber gt 1}">
118
	<jsp:include flush="true" page="/jsp/ss110_rib_navigation/ibssRetailNavigationPagination.jsp"/>
119
</c:if>
120

    
121

    
122

    
123