Advertisement
Guest User

Untitled

a guest
Dec 9th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. function AfficherTabQuartier($connexion){
  2. $tab=GetTabQuartier($connexion);
  3. $i=0;
  4. foreach($tab as $val){
  5. $t=QuartierSuivant($connexion,$val['idQ']);
  6. if(($i%10) == 0){
  7. echo "<tr>";
  8. echo "<td>";
  9. foreach($val as $donnee){
  10. echo "<p>".$donnee."</p>";}
  11. echo "<p> quartier accessible </p>";
  12. echo "<p>";
  13. foreach($t as $t1){
  14. echo "<p>\"".$t1['idQ2']." en ".$t1['TypeTransport']."\"</p>";
  15. }
  16. echo "</p>";
  17. echo "</td>";}
  18. elseif(($i%10) == 9){
  19. echo "<td>";
  20. foreach($val as $donnee){
  21. echo "<p>".$donnee."</p>";}
  22. echo "<p> quartier accessible </p>";
  23. echo "<p>";
  24. foreach($t as $t1){
  25. echo "<p>\"".$t1['idQ2']." en ".$t1['TypeTransport']."\"</p>";
  26. }
  27. echo "</td>";
  28. echo "</tr>";}
  29. else{
  30. echo "<td>";
  31. foreach($val as $donnee){
  32. echo "<p>".$donnee."</p>";}
  33. echo "<p> quartier accessible </p>";
  34. echo "<p>";
  35. foreach($t as $t1){
  36. echo "<p>\"".$t1['idQ2']." en ".$t1['TypeTransport']."\"</p>";
  37. }
  38. echo "</td>";}
  39. $i++;
  40. }
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement