source: ether_megapoli/trunk/web/resources/templates/templateBackoffice.jsp @ 305

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

BO : ajout bouton lien vers interface

File size: 6.4 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 prefix="ether" tagdir="/WEB-INF/tags" %>
8
9<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
10
11<HTML>
12<HEAD>
13    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
14    <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
15
16    <title><tiles:getAsString name="title"/></title>
17    <link rel="shortcut icon" href="<html:rewrite page='/resources/images/megapoli/favicon.ico'/>">
18
19    <ether:htmlCss cssFile="apycom.com-4-steel-blue/menu"/>
20    <ether:htmlCss cssFile="button"/>
21    <ether:htmlCss cssFile="complexButton"/>
22    <ether:htmlCss cssFile="TwitterLogin/front"/>
23    <ether:htmlCss cssFile="ether"/>
24    <ether:htmlCss cssFile="megapoli"/>
25    <ether:htmlCss cssFile="backoffice"/>
26
27    <ether:htmlJs jsFile="library/jquery-1.4.2.min"/>
28    <ether:htmlJs jsFile="library/jquery.class"/>
29    <ether:htmlJs jsFile="library/jquery.protify-0.3"/>
30    <ether:htmlJs jsFile="classesForJQuery/etherHelper"/>
31    <ether:htmlJs jsFile="classesForJQuery/Button"/>
32    <ether:htmlJs jsFile="classesForJQuery/ComplexButton"/>
33    <ether:htmlJs jsFile="classesForJQuery/LoginButton"/>
34    <ether:htmlJs jsFile="apycom.com-4-steel-blue/menu"/>
35    <ether:htmlJs jsFile="TwitterLogin/javascripts/jquery.tipsy"/>
36
37    <ether:htmlResourceJsp jspFile="backofficeHead"/>
38
39    <tiles:insert attribute="insertCss"/>
40    <tiles:insert attribute="insertJsOrJsp"/>
41</HEAD>
42
43<BODY>
44
45<%-- ************************************************************************************************************** --%>
46<%-- *************************************************** LOGO ETHER *********************************************** --%>
47<%-- ************************************************************************************************************** --%>
48<div id="linkLogoEther" class="containerLinkLogoEther"></div>
49
50<div id="logoEther" class="containerLogoEther">
51    <html:link href="http://ether.ipsl.jussieu.fr" target="help"><img src="resources/images/logo_Ether.jpg" width="80px" height="80px"/></html:link>
52</div>
53
54
55<%-- ************************************************************************************************************** --%>
56<%-- **************************************************** WRAPPER ************************************************* --%>
57<%-- ************************************************************************************************************** --%>
58<div class="pageWrapper">
59
60    <%-- ****************** TITLE & TOOLS ****************** --%>
61    <div id="title_tools" class="containerMegapoli">
62        <div id="title"></div>
63
64        <div id="tools" align="right">
65            <div id="loginModule" align="right"></div>
66        </div>
67
68    </div>
69
70    <%-- ****************** LOGO ****************** --%>
71    <div id="logo" class="containerLogo">
72        <html:link href="http://megapoli.dmi.dk/" target="help" titleKey="app.linkmegapoli">
73            <html:img page="/resources/images/logo_Megapoli_white.png" height="110px" width="110px" altKey="app.home"/>
74        </html:link>
75    </div>
76
77    <%-- ****************** MENU ****************** --%>
78    <div id="menuBO" class="containerMenu"></div>
79
80    <%-- ****************** TITLE CONTENT ****************** --%>
81    <div id="titleContent" class="containerTitleContent"><tiles:insert attribute="bodytitle"/>
82        <div id="titleContentBorder" class="containerTitleContentBorder"></div>
83    </div>
84
85    <%-- ****************** CONTENT ****************** --%>
86    <div id="containerCenter" class="containerMegapoli containerCenter">
87        <tiles:insert attribute="body"/>
88    </div>
89
90    <%-- ****************** BOTTOM ****************** --%>
91    <div id="containerBottom" class="containerMegapoli containerBottom" align="right">
92        &copy; 2010-2011 <html:link href="http://ether.ipsl.jussieu.fr" target="help">ETHER&nbsp;</html:link>/ CNRS
93    </div>
94
95</div>
96
97<script type="text/javascript">
98    var templateTexts = $A( "" );
99    templateTexts["app.home"] = '<bean:message key="app.home"/>';
100    templateTexts["bo.fulltitle"] = '<bean:message key="bo.fulltitle"/>';
101    templateTexts["app.en"] = '<bean:message key="app.en"/>';
102    templateTexts["app.fr"] = '<bean:message key="app.fr"/>';
103    templateTexts["data.upload.metadata.contact.mail"] = '<bean:message key="data.upload.metadata.contact.mail"/>';
104    templateTexts["bo.user"] = '<bean:message key="bo.user"/>';
105    templateTexts["bo.site"] = '<bean:message key="bo.site"/>';
106
107    // Needed texts if you use the library LoginButton.js
108    var loginTexts = $A( "" );
109    loginTexts["app.connexion"] = '<bean:message key="app.connexion"/>';
110    loginTexts["data.authentification.login"] = '<bean:message key="data.authentification.login"/>';
111    loginTexts["data.authentification.password"] = '<bean:message key="data.authentification.password"/>';
112    loginTexts["data.authentification.sign"] = '<bean:message key="data.authentification.sign"/>';
113    loginTexts["data.authentification.pwdForget"] = '<bean:message key="data.authentification.pwdForget"/>';
114    loginTexts["data.authentification.loginForget.help"] = '<bean:message key="data.authentification.loginForget.help"/>';
115    loginTexts["data.authentification.loginForget"] = '<bean:message key="data.authentification.loginForget"/>';
116    loginTexts["errors.logon.notFound"] = "<bean:message key='errors.logon.notFound' arg0="<%=Context.getWebmaster( request )%>"/>";
117    loginTexts["errors.logon.wrongPassword"] = "<bean:message key='errors.logon.wrongPassword'/>";
118    loginTexts["errors.logon.failed"] = "<bean:message key='errors.logon.failed' arg0="<%=Context.getWebmaster( request )%>"/>";
119    loginTexts["errors.logon.notAccepted"] = "<bean:message key='errors.logon.notAccepted'/>";
120    loginTexts["<%=UserRole.ADMINISTRATOR%>"] = '<bean:message key="app.administrator"/>';
121    loginTexts["<%=UserRole.TECHNICIEN%>"] = '<bean:message key="app.technician"/>';
122    loginTexts["<%=UserRole.COORDINATOR%>"] = '<bean:message key="app.coordinator"/>';
123
124    var interfaceTemplate = new InterfaceTemplate();
125</script>
126
127<div style="visibility:hidden"><a href="http://apycom.com/">Apycom jQuery Menus</a></div>
128
129</BODY>
130</HTML>
Note: See TracBrowser for help on using the repository browser.