Changeset 665 for geisa/web/initGeisa_script.jsp
- Timestamp:
- 11/07/12 15:03:40 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
geisa/web/initGeisa_script.jsp
r615 r665 1435 1435 transitionLower=transitionLower.replace(/\+/g,"plus"); 1436 1436 1437 this.nomFichier="GEISA2011"; 1437 1438 //construction du nom du fichier (exemple GEISA2011-0_100) 1439 this.nomFichier=this.selectDatabase.getValue()+"-"+$("#rangeLower").val()+"_"+$("#rangeUpper").val(); 1438 1440 //envoie de la requête au controller 1439 1441 //en cas de succes appel de la fonction "handleGeisa" … … 1666 1668 //numéro unique pour le nom du répertoire 1667 1669 //this.nb = jQuery.parseJSON( result ).nb; 1668 this.NomRepFileOut = jQuery.parseJSON( result ).NomRepFileOut; 1670 //this.NomRepFileOut = jQuery.parseJSON( result ).NomRepFileOut; 1671 this.NomRepFileOut = jQuery.parseJSON( result ).NomRepFileOut+"image/"; 1669 1672 1670 1673 //chemin de l'image … … 1675 1678 //Pour tracer le bon nombre de graphe et de bouton download 1676 1679 var i=1; 1677 var content = ''; 1680 //bouton Download All 1681 var content = "<a href=project?methodName=downloadFile&fileName=" +this.NomRepFileOut + 'GEISA.tar><button class="dataProtocolDownloadButton">Download All</button></a>'; 1682 //tracer chaque graphe avec son bouton download associé 1678 1683 for (i=1; i<this.nbGraph+1; i++) { 1679 1684 //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"+ '"><button class="dataProtocolDownloadButton">Download</button></a>'; 1681 1682 } 1685 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+ '"><button class="dataProtocolDownloadButton">Download</button></a>'; 1686 } 1683 1687 1684 1688 this.displayWindow(content); … … 2371 2375 text:'Close', 2372 2376 height:'30px', 2373 width:' 47px',2377 width:'53px', 2374 2378 title :'to close the window', 2375 2379 click: function() { $(this).dialog("close"); }, … … 2377 2381 "min" :{ 2378 2382 id:'Min', 2379 text:' Min',2383 text:'-', 2380 2384 height:'30px', 2381 width:' 47px',2385 width:'30px', 2382 2386 title :'to reduce the window', 2383 2387 click: function() { $(this).dialog({ height: 18, width:350 }); }, … … 2385 2389 "max" :{ 2386 2390 id:'Max', 2387 text:' Max',2391 text:'+', 2388 2392 height:'30px', 2389 width:' 47px',2393 width:'30px', 2390 2394 title :'to enlarge the window ', 2391 2395 click: function() { $(this).dialog({ height: 628, width:700 }); },
Note: See TracChangeset
for help on using the changeset viewer.