Ignore:
Timestamp:
01/18/13 16:51:56 (11 years ago)
Author:
npipsl
Message:

modif accès aux fichiers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • geisa/web/initGeisa_script.jsp

    r723 r730  
    16581658                //this.nb = jQuery.parseJSON( result ).nb; 
    16591659                //this.NomRepFileOut = jQuery.parseJSON( result ).NomRepFileOut; 
     1660                //liste des fichiers png crées par le programme fortran. 
     1661                var fileList = jQuery.parseJSON( result ).fileList; 
     1662 
     1663 
    16601664 
    16611665                //chemin court de l'image 
     
    16711675                    content = "<a href=project?methodName=downloadFile&fileName=" +this.NomRepFileOut + "GEISA.tar&fileNameToDisplay=GEISA.tar><button class='dataProtocolDownloadButton'>Download All</button></a>"; 
    16721676                } 
    1673                 //tracer chaque graphe avec son bouton  download associé 
    1674                 for (i=1; i<this.nbGraph+1; i++) { 
    1675                     //content = content + '<img src=' + this.pathImg + "graph" + this.nb +"-"+i+ ".png"+ ' /><a href="project?methodName=downloadFile&fileName='  + "graph" + this.nb+"-"+i + ".png"+ '"><button class="dataProtocolDownloadButton">Download</button></a>'; 
    1676                     content = content +'<img src=' + this.pathImg + this.nomFichier +"-"+i+ ".png"+ ' /><a href="project?methodName=downloadFile&fileName=' +this.NomRepFileOut + this.nomFichier+"-"+i + ".png&fileNameToDisplay="+this.nomFichier+"-"+i + ".png"+ '"><button class="dataProtocolDownloadButton">Download</button></a>'; 
    1677                 } 
     1677               // //tracer chaque graphe avec son bouton  download associé 
     1678              // // for (i=1; i<this.nbGraph+1; i++) { 
     1679                   //content = content + '<img src=' + this.pathImg + "graph" + this.nb +"-"+i+ ".png"+ ' /><a href="project?methodName=downloadFile&fileName='  + "graph" + this.nb+"-"+i + ".png"+ '"><button class="dataProtocolDownloadButton">Download</button></a>'; 
     1680               // //    content = content +'<img src=' + this.pathImg + this.nomFichier +"-"+i+ ".png"+ ' /><a href="project?methodName=downloadFile&fileName=' +this.NomRepFileOut + this.nomFichier+"-"+i + ".png&fileNameToDisplay="+this.nomFichier+"-"+i + ".png"+ '"><button class="dataProtocolDownloadButton">Download</button></a>'; 
     1681            //  //  } 
     1682 
     1683 
     1684                $.each( fileList, jQuery.proxy(function( index, fileElement  ) 
     1685                  { 
     1686                      content = content +'<img src=' + this.pathImg + fileElement + ' /><a href="project?methodName=downloadFile&fileName=' +this.NomRepFileOut + fileElement+"&fileNameToDisplay="+fileElement+ '"><button class="dataProtocolDownloadButton">Download</button></a>'; 
     1687                  }, this) ); 
     1688 
     1689 
     1690 
     1691 
    16781692 
    16791693                this.displayWindow(content); 
Note: See TracChangeset for help on using the changeset viewer.