|
|
@@ -1,71 +1,35 @@
|
|
|
-<?php
|
|
|
- $statGeneral = stats::countStatistiquesGenrale();
|
|
|
- $statGeneralEntree = stats::countStatistiquesGenraleEntrees();
|
|
|
-?>
|
|
|
-<div class="row" style="margin-top: 20px;">
|
|
|
-
|
|
|
- <div class="col-md-10" style="margin-top: 10px;">
|
|
|
- <h6 class="bg-light p-2">Nb. salariés par site</h6>
|
|
|
- <?php
|
|
|
- $config = array(
|
|
|
- "id" => "statGeneralLieu",
|
|
|
- "charts" => "bar",
|
|
|
- "label" => "Sites (général)",
|
|
|
- "data" => array(
|
|
|
- array("label" => "Paris - 147", "nb" => $statGeneral["lieuParis147"]),
|
|
|
- array("label" => "Paris - Cambacérès", "nb" => $statGeneral["lieuParisCambaceres"]),
|
|
|
- array("label" => "Paris - Bouchardo", "nb" => $statGeneral["lieuParisBouchardo"]),
|
|
|
- array("label" => "Lyon - Tour d'ivoire", "nb" => $statGeneral["lieuLyonIvoire"]),
|
|
|
- array("label" => "Montpellier - Pérols", "nb" => $statGeneral["lieuPerols"]),
|
|
|
- array("label" => "Toulouse - BLanchar", "nb" => $statGeneral["lieuToulouseBalgnac"]))
|
|
|
- );
|
|
|
-
|
|
|
- chart::printCanvas($config);
|
|
|
- ?>
|
|
|
- </div>
|
|
|
-
|
|
|
+<div class="row" style="margin-top: 20x;">
|
|
|
<div class="col-md-10" style="margin-top: 30px;">
|
|
|
- <h6 class="bg-light p-2">Années d'entrée</h6>
|
|
|
- <?php
|
|
|
- $config = array(
|
|
|
- "id" => "statGeneralEntree",
|
|
|
- "charts" => "line",
|
|
|
- "label" => "Année d'entrée (général)",
|
|
|
- "data" => array($statGeneralEntree)
|
|
|
- );
|
|
|
-
|
|
|
- chart::printCanvas($config);
|
|
|
- ?>
|
|
|
+ <h6 class="bg-light p-2">Général</h6>
|
|
|
+ <table id="table"
|
|
|
+ class="table-striped table-hover table-sm"
|
|
|
+ data-toggle="table"
|
|
|
+ data-flat="true"
|
|
|
+ data-sort-name="ActifOn"
|
|
|
+ data-sort-order="desc"
|
|
|
+ data-url="/json.php?jsonData=stats-general">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th data-sortable="true" data-field="Lieu" data-filter-control="select">Etablissement</th>
|
|
|
+ <th data-sortable="true" data-field="ActifOn" data-filter-control="select">Effectif</th>
|
|
|
+ <th data-sortable="true" data-field="Femme" data-filter-control="select">Femme</th>
|
|
|
+ <th data-sortable="true" data-field="Homme" data-filter-control="select">Homme</th>
|
|
|
+ <th data-sortable="true" data-field="PourcentageFemme" data-formatter="formatPourcentageFemme" data-filter-control="select">% Femme</th>
|
|
|
+ <th data-sortable="true" data-field="PourcentageHomme" data-formatter="formatPourcentageHomme" data-filter-control="select">% Homme</th>
|
|
|
+ <th data-sortable="true" data-field="ContratOn" data-filter-control="select">Contrats actifs</th>
|
|
|
+ <th data-sortable="true" data-field="ContratOff" data-filter-control="select">Contrats suspendus</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ </table>
|
|
|
</div>
|
|
|
-
|
|
|
- <div class="col-md-5" style="margin-top: 30px;">
|
|
|
- <h6 class="bg-light p-2">Femme / Homme</h6>
|
|
|
- <?php
|
|
|
- $config = array(
|
|
|
- "id" => "statGeneralHommeFemme",
|
|
|
- "charts" => "doughnut",
|
|
|
- "label" => "Femmes/Hommes (général)",
|
|
|
- "data" => array(
|
|
|
- array("label" => "Femme", "nb" => $statGeneral["Femme"]),
|
|
|
- array("label" => "Homme", "nb" => $statGeneral["Homme"]))
|
|
|
- );
|
|
|
+</div>
|
|
|
|
|
|
- chart::printCanvas($config);
|
|
|
- ?>
|
|
|
- </div>
|
|
|
- <div class="col-md-5" style="margin-top: 30px;">
|
|
|
- <h6 class="bg-light p-2">Contrats actifs et non actifs</h6>
|
|
|
- <?php
|
|
|
- $config = array(
|
|
|
- "id" => "statGeneralContratActif",
|
|
|
- "charts" => "doughnut",
|
|
|
- "label" => "Contrats actifs (général)",
|
|
|
- "data" => array(
|
|
|
- array("label" => "Contrats actifs", "nb" => $statGeneral["ContratOn"]),
|
|
|
- array("label" => "Contrats en arrêt", "nb" => $statGeneral["ContratOff"]))
|
|
|
- );
|
|
|
+<script>
|
|
|
+ function formatPourcentageFemme(value, row) {
|
|
|
+ return row.PourcentageFemme + "%";
|
|
|
+ }
|
|
|
|
|
|
- chart::printCanvas($config);
|
|
|
- ?>
|
|
|
- </div>
|
|
|
-</div>
|
|
|
+ function formatPourcentageHomme(value, row) {
|
|
|
+ return row.PourcentageHomme + "%";
|
|
|
+ }
|
|
|
+</script>
|