Changeset 745
- Timestamp:
- 01/23/13 17:55:46 (11 years ago)
- Location:
- ether_iasi/trunk/web
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
ether_iasi/trunk/web/project/quicklook.jsp
r731 r745 50 50 </div> 51 51 52 <div id="containerQuickLookA" class="containerQuickLooks"> <spring:message code="label.MetOpA"/>52 <div id="containerQuickLookA" class="containerQuickLooks"> 53 53 <div id="containerResultA"></div> 54 54 -
ether_iasi/trunk/web/project/quicklook_script.jsp
r731 r745 63 63 paramSelect.parent = div; 64 64 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"/>' ); 69 69 this.selectProjections.selectFirst(); 70 70 }, … … 122 122 var plotNameA = jQuery.parseJSON( result ).plotNameResultA; 123 123 var plotNameB = jQuery.parseJSON( result ).plotNameResultB; 124 var plotNameC = jQuery.parseJSON( result ).plotNameResultC; 125 var plotNameD = jQuery.parseJSON( result ).plotNameResultD; 126 124 127 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 129 144 130 145 }, … … 151 166 this.containerErrors.show(); 152 167 this.containerErrors.html( result ); 153 } 168 }, 154 169 170 bob:function() 171 { 172 alert("pif"); 173 } 155 174 } ); 156 175 -
ether_iasi/trunk/web/src/com/ether/Controller.java
r732 r745 74 74 String plotNameA = ""; 75 75 String plotNameB = ""; 76 String plotNameC = ""; 77 String plotNameD = ""; 76 78 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 } 78 83 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 } 81 88 final JSONObject result = new JSONObject(); 82 89 result.put( "plotNameResultA", plotNameA ); 83 90 result.put( "plotNameResultB", plotNameB ); 91 result.put( "plotNameResultC", plotNameC ); 92 result.put( "plotNameResultD", plotNameD ); 84 93 return result; 85 94
Note: See TracChangeset
for help on using the changeset viewer.