Changeset 720


Ignore:
Timestamp:
01/17/13 16:56:38 (11 years ago)
Author:
cbipsl
Message:

Mise à jour interface quicklook

Location:
ether_iasi/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • ether_iasi/trunk/common/implementation/log4j.xml

    r713 r720  
    1010 
    1111    <appender name="file" class="org.apache.log4j.FileAppender"> 
    12         <param name="file" value="/home_local/npipsl/workspaces/log4j_IASI.log"/> 
     12        <param name="file" value="/home_local/workspaces/log4j_IASI.log"/> 
    1313        <layout class="org.apache.log4j.PatternLayout"> 
    1414            <param name="ConversionPattern" value="LOG4J %p %d{ISO8601} - %c{1} - %m%n"/> 
  • ether_iasi/trunk/web/project/quicklook.jsp

    r719 r720  
    1717    <ether:htmlCss cssFile="iasi"/> 
    1818    <ether:htmlCss cssFile="select"/> 
     19    <ether:htmlCss cssFile="calendar/anytime"/> 
    1920 
    2021    <ether:htmlJs jsFile="library/jquery-1.4.2.min"/> 
     
    3031    <ether:htmlJs jsFile="classesForJQuery/DragSlide"/> 
    3132    <ether:htmlJs jsFile="classesForJQuery/Select"/> 
     33    <ether:htmlJs jsFile="calendar/anytime"/> 
    3234 
    3335    <ether:htmlJsp jspFile="quicklook_script"/> 
     
    4042    <div id="title" class="containerTitle"><spring:message code="label.quicklook"/></div> 
    4143 
    42     <div id="containerTools" class="containerTools"></div> 
     44    <div class="containerTools"> 
     45        <div id="containerTools"></div> 
     46        <div class="selectTools"> 
     47            <spring:message code="label.date"/> :<br/> 
     48            <input type="text" id="beginDate" size="10"/> 
     49        </div> 
     50    </div> 
    4351 
    4452    <div id="containerQuickLookA" class="containerQuickLooks"><spring:message code="label.MetOpA"/></div> 
  • ether_iasi/trunk/web/project/quicklook_script.jsp

    r717 r720  
    2424        { 
    2525            this.createSelectSatellites(); 
    26             this.createSelectLocations(); 
     26            this.createSelectProjections(); 
     27            this.createSelectSpecies(); 
     28            this.createCalendar(); 
     29 
    2730 
    2831            var quickLookButton = new Button( {id:"quickLookButton", value:"<spring:message code="label.quicklook.button"/>", parent:this.containerTools, className: "small", onClick:jQuery.proxy( this.onClickButton, this )} ); 
     
    4649        }, 
    4750 
    48         createSelectLocations: function() 
     51        createSelectProjections: function() 
    4952        { 
    5053            var div = $( document.createElement( "div" ) ); 
    51             div.html( '<spring:message code="label.location"/> :' ); 
     54            div.html( '<spring:message code="label.projection"/> :' ); 
    5255            div.addClass( "selectTools" ); 
    5356            this.containerTools.append( div ); 
    5457 
    5558            var paramSelect = new Object(); 
    56             paramSelect.id = "selectLocalisations"; 
     59            paramSelect.id = "selectProjections"; 
    5760            paramSelect.parent = div; 
    58             this.selectLocalisations = new Select( paramSelect ); 
    59             this.selectLocalisations.add( "PN", '<spring:message code="label.pole.north"/>' ); 
    60             this.selectLocalisations.add( "PS", '<spring:message code="label.pole.south"/>' ); 
    61             this.selectLocalisations.selectFirst(); 
     61            this.selectProjections = new Select( paramSelect ); 
     62            this.selectProjections.add( "GL", '<spring:message code="label.globe"/>' ); 
     63            this.selectProjections.add( "EU", '<spring:message code="label.europe"/>' ); 
     64            this.selectProjections.add( "PN", '<spring:message code="label.pole.north"/>' ); 
     65            this.selectProjections.add( "PS", '<spring:message code="label.pole.south"/>' ); 
     66            this.selectProjections.selectFirst(); 
     67        }, 
     68 
     69        createSelectSpecies: function() 
     70        { 
     71            var div = $( document.createElement( "div" ) ); 
     72            div.html( '<spring:message code="label.species"/> :' ); 
     73            div.addClass( "selectTools" ); 
     74            this.containerTools.append( div ); 
     75 
     76            var paramSelect = new Object(); 
     77            paramSelect.id = "selectSpecies"; 
     78            paramSelect.parent = div; 
     79            this.selectSpecies = new Select( paramSelect ); 
     80            this.selectSpecies.add( "CO", 'CO' ); 
     81            this.selectSpecies.add( "H2O",'H2O' ); 
     82            this.selectSpecies.add( "TS",'Temp. Surf.' ) 
     83            this.selectSpecies.selectFirst(); 
     84        }, 
     85 
     86        createCalendar: function() 
     87        { 
     88            this.calendarFormat = "%Y-%m-%d"; 
     89            this.calendarConverter = new AnyTime.Converter( { format: this.calendarFormat } ); 
     90 
     91            AnyTime.picker( "beginDate", { format: this.calendarFormat, firstDOW: 1, 
     92                labelTitle: '<spring:message code="label.titlecalendar"/> :' , 
     93                labelYear:  '<spring:message code="label.yearcalendar"/> :' , 
     94                labelMonth:  '<spring:message code="label.monthcalendar"/> :', 
     95                labelDayOfMonth: '<spring:message code="label.daycalendar"/> :', 
     96 
     97                methodToCall: jQuery.proxy( this.onClickBeginDate, this ) 
     98            } ); 
     99 
     100 
     101 
     102//        $( "#beginDate" ).val( this.firstDate ); 
     103//        $( "#endDate" ).val( this.lastDate ); 
     104//        this.beginDate = this.calendarConverter.parse( $( "#beginDate" ).val() ).getTime(); 
     105//        this.endDate = this.calendarConverter.parse( $( "#endDate" ).val() ).getTime(); 
     106 
     107//        this.clearCalendarButton = new Button( {value:interfaceTexts["visualization.button.clear"], parent:this.containerOptionCalendar, id:"button_clear_calendar", className:"small", onClick:jQuery.proxy( this.onClickClear, this )} ); 
     108 
    62109        }, 
    63110 
     
    83130        onClickButton: function() 
    84131        { 
    85             alert( "paf : " + this.selectLocalisations.getValue() + ",  " + this.selectSatellites.getValue() ); 
     132            alert( "paf : " + this.selectProjections.getValue() + ",  " + this.selectSatellites.getValue() ); 
     133        }, 
     134 
     135        onClickBeginDate: function() 
     136        { 
     137            this.beginDate = this.calendarConverter.parse( $( "#beginDate" ).val() ).getTime(); 
    86138        }, 
    87139 
  • ether_iasi/trunk/web/resources/css/iasi.css

    r717 r720  
    6161    margin: 15px 20px 0; 
    6262} 
     63 
     64#beginDate { 
     65    background-image: url("../../resources/icons/calendrier-icone-16x16.png"); 
     66    background-position: right center; 
     67    background-repeat: no-repeat; 
     68} 
  • ether_iasi/trunk/web/src/messages_en.properties

    r717 r720  
    1010label.quicklook=QUICKLOOKS 
    1111label.either=Either 
     12label.globe=Global 
     13label.europe=Europe 
    1214label.pole.north=North pole 
    1315label.pole.south=South pole 
    1416label.satellite=Satellite 
    15 label.location=Location 
     17label.projection=Projection 
    1618label.species=Species 
    1719label.date=Date 
     20label.titlecalendar=Select a date 
     21label.yearcalendar=Year 
     22label.monthcalendar=Month 
     23label.daycalendar=Day 
    1824label.quicklook.button=Get quicklook 
  • ether_iasi/trunk/web/src/messages_fr.properties

    r717 r720  
    1111label.quicklook=VISUALISATIONS 
    1212label.either=Les deux 
     13label.globe=Global 
     14label.europe=Europe 
    1315label.pole.north=PÃŽle nord 
    1416label.pole.south=PÃŽle sud 
    1517label.satellite=Satellite 
    16 label.location=Localisation 
     18label.projection=Projection 
    1719label.species=EspÚce 
    1820label.date=Date 
     21label.titlecalendar=Choisissez une date 
     22label.yearcalendar=Année 
     23label.monthcalendar=Mois 
     24label.daycalendar=Jour 
    1925label.quicklook.button=Go quicklook 
Note: See TracChangeset for help on using the changeset viewer.