Statistics
| Branch: | Revision:

m2u-upass-admin / WebContent / jsp / ss100_navigation / ibssNavigationEnquiry.jsp @ 44:432095fe3ea3

History | View | Annotate | Download (4.95 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-bean-el" prefix="beanEL" %>
4
<%@ taglib uri="/WEB-INF/tld/struts-logic" prefix="logic" %>
5
<%@ taglib uri="/WEB-INF/tld/struts-logic-el" prefix="logicEL" %>
6
<%@ taglib uri="/WEB-INF/tld/c" prefix="c" %>
7
<%@page import="java.util.HashMap"%>
8

    
9
<bean:define id="viewBean" name="ibssNavigationForm" property="ibssNavigationView" />
10

    
11
<h3 class="title"><strong><c:out value="${sessionScope.displayDesc}"></c:out></strong></h3>
12
<div id="resultBox"></div>
13
<table id="errorTable">
14
<tr>
15
	<td>
16
		<span id="serverSideError" class="error"><jsp:include flush="true" page="/jsp/errorHandler.jsp"></jsp:include></span>
17
	</td>
18
</tr>
19
</table>
20
<br />
21
<c:choose>
22
	<c:when test="${not empty viewBean.map.navigationBranchSummary}">
23
		<h5><bean:message key="navigation.branch.navigation"/></h5>
24
		<table class="tabularData" cellspacing="0">
25
			<thead>
26
				<tr>
27
					<th width="150" height="34"><bean:message key="navigation.node.code" /></th>
28
					<th width="300" ><bean:message key="navigation.node.name_general" /></th>
29
					<th width="10" >&nbsp;</th>
30
					<th><bean:message key="navigation.action"/></th>
31
				</tr>
32
			</thead>
33
			<tbody>
34
				<c:set var="styleClass" value="alt" />
35
				<logicEL:iterate id="bean" name="viewBean" property="navigationBranchSummary" indexId="i">
36
					<c:choose>
37
						<c:when test="${(i mod 2) eq 0}">
38
							<c:set var="styleClass" value="alt"></c:set>
39
						</c:when>
40
						<c:otherwise>
41
							<c:set var="styleClass" value="even"></c:set>
42
						</c:otherwise>
43
					</c:choose>
44
					<tr class="<c:out value='${styleClass}'/>">
45
						<bean:define id="nodeID" name="bean" property="nodeID" />
46
						<bean:define id="nodeCode" name="bean" property="nodeCode" />
47
						<%
48
							HashMap paramsName = new HashMap ();
49
							paramsName.put ("nodeID", nodeID);
50
							paramsName.put ("nodeCode", nodeCode);
51
							paramsName.put ("SECONDARY_TOKEN", request.getSession ().getAttribute ("PRIMARY_TOKEN"));
52
							pageContext.setAttribute ("paramsName", paramsName);
53
						%>
54
						<td width="150"><htmlEL:link action="/ss100/subNavigationEnquiry.do" name="paramsName" onclick="overlay();">
55
							<c:out value="${bean.map.nodeCode}"/>
56
						</htmlEL:link></td>
57
						<td width="300"><c:out value="${bean.map.nodeName}"/></td>
58
						<td width="10">&nbsp;</td>
59
						<td><htmlEL:link action="/ss100/navigationDetails.do" name="paramsName" onclick="overlay();">
60
							<bean:message key="general.button.details" />
61
						</htmlEL:link>&nbsp;
62
						<c:if test="${viewBean.map.hasEditAccess eq true }">
63
						<htmlEL:link action="/ss100/navigationEdit.do" name="paramsName" onclick="overlay();">
64
							<bean:message key="general.button.edit" />
65
						</htmlEL:link></c:if></td>
66
					</tr>
67
				</logicEL:iterate>
68
			</tbody>
69
		</table>
70
		<br />
71
	</c:when>
72
</c:choose>
73

    
74
<c:choose>
75
	<c:when test="${not empty viewBean.map.navigationNodeSummary}">
76
		<h5><bean:message key="navigation.node.navigation"/></h5>
77
		<table class="tabularData" cellspacing="0">
78
			<thead>
79
				<tr>
80
					<th width="150" height="34"><bean:message key="navigation.node.code" /></th>
81
					<th width="300" ><bean:message key="navigation.node.name" /></th>
82
					<th width="10" >&nbsp;</th>
83
					<th><bean:message key="navigation.action"/></th>
84
				</tr>
85
			</thead>
86
			<tbody>
87
				<c:set var="styleClass" value="alt" />
88
				<logicEL:iterate id="bean" name="viewBean" property="navigationNodeSummary" indexId="i">
89
					<c:choose>
90
						<c:when test="${(i mod 2) eq 0}">
91
							<c:set var="styleClass" value="alt"></c:set>
92
						</c:when>
93
						<c:otherwise>
94
							<c:set var="styleClass" value="even"></c:set>
95
						</c:otherwise>
96
					</c:choose>
97
					<tr class="<c:out value='${styleClass}'/>">
98
						<bean:define id="nodeID" name="bean" property="nodeID" />
99
						<bean:define id="nodeCode" name="bean" property="nodeCode" />
100
						<%
101
							HashMap paramsName = new HashMap ();
102
							paramsName.put ("nodeID", nodeID);
103
							paramsName.put ("nodeCode", nodeCode);
104
							paramsName.put ("SECONDARY_TOKEN", request.getSession ().getAttribute ("PRIMARY_TOKEN"));
105
							pageContext.setAttribute ("paramsName", paramsName);
106
						%>
107
						<td width="150"><c:out value="${bean.map.nodeCode}"/></td>
108
						<td width="300"><c:out value="${bean.map.nodeName}"/></td>
109
						<td width="10">&nbsp;</td>
110
						<td><htmlEL:link action="/ss100/navigationDetails.do" name="paramsName" onclick="overlay();">
111
							<bean:message key="general.button.details" />
112
						</htmlEL:link>&nbsp;
113
						<c:if test="${viewBean.map.hasEditAccess eq true }">
114
						<htmlEL:link action="/ss100/navigationEdit.do" name="paramsName" onclick="overlay();">
115
							<bean:message key="general.button.edit" />
116
						</htmlEL:link></c:if></td>
117
					</tr>
118
				</logicEL:iterate>
119
			</tbody>
120
		</table>
121
	</c:when>
122
	<c:otherwise>
123
	</c:otherwise>
124
</c:choose>