source: ether_megapoli/trunk/web/data/access/extract.jsp @ 254

Last change on this file since 254 was 254, checked in by vmipsl, 13 years ago

extract

  • Property svn:executable set to *
File size: 24.4 KB
Line 
1<%@ page language="java" contentType="text/html; charset=UTF-8"%>
2<%@ page import="com.medias.Calcul"%>
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<%@ taglib prefix="ether" tagdir="/WEB-INF/tags" %>
9
10<tiles:insert page="/resources/templates/templateMegapoli.jsp" flush="true">
11
12    <tiles:put name="insertCss" type="string">
13        <%--<ether:htmlCss cssFile="medias_new"/>--%>
14    </tiles:put>
15
16    <tiles:put name="insertJsOrJsp" type="string">
17        <ether:htmlJs jsFile="maj"/>
18        <ether:htmlJs jsFile="medias/ajax"/>
19        <ether:htmlJs jsFile="medias/scw"/>
20
21        <script type="text/javascript">
22            <!--
23          var popup;
24
25          function popupWindow (url, name, configuration)
26          {
27              popup = window.open (url, name, configuration);
28          }
29
30          function closePopupWindow ()
31          {
32              popup.close ();
33          }
34          -->
35        </script>
36    </tiles:put>
37
38    <tiles:put name="title" type="string"><bean:message key="app.title"/> - <bean:message key="data.access.extract"/></tiles:put>
39    <tiles:put name="nav" type="string">
40        <html:link page="/index.jsp"><bean:message key="app.home"/></html:link>&nbsp;&gt;
41        <html:link page="/data?methodName=viewDataResume"><bean:message key="app.data"/></html:link>&nbsp;&gt;
42        <html:link page="/DataAccess.do"><bean:message key="data.access.extract"/></html:link>
43    </tiles:put>
44
45    <%--****************** CONTENT ****************** --%>
46        <tiles:put name="bodytitle" type="string"><bean:message key="data.access.extract"/></tiles:put>
47
48        <tiles:put name="body" type="string">
49                <span class="legende" style="font-size: 12px"><bean:message key="app.mandatory2"/></span><br/>
50        <logic:present name="<%=org.apache.struts.Globals.ERROR_KEY%>">
51            <div id="errors">
52                <div><html:errors property="latMax"/></div>
53                <div><html:errors property="lonMax"/></div>
54                <div><html:errors property="dateFin"/></div>
55            </div>
56        </logic:present>
57
58        <div id="messages">
59                        <html:messages id="mess" property="<%=org.apache.struts.action.ActionMessages.GLOBAL_MESSAGE%>" message="true">
60                                <bean:write name="mess"/>
61                        </html:messages>
62                </div>
63        <br/>
64
65                <html:form action="/DataSubmit">
66
67                <nested:root name="datasForm">
68                <table class="roundTable" border="1" width="100%">
69                        <tr>
70
71                <td width="250px" rowspan="2" valign="top">
72                <%--************************************************ --%>
73                <%--****************** PLATEFORMS ****************** --%>
74                <%--************************************************ --%>
75                                <table bgcolor="#E8EFF3" width="100%">
76                                        <tr>
77                                                <th class="titleBox">
78                                                        <input type="checkbox" onclick="selAll(this.checked,'selectPlats','nbPlatsTxt')" title="<bean:message key="data.access.selall"/>"/>
79                                                        <bean:message key="data.access.plat"/> <span id="nbPlatsTxt" style="visibility: hidden;display: none">(<bean:write name="datasForm" property="nbSelectedPlats"/>)</span>
80                                                </th>
81                                        </tr>
82                                        <tr>
83                                                <td>
84                                                        <div style="height: 150px; overflow: auto" id="listPlateformes">
85                                                        <bean:define id="nomTypePlatPrec" value=""/>
86                                                        <nested:iterate property="plateformes" indexId="platId">
87                                                                <nested:nest property="typePlateforme">
88                                                                        <nested:define id="idTypePlat" property="typePlateformeId"/>
89                                                                        <nested:notEqual property="typePlateformeNom" value="${nomTypePlatPrec}">
90                                                                                <div class="titleType">
91                                                                                        <input type="button" value="+" class="smallButton" onclick="affPlat(${idTypePlat})" id="plusPlat_${idTypePlat}"/>
92                                                                                        <nested:equal property="typePlateformeNom" value="FIXED">
93                                                                                                <bean:message key="data.access.plat.fixe2"/>
94                                                                                        </nested:equal>
95                                                                                        <nested:equal property="typePlateformeNom" value="MOBILE">
96                                                                                                <bean:message key="data.access.plat.mobile2"/>
97                                                                                        </nested:equal>
98                                                                                </div>
99                                                                        </nested:notEqual>
100                                                                        <nested:define id="nomTypePlatPrec" property="typePlateformeNom" type="java.lang.String"/>
101                                                                </nested:nest>
102                                                                <bean:define type="java.lang.String" id="parite" value="<%=Calcul.getParite(platId.intValue())%>"/>
103                                                                <logic:equal name="parite" value="pair"><bean:define id="classPlat" value="pair"/></logic:equal>
104                                                                <logic:equal name="parite" value="impair"><bean:define id="classPlat" value="impair"/></logic:equal>
105                                                                <nested:define id="idP" property="plateformeId"/>
106                                                                <table class="${classPlat}" id="plat_${idTypePlat}_${platId}" style="visibility: hidden; display: none;">
107                                                                        <tr>
108                                                                                <td nowrap style="font-size: 11px">
109                                                                                        <html:multibox property="selectPlats" value="${idP}" onchange="selectElem(this.checked,'nbPlatsTxt')"/>
110                                                                                        <html:link page="/DescPlateforme.do" titleKey="data.access.plat4" paramName="idP" paramId="idPlat" styleClass="elementExtract">
111                                                                                                <nested:write property="plateformeNom"/>
112                                                                                        </html:link>
113                                                                                </td>
114                                                                        </tr>
115                                                                </table>
116                                                        </nested:iterate>
117                                                        </div>
118                                                </td>
119                                        </tr>
120                                </table>
121                            </td>
122
123                <td width="250px" rowspan="2" valign="top">
124                <%--************************************************ --%>
125                <%--****************** DATA SETS ******************* --%>
126                <%--************************************************ --%>
127                                <table bgcolor="#E8EFF3" width="100%">
128                                        <tr>
129                                                <th class="titleBox">
130                                                        <input type="checkbox" onclick="selAll(this.checked,'selectJeux','nbJeuxTxt')" title="<bean:message key="data.access.selall"/>"/>
131                                                        <bean:message key="data.access.jeux"/> <span id="nbJeuxTxt" style="visibility: hidden;display: none">(<bean:write name="datasForm" property="nbSelectedJeux"/>)</span>
132                                                </th>
133                                        </tr>
134                                        <tr>
135                                                <td>
136                                                        <div style="height: 150px; overflow: auto" id="listJeux">
137                                                        <bean:define id="nomCatJeuPrec" value=""/>
138                                                        <nested:iterate property="jeux" indexId="jId">
139                                                                <nested:nest property="categorie">
140                                                                        <nested:define id="idCatJeu" property="categorieId"/>
141                                                                        <nested:notEqual property="categorieNom" value="${nomCatJeuPrec}">
142                                                                                <div class="titleType">
143                                                                                        <input type="button" value="+" class="smallButton" onclick="affJeu(${idCatJeu})" id="plusJeu_${idCatJeu}"/>
144                                                                                        <nested:equal property="categorieNom" value="AVION">
145                                                                                                <bean:message key="data.categ1"/>
146                                                                                        </nested:equal>
147                                                                                        <nested:equal property="categorieNom" value="SURF_FIXE">
148                                                                                                <bean:message key="data.categ2"/>
149                                                                                        </nested:equal>
150                                                                                        <nested:equal property="categorieNom" value="SURF_MOBILE">
151                                                                                                <bean:message key="data.categ3"/>
152                                                                                        </nested:equal>
153                                                                                </div>
154                                                                        </nested:notEqual>
155                                                                        <nested:define id="nomCatJeuPrec" property="categorieNom" type="java.lang.String"/>
156                                                                </nested:nest>
157                                                                <bean:define type="java.lang.String" id="parite" value="<%=Calcul.getParite(jId.intValue())%>"/>
158                                                                <logic:equal name="parite" value="pair"><bean:define id="classJeu" value="pair"/></logic:equal>
159                                                                <logic:equal name="parite" value="impair"><bean:define id="classJeu" value="impair"/></logic:equal>
160                                                                <nested:define id="idJ" property="jeuId"/>
161                                                                <table class="${classJeu}" id="jeu_${idCatJeu}_${jId}" style="visibility: hidden; display: none;">
162                                                                        <tr>
163                                                                                <td nowrap style="font-size: 11px">
164                                                                                        <html:multibox property="selectJeux" value="${idJ}" onchange="selectElem(this.checked,'nbJeuxTxt')"/>
165                                                                                        <html:link page="/MetadataInfo.do" paramName="idJ" paramId="idJeu" titleKey="data.access.metadata.link">
166                                                                                                <nested:write property="jeuNom"/>
167                                                                                        </html:link>
168                                                                                </td>
169                                                                        </tr>
170                                                                </table>
171                                                        </nested:iterate>
172                                                        </div>
173                                                </td>
174                                        </tr>
175                                </table>
176                        </td>
177
178                <td width="250px" valign="top">
179                <%--************************************************ --%>
180                <%--******************** PERIOD ******************** --%>
181                <%--************************************************ --%>
182                                <table width="100%">
183                                        <tr>
184                                                <th class="titleBox" colspan="3"><bean:message key="data.access.period"/> (<bean:message key="data.access.period.format"/>)</th>
185                                        </tr>
186                                        <tr>
187                                                <td width="50px" class="titleType"><bean:message key="data.access.period.beg"/> *</td>
188                                                <td width="100px">
189                                                        <html:text property="dateDeb" size="10" maxlength="10" readonly="true" styleId="idDate1"/>
190                                                </td>
191                                                <td valign="middle">
192                                                        <html:img page="/resources/images/utils/calendar.gif" alt="cal" onclick="scwShowHide(scwID('idDate1'),event);"/>
193                                            </td>
194                                        </tr>
195                                        <tr>
196                                                <td class="titleType"><bean:message key="data.access.period.end"/> *</td>
197                                                <td><html:text property="dateFin" size="10" maxlength="10" readonly="true" styleId="idDate2"/></td>
198                                                <td valign="middle">
199                                                        <html:img page="/resources/images/utils/calendar.gif" alt="cal" onclick="scwShowHide(scwID('idDate2'),event);"/>
200                                            </td>
201                                        </tr>
202                                </table>
203                            </td>
204            </tr>
205
206            <tr>
207                <td valign="top">
208                <%--************************************************ --%>
209                <%--******************* ZONE... ******************** --%>
210                <%--************************************************ --%>
211                                <table width="100%">
212                                        <tr>
213                                                <th class="titleBox" colspan="2"><bean:message key="data.access.loc"/> (<bean:message key="data.access.loc.format"/>)</th>
214                                        </tr>
215                                        <tr>
216                                                <td class="titleType"><bean:message key="data.access.plat.lat"/> *</td>
217                                                <td class="titleType" nowrap><bean:message key="data.access.loc.inter"/> <html:text property="latMin" size="5"/> <bean:message key="data.access.loc.inter2"/> <html:text property="latMax" size="5"/></td>
218                                        </tr>
219                                        <tr>
220                                                <td class="titleType"><bean:message key="data.access.plat.lon"/> *</td>
221                                                <td class="titleType" nowrap><bean:message key="data.access.loc.inter"/> <html:text property="lonMin" size="5"/> <bean:message key="data.access.loc.inter2"/> <html:text property="lonMax" size="5"/></td>
222                                        </tr>
223                                </table>
224                            </td>
225            </tr>
226
227            <%--*************************************************************************************************** --%>
228
229                        <tr>
230                <td width="500px" colspan="2" valign="top">
231                <%--************************************************ --%>
232                <%--****************** PARAMETERS ****************** --%>
233                <%--************************************************ --%>
234                                <table bgcolor="#E8EFF3" width="100%">
235                                        <tr>
236                                                <th class="titleBox">
237                                                        <input type="checkbox" onclick="selAll(this.checked,'selectParams','nbParamsTxt')" title="<bean:message key="data.access.selall"/>"/>
238                                                        <bean:message key="data.access.param"/> <span id="nbParamsTxt" style="visibility: hidden;display: none">(<bean:write name="datasForm" property="nbSelectedParams"/>)</span>
239                                                </th>
240                                        </tr>
241                                        <tr>
242                                                <td>
243                                                        <div style="height: 200px; overflow: auto" id="listParametres">
244                                                        <bean:define id="nomCat1Prec" value=""/>
245                                                        <bean:define id="nomCat2Prec" value=""/>
246                                                        <bean:define id="nomCat3Prec" value=""/>
247                                                        <bean:define id="nomCat4Prec" value=""/>
248                                                        <bean:define id="idCat1" value="0"/>
249                                                        <bean:define id="idCat2" value="0"/>
250                                                        <bean:define id="idCat3" value="0"/>
251                                                        <bean:define id="idCat4" value="0"/>
252                                                        <nested:iterate property="parametres" indexId="paramId">
253                                                                <nested:nest property="categorieParam">
254                                                                        <nested:notEqual property="cat1" value="${nomCat1Prec}">
255                                                                                <bean:define id="idCat1" value="<%=Calcul.inc(idCat1)%>"/>
256                                                                                <bean:define id="paramLevel" value="${idCat1}-0-0-0"/>
257                                                                                <div class="titleType">
258                                                                                        <input type="button" value="-" class="smallButton" onclick="affParam(${idCat1},0,0,0,1,this.value)" id="plusParam_${paramLevel}"/>
259                                                                                        <nested:write property="cat1"/>
260                                                                                </div>
261                                                                                <nested:notEmpty property="cat2">
262                                                                                        <nested:notEqual property="cat2" value="${nomCat2Prec}">
263                                                                                                <bean:define id="idCat2" value="<%=Calcul.inc(idCat2)%>"/>
264                                                                                                <bean:define id="paramLevel" value="${idCat1}-${idCat2}-0-0"/>
265                                                                                                <div class="titleType" style="margin-left: 15px" id="catParam_${paramLevel}">
266                                                                                                        <input type="button" value="+" class="smallButton" onclick="affParam(${idCat1},${idCat2},0,0,2,this.value)" id="plusParam_${paramLevel}"/>
267                                                                                                        <nested:write property="cat2"/>
268                                                                                                </div>
269                                                                                                <nested:notEmpty property="cat3">
270                                                                                                        <nested:notEqual property="cat3" value="${nomCat3Prec}">
271                                                                                                                <bean:define id="idCat3" value="<%=Calcul.inc(idCat3)%>"/>
272                                                                                                                <bean:define id="paramLevel" value="${idCat1}-${idCat2}-${idCat3}-0"/>
273                                                                                                                <div class="titleType" style="margin-left: 30px; visibility: hidden; display: none;" id="catParam_${paramLevel}">
274                                                                                                                        <input type="button" value="+" class="smallButton" onclick="affParam(${idCat1},${idCat2},${idCat3},0,3,this.value)" id="plusParam_${paramLevel}"/>
275                                                                                                                        <nested:write property="cat3"/>
276                                                                                                                </div>
277                                                                                                                <nested:notEmpty property="cat4">
278                                                                                                                        <nested:notEqual property="cat4" value="${nomCat4Prec}">
279                                                                                                                                <bean:define id="idCat4" value="<%=Calcul.inc(idCat4)%>"/>
280                                                                                                                                <bean:define id="paramLevel" value="${idCat1}-${idCat2}-${idCat3}-${idCat4}"/>
281                                                                                                                                <div class="titleType" style="margin-left: 45px; visibility: hidden; display: none;" id="catParam_${paramLevel}">
282                                                                                                                                        <input type="button" value="+" class="smallButton" onclick="affParam(${idCat1},${idCat2},${idCat3},${idCat4},4,this.value)" id="plusParam_${paramLevel}"/>
283                                                                                                                                        <nested:write property="cat4"/>
284                                                                                                                                </div>
285                                                                                                                        </nested:notEqual>
286                                                                                                                </nested:notEmpty>
287                                                                                                        </nested:notEqual>
288                                                                                                </nested:notEmpty>
289                                                                                        </nested:notEqual>
290                                                                                </nested:notEmpty>
291                                                                        </nested:notEqual>
292                                                                        <nested:equal property="cat1" value="${nomCat1Prec}">
293                                                                                <nested:notEmpty property="cat2">
294                                                                                        <nested:notEqual property="cat2" value="${nomCat2Prec}">
295                                                                                                <bean:define id="idCat2" value="<%=Calcul.inc(idCat2)%>"/>
296                                                                                                <bean:define id="paramLevel" value="${idCat1}-${idCat2}-0-0"/>
297                                                                                                <div class="titleType" style="margin-left: 15px" id="catParam_${paramLevel}">
298                                                                                                        <input type="button" value="+" class="smallButton" onclick="affParam(${idCat1},${idCat2},0,0,2,this.value)" id="plusParam_${paramLevel}"/>
299                                                                                                        <nested:write property="cat2"/>
300                                                                                                </div>
301                                                                                                <nested:notEmpty property="cat3">
302                                                                                                        <nested:notEqual property="cat3" value="${nomCat3Prec}">
303                                                                                                                <bean:define id="idCat3" value="<%=Calcul.inc(idCat3)%>"/>
304                                                                                                                <bean:define id="paramLevel" value="${idCat1}-${idCat2}-${idCat3}-0"/>
305                                                                                                                <div class="titleType" style="margin-left: 30px; visibility: hidden; display: none;" id="catParam_${paramLevel}">
306                                                                                                                        <input type="button" value="+" class="smallButton" onclick="affParam(${idCat1},${idCat2},${idCat3},0,3,this.value)" id="plusParam_${paramLevel}"/>
307                                                                                                                        <nested:write property="cat3"/>
308                                                                                                                </div>
309                                                                                                                <nested:notEmpty property="cat4">
310                                                                                                                        <nested:notEqual property="cat4" value="${nomCat4Prec}">
311                                                                                                                                <bean:define id="idCat4" value="<%=Calcul.inc(idCat4)%>"/>
312                                                                                                                                <bean:define id="paramLevel" value="${idCat1}-${idCat2}-${idCat3}-${idCat4}"/>
313                                                                                                                                <div class="titleType" style="margin-left: 45px; visibility: hidden; display: none;" id="catParam_${paramLevel}">
314                                                                                                                                        <input type="button" value="+" class="smallButton" onclick="affParam(${idCat1},${idCat2},${idCat3},${idCat4},4,this.value)" id="plusParam_${paramLevel}"/>
315                                                                                                                                        <nested:write property="cat4"/>
316                                                                                                                                </div>
317                                                                                                                        </nested:notEqual>
318                                                                                                                </nested:notEmpty>
319                                                                                                        </nested:notEqual>
320                                                                                                </nested:notEmpty>
321                                                                                        </nested:notEqual>
322                                                                                        <nested:equal property="cat2" value="${nomCat2Prec}">
323                                                                                                <nested:notEmpty property="cat3">
324                                                                                                        <nested:notEqual property="cat3" value="${nomCat3Prec}">
325                                                                                                                <bean:define id="idCat3" value="<%=Calcul.inc(idCat3)%>"/>
326                                                                                                                <bean:define id="paramLevel" value="${idCat1}-${idCat2}-${idCat3}-0"/>
327                                                                                                                <div class="titleType" style="margin-left: 30px; visibility: hidden; display: none;" id="catParam_${paramLevel}">
328                                                                                                                        <input type="button" value="+" class="smallButton" onclick="affParam(${idCat1},${idCat2},${idCat3},0,3,this.value)" id="plusParam_${paramLevel}"/>
329                                                                                                                        <nested:write property="cat3"/>
330                                                                                                                </div>
331                                                                                                                <nested:notEmpty property="cat4">
332                                                                                                                        <nested:notEqual property="cat4" value="${nomCat4Prec}">
333                                                                                                                                <bean:define id="idCat4" value="<%=Calcul.inc(idCat4)%>"/>
334                                                                                                                                <bean:define id="paramLevel" value="${idCat1}-${idCat2}-${idCat3}-${idCat4}"/>
335                                                                                                                                <div class="titleType" style="margin-left: 45px; visibility: hidden; display: none;" id="catParam_${paramLevel}">
336                                                                                                                                        <input type="button" value="+" class="smallButton" onclick="affParam(${idCat1},${idCat2},${idCat3},${idCat4},4,this.value)" id="plusParam_${paramLevel}"/>
337                                                                                                                                        <nested:write property="cat4"/>
338                                                                                                                                </div>
339                                                                                                                        </nested:notEqual>
340                                                                                                                </nested:notEmpty>
341                                                                                                        </nested:notEqual>
342                                                                                                        <nested:equal property="cat3" value="${nomCat3Prec}">
343                                                                                                                <nested:notEmpty property="cat4">
344                                                                                                                        <nested:notEqual property="cat4" value="${nomCat4Prec}">
345                                                                                                                                <bean:define id="idCat4" value="<%=Calcul.inc(idCat4)%>"/>
346                                                                                                                                <bean:define id="paramLevel" value="${idCat1}-${idCat2}-${idCat3}-${idCat4}"/>
347                                                                                                                                <div class="titleType" style="margin-left: 45px; visibility: hidden; display: none;" id="catParam_${paramLevel}">
348                                                                                                                                        <input type="button" value="+" class="smallButton" onclick="affParam(${idCat1},${idCat2},${idCat3},${idCat4},4,this.value)" id="plusParam_${paramLevel}"/>
349                                                                                                                                        <nested:write property="cat4"/>
350                                                                                                                                </div>
351                                                                                                                        </nested:notEqual>
352                                                                                                                </nested:notEmpty>
353                                                                                                        </nested:equal>
354                                                                                                </nested:notEmpty>
355                                                                                        </nested:equal>
356                                                                                </nested:notEmpty>
357                                                                        </nested:equal>
358                                                                        <nested:define id="nomCat1Prec" property="cat1" type="java.lang.String"/>
359                                                                        <nested:define id="nomCat2Prec" property="cat2" type="java.lang.String"/>
360                                                                        <nested:define id="nomCat3Prec" property="cat3" type="java.lang.String"/>
361                                                                        <nested:define id="nomCat4Prec" property="cat4" type="java.lang.String"/>
362                                                                </nested:nest>
363                                                                <bean:define type="java.lang.String" id="parite" value="<%=Calcul.getParite(paramId.intValue())%>"/>
364                                                                <logic:equal name="parite" value="pair"><bean:define id="classParam" value="pair"/></logic:equal>
365                                                                <logic:equal name="parite" value="impair"><bean:define id="classParam" value="impair"/></logic:equal>
366                                                                <nested:define id="idPar" property="parametreId"/>
367                                                                <logic:match name="paramLevel" value="-0-0-0">
368                                                                        <bean:define id="decal" value="0"/>
369                                                                </logic:match>
370                                                                <logic:notMatch name="paramLevel" value="-0-0-0">
371                                                                        <logic:match name="paramLevel" value="-0-0">
372                                                                                <bean:define id="decal" value="15"/>
373                                                                        </logic:match>
374                                                                        <logic:notMatch name="paramLevel" value="-0-0">
375                                                                                <logic:match name="paramLevel" value="-0">
376                                                                                        <bean:define id="decal" value="30"/>
377                                                                                </logic:match>
378                                                                                <logic:notMatch name="paramLevel" value="-0">
379                                                                                        <bean:define id="decal" value="45"/>
380                                                                                </logic:notMatch>
381                                                                        </logic:notMatch>
382                                                                </logic:notMatch>
383                                                                <table class="${classParam}" id="param_${paramLevel}_${paramId}" style="visibility: hidden; display: none; margin-left: ${decal}px">
384                                                                        <tr>
385                                                                                <td nowrap style="font-size: 11px">
386                                                                                        <html:multibox property="selectParams" value="${idPar}" onchange="selectElem(this.checked,'nbParamsTxt')"/>
387                                                                                        <html:link page="/DescParametre.do" titleKey="data.access.param4" paramName="idPar" paramId="idParam">
388                                                                                                <nested:write property="parametreNom"/> (<nested:write property="parametreCode"/>)
389                                                                                        </html:link>
390                                                                                </td>
391                                                                        </tr>
392                                                                </table>
393                                                        </nested:iterate>
394                                                        </div>
395                                                </td>
396                                        </tr>
397                                </table>
398                            </td>
399
400                <td width="250px" valign="top">
401                <%--************************************************ --%>
402                <%--******************** SENSORS ******************* --%>
403                <%--************************************************ --%>
404                                <table bgcolor="#E8EFF3" width="100%">
405                                        <tr>
406                                                <th class="titleBox">
407                                                        <input type="checkbox" onclick="selAll(this.checked,'selectCapts','nbCaptsTxt')" title="<bean:message key="data.access.selall"/>"/>
408                                                        <bean:message key="data.access.capt"/> <span id="nbCaptsTxt" style="visibility: hidden;display: none">(<bean:write name="datasForm" property="nbSelectedCapts"/>)</span>
409                                                </th>
410                                        </tr>
411                                        <tr>
412                                                <td>
413                                                        <div style="height: 200px; overflow: auto" id="listCapteurs">
414                                                        <bean:define id="nomTypeCaptPrec" value=""/>
415                                                        <nested:iterate property="capteurs" indexId="captId">
416                                                                <nested:nest property="typeCapteur">
417                                                                        <nested:define id="idTypeCapt" property="typeCapteurId"/>
418                                                                        <nested:notEqual property="typeCapteurNom" value="${nomTypeCaptPrec}">
419                                                                                <div class="titleType"><input type="button" value="+" class="smallButton" onclick="affCapt(${idTypeCapt})" id="plusCapt_${idTypeCapt}"/>&nbsp;<nested:write property="typeCapteurNom"/></div>
420                                                                        </nested:notEqual>
421                                                                        <nested:define id="nomTypeCaptPrec" property="typeCapteurNom" type="java.lang.String"/>
422                                                                </nested:nest>
423                                                                <bean:define type="java.lang.String" id="parite" value="<%=Calcul.getParite(captId.intValue())%>"/>
424                                                                <logic:equal name="parite" value="pair"><bean:define id="classCapt" value="pair"/></logic:equal>
425                                                                <logic:equal name="parite" value="impair"><bean:define id="classCapt" value="impair"/></logic:equal>
426                                                                <nested:define id="idC" property="capteurId"/>
427                                                                <table class="${classCapt}" id="capt_${idTypeCapt}_${captId}" style="visibility: hidden; display: none;">
428                                                                        <tr>
429                                                                                <td nowrap style="font-size: 11px">
430                                                                                        <html:multibox property="selectCapts" value="${idC}" onchange="selectElem(this.checked,'nbCaptsTxt')"/>
431                                                                                        <html:link page="/DescCapteur.do" titleKey="data.access.capt4" paramName="idC" paramId="idCapt">
432                                                                                                <nested:equal property="capteurModele" value="UNKNOWN">
433                                                                                                        <nested:notEqual property="fabriquant.fabriquantNom" value="UNKNOWN">
434                                                                                                                <nested:write property="fabriquant.fabriquantNom"/>
435                                                                                                        </nested:notEqual>
436                                                                                                        <nested:equal property="fabriquant.fabriquantNom" value="UNKNOWN">
437                                                                                                                Unknown
438                                                                                                        </nested:equal>
439                                                                                                </nested:equal>
440                                                                                                <nested:notEqual property="capteurModele" value="UNKNOWN">
441                                                                                                        <nested:write property="capteurModele"/>
442                                                                                                        <nested:notEqual property="fabriquant.fabriquantNom" value="UNKNOWN">
443                                                                                                                - <nested:write property="fabriquant.fabriquantNom"/>
444                                                                                                        </nested:notEqual>
445                                                                                                </nested:notEqual>
446                                                                                        </html:link>
447                                                                                </td>
448                                                                        </tr>
449                                                                </table>
450                                                        </nested:iterate>
451                                                        </div>
452                                                </td>
453                                        </tr>
454                                </table>
455                            </td>
456            </tr>
457                </table>
458
459        <%--************************************************ --%>
460        <%--******************* BUTTONS ******************** --%>
461        <%--************************************************ --%>
462        <table width="100%">
463            <tr>
464                <td class="legende" align="left" style="font-size: 10px">* <bean:message key="app.mandatory"/></td>
465                <td align="right">
466                    <html:reset onclick="resetExtractForm()"><bean:message key="app.reset"/></html:reset>
467                    <html:submit><bean:message key="app.submit"/></html:submit>
468                </td>
469            </tr>
470        </table>
471
472        </nested:root>
473                </html:form>
474        </tiles:put>
475</tiles:insert>
Note: See TracBrowser for help on using the repository browser.