1 | <%@ page import="com.medias.Calcul" contentType="text/html; charset=UTF-8" %> |
---|
2 | <%@ page import="com.medias.Context" %> |
---|
3 | <%@ page language="java" contentType="text/html; charset=UTF-8" %> |
---|
4 | <%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %> |
---|
5 | <%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %> |
---|
6 | <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %> |
---|
7 | <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %> |
---|
8 | <%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %> |
---|
9 | |
---|
10 | <tiles:insert page="/resources/templates/template.jsp" flush="true"> |
---|
11 | |
---|
12 | <bean:define type="java.lang.String" id="relativePath" value="<%=Context.getRelativePath(request)%>"/> |
---|
13 | <bean:define type="java.lang.String" id="contextPath" value="<%=request.getContextPath()%>"/> |
---|
14 | <tiles:put name="nav" value='<%=relativePath+"/navDatas.jsp"%>'/> |
---|
15 | |
---|
16 | <tiles:put name="title" type="string"> |
---|
17 | <bean:message key="app.title"/> - <bean:message key="data.access.extract2"/> |
---|
18 | </tiles:put> |
---|
19 | |
---|
20 | <tiles:put name="bodytitle" type="string"> |
---|
21 | <bean:message key="data.access.extract2"/> |
---|
22 | </tiles:put> |
---|
23 | |
---|
24 | <tiles:put name="body" type="string"> |
---|
25 | |
---|
26 | <div id="errors"><html:errors/></div> |
---|
27 | <div id="messages"> |
---|
28 | <html:messages id="mess" property="<%= org.apache.struts.action.ActionMessages.GLOBAL_MESSAGE %>" message="true"> |
---|
29 | <bean:write name="mess"/> |
---|
30 | </html:messages> |
---|
31 | </div> |
---|
32 | |
---|
33 | <html:form action="/DataExtract"> |
---|
34 | |
---|
35 | <nested:root name="datasForm"> |
---|
36 | <table border="2" width="750px"> |
---|
37 | <tr> |
---|
38 | <td width="250px" rowspan="2" valign="top"> |
---|
39 | <table width="100%"> |
---|
40 | <tr> |
---|
41 | <th class="titleBox"> |
---|
42 | <bean:message key="data.access.plat"/> (<span id="nbPlatsTxt"><bean:write name="datasForm" |
---|
43 | property="nbSelectedPlats"/></span>) |
---|
44 | </th> |
---|
45 | </tr> |
---|
46 | <tr> |
---|
47 | <td> |
---|
48 | <div style="height: 150px; overflow: auto" id="listPlateformes"> |
---|
49 | <bean:define id="typePPrec" value=""/> |
---|
50 | <nested:iterate property="plateformes"> |
---|
51 | <nested:define id="idP" property="plateformeId"/> |
---|
52 | <nested:define id="nomP" property="plateformeNom"/> |
---|
53 | <nested:define id="typeP" property="typePlateforme.typePlateformeNom"/> |
---|
54 | <logic:notEmpty name="datasForm" property="selectPlats"> |
---|
55 | <logic:iterate name="datasForm" property="selectPlats" id="selPlat" indexId="platId"> |
---|
56 | <logic:equal name="selPlat" value="${idP}"> |
---|
57 | <logic:notEqual name="typeP" value="${typePPrec}"> |
---|
58 | <div class="titleType"> |
---|
59 | <logic:equal name="typeP" value="FIXED"> |
---|
60 | <bean:message key="data.access.plat.fixe2"/> |
---|
61 | </logic:equal> |
---|
62 | <logic:equal name="typeP" value="MOBILE"> |
---|
63 | <bean:message key="data.access.plat.mobile2"/> |
---|
64 | </logic:equal> |
---|
65 | </div> |
---|
66 | </logic:notEqual> |
---|
67 | <bean:define id="typePPrec" name="typeP" type="java.lang.String"/> |
---|
68 | <bean:define type="java.lang.String" id="parite" |
---|
69 | value="<%=Calcul.getParite(platId.intValue())%>"/> |
---|
70 | <logic:equal name="parite" value="pair"><bean:define id="classPlat" |
---|
71 | value="pair"/></logic:equal> |
---|
72 | <logic:equal name="parite" value="impair"><bean:define id="classPlat" |
---|
73 | value="impair"/></logic:equal> |
---|
74 | <table class="${classPlat}"> |
---|
75 | <tr> |
---|
76 | <td nowrap style="font-size: 11px"> |
---|
77 | <html:link page="/DescPlateforme.do" titleKey="data.access.plat4" |
---|
78 | paramName="idP" paramId="idPlat"> |
---|
79 | <bean:write name="nomP"/> |
---|
80 | </html:link> |
---|
81 | </td> |
---|
82 | </tr> |
---|
83 | </table> |
---|
84 | </logic:equal> |
---|
85 | </logic:iterate> |
---|
86 | </logic:notEmpty> |
---|
87 | </nested:iterate> |
---|
88 | </div> |
---|
89 | </td> |
---|
90 | </tr> |
---|
91 | </table> |
---|
92 | </td> |
---|
93 | <td width="250px" rowspan="2" valign="top"> |
---|
94 | <table width="100%"> |
---|
95 | <tr> |
---|
96 | <th class="titleBox"><bean:message key="data.access.jeux"/> (<span id="nbJeuxTxt"><bean:write |
---|
97 | name="datasForm" property="nbSelectedJeux"/></span>) |
---|
98 | </th> |
---|
99 | </tr> |
---|
100 | <tr> |
---|
101 | <td> |
---|
102 | <div style="height: 150px; overflow: auto" id="listJeux"> |
---|
103 | <bean:define id="catJPrec" value=""/> |
---|
104 | <nested:iterate property="jeux"> |
---|
105 | <nested:define id="idJ" property="jeuId"/> |
---|
106 | <nested:define id="nomJ" property="jeuNom"/> |
---|
107 | <nested:define id="catJ" property="categorie.categorieNom"/> |
---|
108 | <logic:notEmpty name="datasForm" property="selectJeux"> |
---|
109 | <logic:iterate name="datasForm" property="selectJeux" id="selJeu" indexId="jId"> |
---|
110 | <logic:equal name="selJeu" value="${idJ}"> |
---|
111 | <logic:notEqual name="catJ" value="${catJPrec}"> |
---|
112 | <div class="titleType"> |
---|
113 | <logic:equal name="catJ" value="AVION"> |
---|
114 | <bean:message key="data.categ1"/> |
---|
115 | </logic:equal> |
---|
116 | <logic:equal name="catJ" value="SURF_FIXE"> |
---|
117 | <bean:message key="data.categ2"/> |
---|
118 | </logic:equal> |
---|
119 | <logic:equal name="catJ" value="SURF_MOBILE"> |
---|
120 | <bean:message key="data.categ3"/> |
---|
121 | </logic:equal> |
---|
122 | </div> |
---|
123 | </logic:notEqual> |
---|
124 | <bean:define id="catJPrec" name="catJ" type="java.lang.String"/> |
---|
125 | <bean:define type="java.lang.String" id="parite" |
---|
126 | value="<%=Calcul.getParite(jId.intValue())%>"/> |
---|
127 | <logic:equal name="parite" value="pair"><bean:define id="classJeu" |
---|
128 | value="pair"/></logic:equal> |
---|
129 | <logic:equal name="parite" value="impair"><bean:define id="classJeu" |
---|
130 | value="impair"/></logic:equal> |
---|
131 | <table class="${classJeu}"> |
---|
132 | <tr> |
---|
133 | <td nowrap style="font-size: 11px"> |
---|
134 | <html:link page="/MetadataInfo.do" paramName="idJ" paramId="idJeu" |
---|
135 | titleKey="data.access.metadata.link"> |
---|
136 | <bean:write name="nomJ"/> |
---|
137 | </html:link> |
---|
138 | </td> |
---|
139 | </tr> |
---|
140 | </table> |
---|
141 | </logic:equal> |
---|
142 | </logic:iterate> |
---|
143 | </logic:notEmpty> |
---|
144 | </nested:iterate> |
---|
145 | </div> |
---|
146 | </td> |
---|
147 | </tr> |
---|
148 | </table> |
---|
149 | </td> |
---|
150 | <td width="250px" valign="top"> |
---|
151 | <table width="100%"> |
---|
152 | <tr> |
---|
153 | <th class="titleBox" colspan="2"><bean:message key="data.access.period"/></th> |
---|
154 | </tr> |
---|
155 | <tr> |
---|
156 | <td class="titleType"><bean:message key="data.access.period.beg"/></td> |
---|
157 | <td><bean:write name="datasForm" property="dateDeb"/></td> |
---|
158 | </tr> |
---|
159 | <tr> |
---|
160 | <td class="titleType"><bean:message key="data.access.period.end"/></td> |
---|
161 | <td><bean:write name="datasForm" property="dateFin"/></td> |
---|
162 | </tr> |
---|
163 | </table> |
---|
164 | </td> |
---|
165 | </tr> |
---|
166 | <tr> |
---|
167 | <td valign="top"> |
---|
168 | <table width="100%"> |
---|
169 | <tr> |
---|
170 | <th class="titleBox" colspan="2"><bean:message key="data.access.loc"/></th> |
---|
171 | </tr> |
---|
172 | <tr> |
---|
173 | <td class="titleType"><bean:message key="data.access.plat.lat"/></td> |
---|
174 | <td nowrap><bean:message key="data.access.loc.inter"/> <bean:write name="datasForm" |
---|
175 | property="latMin"/><bean:message |
---|
176 | key="unit.deg"/> <bean:message key="data.access.loc.inter2"/> <bean:write name="datasForm" |
---|
177 | property="latMax"/><bean:message |
---|
178 | key="unit.deg"/></td> |
---|
179 | </tr> |
---|
180 | <tr> |
---|
181 | <td class="titleType"><bean:message key="data.access.plat.lon"/></td> |
---|
182 | <td nowrap><bean:message key="data.access.loc.inter"/> <bean:write name="datasForm" |
---|
183 | property="lonMin"/><bean:message |
---|
184 | key="unit.deg"/> <bean:message key="data.access.loc.inter2"/> <bean:write name="datasForm" |
---|
185 | property="lonMax"/><bean:message |
---|
186 | key="unit.deg"/></td> |
---|
187 | </tr> |
---|
188 | </table> |
---|
189 | </td> |
---|
190 | </tr> |
---|
191 | <tr> |
---|
192 | <td width="500px" colspan="2" valign="top"> |
---|
193 | <table width="100%"> |
---|
194 | <tr> |
---|
195 | <th class="titleBox"><bean:message key="data.access.param"/> (<span id="nbParamsTxt"><bean:write |
---|
196 | name="datasForm" property="nbSelectedParams"/></span>) |
---|
197 | </th> |
---|
198 | </tr> |
---|
199 | <tr> |
---|
200 | <td> |
---|
201 | <div style="height: 150px; overflow: auto" id="listParametres"> |
---|
202 | <bean:define id="catParPrec" value=""/> |
---|
203 | <nested:iterate property="parametres"> |
---|
204 | <nested:define id="idPar" property="parametreId"/> |
---|
205 | <nested:define id="nomPar" property="parametreNom"/> |
---|
206 | <nested:define id="codePar" property="parametreCode"/> |
---|
207 | <nested:define id="catPar" property="categorieParam.categorieParamNom"/> |
---|
208 | <logic:notEmpty name="datasForm" property="selectParams"> |
---|
209 | <logic:iterate name="datasForm" property="selectParams" id="selParam" indexId="paramId"> |
---|
210 | <logic:equal name="selParam" value="${idPar}"> |
---|
211 | <logic:notEqual name="catPar" value="${catParPrec}"> |
---|
212 | <div class="titleType"><bean:write name="catPar"/></div> |
---|
213 | </logic:notEqual> |
---|
214 | <bean:define id="catParPrec" name="catPar" type="java.lang.String"/> |
---|
215 | <bean:define type="java.lang.String" id="parite" |
---|
216 | value="<%=Calcul.getParite(paramId.intValue())%>"/> |
---|
217 | <logic:equal name="parite" value="pair"><bean:define id="classParam" |
---|
218 | value="pair"/></logic:equal> |
---|
219 | <logic:equal name="parite" value="impair"><bean:define id="classParam" |
---|
220 | value="impair"/></logic:equal> |
---|
221 | <table class="${classParam}"> |
---|
222 | <tr> |
---|
223 | <td nowrap style="font-size: 11px"> |
---|
224 | <html:link page="/DescParametre.do" titleKey="data.access.param4" |
---|
225 | paramName="idPar" paramId="idParam"> |
---|
226 | <bean:write name="nomPar"/> (<bean:write name="codePar"/>) |
---|
227 | </html:link> |
---|
228 | </td> |
---|
229 | </tr> |
---|
230 | </table> |
---|
231 | </logic:equal> |
---|
232 | </logic:iterate> |
---|
233 | </logic:notEmpty> |
---|
234 | </nested:iterate> |
---|
235 | </div> |
---|
236 | </td> |
---|
237 | </tr> |
---|
238 | </table> |
---|
239 | </td> |
---|
240 | <td width="250px" valign="top"> |
---|
241 | <table width="100%"> |
---|
242 | <tr> |
---|
243 | <th class="titleBox"><bean:message key="data.access.capt"/> (<span id="nbCaptsTxt"><bean:write |
---|
244 | name="datasForm" property="nbSelectedCapts"/></span>) |
---|
245 | </th> |
---|
246 | </tr> |
---|
247 | <tr> |
---|
248 | <td> |
---|
249 | <div style="height: 150px; overflow: auto" id="listCapteurs"> |
---|
250 | <bean:define id="typeCPrec" value=""/> |
---|
251 | <nested:iterate property="capteurs"> |
---|
252 | <nested:define id="idC" property="capteurId"/> |
---|
253 | <nested:define id="modeleC" property="capteurModele"/> |
---|
254 | <nested:define id="typeC" property="typeCapteur.typeCapteurNom"/> |
---|
255 | <logic:notEmpty name="datasForm" property="selectCapts"> |
---|
256 | <logic:iterate name="datasForm" property="selectCapts" id="selCapt" indexId="captId"> |
---|
257 | <logic:equal name="selCapt" value="${idC}"> |
---|
258 | <logic:notEqual name="typeC" value="${typeCPrec}"> |
---|
259 | <div class="titleType"><bean:write name="typeC"/></div> |
---|
260 | </logic:notEqual> |
---|
261 | <bean:define id="typeCPrec" name="typeC" type="java.lang.String"/> |
---|
262 | <bean:define type="java.lang.String" id="parite" |
---|
263 | value="<%=Calcul.getParite(captId.intValue())%>"/> |
---|
264 | <logic:equal name="parite" value="pair"><bean:define id="classCapt" |
---|
265 | value="pair"/></logic:equal> |
---|
266 | <logic:equal name="parite" value="impair"><bean:define id="classCapt" |
---|
267 | value="impair"/></logic:equal> |
---|
268 | <table class="${classCapt}"> |
---|
269 | <tr> |
---|
270 | <td nowrap style="font-size: 11px"> |
---|
271 | <html:link page="/DescCapteur.do" titleKey="data.access.capt4" |
---|
272 | paramName="idC" paramId="idCapt"> |
---|
273 | <bean:write name="modeleC"/> |
---|
274 | </html:link> |
---|
275 | </td> |
---|
276 | </tr> |
---|
277 | </table> |
---|
278 | </logic:equal> |
---|
279 | </logic:iterate> |
---|
280 | </logic:notEmpty> |
---|
281 | </nested:iterate> |
---|
282 | </div> |
---|
283 | </td> |
---|
284 | </tr> |
---|
285 | </table> |
---|
286 | </td> |
---|
287 | </tr> |
---|
288 | <tr> |
---|
289 | |
---|
290 | <bean:define id="nbVals" name="datasForm" property="nbValeurs"/> |
---|
291 | <th class="titleBox"> |
---|
292 | <bean:message key="data.access.output"/> |
---|
293 | <html:select property="output"> |
---|
294 | <html:option value="NASA-AMES">NASA-Ames 1001</html:option> |
---|
295 | <html:option value="NETCDF">NetCDF</html:option> |
---|
296 | </html:select> |
---|
297 | </th> |
---|
298 | |
---|
299 | <th align="center"> |
---|
300 | <div style="color: red"><logic:equal name="nbVals" value="0"><bean:message key="errors.access.novalues"/></logic:equal></div> |
---|
301 | </th> |
---|
302 | |
---|
303 | <th class="titleBox"> |
---|
304 | <bean:message key="data.access.compression"/> |
---|
305 | <html:select property="compression"> |
---|
306 | <html:option value="None"></html:option> |
---|
307 | <html:option value="zip"></html:option> |
---|
308 | <html:option value="tgz"></html:option> |
---|
309 | </html:select> |
---|
310 | </th> |
---|
311 | </tr> |
---|
312 | </table> |
---|
313 | |
---|
314 | <table width="750px"> |
---|
315 | <tr> |
---|
316 | <td align="right"> |
---|
317 | <html:cancel><bean:message key="app.cancel"/></html:cancel> |
---|
318 | <logic:notEqual name="nbVals" value="0"> |
---|
319 | <%--bean:message key="app.provisoire"/--%> |
---|
320 | <html:submit><bean:message key="app.submit"/></html:submit> |
---|
321 | </logic:notEqual> |
---|
322 | </td> |
---|
323 | </tr> |
---|
324 | </table> |
---|
325 | <%--div class="hdp" align="right"> |
---|
326 | <html:link page="/data/access/extract2.jsp" anchor="top" titleKey="app.hdp"> |
---|
327 | <html:img page="/images/utils/hdp1.png"/> |
---|
328 | </html:link> |
---|
329 | </div--%> |
---|
330 | </nested:root> |
---|
331 | </html:form> |
---|
332 | </tiles:put> |
---|
333 | </tiles:insert> |
---|