Changeset 745


Ignore:
Timestamp:
01/23/13 17:55:46 (11 years ago)
Author:
cbipsl
Message:

Mise à jour interface quicklook

Location:
ether_iasi/trunk/web
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ether_iasi/trunk/web/project/quicklook.jsp

    r731 r745  
    5050    </div> 
    5151 
    52     <div id="containerQuickLookA" class="containerQuickLooks"><spring:message code="label.MetOpA"/> 
     52    <div id="containerQuickLookA" class="containerQuickLooks"> 
    5353        <div id="containerResultA"></div> 
    5454 
  • ether_iasi/trunk/web/project/quicklook_script.jsp

    r731 r745  
    6363            paramSelect.parent = div; 
    6464            this.selectProjections = new Select( paramSelect ); 
    65             this.selectProjections.add( "GL", '<spring:message code="label.globe"/>' ); 
    66             this.selectProjections.add( "EU", '<spring:message code="label.europe"/>' ); 
    67             this.selectProjections.add( "PN", '<spring:message code="label.pole.north"/>' ); 
    68             this.selectProjections.add( "PS", '<spring:message code="label.pole.south"/>' ); 
     65            this.selectProjections.add( "global", '<spring:message code="label.globe"/>' ); 
     66            this.selectProjections.add( "europe", '<spring:message code="label.europe"/>' ); 
     67            this.selectProjections.add( "pn", '<spring:message code="label.pole.north"/>' ); 
     68            this.selectProjections.add( "ps", '<spring:message code="label.pole.south"/>' ); 
    6969            this.selectProjections.selectFirst(); 
    7070        }, 
     
    122122            var plotNameA = jQuery.parseJSON( result ).plotNameResultA; 
    123123            var plotNameB = jQuery.parseJSON( result ).plotNameResultB; 
     124            var plotNameC = jQuery.parseJSON( result ).plotNameResultC; 
     125            var plotNameD = jQuery.parseJSON( result ).plotNameResultD; 
     126 
    124127            if (plotNameA) 
    125 //                this.containerResultA.html(plotNameA); 
    126                 this.containerResultA.html("<img src='"+plotNameA+"' width='80px' height='80'>"); 
    127              if (plotNameB) 
    128                 this.containerResultB.html(plotNameB); 
     128            { 
     129 
     130 
     131                 this.containerResultA.html("<center>MetOp-A</center><center><img src='resources/img/"+plotNameA+"' width='430px' height='350px' onerror='"+this.bob+"'><img src='resources/img/"+plotNameC+"' width='430px' height='350px'></center>"); 
     132 
     133            } 
     134            if (plotNameB) 
     135                this.containerResultA.html("<center>MetOp-B</center><center><img src='resources/img/"+plotNameB+"' width='430px' height='350px'><img src='resources/img/"+plotNameD+"' width='430px' height='350px'></center>"); 
     136 
     137 
     138            if (plotNameA &&  plotNameB ) 
     139            { 
     140                this.containerResultA.html(plotNameA + plotNameC); 
     141                this.containerResultB.html(plotNameB + plotNameD); 
     142           } 
     143 
    129144 
    130145        }, 
     
    151166            this.containerErrors.show(); 
    152167            this.containerErrors.html( result ); 
    153         } 
     168        }, 
    154169 
     170         bob:function() 
     171    { 
     172        alert("pif"); 
     173    } 
    155174    } ); 
    156175 
  • ether_iasi/trunk/web/src/com/ether/Controller.java

    r732 r745  
    7474        String plotNameA = ""; 
    7575        String plotNameB = ""; 
     76        String plotNameC = ""; 
     77        String plotNameD = ""; 
    7678        if( satellite.equals( "metopa" ) || satellite.equals( "metopab" ) ) 
    77             plotNameA = "iasi_" + species + "_" + projection + "_" + fmtDate + "_" + satellite + ".png"; 
     79        { 
     80            plotNameA = "metopa_iasi_" + species + "_l2_" + fmtDate + "_day_" + projection + ".png"; 
     81            plotNameC = "metopa_iasi_" + species + "_l2_" + fmtDate + "_night_" + projection + ".png"; 
     82        } 
    7883        if( satellite.equals( "metopb" ) || satellite.equals( "metopab" ) ) 
    79             plotNameB = "iasi_" + species + "_" + projection + "_" + fmtDate + "_" + satellite + ".png"; 
    80  
     84        { 
     85            plotNameB = "metopb_iasi_" + species + "_l2_" + fmtDate + "_day_" + projection + ".png"; 
     86            plotNameD = "metopb_iasi_" + species + "_l2_" + fmtDate + "_night_" + projection + ".png"; 
     87        } 
    8188        final JSONObject result = new JSONObject(); 
    8289        result.put( "plotNameResultA", plotNameA ); 
    8390        result.put( "plotNameResultB", plotNameB ); 
     91        result.put( "plotNameResultC", plotNameC ); 
     92        result.put( "plotNameResultD", plotNameD ); 
    8493        return result; 
    8594 
Note: See TracChangeset for help on using the changeset viewer.