2
0

cms.stats-femmes-hommes.php 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <?php
  2. $statGeneral = stats::countStatistiquesGenerale();
  3. $stat147 = stats::countStatistiquesByLieu("147");
  4. $statLyon = stats::countStatistiquesByLieu("LYON");
  5. $statPerol = stats::countStatistiquesByLieu("PEROLS");
  6. $statCambacere = stats::countStatistiquesByLieu("CAMBACERE");
  7. $statBlagnac = stats::countStatistiquesByLieu("BLAGNAC");
  8. $statBouchardo = stats::countStatistiquesByLieu("BOUCHARDO");
  9. ?>
  10. <div class="row" style="margin-top: 20x;">
  11. <div class="col-md-10" style="margin-top: 30px;">
  12. <h6 class="bg-light p-2">Général</h6>
  13. <?php
  14. $config = array(
  15. "id" => "HommeFemme",
  16. "charts" => "doughnut",
  17. "label" => "Général",
  18. "data" => array(
  19. array("label" => "Femme", "nb" => $statGeneral["Femme"]),
  20. array("label" => "Homme", "nb" => $statGeneral["Homme"])
  21. )
  22. );
  23. chart::printCanvas($config);
  24. ?>
  25. </div>
  26. <div class="col-md-5" style="margin-top: 30px;">
  27. <h6 class="bg-light p-2">Paris - 147</h6>
  28. <?php
  29. $config = array(
  30. "id" => "stat147HommeFemme",
  31. "charts" => "doughnut",
  32. "label" => "Paris - 147",
  33. "data" => array(
  34. array("label" => "Femme", "nb" => $stat147["Femme"]),
  35. array("label" => "Homme", "nb" => $stat147["Homme"])
  36. )
  37. );
  38. chart::printCanvas($config);
  39. ?>
  40. </div>
  41. <div class="col-md-5" style="margin-top: 30px;">
  42. <h6 class="bg-light p-2">Lyon</h6>
  43. <?php
  44. $config = array(
  45. "id" => "statLyonHommeFemme",
  46. "charts" => "doughnut",
  47. "label" => "Lyon",
  48. "data" => array(
  49. array("label" => "Femme", "nb" => $statLyon["Femme"]),
  50. array("label" => "Homme", "nb" => $statLyon["Homme"])
  51. )
  52. );
  53. chart::printCanvas($config);
  54. ?>
  55. </div>
  56. <div class="col-md-5" style="margin-top: 30px;">
  57. <h6 class="bg-light p-2">Montpellier - Pérols</h6>
  58. <?php
  59. $config = array(
  60. "id" => "statPerolHommeFemme",
  61. "charts" => "doughnut",
  62. "label" => "Montpellier - Pérols",
  63. "data" => array(
  64. array("label" => "Femme", "nb" => $statPerol["Femme"]),
  65. array("label" => "Homme", "nb" => $statPerol["Homme"])
  66. )
  67. );
  68. chart::printCanvas($config);
  69. ?>
  70. </div>
  71. <div class="col-md-5" style="margin-top: 30px;">
  72. <h6 class="bg-light p-2">Paris - Cambacérès</h6>
  73. <?php
  74. $config = array(
  75. "id" => "statCambacereHommeFemme",
  76. "charts" => "doughnut",
  77. "label" => "Paris - Cambacérès",
  78. "data" => array(
  79. array("label" => "Femme", "nb" => $statCambacere["Femme"]),
  80. array("label" => "Homme", "nb" => $statCambacere["Homme"])
  81. )
  82. );
  83. chart::printCanvas($config);
  84. ?>
  85. </div>
  86. <div class="col-md-5" style="margin-top: 30px;">
  87. <h6 class="bg-light p-2">Toulouse - Blagnac</h6>
  88. <?php
  89. $config = array(
  90. "id" => "statBlagnacHommeFemme",
  91. "charts" => "doughnut",
  92. "label" => "Toulouse - Blagnac",
  93. "data" => array(
  94. array("label" => "Femme", "nb" => $statBlagnac["Femme"]),
  95. array("label" => "Homme", "nb" => $statBlagnac["Homme"])
  96. )
  97. );
  98. chart::printCanvas($config);
  99. ?>
  100. </div>
  101. <div class="col-md-5" style="margin-top: 30px;">
  102. <h6 class="bg-light p-2">Paris - Bouchardo</h6>
  103. <?php
  104. $config = array(
  105. "id" => "statBouchardoHommeFemme",
  106. "charts" => "doughnut",
  107. "label" => "Paris - Bouchardo",
  108. "data" => array(
  109. array("label" => "Femme", "nb" => $statBouchardo["Femme"]),
  110. array("label" => "Homme", "nb" => $statBouchardo["Homme"])
  111. )
  112. );
  113. chart::printCanvas($config);
  114. ?>
  115. </div>
  116. </div>