source: ether_megapoli/trunk/web/resources/templates/template.jsp @ 299

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

evo MGI 009 _ affichage des dates pour les plate-formes mobiles

File size: 14.0 KB
Line 
1<%@ page language="java" import="com.medias.Context" %>
2<%@ page import="com.ether.user.UserRole" %>
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
9<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
10
11
12<html>
13<head>
14    <title><tiles:getAsString name="title"/></title>
15    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
16    <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
17    <link rel="stylesheet" type="text/css" href="<html:rewrite page='/resources/css/medias_new.css'/>">
18    <link rel="stylesheet" type="text/css" href="<html:rewrite page='/resources/css/megapoli.css'/>">
19    <link rel="shortcut icon" href="<html:rewrite page='/resources/images/megapoli/favicon.ico'/>">
20    <script src="<html:rewrite page='/resources/js/maj.js'/>"></script>
21    <script src="<html:rewrite page='/resources/js/medias/ajax.js'/>"></script>
22    <script src="<html:rewrite page='/resources/js/medias/scw.js'/>"></script>
23    <script type="text/javascript">
24        <!--
25      var popup;
26
27      function popupWindow (url, name, configuration)
28      {
29          popup = window.open (url, name, configuration);
30      }
31
32      function closePopupWindow ()
33      {
34          popup.close ();
35      }
36      -->
37    </script>
38</head>
39
40<body>
41<a name="top"></a>
42
43<%-- VARIABLES A NE PAS TOUCHER !!! --%>
44<bean:define type="java.lang.String" id="today" value="<%=Context.getSimpleDate()%>"/>
45<bean:define type="java.lang.String" id="lastModified" value="<%=Context.getLastModified(request, application)%>"/>
46<bean:define type="java.lang.String" id="racine" value="<%=Context.getWebroot(request)%>"/>
47<bean:define type="java.lang.String" id="relativePageUri" value="<%=Context.getRelativePageURI(request)%>"/>
48<bean:define type="java.lang.String" id="lang" value="<%=Context.getLangue(request)%>"/>
49<bean:define type="java.lang.String" id="webmaster" value="<%=Context.getWebmaster(request)%>"/>
50<bean:define type="java.lang.String" id="chemin" value="<%=request.getContextPath()%>"/>
51
52<div id="container">
53<div id="pageHeader">
54    <%-- le logo --%>
55
56    <%-- Le titre général du site --%>
57    <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--%>
58        <bean:message key="app.fulltitle"/>
59    </h2>
60</div>
61
62
63<div id="pageMiddle">
64<div id="pageMenu">
65    <div id="util">
66
67        <html:link page="/index.jsp">
68            <html:img page="/resources/images/utils/home.jpg" titleKey="app.home" altKey="app.home"/>
69        </html:link>
70
71        <html:link href="mailto:${webmaster}?subject=[MEGAPOLI]">
72            <html:img page="/resources/images/utils/enveloppe.jpg" titleKey="app.webmaster" altKey="app.webmaster"/>
73        </html:link>
74
75        <%--html:link page="/sitemap/sitemap.jsp">
76            <html:img page="/resources/images/utils/sitemap.png" titleKey="app.sitemap" altKey="app.sitemap"/>
77        </html:link--%>
78        <%-- Internationalisation --%>
79        <logic:notEqual name="lang" value="en">
80            <html:link page="/English.do" paramName="relativePageUri" paramId="requestUri" titleKey="app.en">
81                <html:img page="/resources/images/utils/gb.png" alt="gb"/>
82            </html:link>
83        </logic:notEqual>
84        <logic:equal name="lang" value="en">
85            <html:link page="/French.do" paramName="relativePageUri" paramId="requestUri" titleKey="app.fr">
86                <html:img page="/resources/images/utils/fr.png" alt="fr"/>
87            </html:link>
88        </logic:equal>
89
90        <%-- le lien pour se déconnecter de l'application --%>
91        <%--logic:present name="SES_USER" scope="session">
92            <html:link page="/Disconnect.do">
93                <html:img page="/resources/images/utils/logout.gif" titleKey="app.disconnect" altKey="app.disconnect" onmouseover="this.src='${chemin}/resources/images/utils/logout2.gif'" onmouseout="this.src='${chemin}/resources/images/utils/logout.gif'"/>
94            </html:link>
95        </logic:present--%>
96    </div>
97
98    <div id="plan">
99        <%-- le menu --%>
100        <%--div id="menuItem">
101        <html:link page="/projet/projet.jsp">
102            <h3>&nbsp;&nbsp;&nbsp;<bean:message key="projet"/></h3>
103        </html:link>
104            <ul>
105                <li><html:link page="/projet/introduction.jsp">
106                    <bean:message key="projet.intro"/>
107                </html:link></li>
108                <li><html:link page="/projet/objectifs.jsp">
109                    <bean:message key="projet.objectifs"/>
110                </html:link></li>
111                <li><html:link page="/projet/mesures.jsp">
112                    <bean:message key="projet.mesures"/>
113                </html:link></li>
114            </ul>
115        </div--%>
116
117        <%--div id="menuItem">
118        <html:link page="/projet/projet.jsp">
119            <h3>&nbsp;&nbsp;&nbsp;<bean:message key="projet"/></h3>
120        </html:link>
121            <ul>
122                <li> <html:link page="/index.jsp">
123                    <bean:message key="app.home"/>
124                </html:link></li>
125                <li><html:link href="mailto:${webmaster}?subject=[MEGAPOLI]">
126                    <html:img page="/resources/images/utils/mailto.png" titleKey="app.webmaster" altKey="app.webmaster"/>
127                </html:link></li>
128                <logic:present name="SES_USER" scope="session">
129                <li>
130                    <html:link page="/Disconnect.do">
131                        <bean:message key="app.disconnect"/>
132                    </html:link>
133                </li>
134                </logic:present>
135            </ul>
136        </div--%>
137
138        <div id="menuItem">
139            <%--html:link page="/data/data.jsp">
140                <h3>&nbsp;&nbsp;&nbsp;<bean:message key="data"/></h3>
141            </html:link--%>
142            <bean:define id="upload" value="upload"/>
143            <bean:define id="access" value="access"/>
144            <ul>
145                <li><html:link page="/data/catalogResume.jsp" paramName="access" paramId="source">
146                    <bean:message key="data.access"/>
147                </html:link>
148                </li>
149                <li>&nbsp;&nbsp;&nbsp;&gt;&nbsp;
150                    <%--html:link page="/data/access/jeux.jsp" paramName="access" paramId="source"--%>
151                    <html:link page="/JeuxAccess.do">
152                        <bean:message key="data.access.jeux"/>
153                    </html:link>
154                </li>
155                <li>&nbsp;&nbsp;&nbsp;&gt;&nbsp;
156                    <html:link page="/data?methodName=viewParameters">
157                        <bean:message key="data.access.param"/>
158                    </html:link>
159                </li>
160                <li>&nbsp;&nbsp;&nbsp;&gt;&nbsp;
161                    <html:link page="/CapteursAccess.do">
162                        <bean:message key="data.access.capt"/>
163                    </html:link>
164                </li>
165                <li>&nbsp;&nbsp;&nbsp;&gt;&nbsp;
166                    <html:link page="/data?methodName=viewPlateforms">
167                        <bean:message key="data.access.plat"/>
168                    </html:link>
169                </li>
170                <li><br/>
171                    <logic:notPresent name="SES_USER" scope="session">
172                        <html:link page="/InitLogonAccess.do" paramName="access" paramId="source">
173                            <bean:message key="data.access.extract"/>
174                        </html:link>
175                    </logic:notPresent>
176                    <logic:present name="SES_USER" scope="session">
177                        <html:link page="/DataAccess.do">
178                            <bean:message key="data.access.extract"/>
179                        </html:link>
180                    </logic:present>
181                </li>
182                <li>
183                    <logic:notPresent name="SES_USER" scope="session">
184                        <html:link page="/InitLogon.do" paramName="upload" paramId="source">
185                            <bean:message key="data.upload"/>
186                        </html:link>
187                    </logic:notPresent>
188                    <logic:present name="SES_USER" scope="session">
189                        <html:link page="/PrepareTree.do">
190                            <bean:message key="data.upload"/>
191                        </html:link>
192                    </logic:present>
193                </li>
194
195                <!-- ****************************************************************** -->
196                <!-- ************************ VISUALIZATION *************************** -->
197                <!-- ****************************************************************** -->
198                <li><br/>
199                    <html:link page="/visualization?methodName=view">
200                        <bean:message key="all.visualization"/>
201                    </html:link>
202                </li>
203                <li>&nbsp;&nbsp;&nbsp;&gt;&nbsp;
204                    <html:link page="/visualization?methodName=viewParametersByPlateform">
205                        <bean:message key="data.visualization"/>
206                    </html:link>
207                </li>
208                <li>&nbsp;&nbsp;&nbsp;&gt;&nbsp;
209                    <html:link page="/visualization/inWork.jsp">
210                        <bean:message key="simulation.visualization"/>
211                    </html:link>
212                </li>
213                <!-- ****************************************************************** -->
214
215            </ul>
216        </div>
217        <table width="100%">
218            <tr>
219                <td align="center">
220                    <html:link href="http://megapoli.dmi.dk/" target="help" titleKey="app.linkmegapoli">
221                        <html:img page="/resources/images/megapoli/megapoli_small.jpg" height="100px" width="100px" altKey="app.home"/>
222                    </html:link>
223                </td>
224            </tr>
225        </table>
226        <%--div id="menuItem">
227        <html:link page="/partenaires/partenaires.jsp">
228            <h3>&nbsp;&nbsp;&nbsp;<bean:message key="partenaires"/></h3>
229        </html:link>
230        <ul>
231            <li><html:link page="/partenaires/scientifiques.jsp">
232                <bean:message key="partenaires.scientifiques"/>
233            </html:link></li>
234            <li><html:link page="/partenaires/institutionnels.jsp">
235                <bean:message key="partenaires.institutionnels"/>
236            </html:link></li>
237        </ul>
238    </div>
239
240    <div id="menuItem">
241        <html:link page="/finance/finance.jsp">
242            <h3>&nbsp;&nbsp;&nbsp;<bean:message key="finance"/></h3>
243            </html:link>
244        </div--%>
245
246
247        <%--
248                  <div id="menuItem>
249                            <html:link page="/actualites/actualites.jsp">
250                            <h3>&nbsp;&nbsp;&nbsp;<bean:message key="app.actualites"/></h3>
251                </html:link>
252        </div>
253        --%>
254    </div>
255    <%-- Recherche : solution mnogosearch --%>
256
257</div>
258<%--
259          <div id="recherche"> 
260                <form method="get" action="/megapoli/cgi-bin/search.cgi">
261                        <bean:message key="app.search"/> : <INPUT TYPE="text" NAME="q" VALUE="" size="20">
262                </form>
263      </div> 
264--%>
265<div id="pageContent">
266    <div id="nav">
267        <%-- la barre de navigation --%>
268        <div class="texte" style="float: left;">
269            <tiles:insert attribute="nav"/>
270        </div>
271        <div style="float: right; font-size: 13px">
272            <logic:present name="SES_USER" scope="session">
273                <table>
274                    <tr>
275                        <td height="40px" valign="middle" style="font-size: 13px; color: white">
276                            <bean:write name="SES_USER" property="prenom"/> <bean:write name="SES_USER" property="nom"/>
277                            <logic:equal name="SES_USER" property="roles" value="<%=UserRole.COORDINATOR.name()%>">
278                                (<bean:message key="app.admin"/>)
279                            </logic:equal>
280                        </td>
281                        <td valign="top" width="40px">
282                            <html:link page="/Disconnect.do">
283                                <html:img page="/resources/images/utils/logout.gif" titleKey="app.disconnect"
284                                          altKey="app.disconnect"
285                                          onmouseover="this.src='${chemin}/resources/images/utils/logout2.gif'"
286                                          onmouseout="this.src='${chemin}/resources/images/utils/logout.gif'"
287                                          width="20px" height="20px" style="margin-top:7px"/>
288                            </html:link>
289                        </td>
290                    </tr>
291                </table>
292            </logic:present>
293        </div>
294    </div>
295    <div id="corpsPage">
296        <div id="title">
297            <%-- le titre de la page --%>
298            <h1><tiles:insert attribute="bodytitle"/></h1>
299        </div>
300        <div id="txt">
301            <%-- le corps de la page --%>
302            <tiles:insert attribute="body"/>
303        </div>
304    </div>
305</div>
306</div>
307
308
309<div id="pageFooter">
310    <table width="100%" style="color:white;font-size: 12px; margin-top:-10px">
311        <tr>
312            <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>
313            <td rowspan="2" align="center"><bean:message key="app.infonavig"/></td>
314            <td align="right"><i><bean:message key="app.version"/>&nbsp;1</i></td>
315        </tr>
316        <tr>
317            <td align="right"><i><bean:message key="app.lastModified"/> : <bean:write name="lastModified"/></i></td>
318        </tr>
319    </table>
320    <%--div id="copyright">
321           &copy; 2010-2011 Sedoo / CNRS
322       </div>
323       <div id="datestamp">
324         <bean:message key="app.lastModified"/> : <bean:write name="lastModified"/>
325       </div--%>
326</div>
327
328
329</div>
330
331</body>
332</html>
Note: See TracBrowser for help on using the repository browser.