1 | <%@ page import="com.medias.Context" contentType="text/html; charset=UTF-8"%> |
---|
2 | <%@ page language="java" contentType="text/html; charset=UTF-8"%> |
---|
3 | <%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles"%> |
---|
4 | <%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html"%> |
---|
5 | <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean"%> |
---|
6 | <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic"%> |
---|
7 | <%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested"%> |
---|
8 | |
---|
9 | <tiles:insert page="/resources/templates/template.jsp" flush="true"> |
---|
10 | |
---|
11 | <bean:define type="java.lang.String" id="relativePath" value="<%=Context.getRelativePath(request)%>"/> |
---|
12 | |
---|
13 | <tiles:put name="nav" value='<%=relativePath+"/navPlat.jsp"%>'/> |
---|
14 | |
---|
15 | <tiles:put name="title" type="string"> |
---|
16 | <bean:message key="app.title"/> - <bean:message key="data.access.plat4"/> |
---|
17 | </tiles:put> |
---|
18 | |
---|
19 | <nested:root name="plateformeForm"> |
---|
20 | |
---|
21 | <tiles:put name="bodytitle" type="string"> |
---|
22 | <nested:nest property="plateforme"> |
---|
23 | <bean:message key="data.access.plat1"/> : <nested:write property="plateformeNom"/> |
---|
24 | </nested:nest> |
---|
25 | </tiles:put> |
---|
26 | |
---|
27 | <tiles:put name="body" type="string"> |
---|
28 | <div id="errors"><html:errors/></div> |
---|
29 | <div id="messages"> |
---|
30 | <html:messages id="mess" property="<%= org.apache.struts.action.ActionMessages.GLOBAL_MESSAGE %>" message="true"> |
---|
31 | <bean:write name="mess"/> |
---|
32 | </html:messages> |
---|
33 | </div> |
---|
34 | |
---|
35 | <nested:notEqual property="path" value=""> |
---|
36 | <nested:define id="chemin" property="path"/> |
---|
37 | <% |
---|
38 | String dataSet; |
---|
39 | if (((String)chemin).lastIndexOf("/")!=-1){ |
---|
40 | dataSet = ((String)chemin).substring(((String)chemin).lastIndexOf("/")+1,((String)chemin).lastIndexOf("_")); |
---|
41 | } else { |
---|
42 | dataSet = (String)chemin; |
---|
43 | } |
---|
44 | %> |
---|
45 | <bean:define id="nomJeu" value="<%=dataSet%>"/> |
---|
46 | <div class="submit"> |
---|
47 | <html:link page="/MetadataInfo.do" paramName="chemin" paramId="metadataUri" titleKey="data.access.metadata.link"> |
---|
48 | <bean:message key="app.access.metadata.back"/> <bean:write name="nomJeu"/> |
---|
49 | </html:link> |
---|
50 | </div> |
---|
51 | </nested:notEqual> |
---|
52 | |
---|
53 | <table> |
---|
54 | <nested:nest property="plateforme"> |
---|
55 | <tr><th> |
---|
56 | <nested:nest property="typePlateforme"> |
---|
57 | <bean:message key="data.access.metadata.plat.type"/> : <nested:write property="typePlateformeNom"/> |
---|
58 | </nested:nest> |
---|
59 | </th></tr> |
---|
60 | <nested:notEqual property="plateformeDescription" value=""> |
---|
61 | <tr><td> |
---|
62 | <bean:message key="data.metadata.desc"/> : <nested:write property="plateformeDescription"/> |
---|
63 | </td></tr> |
---|
64 | </nested:notEqual> |
---|
65 | </nested:nest> |
---|
66 | <nested:define id="latMax" property="latMax"/> |
---|
67 | <nested:define id="lonMax" property="lonMax"/> |
---|
68 | <nested:define id="altMax" property="altMax"/> |
---|
69 | <%--nested:define id="hsMax" property="hsMax"/--%> |
---|
70 | <nested:notEqual property="latMin" value="${latMax}"> |
---|
71 | <tr><td> |
---|
72 | <bean:message key="data.access.plat.latmin"/> : <nested:write property="latMin"/> <bean:message key="unit.deg"/> |
---|
73 | </td></tr> |
---|
74 | <tr><td> |
---|
75 | <bean:message key="data.access.plat.latmax"/> : <bean:write name="latMax"/> <bean:message key="unit.deg"/> |
---|
76 | </td></tr> |
---|
77 | </nested:notEqual> |
---|
78 | <nested:equal property="latMin" value="${latMax}"> |
---|
79 | <tr><td> |
---|
80 | <bean:message key="data.access.plat.lat"/> : <nested:write property="latMin"/> <bean:message key="unit.deg"/> |
---|
81 | </td></tr> |
---|
82 | </nested:equal> |
---|
83 | <nested:notEqual property="lonMin" value="${lonMax}"> |
---|
84 | <tr><td> |
---|
85 | <bean:message key="data.access.plat.lonmin"/> : <nested:write property="lonMin"/> <bean:message key="unit.deg"/> |
---|
86 | </td></tr> |
---|
87 | <tr><td> |
---|
88 | <bean:message key="data.access.plat.lonmax"/> : <bean:write name="lonMax"/> <bean:message key="unit.deg"/> |
---|
89 | </td></tr> |
---|
90 | </nested:notEqual> |
---|
91 | <nested:equal property="lonMin" value="${lonMax}"> |
---|
92 | <tr><td> |
---|
93 | <bean:message key="data.access.plat.lon"/> : <nested:write property="lonMin"/> <bean:message key="unit.deg"/> |
---|
94 | </td></tr> |
---|
95 | </nested:equal> |
---|
96 | <nested:notEqual property="altMin" value="${altMax}"> |
---|
97 | <tr><td> |
---|
98 | <bean:message key="data.access.plat.altmin"/> : <nested:write property="altMin"/> m |
---|
99 | </td></tr> |
---|
100 | <tr><td> |
---|
101 | <bean:message key="data.access.plat.altmax"/> : <bean:write name="altMax"/> m |
---|
102 | </td></tr> |
---|
103 | </nested:notEqual> |
---|
104 | <nested:equal property="altMin" value="${altMax}"> |
---|
105 | <tr><td> |
---|
106 | <bean:message key="data.access.plat.alt"/> : <nested:write property="altMin"/> m |
---|
107 | </td></tr> |
---|
108 | </nested:equal> |
---|
109 | <%--nested:notEqual property="hsMax" value="-1000000"> |
---|
110 | <nested:notEqual property="hsMin" value="${hsMax}"> |
---|
111 | <tr><td> |
---|
112 | <bean:message key="data.access.plat.hsmin"/> : <nested:write property="hsMin"/> |
---|
113 | </td></tr> |
---|
114 | <tr><td> |
---|
115 | <bean:message key="data.access.plat.hsmax"/> : <bean:write name="hsMax"/> |
---|
116 | </td></tr> |
---|
117 | </nested:notEqual> |
---|
118 | <nested:equal property="hsMin" value="${hsMax}"> |
---|
119 | <tr><td> |
---|
120 | <bean:message key="data.access.plat.hs"/> : <nested:write property="hsMin"/> |
---|
121 | </td></tr> |
---|
122 | </nested:equal> |
---|
123 | </nested:notEqual--%> |
---|
124 | <tr> |
---|
125 | <td> </td> |
---|
126 | </tr> |
---|
127 | </table> |
---|
128 | <nested:iterate property="images" indexId="imId"> |
---|
129 | <nested:define id="pathImg" property=""/> |
---|
130 | <logic:notEqual name="pathImg" value=""> |
---|
131 | <nested:equal name="imId" value="0"> |
---|
132 | <table> |
---|
133 | <tr> |
---|
134 | <td> |
---|
135 | <div id="messages"><bean:message key="data.upload.metadata.plat.img"/> :</div> |
---|
136 | </td> |
---|
137 | </tr> |
---|
138 | </table> |
---|
139 | </nested:equal> |
---|
140 | <table> |
---|
141 | <tr> |
---|
142 | <td> |
---|
143 | <html:img src="${pathImg}" /> |
---|
144 | </td> |
---|
145 | </tr> |
---|
146 | </table> |
---|
147 | |
---|
148 | </logic:notEqual> |
---|
149 | </nested:iterate> |
---|
150 | <nested:size id="nbCapts" property="capteurs"/> |
---|
151 | <table> |
---|
152 | <tr> |
---|
153 | <td> |
---|
154 | <div id="messages"><bean:message key="data.access.capt3"/> (<bean:write name="nbCapts"/>) :</div> |
---|
155 | </td> |
---|
156 | </tr> |
---|
157 | <nested:iterate property="capteurs" indexId="captId"> |
---|
158 | <tr> |
---|
159 | <td> |
---|
160 | <nested:define id="id" property="capteurId"/> |
---|
161 | <html:link page="/DescCapteur.do" titleKey="data.access.capt4" paramName="id" paramId="idCapt"> |
---|
162 | <nested:nest property="typeCapteur"> |
---|
163 | <b><nested:write property="typeCapteurNom"/></b> |
---|
164 | </nested:nest> |
---|
165 | <nested:notEqual property="capteurModele" value="UNKNOWN"> |
---|
166 | - <nested:write property="capteurModele"/> |
---|
167 | </nested:notEqual> |
---|
168 | <nested:notEqual property="fabriquant.fabriquantNom" value="UNKNOWN"> |
---|
169 | - <nested:write property="fabriquant.fabriquantNom"/> |
---|
170 | </nested:notEqual> |
---|
171 | <nested:notEqual property="capteurNumserie" value="UNKNOWN"> |
---|
172 | (<bean:message key="data.access.capt.nums"/> : <nested:write property="capteurNumserie"/>) |
---|
173 | </nested:notEqual> |
---|
174 | </html:link> |
---|
175 | </td> |
---|
176 | </tr> |
---|
177 | </nested:iterate> |
---|
178 | <tr> |
---|
179 | <td> </td> |
---|
180 | </tr> |
---|
181 | <tr> |
---|
182 | <td> |
---|
183 | <nested:size id="nbParams" property="parametres"/> |
---|
184 | <div id="messages"><bean:message key="data.access.param3"/> (<bean:write name="nbParams"/>) :</div> |
---|
185 | </td> |
---|
186 | </tr> |
---|
187 | <nested:iterate property="parametres" indexId="paramId"> |
---|
188 | <tr> |
---|
189 | <td> |
---|
190 | <nested:define id="id" property="parametreId"/> |
---|
191 | <html:link page="/DescParametre.do" titleKey="data.access.param4" paramName="id" paramId="idParam"> |
---|
192 | <nested:write property="parametreNom"/> (<nested:write property="parametreCode"/>) |
---|
193 | </html:link> |
---|
194 | </td> |
---|
195 | </tr> |
---|
196 | </nested:iterate> |
---|
197 | <tr> |
---|
198 | <td> </td> |
---|
199 | </tr> |
---|
200 | </table> |
---|
201 | <nested:size id="nbJeux" property="jeux"/> |
---|
202 | <table> |
---|
203 | <tr> |
---|
204 | <td> |
---|
205 | <div id="messages"><bean:message key="data.access.jeux2"/> (<bean:write name="nbJeux"/>) :</div> |
---|
206 | </td> |
---|
207 | </tr> |
---|
208 | <nested:iterate property="jeux" indexId="jeuId"> |
---|
209 | <tr> |
---|
210 | <td> |
---|
211 | <nested:define id="id" property="jeuId"/> |
---|
212 | <html:link page="/MetadataInfo.do" titleKey="data.access.metadata.link" paramName="id" paramId="idJeu"> |
---|
213 | <nested:write property="jeuNom"/> |
---|
214 | </html:link> |
---|
215 | <bean:define id="download" value="download"/> |
---|
216 | <nested:notEqual property="nbFichiers" value="0"> |
---|
217 | (<logic:notPresent name="SES_USER" scope="session"> |
---|
218 | <html:link page="/InitLogonAccess.do" paramName="download" paramId="source"> |
---|
219 | <nested:write property="nbFichiers"/> |
---|
220 | <nested:equal property="nbFichiers" value="1"> |
---|
221 | <bean:message key="data.access.metadata.file" arg0=""/> |
---|
222 | </nested:equal> |
---|
223 | <nested:notEqual name="nbFichiers" value="1"> |
---|
224 | <bean:message key="data.access.metadata.file" arg0="s"/> |
---|
225 | </nested:notEqual> |
---|
226 | </html:link> |
---|
227 | </logic:notPresent> |
---|
228 | <logic:present name="SES_USER" scope="session"> |
---|
229 | <nested:link page="/FichiersAccess.do" titleKey="data.access.download.file" paramId="idJeu" paramProperty="jeuId"> |
---|
230 | <nested:write property="nbFichiers"/> |
---|
231 | <nested:equal property="nbFichiers" value="1"> |
---|
232 | <bean:message key="data.access.metadata.file" arg0=""/> |
---|
233 | </nested:equal> |
---|
234 | <nested:notEqual name="nbFichiers" value="1"> |
---|
235 | <bean:message key="data.access.metadata.file" arg0="s"/> |
---|
236 | </nested:notEqual> |
---|
237 | </nested:link> |
---|
238 | </logic:present>) |
---|
239 | </nested:notEqual> |
---|
240 | </td> |
---|
241 | </tr> |
---|
242 | </nested:iterate> |
---|
243 | </table> |
---|
244 | <div class="hdp" align="right"> |
---|
245 | <html:link page="/data/access/desc_plat.jsp" anchor="top" titleKey="app.hdp"> |
---|
246 | <html:img page="/resources/images/utils/hdp1.png"/> |
---|
247 | </html:link> |
---|
248 | </div> |
---|
249 | <div class="submit"> |
---|
250 | <html:link page="/PlateformesAccess.do"><bean:message key="data.access.plat"/></html:link> |
---|
251 | </div> |
---|
252 | </tiles:put> |
---|
253 | </nested:root> |
---|
254 | </tiles:insert> |
---|