Ver código fonte

Ajout du descriptif des abréviations de spés dans les résultats

Guichen 4 anos atrás
pai
commit
7df4ee55c8
2 arquivos alterados com 21 adições e 3 exclusões
  1. 10 1
      apiTableauFromClassement.php
  2. 11 2
      apiTableauFromNote.php

+ 10 - 1
apiTableauFromClassement.php

@@ -188,7 +188,16 @@ EOF;
 		$html .= "</tr>";
 	}
 	
-	$html .= "</tbody></table><br></body>";
+	$html .= "</tbody></table><br>";
+
+	// Affichage du tableau des légendes
+    $html .= "<table><thead><th scope='col'>Abréviation</th><th scope='col'>Nom de spécialité</th></thead>";
+
+    foreach ($specialityDatasetAbrev as $speId => $speAbrev) {
+        $html .= "<tr><td>".$speAbrev."</td><td>".$specialityDataset[$speId]."</td></tr>";
+    }
+
+	$html .= "</table></body>";
 	
 	// Affichage du HTML demandé
 	echo $html;

+ 11 - 2
apiTableauFromNote.php

@@ -241,8 +241,17 @@ EOF;
 		}
 		$html .= "</tr>";
 	}
-	
-	$html .= "</tbody></table><br></body>";
+
+    $html .= "</tbody></table><br>";
+
+    // Affichage du tableau des légendes
+    $html .= "<table><thead><th scope='col'>Abréviation</th><th scope='col'>Nom de spécialité</th></thead>";
+
+    foreach ($specialityDatasetAbrev as $speId => $speAbrev) {
+        $html .= "<tr><td>".$speAbrev."</td><td>".$specialityDataset[$speId]."</td></tr>";
+    }
+
+    $html .= "</table></body>";
 	
 	// Affichage du HTML demandé
 	echo $html;