Ignore:
Timestamp:
03/22/12 19:00:34 (12 years ago)
Author:
rboipsl
Message:

infobulles

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ether_ndacc/trunk/web/src/com/ether/Controller.java

    r432 r434  
    1212import javax.servlet.http.HttpServletRequest; 
    1313import javax.servlet.http.HttpServletResponse; 
     14import java.util.ArrayList; 
    1415import java.util.Date; 
    1516import java.util.HashMap; 
     
    283284                dateinf=year+month+"01"; 
    284285                final List<String> plotsList = _plotService.getPlotsByDateByInstrumentByStationByType( instrument, dateinf, "yyyyMMdd", station, type ); 
    285                 String[] labelDates = new String[plotsList.size()]; 
    286  
    287                 for (int i=0 ; i<plotsList.size() ; i++) { 
    288                      labelDates[0]=plotsList.get( 0 ).substring(0,6); 
     286                String[] labelPlots = new String[plotsList.size()]; 
     287 
     288                for (Integer i=0 ; i<plotsList.size() ; i++) { 
     289                        //temp= 
     290                        labelPlots[i]=plotsList.get( i ).substring(5,9)+"/"+plotsList.get( i ).substring(9,11)+"/"+plotsList.get( i ).substring(11,13); 
    289291                } 
    290292 
     
    297299                model.put( "listeDates", listeDates ); 
    298300                model.put( "firstDate", dateinf ); 
     301                model.put( "labelPlots", labelPlots ); 
    299302 
    300303                model.put( "month", month ); 
Note: See TracChangeset for help on using the changeset viewer.