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

Last change on this file since 490 was 490, checked in by rboipsl, 12 years ago

ajout onglets

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