Ignore:
Timestamp:
11/24/11 17:32:33 (13 years ago)
Author:
vmipsl
Message:

loginModule

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ether_megapoli/trunk/web/resources/templates/templateBackoffice.jsp

    r247 r265  
    2121    <ether:htmlCss cssFile="TwitterLogin/front"/> 
    2222    <ether:htmlCss cssFile="ether"/> 
     23    <ether:htmlCss cssFile="megapoli"/> 
    2324    <ether:htmlCss cssFile="backoffice"/> 
    2425 
     
    2930    <ether:htmlJs jsFile="classesForJQuery/Button"/> 
    3031    <ether:htmlJs jsFile="classesForJQuery/ComplexButton"/> 
     32    <ether:htmlJs jsFile="classesForJQuery/LoginButton"/> 
    3133    <ether:htmlJs jsFile="apycom.com-4-steel-blue/menu"/> 
    3234    <ether:htmlJs jsFile="TwitterLogin/javascripts/jquery.tipsy"/> 
     
    4042<BODY> 
    4143 
    42 <bean:define type="java.lang.String" id="lastModified" value="<%=Context.getLastModified(request, application)%>"/> 
    43 <bean:define type="java.lang.String" id="webmaster" value="<%=Context.getWebmaster(request)%>"/> 
    44  
    45 <bean:define id="upload" value="upload"/> 
    46 <bean:define id="access" value="access"/> 
    47  
    4844<%-- ************************************************************************************************************** --%> 
    4945<%-- **************************************************** WRAPPER ************************************************* --%> 
     
    5652 
    5753        <div id="tools" align="right"> 
    58             <fieldset id="signin_menu"> 
    59                 <html:form action="/LogonAccess"> 
    60                     <label for="username"><bean:message key="data.authentification.login"/></label> 
    61                     <input id="login" name="login" tabindex="4" type="text"> 
    62  
    63                     <label for="password"><bean:message key="data.authentification.pwd"/></label> 
    64                     <input id="pwd" name="pwd" tabindex="5" type="password"> 
    65  
    66                     <p class="remember"> 
    67                         <input id="signin_submit" value="Sign in" tabindex="6" type="submit"> 
    68                     </p> 
    69  
    70                     <p class="forgot"> 
    71                         <a id="resend_password_link" href="mailto:${webmaster}?subject=[MEGAPOLI] password"><bean:message key="data.authentification.pwdForget"/></a> 
    72                     </p> 
    73  
    74                     <p class="forgot-username"> 
    75                         <a id=forgot_username_link href="mailto:${webmaster}?subject=[MEGAPOLI] login" title='<bean:message key="data.authentification.loginForget.help"/>'><bean:message key="data.authentification.loginForget"/></a> 
    76                     </p> 
    77                 </html:form> 
    78             </fieldset> 
     54            <div id="loginModule" align="right"></div> 
    7955        </div> 
    8056 
     
    9268 
    9369    <%-- ****************** MENU ****************** --%> 
    94     <div id="menu" class="containerMenu"> 
    95         <ul class="menu"> 
    96             <li> 
    97                 <html:link page="/data?methodName=viewCatalogResume" paramName="access" paramId="source"> 
    98                     <span><bean:message key="data.access"/></span> 
    99                 </html:link> 
    100                 <div> 
    101                     <ul> 
    102                         <li><html:link page="/JeuxAccess.do"><span><bean:message key="data.access.jeux"/></span></html:link></li> 
    103                         <li><html:link page="/ParametresAccess.do"><span><bean:message key="data.access.param"/></span></html:link></li> 
    104                         <li><html:link page="/CapteursAccess.do"><span><bean:message key="data.access.capt"/></span></html:link></li> 
    105                         <li><html:link page="/PlateformesAccess.do"><span><bean:message key="data.access.plat"/></span></html:link></li> 
    106                     </ul> 
    107                 </div> 
    108             </li> 
    109  
    110             <li> 
    111                 <html:link page="/data?methodName=viewDataResume"> 
    112                     <span><bean:message key="app.data"/></span> 
    113                 </html:link> 
    114                 <div> 
    115                     <ul> 
    116                         <logic:notPresent name="SES_USER" scope="session"> 
    117                             <li><html:link page="/InitLogonAccess.do" paramName="access" paramId="source"><span><bean:message key="data.access.extract.short"/></span></html:link></li> 
    118                             <li><html:link page="/InitLogonAccess.do" paramName="upload" paramId="source"><span><bean:message key="data.upload.short"/></span></html:link></li> 
    119                         </logic:notPresent> 
    120                         <logic:present name="SES_USER" scope="session"> 
    121                             <li><html:link page="/DataAccess.do"><span><bean:message key="data.access.extract.short"/></span></html:link></li> 
    122                             <li><html:link page="/PrepareTree.do"><span><bean:message key="data.upload.short"/></span></html:link></li> 
    123                         </logic:present> 
    124                     </ul> 
    125                 </div> 
    126             </li> 
    127  
    128             <li class="last"> 
    129                 <html:link page="/visualization?methodName=view"><span><bean:message key="all.visualization"/></span></html:link> 
    130                 <div> 
    131                     <ul> 
    132                         <li><html:link page="/visualization?methodName=viewParametersByPlateform"><span><bean:message key="data.visualization"/></span></html:link></li> 
    133                         <li><html:link page="/visualization?methodName=viewInWork"><span><bean:message key="simulation.visualization"/></span></html:link></li> 
    134                     </ul> 
    135                 </div> 
    136             </li> 
    137  
    138         </ul> 
    139     </div> 
     70    <div id="menuBO" class="containerMenu"></div> 
    14071 
    14172    <%-- ****************** TITLE CONTENT ****************** --%> 
     
    15283    <div id="containerBottom" class="containerMegapoli containerBottom" align="right"> 
    15384        &copy; 2010-2011 <html:link href="http://ether.ipsl.jussieu.fr" target="help">ETHER&nbsp;</html:link>/ CNRS 
    154         <%--<td align="center"><bean:message key="app.infonavig"/></td>--%> 
    155         <%--<td align="right"><i><bean:message key="app.lastModified"/> : <bean:write name="lastModified"/></i></td>--%> 
    15685    </div> 
    15786 
     
    171100    templateTexts["app.en"] = '<bean:message key="app.en"/>'; 
    172101    templateTexts["app.fr"] = '<bean:message key="app.fr"/>'; 
    173     templateTexts["app.connexion"] = '<bean:message key="app.connexion"/>'; 
    174102    templateTexts["data.upload.metadata.contact.mail"] = '<bean:message key="data.upload.metadata.contact.mail"/>'; 
    175103    templateTexts["app.admin"] = '<bean:message key="app.admin"/>'; 
     104 
     105    // Needed texts if you use the library LoginButton.js 
     106    var loginTexts = $A( "" ); 
     107    loginTexts["app.connexion"] = '<bean:message key="app.connexion"/>'; 
     108    loginTexts["data.authentification.login"] = '<bean:message key="data.authentification.login"/>'; 
     109    loginTexts["data.authentification.pwd"] = '<bean:message key="data.authentification.pwd"/>'; 
     110    loginTexts["data.authentification.sign"] = '<bean:message key="data.authentification.sign"/>'; 
     111    loginTexts["data.authentification.pwdForget"] = '<bean:message key="data.authentification.pwdForget"/>'; 
     112    loginTexts["data.authentification.loginForget.help"] = '<bean:message key="data.authentification.loginForget.help"/>'; 
     113    loginTexts["data.authentification.loginForget"] = '<bean:message key="data.authentification.loginForget"/>'; 
     114    loginTexts["errors.logon.notFound"] = "<bean:message key='errors.logon.notFound' arg0="<%=Context.getWebmaster( request )%>"/>"; 
     115    loginTexts["errors.logon.failed"] = "<bean:message key='errors.logon.failed' arg0="<%=Context.getWebmaster( request )%>"/>"; 
     116    loginTexts["app.admin"] = '<bean:message key="app.admin"/>'; 
    176117 
    177118    var interfaceTemplate = new InterfaceTemplate(); 
Note: See TracChangeset for help on using the changeset viewer.