extrapolation des courbes et calculs associés
[perso/Denise/oms.git] / static / requetes.js
index 57330b37c328d3d5e262c0c4fd1913de9f909e44..6228020e83f358740955ec079a3aca895a092a0b 100644 (file)
@@ -19,6 +19,7 @@ function appelle_image()
                        var liste_warnings = this.response.messages
                        var texte = this.response.export_txt;
                        var nomenfant = this.response.nomenfant ;
+                       var calculextra = this.response.calculextra ;
 
                        // on affiche l'export des données
                        document.getElementById('export').innerHTML = texte;
@@ -67,7 +68,19 @@ function appelle_image()
                                                li.appendChild(document.createTextNode(liste_warnings[i]));
                                                ul.appendChild(li);
                                        }
-                               }               
+                               }
+                               // S'il y a des calculs faits, à afficher !
+                               if(calculextra.length != 0)
+                               {
+                                       var elem_extr = document.getElementById("section_extradonnees")
+                                       elem_extr.style.display = "block" ;
+                                       var ul2=elem_extr.children[1] ;
+                                       for(i=0; i<calculextra.length; i++) {
+                                               var li = document.createElement("li");
+                                               li.appendChild(document.createTextNode(calculextra[i]));
+                                               ul2.appendChild(li);
+                                       }
+                               }
                        }
                        else{ // si la génération de l'image a merdé