source: tapas/web/project/formTapas.jsp @ 767

Last change on this file since 767 was 767, checked in by rboipsl, 11 years ago

V2 ajout infobulles + textes

File size: 6.9 KB
Line 
1<%@ page import="com.ether.ClimatoReference" %>
2<%@ page import="com.ether.InstrumentalFunction" %>
3<%@ page import="com.ether.SpectralUnit" %>
4<%@ page import="com.ether.WebException" %>
5<%@ page import="com.ether.YesNo" %>
6<%@ page import="com.ether.WebHelper" %>
7<%@ page contentType="text/html;charset=UTF-8" language="java" %>
8<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
9<%@ taglib prefix="tiles" uri="/WEB-INF/tlds/struts-tiles.tld" %>
10<%@ taglib prefix="ether" tagdir="/WEB-INF/tags" %>
11
12<tiles:insert page="/resources/templates/templateEther.jsp" flush="true">
13
14    <tiles:put name="insertCss" type="string">
15        <ether:htmlCss cssFile="select"/>
16        <ether:htmlCss cssFile="calendar/anytime"/>
17        <ether:htmlCss cssFile="jquery-ui-1.8.16.custom/jquery-ui-1.8.16.custom"/>
18    </tiles:put>
19
20    <tiles:put name="insertJsOrJsp" type="string">
21        <ether:htmlJs jsFile="library/jquery.json-2.3"/>
22        <ether:htmlJs jsFile="classesForJQuery/Select"/>
23        <ether:htmlJs jsFile="classesForJQuery/Loading"/>
24        <ether:htmlJs jsFile="calendar/anytime"/>
25        <ether:htmlJsp jspFile="formTapas_script"/>
26        <ether:htmlJs jsFile="tools/controls"/>
27        <ether:htmlJs jsFile="classesForJQuery/Tab"/>
28        <ether:htmlJs jsFile="tools/googleStats"/>
29    </tiles:put>
30
31
32    <tiles:put name="title" type="string"><spring:message code="app.title"/> - <spring:message code="title.form"/></tiles:put>
33    <!-- file d'ariane -->
34    <tiles:put name="nav" type="string"><a href=""><spring:message code="label.form"/></a></tiles:put>
35
36
37    <%-- ****************** CONTENT ****************** --%>
38    <tiles:put name="bodytitle" type="string"><spring:message code="title.form"/></tiles:put>
39
40    <tiles:put name="body" type="string">
41
42        <div class="containerTabs" id="tab"></div>
43
44        <div class="containerForm" id="formulaire"></div>
45
46        <%=WebHelper.getRequestParameter( request,"language","",true )%>
47        <script type="text/javascript">
48            var tapasTexts = $A( "" );
49
50            tapasTexts["label.submitButton"] = '<spring:message code="label.submitButton"/>';
51            tapasTexts["label.addButton"] = '<spring:message code="label.addButton"/>';
52
53            tapasTexts["<%=WebException.WebCode.ERROR_JSON_TAPAS_IS_NULL%>"] = "<spring:message code="error.ERROR_JSON_TAPAS_IS_NULL"/>";
54            tapasTexts["<%=SpectralUnit.NM_STANDARD%>"] = "<spring:message code="label.spectralUnit.NM_STANDARD"/>";
55            tapasTexts["<%=SpectralUnit.NM_VACUUM%>"] = "<spring:message code="label.spectralUnit.NM_VACUUM"/>";
56            tapasTexts["<%=SpectralUnit.CM%>"] = "<spring:message code="label.spectralUnit.CM"/>";
57
58            tapasTexts["<%=InstrumentalFunction.NONE%>"] = "<spring:message code="text.NONE"/>";
59            tapasTexts["<%=InstrumentalFunction.GAUSSIAN%>"] = "<spring:message code="label.instrumentalFunction.GAUSSIAN"/>";
60            tapasTexts["<%=ClimatoReference.ECMWF%>"] = "ARLETTY";
61            tapasTexts["<%=ClimatoReference.TROPICAL%>"] = "<spring:message code="label.climatoReference.TROPICAL"/>";
62            tapasTexts["<%=ClimatoReference.MEDIUM_LATITUDE_SUMMER%>"] = "<spring:message code="label.climatoReference.MEDIUM_LATITUDE_SUMMER"/>";
63            tapasTexts["<%=ClimatoReference.MEDIUM_LATITUDE_WINTER%>"] = "<spring:message code="label.climatoReference.MEDIUM_LATITUDE_WINTER"/>";
64            tapasTexts["<%=ClimatoReference.SUBARCTIC_SUMMER%>"] = "<spring:message code="label.climatoReference.SUBARCTIC_SUMMER"/>";
65            tapasTexts["<%=ClimatoReference.SUBARCTIC_WINTER%>"] = "<spring:message code="label.climatoReference.SUBARCTIC_WINTER"/>";
66            tapasTexts["<%=ClimatoReference.US_STANDARD_1976%>"] = "<spring:message code="label.climatoReference.US_STANDARD_1976"/>";
67
68            tapasTexts["<%=YesNo.YES%>"] = "<spring:message code="app.YES"/>";
69            tapasTexts["<%=YesNo.NO%>"] = "<spring:message code="app.NO"/>";
70
71
72            tapasTexts["confirm"] = "<spring:message code="label.confirm"/>";
73
74            tapasTexts["label.ira"] = "<spring:message code="label.ira"/>";
75            tapasTexts["label.ide"] = "<spring:message code="label.ide"/>";
76            tapasTexts["label.iza"] = "<spring:message code="label.iza"/>";
77            tapasTexts["label.spectralUnit"] = "<spring:message code="label.spectralUnit"/>";
78            tapasTexts["label.spectralRange"] = "<spring:message code="label.spectralRange"/>";
79            tapasTexts["label.to"] = "<spring:message code="label.to"/>";
80            tapasTexts["label.observatory"] = "<spring:message code="label.observatory"/>";
81            tapasTexts["label.preferences"] = "<spring:message code="label.preferences"/>";
82            tapasTexts["label.resolution"] = "<spring:message code="label.resolution"/>";
83            tapasTexts["label.ratio"] = "<spring:message code="label.ratio"/>";
84            tapasTexts["label.ifunction"] = "<spring:message code="label.ifunction"/>";
85            tapasTexts["label.climato"] = "<spring:message code="label.climato"/>";
86            tapasTexts["label.datemesure"] = "<spring:message code="label.datemesure"/>";
87            tapasTexts["label.berv"] = "<spring:message code="label.berv"/>";
88
89            tapasTexts["label.format"] = "<spring:message code="label.format"/>";
90            tapasTexts["label.era"] = "<spring:message code="label.era"/>";
91            tapasTexts["label.eo2"] = "<spring:message code="label.eo2"/>";
92            tapasTexts["label.eh2o"] = "<spring:message code="label.eh2o"/>";
93            tapasTexts["label.eco2"] = "<spring:message code="label.eco2"/>";
94            tapasTexts["label.eo3"] = "<spring:message code="label.eo3"/>";
95            tapasTexts["text.select"] = "<spring:message code="text.select"/>";
96            tapasTexts["text.toselect"] = "<spring:message code="text.toselect"/>";
97
98
99            tapasTexts["label.datemesure"] = "<spring:message code="label.datemesure"/>";
100
101            tapasTexts["text.validnum"] = "<spring:message code="text.validnum"/>";
102            tapasTexts["text.badvalue"] = "<spring:message code="text.badvalue"/>";
103
104            tapasTexts["label.requete"] = "<spring:message code="label.requete"/>";
105
106            tapasTexts["label.delButton"] = "<spring:message code="label.delButton"/>";
107            tapasTexts["label.confirm.del"] = "<spring:message code="label.confirm.del"/>";
108            tapasTexts["text.erreur.saisie"] = "<spring:message code="text.erreur.saisie"/>";
109            tapasTexts["label.title.add"] = "<spring:message code="label.title.add"/>";
110            tapasTexts["label.title.del"] = "<spring:message code="label.title.del"/>";
111            tapasTexts["label.or"] = "<spring:message code="label.or"/>";
112            tapasTexts["language"] = "<spring:message code="language"/>";
113
114            var interfaceTapas = new InterfaceTapas( ${jSonFileFormats}, ${jSonYesNos}, ${jSonObservatories}, ${jSonSpectralUnits}, ${jSonInstrumentalFunctions}, ${jSonClimatoReferences} );
115
116        </script>
117
118    </tiles:put>
119
120</tiles:insert>
Note: See TracBrowser for help on using the repository browser.