diff --git a/Bootstrap_new/css/style_office.css b/Bootstrap_new/css/style_office.css
index 235ab22..4eea688 100644
--- a/Bootstrap_new/css/style_office.css
+++ b/Bootstrap_new/css/style_office.css
@@ -955,6 +955,7 @@ li i { margin-right:10px; color:#007bff; }
}
/* Global Container */
+#div_accueil,
#div_police,
#div_texte_cp,
#div_emission,
@@ -965,6 +966,7 @@ li i { margin-right:10px; color:#007bff; }
}
/* Card Styling */
+#div_accueil .card,
#div_police .card,
#div_texte_cp .card,
#div_emission .card,
diff --git a/Controleur/ControleurAccueil.php b/Controleur/ControleurAccueil.php
index 4414038..a9b63ca 100755
--- a/Controleur/ControleurAccueil.php
+++ b/Controleur/ControleurAccueil.php
@@ -17,70 +17,11 @@ class ControleurAccueil extends Controleur {
// KPIs
$kpis = $this->synthese->getKpis();
- // Activité récente
- $activities = [
- ["icon" => "fas fa-user-plus", "label" => "Nouveaux salariés ajoutés", "time" => "Il y a 1 heure"],
- ["icon" => "fas fa-sign-out-alt", "label" => "5 départs validés", "time" => "Il y a 2 heures"],
- ["icon" => "fas fa-pause-circle", "label" => "3 contrats suspendus", "time" => "Il y a 3 jours"],
- ["icon" => "fas fa-file-invoice", "label" => "Facture de février réglée", "time" => "Il y a 3 jours"]
- ];
-
- // Alertes
- $alerts = [
- "Plafond de remboursement atteint",
- "Paiement en retard de 4 520 €",
- "Documents manquants pour 2 dossiers"
- ];
-
- // Répartition sinistres
- $claims = $this->synthese->getClaims();
-
- $tabclaims = [
- 'claimsLabels' => array_column($claims, 'claimsLabels'),
- 'claimsValues' => array_column($claims, 'claimsValues')
- ];
-
- $dataTabClaims = json_encode($tabclaims, JSON_NUMERIC_CHECK);
-
-
- // Evolution des sinistres par mois
- $claimsMonth = $this->synthese->getClaimsMonth();
- $claimsSingleMonth = $this->synthese->getClaimsSingleMonth();
-
- $tabclaimsMonth = [
- 'months' => array_column($claimsMonth, 'months'),
- 'monthlyClaims' => array_column($claimsMonth, 'monthlyClaims'),
- 'singleClaims' => array_column($claimsSingleMonth, 'singleClaims')
- ];
-
- $dataTabClaimsMonth = json_encode($tabclaimsMonth, JSON_NUMERIC_CHECK);
-
- // SINISTRALITÉ
- $claimsLossRatio = $this->synthese->getClaimsLossRatio();
-
- $tabLossRatio = [
- 'lossRatioLabels' => array_column($claimsLossRatio, 'months'),
- 'lossRatioValues' => array_column($claimsLossRatio, 'ratio')
- ];
-
- $dataLossRatio = json_encode($tabLossRatio, JSON_NUMERIC_CHECK);
-
- //$lossRatioLabels = ["Jan", "Fév", "Mar", "Avr", "Mai", "Juin"];
- //$lossRatioValues = [62, 68, 71, 65, 73, 69]; // %
-
- // Polices
- $polices = $this->synthese->getPolices();
-
$this->genererVue(
array
(
'kpis' => $kpis,
'polices' => $polices,
- 'activities' => $activities,
- 'alerts' => $alerts,
- 'dataTabClaims' => $dataTabClaims,
- 'dataTabClaimsMonth' => $dataTabClaimsMonth,
- 'dataLossRatio' => $dataLossRatio
)
);
}
diff --git a/Controleur/ControleurAjaxlistepolicesclient.php b/Controleur/ControleurAjaxlistepolicesclient.php
new file mode 100644
index 0000000..1b2507a
--- /dev/null
+++ b/Controleur/ControleurAjaxlistepolicesclient.php
@@ -0,0 +1,20 @@
+synthese = new Synthese();
+ }
+
+ public function index()
+ {
+ // Polices
+ $polices = $this->synthese->getPolices();
+
+ $this->genererVueAjax(array('polices' => $polices));
+ }
+}
\ No newline at end of file
diff --git a/Js/fonctions.js b/Js/fonctions.js
index 060d439..5d206ea 100755
--- a/Js/fonctions.js
+++ b/Js/fonctions.js
@@ -1062,3 +1062,24 @@ function addChartToPdf(pdf, canvasId, title, startY) {
pdf.addImage(imgData, "PNG", 10, startY + 5, 180, 60);
}
}
+
+
+function charger_contrats(){
+ showLoader("#div_liste_contrats", { size: 3 });
+
+ $.ajax({
+ url: $("#racineWeb").val()+"Ajaxlistepolicesclient/",
+ type : 'post',
+ // data: donnees,
+ error: function(errorData) {
+ },
+ success: function(data) {
+ $("#div_liste_contrats").html(data);
+ }
+ });
+}
+
+function reset_contrats()
+{
+ $("#div_liste_contrats").empty();
+}
\ No newline at end of file
diff --git a/Vue/Accueil/index.php b/Vue/Accueil/index.php
index ad1578c..e46ca80 100644
--- a/Vue/Accueil/index.php
+++ b/Vue/Accueil/index.php
@@ -1,13 +1,17 @@
-
-
= _('Tableau de bord') ?>
+
+
+
+
= _('Tableau de bord') ?>
+
= _('Total Contrats')?>
= number_format($kpis["nbPolice"]) ?>
+
= _('Total Assurés')?>
@@ -22,6 +26,7 @@
+
= _('Primes')?>
@@ -37,6 +42,7 @@
+
= _('Sinistres')?>
@@ -58,105 +64,48 @@
+
@@ -170,36 +119,24 @@
\ No newline at end of file
diff --git a/Vue/Ajaxlistepolicesclient/index.php b/Vue/Ajaxlistepolicesclient/index.php
new file mode 100644
index 0000000..81fa224
--- /dev/null
+++ b/Vue/Ajaxlistepolicesclient/index.php
@@ -0,0 +1,62 @@
+
+
diff --git a/Vue/gabarit.php b/Vue/gabarit.php
index 84b5b6e..8f089e5 100755
--- a/Vue/gabarit.php
+++ b/Vue/gabarit.php
@@ -119,7 +119,7 @@ $activeChildId = $menuData['child'];
-
+
-
+