Changeset 253


Ignore:
Timestamp:
11/16/11 18:28:31 (13 years ago)
Author:
vmipsl
Message:

login

Location:
ether_megapoli/trunk/web
Files:
1 deleted
12 edited

Legend:

Unmodified
Added
Removed
  • ether_megapoli/trunk/web/data/dataResume.jsp

    r247 r253  
    2424 
    2525        <bean:message key="data.access.intro4"/> 
     26 
    2627        <ul> 
    27             <li> 
    28                 <logic:notPresent name="SES_USER" scope="session"> 
    29                     <html:link page="/InitLogonAccess.do" paramName="access" paramId="source"><bean:message 
    30                             key="data.access.extract"/></html:link> 
    31                 </logic:notPresent> 
    32                 <logic:present name="SES_USER" scope="session"> 
    33                     <html:link page="/DataAccess.do"><bean:message key="data.access.extract"/></html:link> 
    34                 </logic:present> 
    35                 : <bean:message key="data.access.intro2"/> 
    36             </li> 
    37             <li> 
    38                 <logic:notPresent name="SES_USER" scope="session"> 
    39                     <html:link page="/InitLogonAccess.do" paramName="upload" paramId="source"><bean:message 
    40                             key="data.upload"/></html:link> 
    41                 </logic:notPresent> 
    42                 <logic:present name="SES_USER" scope="session"> 
    43                     <html:link page="/PrepareTree.do"><bean:message key="data.upload"/></html:link> 
    44                 </logic:present> 
    45                 : <bean:message key="data.upload.intro"/> 
    46             </li> 
     28            <li><bean:message key="data.access.extract"/> : <bean:message key="data.access.intro2"/></li> 
     29            <li><bean:message key="data.upload"/> : <bean:message key="data.upload.intro"/></li> 
    4730        </ul> 
    4831    </tiles:put> 
  • ether_megapoli/trunk/web/data/desc_parameter.jsp

    r247 r253  
    1515        <html:link page="/index.jsp"><bean:message key="app.home"/></html:link>&nbsp;&gt; 
    1616        <html:link page="/data?methodName=viewCatalogResume"><bean:message key="data.access"/></html:link>&nbsp;&gt; 
    17         <html:link page="/data?methodName=viewParameters"><bean:message key="data.access.param"/></html:link> 
     17        <html:link page="/ParametresAccess.do"><bean:message key="data.access.param"/></html:link> 
    1818    </tiles:put> 
    1919 
     
    185185                </table> 
    186186        <div class="hdp" align="right"> 
    187             <html:link page="/data?methodName=viewDescParameter" anchor="top" titleKey="app.hdp"> 
     187            <html:link href="#top" titleKey="app.hdp"> 
    188188                <html:img page="/resources/images/utils/fleche_haut.gif" width="20px" height="20px"/> 
    189189            </html:link> 
  • ether_megapoli/trunk/web/data/desc_plateform.jsp

    r247 r253  
    1616        <html:link page="/index.jsp"><bean:message key="app.home"/></html:link>&nbsp;&gt; 
    1717        <html:link page="/data?methodName=viewCatalogResume"><bean:message key="data.access"/></html:link>&nbsp;&gt; 
    18         <html:link page="/data?methodName=viewPlateforms"><bean:message key="data.access.plat"/></html:link> 
     18        <html:link page="/PlateformesAccess.do"><bean:message key="data.access.plat"/></html:link> 
    1919    </tiles:put> 
    2020 
     
    248248 
    249249        <div class="hdp" align="right"> 
    250             <html:link page="/data?methodName=viewDescPlateform" anchor="top" titleKey="app.hdp"> 
     250            <html:link href="#top" titleKey="app.hdp"> 
    251251                <html:img page="/resources/images/utils/fleche_haut.gif" width="20px" height="20px"/> 
    252252            </html:link> 
  • ether_megapoli/trunk/web/data/desc_sensor.jsp

    r247 r253  
    1616        <html:link page="/index.jsp"><bean:message key="app.home"/></html:link>&nbsp;&gt; 
    1717        <html:link page="/data?methodName=viewCatalogResume"><bean:message key="data.access"/></html:link>&nbsp;&gt; 
    18         <html:link page="/data?methodName=viewSensors"><bean:message key="data.access.capt"/></html:link> 
     18        <html:link page="/CapteursAccess.do"><bean:message key="data.access.capt"/></html:link> 
    1919    </tiles:put> 
    2020 
     
    189189 
    190190        <div class="hdp" align="right"> 
    191             <html:link page="/data?methodName=viewDescSensor" anchor="top" titleKey="app.hdp"> 
     191            <html:link href="#top" titleKey="app.hdp"> 
    192192                <html:img page="/resources/images/utils/fleche_haut.gif" width="20px" height="20px"/> 
    193193            </html:link> 
  • ether_megapoli/trunk/web/data/jeux.jsp

    r247 r253  
    1717        <html:link page="/index.jsp"><bean:message key="app.home"/></html:link>&nbsp;&gt; 
    1818        <html:link page="/data?methodName=viewCatalogResume"><bean:message key="data.access"/></html:link>&nbsp;&gt; 
    19         <html:link page="/data?methodName=viewSets"><bean:message key="data.access.jeux"/></html:link> 
     19        <html:link page="/JeuxAccess.do"><bean:message key="data.access.jeux"/></html:link> 
    2020    </tiles:put> 
    2121 
     
    2626    <div id="errors"><html:errors/></div> 
    2727    <div id="messages"> 
    28         <html:messages id="mess" property="<%= org.apache.struts.action.ActionMessages.GLOBAL_MESSAGE %>" 
    29                        message="true"> 
     28        <html:messages id="mess" property="<%= org.apache.struts.action.ActionMessages.GLOBAL_MESSAGE %>" message="true"> 
    3029            <bean:write name="mess"/> 
    3130        </html:messages> 
     
    272271 
    273272    <div class="hdp" align="right"> 
    274         <html:link page="/data?methodName=viewSets" anchor="top" titleKey="app.hdp"> 
     273        <html:link href="#top" titleKey="app.hdp"> 
    275274            <html:img page="/resources/images/utils/fleche_haut.gif" width="20px" height="20px"/> 
    276275        </html:link> 
  • ether_megapoli/trunk/web/data/metadataInfo.jsp

    r247 r253  
    1616        <html:link page="/index.jsp"><bean:message key="app.home"/></html:link>&nbsp;&gt; 
    1717        <html:link page="/data?methodName=viewCatalogResume"><bean:message key="data.access"/></html:link>&nbsp;&gt; 
    18         <html:link page="/data?methodName=viewSets"><bean:message key="data.access.jeux"/></html:link> 
     18        <html:link page="/JeuxAccess.do"><bean:message key="data.access.jeux"/></html:link> 
    1919    </tiles:put> 
    2020 
     
    6969    </nested:nest> 
    7070    <div class="hdp" align="right"> 
    71         <html:link page="/data?methodName=viewMetadataInfo" anchor="top" titleKey="app.hdp"> 
     71        <html:link href="#top" titleKey="app.hdp"> 
    7272            <html:img page="/resources/images/utils/fleche_haut.gif" width="20px" height="20px"/> 
    7373        </html:link> 
     
    296296    </nested:nest> 
    297297    <div class="hdp" align="right"> 
    298         <html:link page="/data?methodName=viewMetadataInfo" anchor="top" titleKey="app.hdp"> 
     298        <html:link href="#top" titleKey="app.hdp"> 
    299299            <html:img page="/resources/images/utils/fleche_haut.gif" width="20px" height="20px"/> 
    300300        </html:link> 
     
    373373            </table> 
    374374            <div class="hdp" align="right"> 
    375                 <html:link page="/data?methodName=viewMetadataInfo" anchor="top" titleKey="app.hdp"> 
     375                <html:link href="#top" titleKey="app.hdp"> 
    376376                    <html:img page="/resources/images/utils/fleche_haut.gif" width="20px" height="20px"/> 
    377377                </html:link> 
     
    425425            </table> 
    426426            <div class="hdp" align="right"> 
    427                 <html:link page="/data?methodName=viewMetadataInfo" anchor="top" titleKey="app.hdp"> 
     427                <html:link href="#top" titleKey="app.hdp"> 
    428428                    <html:img page="/resources/images/utils/fleche_haut.gif" width="20px" height="20px"/> 
    429429                </html:link> 
     
    502502    </div> 
    503503    <div class="hdp" align="right"> 
    504         <html:link page="/data?methodName=viewMetadataInfo" anchor="top" titleKey="app.hdp"> 
     504        <html:link href="#top" titleKey="app.hdp"> 
    505505            <html:img page="/resources/images/utils/fleche_haut.gif" width="20px" height="20px"/> 
    506506        </html:link> 
     
    592592        </nested:nest> 
    593593        <div class="hdp" align="right"> 
    594             <html:link page="/data?methodName=viewMetadataInfo" anchor="top" titleKey="app.hdp"> 
     594            <html:link href="#top" titleKey="app.hdp"> 
    595595                <html:img page="/resources/images/utils/fleche_haut.gif" width="20px" height="20px"/> 
    596596            </html:link> 
  • ether_megapoli/trunk/web/data/parameter.jsp

    r247 r253  
    1717        <html:link page="/index.jsp"><bean:message key="app.home"/></html:link>&nbsp;&gt; 
    1818        <html:link page="/data?methodName=viewCatalogResume"><bean:message key="data.access"/></html:link>&nbsp;&gt; 
    19         <html:link page="/data?methodName=viewParameters"><bean:message key="data.access.param"/></html:link> 
     19        <html:link page="/ParametresAccess.do"><bean:message key="data.access.param"/></html:link> 
    2020    </tiles:put> 
    2121 
     
    7979 
    8080            <div class="hdp" align="right"> 
    81                 <html:link page="/data?methodName=viewParameters" anchor="top" titleKey="app.hdp"> 
     81                <html:link href="#top" titleKey="app.hdp"> 
    8282                    <html:img page="/resources/images/utils/fleche_haut.gif" width="20px" height="20px"/> 
    8383                </html:link> 
  • ether_megapoli/trunk/web/data/plateform.jsp

    r247 r253  
    1717        <html:link page="/index.jsp"><bean:message key="app.home"/></html:link>&nbsp;&gt; 
    1818        <html:link page="/data?methodName=viewCatalogResume"><bean:message key="data.access"/></html:link>&nbsp;&gt; 
    19         <html:link page="/data?methodName=viewPlateforms"><bean:message key="data.access.plat"/></html:link> 
     19        <html:link page="/PlateformesAccess.do"><bean:message key="data.access.plat"/></html:link> 
    2020    </tiles:put> 
    2121 
     
    113113 
    114114            <div class="hdp" align="right"> 
    115                 <html:link page="/data?methodName=viewPlateforms" anchor="top" titleKey="app.hdp"> 
     115                <html:link href="#top" titleKey="app.hdp"> 
    116116                    <html:img page="/resources/images/utils/fleche_haut.gif" width="20px" height="20px"/> 
    117117                </html:link> 
  • ether_megapoli/trunk/web/data/sensor.jsp

    r247 r253  
    1717        <html:link page="/index.jsp"><bean:message key="app.home"/></html:link>&nbsp;&gt; 
    1818        <html:link page="/data?methodName=viewCatalogResume"><bean:message key="data.access"/></html:link>&nbsp;&gt; 
    19         <html:link page="/data?methodName=viewSensors"><bean:message key="data.access.capt"/></html:link> 
     19        <html:link page="/CapteursAccess.do"><bean:message key="data.access.capt"/></html:link> 
    2020    </tiles:put> 
    2121 
     
    9292         
    9393        <div class="hdp" align="right"> 
    94             <html:link page="/data?methodName=viewSensors" anchor="top" titleKey="app.hdp"> 
     94            <html:link href="#top" titleKey="app.hdp"> 
    9595                <html:img page="/resources/images/utils/fleche_haut.gif" width="20px" height="20px"/> 
    9696            </html:link> 
  • ether_megapoli/trunk/web/project/login.jsp

    r251 r253  
    2222    <tiles:put name="body" type="string"> 
    2323        <bean:message key="data.authentification.intro"/> 
    24         <div id="errors" class="containerErrors"><html:errors/></div> 
    2524 
    2625        <script type="text/javascript"> 
    27             window.onload=function(){ 
     26            window.onload = function() 
     27            { 
    2828                $( "fieldset#signin_menu" ).toggle(); 
    2929                $( ".signin" ).toggleClass( "menu-open" ); 
    3030            } 
    3131        </script> 
    32  
    33 <%--        <div id="login"> 
    34             <html:form action="/LogonAccess"> 
    35                 <table> 
    36                     <tr> 
    37                         <td><bean:message key="data.authentification.login"/> :</td> 
    38                         <td><html:text property="login"/></td> 
    39                     </tr> 
    40                     <tr> 
    41                         <td><bean:message key="data.authentification.pwd"/> :</td> 
    42                         <td><html:password property="pwd"/></td> 
    43                     </tr> 
    44                     <tr> 
    45                         <td>&nbsp;</td> 
    46                         <td align="right"> 
    47                             <html:submit><bean:message key="app.submit"/></html:submit> 
    48                             <html:cancel><bean:message key="app.cancel"/></html:cancel> 
    49                         </td> 
    50                     </tr> 
    51                 </table> 
    52             </html:form> 
    53         </div>--%> 
    5432    </tiles:put> 
    5533</tiles:insert> 
  • ether_megapoli/trunk/web/resources/jsp/megapoliHead.jsp

    r251 r253  
    99        this.containerTitle = $( "#title" ); 
    1010        this.containerTools = $( "#tools" ); 
     11        this.containerMenuData = $( "#menuData" ); 
    1112 
    1213        /** *********** VARIABLES *********** **/ 
     
    2223        this.createTitle(); 
    2324        this.createTools(); 
     25        this.createMenuData(); 
    2426        this.createLeftSlides(); 
    2527    }, 
     
    168170    }, 
    169171 
     172    createMenuData: function() 
     173    { 
     174        this.containerMenuData.empty(); 
     175 
     176        var ulData = $( document.createElement( "ul" ) ); 
     177        this.containerMenuData.append( ulData ); 
     178 
     179        var liExtract = $( document.createElement( "li" ) ); 
     180        var aExtract = $( document.createElement( "a" ) ); 
     181        aExtract.html( "<span>" + templateTexts["data.access.extract.short"] + "</span>" ); 
     182        liExtract.append( aExtract ); 
     183        ulData.append( liExtract ); 
     184        var liDownload = $( document.createElement( "li" ) ); 
     185        var aDownload = $( document.createElement( "a" ) ); 
     186        aDownload.html( "<span>" + templateTexts["data.upload.short"] + "</span>" ); 
     187        liDownload.append( aDownload ); 
     188        ulData.append( liDownload ); 
     189 
     190        if( getJSONUser() ) 
     191        { 
     192            aExtract.attr( {href:"DataAccess.do"} ); 
     193            aDownload.attr( {href:"PrepareTree.do"} ); 
     194        } 
     195        else 
     196        { 
     197            aExtract.attr( {href:"project?methodName=viewLogin"} ); 
     198            aDownload.attr( {href:"project?methodName=viewLogin"} ); 
     199        } 
     200    }, 
     201 
    170202    createLeftSlides: function() 
    171203    { 
     
    206238        setJSONUser( null != jQuery.parseJSON( result ).jSONPeople ? jQuery.parseJSON( result ).jSONPeople : false ); 
    207239        if( null == this.errors ) 
    208             this.hideLogin(); 
     240            this.updateLogin(); 
    209241        else 
    210242            displayLoginErrors( templateTexts[this.errors] ); 
     
    217249        { 
    218250            setJSONUser( false ); 
    219             this.hideLogin(); 
     251            this.updateLogin(); 
    220252        } 
    221253        else 
     
    272304    }, 
    273305 
    274     hideLogin: function() 
     306    updateLogin: function() 
    275307    { 
    276308        this.containerTools.empty(); 
    277309        this.createTools(); 
     310        this.createMenuData(); 
    278311    } 
    279312} ); 
  • ether_megapoli/trunk/web/resources/templates/templateMegapoli.jsp

    r251 r253  
    100100                    <span><bean:message key="app.data"/></span> 
    101101                </html:link> 
    102                 <div> 
    103                     <ul> 
    104                         <logic:notPresent name="SES_USER" scope="session"> 
    105                             <li><html:link page="/InitLogonAccess.do" paramName="access" paramId="source"><span><bean:message key="data.access.extract.short"/></span></html:link></li> 
    106                             <li><html:link page="/InitLogonAccess.do" paramName="upload" paramId="source"><span><bean:message key="data.upload.short"/></span></html:link></li> 
    107                         </logic:notPresent> 
    108                         <logic:present name="SES_USER" scope="session"> 
    109                             <li><html:link page="/DataAccess.do"><span><bean:message key="data.access.extract.short"/></span></html:link></li> 
    110                             <li><html:link page="/PrepareTree.do"><span><bean:message key="data.upload.short"/></span></html:link></li> 
    111                         </logic:present> 
    112                     </ul> 
    113                 </div> 
     102                <div id="menuData"></div> 
    114103            </li> 
    115104 
     
    172161    templateTexts["data.authentification"] = "<bean:message key="data.authentification"/>"; 
    173162    templateTexts["data.authentification.text"] = "<bean:message key="data.authentification.text"/>"; 
     163    templateTexts["data.access.extract.short"] = '<bean:message key="data.access.extract.short"/>'; 
     164    templateTexts["data.upload.short"] = '<bean:message key="data.upload.short"/>'; 
    174165 
    175166    var interfaceTemplate = new InterfaceTemplate(); 
Note: See TracChangeset for help on using the changeset viewer.