Changeset 717 for ether_iasi/trunk/web
- Timestamp:
- 01/17/13 14:43:02 (12 years ago)
- Location:
- ether_iasi/trunk/web
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
ether_iasi/trunk/web/project/quicklook.jsp
r716 r717 42 42 <div id="containerTools" class="containerTools"></div> 43 43 44 <div id="containerQuickLookA" ></div>44 <div id="containerQuickLookA" class="containerQuickLooks"><spring:message code="label.MetOpA"/></div> 45 45 46 <div id="containerQuickLookB" ></div>46 <div id="containerQuickLookB" class="containerQuickLooks"><spring:message code="label.MetOpB"/></div> 47 47 48 <div id="errors"></div> 48 49 <%-- ****************** TITLE & TOOLS ****************** --%> 49 50 <script type="text/javascript"> -
ether_iasi/trunk/web/project/quicklook_script.jsp
r716 r717 11 11 this.containerQuickLookA = $( "#containerQuickLookA" ); 12 12 this.containerQuickLookB = $( "#containerQuickLookB" ); 13 //this.containerErrors = $( "#errors" );13 this.containerErrors = $( "#errors" ); 14 14 15 15 /** *********** VARIABLES *********** **/ 16 this.language = '<spring:message code="language"/>'; 17 <%--this.jSONUser = <%=WebHelper.getJSONUser( request )%> ? <%=WebHelper.getJSONUser( request )%> : false;--%> 16 18 17 19 18 this.createTools(); … … 26 25 this.createSelectSatellites(); 27 26 this.createSelectLocations(); 27 28 var quickLookButton = new Button( {id:"quickLookButton", value:"<spring:message code="label.quicklook.button"/>", parent:this.containerTools, className: "small", onClick:jQuery.proxy( this.onClickButton, this )} ); 28 29 }, 29 30 … … 31 32 { 32 33 var div = $( document.createElement( "div" ) ); 33 div.html( '<spring:message code="label.satellite"/> :');34 div.html( '<spring:message code="label.satellite"/> :' ); 34 35 div.addClass( "selectTools" ); 35 36 this.containerTools.append( div ); … … 48 49 { 49 50 var div = $( document.createElement( "div" ) ); 50 div.html( '<spring:message code="label.location"/> :');51 div.html( '<spring:message code="label.location"/> :' ); 51 52 div.addClass( "selectTools" ); 52 53 this.containerTools.append( div ); … … 62 63 63 64 // REQUESTS ******************************************************** 64 request ChangeLocale: function()65 requestQuickLooksBySelectValues: function() 65 66 { 66 67 $.ajax( { 67 url: "project?methodName=setLocale&language=<spring:message code="label.language.value.to.switch"/>",68 success:function()69 {70 location.reload();71 },72 error: jQuery.proxy( this.showErrors, [this] )73 } );74 },75 76 requestDataByLogo: function()77 {78 if( !this.selectedLogo && !this.selectedLogo.id )79 return;80 81 $.ajax( {82 68 url: "statistic?methodName=searchMainStatisticsByProject&name=" + this.selectedLogo.id, 83 success:jQuery.proxy( this.handle DataByLogo, this ),84 error: jQuery.proxy( this.show LoginError, this )69 success:jQuery.proxy( this.handleQuickLooksBySelectValues, this ), 70 error: jQuery.proxy( this.showErrors, this ) 85 71 } ); 86 72 }, … … 88 74 89 75 // HANDLES ******************************************************** 90 handle DataByLogo: function( result )76 handleQuickLooksBySelectValues: function( result ) 91 77 { 92 78 // this.displaySummary(); … … 95 81 96 82 // EVENTS ******************************************************** 97 onClick Home: function()83 onClickButton: function() 98 84 { 99 location.reload();85 alert( "paf : " + this.selectLocalisations.getValue() + ", " + this.selectSatellites.getValue() ); 100 86 }, 101 87 102 onClickLanguage: function() 88 // OTHERS ******************************************************** 89 showErrors: function( result ) 103 90 { 104 this.requestChangeLocale(); 91 this.containerErrors.show(); 92 this.containerErrors.html( result ); 105 93 } 106 94 107 108 // OTHERS ********************************************************109 95 } ); 110 96 -
ether_iasi/trunk/web/resources/css/ether.css
r716 r717 113 113 } 114 114 115 #errors { 116 position: absolute; 117 background: #FEF1EC; 118 -moz-border-radius: 4px 4px 4px 4px; 119 -webkit-border-radius: 4px 4px 4px 4px; 120 border: 1px solid #CD0A0A; 121 color: #CD0A0A; 122 padding: 10px; 123 margin: 10px; 124 float: right; 125 display: none; 126 z-index: 2; 127 } 128 115 129 /** ************************************ **/ 116 130 /** ************ LOADING *************** **/ -
ether_iasi/trunk/web/resources/css/iasi.css
r716 r717 39 39 margin: 0 0 0 20px; 40 40 float: left; 41 width: 900px; 42 } 43 44 .containerQuickLooks { 45 float: left; 46 margin: 40px 0; 47 width: 900px; 48 text-align: center; 41 49 } 42 50 43 51 /** ***************************************************** **/ 44 /** ********************** CONTAINER******************** **/52 /** ************************ OTHERS ********************* **/ 45 53 /** ***************************************************** **/ 46 54 .selectTools { 47 float: left;55 float: left; 48 56 padding-right: 30px; 49 57 } 58 59 #quickLookButton { 60 float: right; 61 margin: 15px 20px 0; 62 } -
ether_iasi/trunk/web/src/messages_en.properties
r716 r717 5 5 6 6 title=IASI 7 label.MetOpA=MetOp-A 8 label.MetOpB=MetOp-B 7 9 8 10 label.quicklook=QUICKLOOKS … … 14 16 label.species=Species 15 17 label.date=Date 18 label.quicklook.button=Get quicklook -
ether_iasi/trunk/web/src/messages_fr.properties
r716 r717 5 5 6 6 title=IASI 7 label.MetOpA=MetOp-A 8 label.MetOpB=MetOp-B 9 7 10 8 11 label.quicklook=VISUALISATIONS … … 14 17 label.species=EspÚce 15 18 label.date=Date 19 label.quicklook.button=Go quicklook
Note: See TracChangeset
for help on using the changeset viewer.