m2u-upass-admin / WebContent / jsp / ss100_navigation / ibssNavigationEnquiry.jsp @ 142:9f1591b1f4b7
History | View | Annotate | Download (5.03 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.node.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" > </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="150"><c:out value="${bean.map.nodeCode}"/></td> |
58 |
<td width="300"><c:out value="${bean.map.nodeName}"/></td> |
59 |
<td width="10"> </td> |
60 |
<td><htmlEL:link action="/ss100/navigationDetails.do" name="paramsName" onclick="overlay();"> |
61 |
<bean:message key="general.button.details" /> |
62 |
</htmlEL:link> |
63 |
<c:if test="${viewBean.map.hasEditAccess eq true }"> |
64 |
<htmlEL:link action="/ss100/navigationEdit.do" name="paramsName" onclick="overlay();"> |
65 |
<bean:message key="general.button.edit" /> |
66 |
</htmlEL:link></c:if></td> |
67 |
</tr> |
68 |
</logicEL:iterate> |
69 |
</tbody> |
70 |
</table> |
71 |
<br /> |
72 |
</c:when> |
73 |
</c:choose> |
74 |
|
75 |
<c:choose> |
76 |
<c:when test="${not empty viewBean.map.navigationNodeSummary}"> |
77 |
<h5><bean:message key="navigation.node.navigation"/></h5> |
78 |
<table class="tabularData" cellspacing="0"> |
79 |
<thead> |
80 |
<tr> |
81 |
<th width="150" height="34"><bean:message key="navigation.node.code" /></th> |
82 |
<th width="300" ><bean:message key="navigation.node.name" /></th> |
83 |
<th width="10" > </th> |
84 |
<th><bean:message key="navigation.action"/></th> |
85 |
</tr> |
86 |
</thead> |
87 |
<tbody> |
88 |
<c:set var="styleClass" value="alt" /> |
89 |
<logicEL:iterate id="bean" name="viewBean" property="navigationNodeSummary" indexId="i"> |
90 |
<c:choose> |
91 |
<c:when test="${(i mod 2) eq 0}"> |
92 |
<c:set var="styleClass" value="alt"></c:set> |
93 |
</c:when> |
94 |
<c:otherwise> |
95 |
<c:set var="styleClass" value="even"></c:set> |
96 |
</c:otherwise> |
97 |
</c:choose> |
98 |
<tr class="<c:out value='${styleClass}'/>"> |
99 |
<bean:define id="nodeID" name="bean" property="nodeID" /> |
100 |
<bean:define id="nodeCode" name="bean" property="nodeCode" /> |
101 |
<% |
102 |
HashMap paramsName = new HashMap (); |
103 |
paramsName.put ("nodeID", nodeID); |
104 |
paramsName.put ("nodeCode", nodeCode); |
105 |
paramsName.put ("SECONDARY_TOKEN", request.getSession ().getAttribute ("PRIMARY_TOKEN")); |
106 |
pageContext.setAttribute ("paramsName", paramsName); |
107 |
%> |
108 |
<td width="150"><c:out value="${bean.map.nodeCode}"/></td> |
109 |
<td width="300"><c:out value="${bean.map.nodeName}"/></td> |
110 |
<td width="10"> </td> |
111 |
<td><htmlEL:link action="/ss100/navigationDetails.do" name="paramsName" onclick="overlay();"> |
112 |
<bean:message key="general.button.details" /> |
113 |
</htmlEL:link> |
114 |
<c:if test="${viewBean.map.hasEditAccess eq true }"> |
115 |
<htmlEL:link action="/ss100/navigationEdit.do" name="paramsName" onclick="overlay();"> |
116 |
<bean:message key="general.button.edit" /> |
117 |
</htmlEL:link></c:if></td> |
118 |
</tr> |
119 |
</logicEL:iterate> |
120 |
</tbody> |
121 |
</table> |
122 |
</c:when> |
123 |
<c:otherwise> |
124 |
</c:otherwise> |
125 |
</c:choose> |