From e3c17d1a3f7eece413d242fb9cb74ad603848fbe Mon Sep 17 00:00:00 2001 From: Djery-Tom Date: Tue, 8 Mar 2022 16:01:56 +0100 Subject: [PATCH] Update backoffice --- application/language/english/message_lang.php | 1 + application/language/french/message_lang.php | 1 + application/views/hyperviseur_dash.php | 154 +++++++++--------- 3 files changed, 82 insertions(+), 74 deletions(-) diff --git a/application/language/english/message_lang.php b/application/language/english/message_lang.php index c46545cf..550078ad 100755 --- a/application/language/english/message_lang.php +++ b/application/language/english/message_lang.php @@ -869,4 +869,5 @@ $lang['RENEWAL'] = "Insurance renewal"; $lang['expired_insurance'] = "Insurance expired"; $lang['family_coverage_sharing'] = "Family coverage pooling"; $lang['max_insurance_coverage_amount'] = "Insurance coverage limit amount"; +$lang['service_providers_per_town'] = "Prestataires par ville"; ?> diff --git a/application/language/french/message_lang.php b/application/language/french/message_lang.php index 403b9edf..51d89afc 100755 --- a/application/language/french/message_lang.php +++ b/application/language/french/message_lang.php @@ -880,4 +880,5 @@ $lang['RENEWAL'] = "Renouvellement de l'assurance"; $lang['expired_insurance'] = "Assurances arrivées à échéance"; $lang['family_coverage_sharing'] = "Mutualisation de la couverture familiale"; $lang['max_insurance_coverage_amount'] = "Montant limite de couverture d'assurance"; +$lang['service_providers_per_town'] = "Prestataires par ville"; ?> diff --git a/application/views/hyperviseur_dash.php b/application/views/hyperviseur_dash.php index 953d81ce..144dfb55 100755 --- a/application/views/hyperviseur_dash.php +++ b/application/views/hyperviseur_dash.php @@ -131,7 +131,7 @@ if($users_geolocated_query!=false){

-

lang->line('Utilisateurs géolocalisés'); ?>

+

lang->line($hasWallet->first_row()->type == 'ilink_sante' ? 'service_providers' : 'Utilisateurs géolocalisés'); ?>

@@ -154,62 +154,64 @@ if($users_geolocated_query!=false){ lang->line("Plus d'informations"); ?>
-
- -
-
-

+ first_row()->type != 'ilink_sante') { ?> +
+ +
+
+

-

lang->line('Demandes de crédits'); ?>

-
-
- -
- lang->line("Plus d'informations"); ?> -
-
-
- -
-
-

- -

lang->line("accepted_demands"); ?>

-
-
- -
- lang->line("Plus d'informations"); ?> -
-
-
- -
-
-

- -

lang->line("Demandes non traitées"); ?>

-
-
- -
- lang->line("Plus d'informations"); ?> -
-
-
- -
-
-

- -

lang->line("canceled_demands"); ?>

+

lang->line('Demandes de crédits'); ?>

+
+
+ +
+ lang->line("Plus d'informations"); ?>
-
- -
- lang->line("Plus d'informations"); ?>
-
+
+ +
+
+

+ +

lang->line("accepted_demands"); ?>

+
+
+ +
+ lang->line("Plus d'informations"); ?> +
+
+
+ +
+
+

+ +

lang->line("Demandes non traitées"); ?>

+
+
+ +
+ lang->line("Plus d'informations"); ?> +
+
+
+ +
+
+

+ +

lang->line("canceled_demands"); ?>

+
+
+ +
+ lang->line("Plus d'informations"); ?> +
+
+
@@ -230,24 +232,26 @@ if($users_geolocated_query!=false){
-
- -
-
-

lang->line("Demandes de crédits par superviseur"); ?>

+ first_row()->type != 'ilink_sante') { ?> +
+ +
+
+

lang->line("Demandes de crédits par superviseur"); ?>

+
+
+ +
+
-
- -
- +
- -
+
-

lang->line("Utilisateurs géolocalisés par ville"); ?>

+

lang->line( $hasWallet->first_row()->type == 'ilink_sante' ? 'service_providers_per_town' : "Utilisateurs géolocalisés par ville"); ?>

@@ -337,14 +341,16 @@ if($users_geolocated_query!=false){ Pie = JSON.parse(Pie); } - var Pie2 = ''; - if(Pie2==='[]') { - var select = document.getElementById('chart2'); - $(select.children).hide(); - $(select).append("

Aucune demande de crédit

"); - }else{ - Pie2 = JSON.parse(Pie2); - } + first_row()->type != 'ilink_sante') { ?> + var Pie2 = ''; + if(Pie2==='[]') { + var select = document.getElementById('chart2'); + $(select.children).hide(); + $(select).append("

Aucune demande de crédit

"); + }else{ + Pie2 = JSON.parse(Pie2); + } +