Ignore:
Timestamp:
11/29/11 17:07:57 (13 years ago)
Author:
vmipsl
Message:

BO User

Location:
ether_megapoli/trunk/web/resources
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • ether_megapoli/trunk/web/resources/css/megapoli.css

    r263 r269  
    153153 
    154154.containerBottom { 
    155 /*background-image: url("../images/elements/button_middle.png");*/ 
    156155    background-image: url("../images/elements/button_middle_3.png"); 
    157156    background-repeat: repeat-x; 
     
    161160    position: relative; 
    162161    top: -32px; 
    163     width: 975px; 
     162    width: 972px; 
    164163} 
    165164 
     
    275274    -moz-border-radius: 4px; 
    276275    -webkit-border-radius: 4px; 
     276    border: 1px solid; 
     277    width: 100%; 
    277278} 
    278279 
  • ether_megapoli/trunk/web/resources/js/classesForJQuery/LoginButton.js

    r265 r269  
    1717        this.urlLogin = param.urlLogin ? param.urlLogin : false; 
    1818        this.urlLogout = param.urlLogout ? param.urlLogout : false; 
     19        this.classNameToAdd = param.classNameToAdd ? param.classNameToAdd : false; 
    1920 
    2021        // Texts 
     
    102103                textLogin += " (" + this.text1 + ")"; 
    103104 
    104             var loginButton = new ComplexButton( {value:textLogin, parent:this.parent, id:"button_login"} ); 
     105            var loginButton = new ComplexButton( {value:textLogin, parent:this.parent, id:"button_login", classNameToAdd: this.classNameToAdd} ); 
    105106 
    106107            $( "#button_login #button_middle #button_text" ).addClass( "containerUserLogout" ); 
     
    117118            this.createLoginForm(); 
    118119 
    119             var loginButton = new ComplexButton( {value:this.connexionText, parent:this.parent, id:"button_login"} ); 
     120            var loginButton = new ComplexButton( {value:this.connexionText, parent:this.parent, id:"button_login", classNameToAdd: this.classNameToAdd} ); 
    120121 
    121122            var loginMiddle = $( "#button_login #button_middle" ); 
    122123            loginMiddle.empty(); 
    123             loginMiddle.attr( {id:"topnav", class:"topnav complexButton_middle"} ); 
     124//            loginMiddle.attr( {id:"topnav", class:"topnav complexButton_middle"} ); 
     125            loginMiddle.attr( {id:"topnav"} ); 
    124126            var aLogin = $( document.createElement( "a" ) ); 
    125127            aLogin.attr( {id:"button_login_a", href:"login", class:"signin"} ); 
     
    162164    }, 
    163165 
    164     // TODO : vérifier cette méthode 
    165166    showLogin: function( text ) 
    166167    { 
  • ether_megapoli/trunk/web/resources/jsp/informations_en.jsp

    r261 r269  
    77    <div class="title2">Browsers</div> 
    88    This site was created and tested with the following configurations : 
    9     <table class="roundTable" width="100%" border="1"> 
     9    <table class="roundTable" border="1"> 
    1010        <tr> 
    1111            <th>&nbsp;Operatin System&nbsp;</th> 
  • ether_megapoli/trunk/web/resources/jsp/informations_fr.jsp

    r261 r269  
    77    <div class="title2">Navigateurs</div> 
    88    Ce site web a été conçu et testé sous les navigateurs suivants : 
    9     <table class="roundTable" width="100%" border="1"> 
     9    <table class="roundTable" border="1"> 
    1010        <tr> 
    1111            <th>&nbsp;SystÚme d'exploitation&nbsp;</th> 
  • ether_megapoli/trunk/web/resources/jsp/megapoliHead.jsp

    r265 r269  
    151151 
    152152    } ); 
    153  
    154     /** *********************************************** **/ 
    155     /** ******************** USER ********************* **/ 
    156     /** *********************************************** **/ 
    157     function getJSONUser() 
    158     { 
    159         alert( getLoginModule().getJSONUser() ); 
    160         return getLoginModule().getJSONUser(); 
    161     } 
    162  
    163     function getPath() 
    164     { 
    165         return InterfaceTemplate.path; 
    166     } 
    167  
    168     function setPath( path ) 
    169     { 
    170         InterfaceTemplate.path = path; 
    171     } 
    172  
    173     function getLoginModule() 
    174     { 
    175         return InterfaceTemplate.loginModule; 
    176     } 
    177  
    178     function setLoginModule( loginModule ) 
    179     { 
    180         InterfaceTemplate.loginModule = loginModule; 
    181     } 
    182  
    183     function neededLogin( href ) 
    184     { 
    185         $( "#signin_menu" ).ready( function() 
    186         { 
    187             if( !getJSONUser() ) 
    188                 getLoginModule().showLogin( loginTexts["data.authentification.text"] ); 
    189             else 
    190                 document.location.href = getPath() + href; 
    191         } ); 
    192     } 
    193153</script> 
  • ether_megapoli/trunk/web/resources/templates/templateBackoffice.jsp

    r265 r269  
    4343 
    4444<%-- ************************************************************************************************************** --%> 
     45<%-- *************************************************** LOGO ETHER *********************************************** --%> 
     46<%-- ************************************************************************************************************** --%> 
     47<div id="linkLogoEther" class="containerLinkLogoEther"></div> 
     48 
     49<div id="logoEther" class="containerLogoEther"> 
     50    <html:link href="http://ether.ipsl.jussieu.fr" target="help"><img src="resources/images/logo_Ether.jpg" width="80px" height="80px"/></html:link> 
     51</div> 
     52 
     53 
     54<%-- ************************************************************************************************************** --%> 
    4555<%-- **************************************************** WRAPPER ************************************************* --%> 
    4656<%-- ************************************************************************************************************** --%> 
     
    6474    </div> 
    6575 
    66     <%-- ****************** NAV ****************** --%> 
    67     <div id="nav" class="containerNav"><tiles:insert attribute="nav"/></div> 
    68  
    6976    <%-- ****************** MENU ****************** --%> 
    7077    <div id="menuBO" class="containerMenu"></div> 
     
    8794</div> 
    8895 
    89 <%-- ************************************************************************************************************** --%> 
    90 <%-- **************************************************** SLIDES ************************************************** --%> 
    91 <%-- ************************************************************************************************************** --%> 
    92 <div id="creditSlide" class="containerSlide"></div> 
    93 <div id="mentionSlide" class="containerSlide"></div> 
    94 <div id="infoSlide" class="containerSlide"></div> 
    95  
    9696<script type="text/javascript"> 
    9797    var templateTexts = $A( "" ); 
     
    102102    templateTexts["data.upload.metadata.contact.mail"] = '<bean:message key="data.upload.metadata.contact.mail"/>'; 
    103103    templateTexts["app.admin"] = '<bean:message key="app.admin"/>'; 
     104    templateTexts["bo.user"] = '<bean:message key="bo.user"/>'; 
    104105 
    105106    // Needed texts if you use the library LoginButton.js 
Note: See TracChangeset for help on using the changeset viewer.