source: ether_megapoli/trunk/web/resources/templates/templateEther.jsp @ 222

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

EVO_MGI_011

File size: 11.7 KB
Line 
1<!-- /*** ****************** TEMPLATE ETHER ******************** **/ -->
2<%@ page language="java" import="com.medias.Context" %>
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<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
11
12<HTML>
13<HEAD>
14    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
15    <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
16
17    <title><tiles:getAsString name="title"/></title>
18    <link rel="shortcut icon" href="<html:rewrite page='/resources/images/megapoli/favicon.ico'/>">
19
20    <ether:htmlCss cssFile="medias_new"/>
21    <ether:htmlCss cssFile="megapoli"/>
22
23    <tiles:insert attribute="insertCss"/>
24    <tiles:insert attribute="insertJsOrJsp"/>
25    <ether:htmlJs jsFile="maj"/>
26    <ether:htmlJs jsFile="medias/ajax"/>
27    <ether:htmlJs jsFile="medias/scw"/>
28
29    <script type="text/javascript">
30
31        <!--
32      var popup;
33
34      function popupWindow (url, name, configuration)
35      {
36          popup = window.open (url, name, configuration);
37      }
38
39      function closePopupWindow ()
40      {
41          popup.close ();
42      }
43      -->
44    </script>
45</HEAD>
46
47<BODY>
48<a name="top"></a>
49
50<%-- VARIABLES A NE PAS TOUCHER !!! --%>
51<bean:define type="java.lang.String" id="lastModified" value="<%=Context.getLastModified(request, application)%>"/>
52<bean:define type="java.lang.String" id="lang" value="<%=Context.getLangue(request)%>"/>
53<bean:define type="java.lang.String" id="webmaster" value="<%=Context.getWebmaster(request)%>"/>
54<bean:define type="java.lang.String" id="chemin" value="<%=request.getContextPath()%>"/>
55<bean:define type="java.lang.String" id="relativePageUri"><%=Context.getRelativePath( request )%>?<%=request.getQueryString()%></bean:define>
56
57<div id="container">
58    <div id="pageHeader">
59        <%-- le logo --%>
60
61        <%-- Le titre général du site --%>
62        <h2><%--<u>M</u>egacities: <u>E</u>missions, urban, regional and <u>G</u>lobal <u>A</u>tmospheric <u>POL</u>lution and climate effects, and <u>I</u>ntegrated tools for assessment and mitigation--%>
63            <bean:message key="app.fulltitle"/>
64        </h2>
65    </div>
66
67
68    <div id="pageMiddle">
69        <div id="pageMenu">
70            <div id="util">
71
72                <html:link page="/index.jsp">
73                    <html:img page="/resources/images/utils/home.jpg" titleKey="app.home" altKey="app.home"/>
74                </html:link>
75
76                <html:link href="mailto:${webmaster}?subject=[MEGAPOLI]">
77                    <html:img page="/resources/images/utils/enveloppe.jpg" titleKey="app.webmaster"
78                              altKey="app.webmaster"/>
79                </html:link>
80
81                <%-- Internationalisation --%>
82                <logic:notEqual name="lang" value="en">
83                    <html:link page="/English.do" paramName="relativePageUri" paramId="requestUri" titleKey="app.en">
84                        <html:img page="/resources/images/utils/gb.png" alt="gb"/>
85                    </html:link>
86                </logic:notEqual>
87                <logic:equal name="lang" value="en">
88                    <html:link page="/French.do" paramName="relativePageUri" paramId="requestUri" titleKey="app.fr">
89                        <html:img page="/resources/images/utils/fr.png" alt="fr"/>
90                    </html:link>
91                </logic:equal>
92
93            </div>
94
95            <div id="plan">
96                <%-- le menu --%>
97                <div id="menuItem">
98                    <bean:define id="upload" value="upload"/>
99                    <bean:define id="access" value="access"/>
100                    <ul>
101                        <li><html:link page="/data/access/access.jsp" paramName="access" paramId="source">
102                            <bean:message key="data.access"/>
103                        </html:link>
104                        </li>
105                        <li>&nbsp;&nbsp;&nbsp;&gt;&nbsp;
106                            <html:link page="/JeuxAccess.do">
107                                <bean:message key="data.access.jeux"/>
108                            </html:link>
109                        </li>
110                        <li>&nbsp;&nbsp;&nbsp;&gt;&nbsp;
111                            <html:link page="/ParametresAccess.do">
112                                <bean:message key="data.access.param"/>
113                            </html:link>
114                        </li>
115                        <li>&nbsp;&nbsp;&nbsp;&gt;&nbsp;
116                            <html:link page="/CapteursAccess.do">
117                                <bean:message key="data.access.capt"/>
118                            </html:link>
119                        </li>
120                        <li>&nbsp;&nbsp;&nbsp;&gt;&nbsp;
121                            <html:link page="/PlateformesAccess.do">
122                                <bean:message key="data.access.plat"/>
123                            </html:link>
124                        </li>
125
126                        <li><br/>
127                            <logic:notPresent name="SES_USER" scope="session">
128                                <html:link page="/InitLogonAccess.do" paramName="access" paramId="source">
129                                    <bean:message key="data.access.extract"/>
130                                </html:link>
131                            </logic:notPresent>
132                            <logic:present name="SES_USER" scope="session">
133                                <html:link page="/DataAccess.do">
134                                    <bean:message key="data.access.extract"/>
135                                </html:link>
136                            </logic:present>
137                        </li>
138                        <li>
139                            <logic:notPresent name="SES_USER" scope="session">
140                                <html:link page="/InitLogon.do" paramName="upload" paramId="source">
141                                    <bean:message key="data.upload"/>
142                                </html:link>
143                            </logic:notPresent>
144                            <logic:present name="SES_USER" scope="session">
145                                <html:link page="/PrepareTree.do">
146                                    <bean:message key="data.upload"/>
147                                </html:link>
148                            </logic:present>
149                        </li>
150
151                        <!-- ****************************************************************** -->
152                        <!-- ************************ VISUALIZATION *************************** -->
153                        <!-- ****************************************************************** -->
154                        <li><br/>
155                            <html:link page="/visualization?methodName=view">
156                                <bean:message key="all.visualization"/>
157                            </html:link>
158                        </li>
159                        <li>&nbsp;&nbsp;&nbsp;&gt;&nbsp;
160                            <html:link page="/visualization?methodName=viewParametersByPlateform">
161                                <bean:message key="data.visualization"/>
162                            </html:link>
163                        </li>
164                        <li>&nbsp;&nbsp;&nbsp;&gt;&nbsp;
165                            <html:link page="/visualization/inWork.jsp">
166                                <bean:message key="simulation.visualization"/>
167                            </html:link>
168                        </li>
169                        <!-- ****************************************************************** -->
170
171                    </ul>
172                </div>
173                <table width="100%">
174                    <tr>
175                        <td align="center">
176                            <html:link href="http://megapoli.dmi.dk/" target="help" titleKey="app.linkmegapoli">
177                                <html:img page="/resources/images/megapoli/megapoli_small.jpg" height="100px"
178                                          width="100px" altKey="app.home"/>
179                            </html:link>
180                        </td>
181                    </tr>
182                </table>
183            </div>
184            <%-- Recherche : solution mnogosearch --%>
185
186        </div>
187        <%--
188              <div id="recherche">
189                <form method="get" action="/megapoli/cgi-bin/search.cgi">
190                    <bean:message key="app.search"/> : <INPUT TYPE="text" NAME="q" VALUE="" size="20">
191                </form>
192              </div>
193        --%>
194        <div id="pageContent">
195            <div id="nav">
196                <%-- la barre de navigation --%>
197                <div class="texte navStyle" style="float: left;">
198                    <tiles:insert attribute="nav"/>
199                </div>
200                <div style="float: right; font-size: 13px">
201                    <logic:present name="SES_USER" scope="session">
202                        <table>
203                            <tr>
204                                <td height="40px" valign="middle" style="font-size: 13px; color: white">
205                                    <bean:write name="SES_USER" property="prenom"/> <bean:write name="SES_USER"
206                                                                                                property="nom"/>
207                                    <logic:equal name="SES_USER" property="roles" value="coordinateur">
208                                        (<bean:message key="app.admin"/>)
209                                    </logic:equal>
210                                </td>
211                                <td valign="top" width="40px">
212                                    <html:link page="/Disconnect.do">
213                                        <html:img page="/resources/images/utils/logout.gif" titleKey="app.disconnect"
214                                                  altKey="app.disconnect"
215                                                  onmouseover="this.src='${chemin}/resources/images/utils/logout2.gif'"
216                                                  onmouseout="this.src='${chemin}/resources/images/utils/logout.gif'"
217                                                  width="20px" height="20px" style="margin-top:7px"/>
218                                    </html:link>
219                                </td>
220                            </tr>
221                        </table>
222                    </logic:present>
223                </div>
224            </div>
225            <div id="corpsPage">
226                <div id="title">
227                    <%-- le titre de la page --%>
228                    <h1><tiles:insert attribute="bodytitle"/></h1>
229                </div>
230                <div id="txt">
231                    <%-- le corps de la page --%>
232                    <tiles:insert attribute="body"/>
233                </div>
234            </div>
235        </div>
236    </div>
237
238
239    <div id="pageFooter">
240        <table width="100%" style="color:white;font-size: 12px; margin-top:-10px">
241            <tr>
242                <td rowspan="2" align="left">&copy; 2010-2011 <html:link href="http://www.ipsl.fr" target="help" titleKey="app.linkIPSL">IPSL</html:link> / CNRS </td>
243                <td rowspan="2" align="center"><bean:message key="app.infonavig"/></td>
244                <td align="right"><i><bean:message key="app.version"/>&nbsp;1</i></td>
245            </tr>
246            <tr>
247                <td align="right"><i><bean:message key="app.lastModified"/> : <bean:write name="lastModified"/></i></td>
248            </tr>
249        </table>
250    </div>
251
252</BODY>
253</HTML>
254<!-- /*** ****************** FIN TEMPLATE ETHER ******************** **/ -->
Note: See TracBrowser for help on using the repository browser.