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

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

Modif pages medias

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