Update backoffice

This commit is contained in:
Djery-Tom 2022-03-08 16:01:56 +01:00
parent 15b685e16a
commit e3c17d1a3f
3 changed files with 82 additions and 74 deletions

View File

@ -869,4 +869,5 @@ $lang['RENEWAL'] = "Insurance renewal";
$lang['expired_insurance'] = "Insurance expired"; $lang['expired_insurance'] = "Insurance expired";
$lang['family_coverage_sharing'] = "Family coverage pooling"; $lang['family_coverage_sharing'] = "Family coverage pooling";
$lang['max_insurance_coverage_amount'] = "Insurance coverage limit amount"; $lang['max_insurance_coverage_amount'] = "Insurance coverage limit amount";
$lang['service_providers_per_town'] = "Prestataires par ville";
?> ?>

View File

@ -880,4 +880,5 @@ $lang['RENEWAL'] = "Renouvellement de l'assurance";
$lang['expired_insurance'] = "Assurances arrivées à échéance"; $lang['expired_insurance'] = "Assurances arrivées à échéance";
$lang['family_coverage_sharing'] = "Mutualisation de la couverture familiale"; $lang['family_coverage_sharing'] = "Mutualisation de la couverture familiale";
$lang['max_insurance_coverage_amount'] = "Montant limite de couverture d'assurance"; $lang['max_insurance_coverage_amount'] = "Montant limite de couverture d'assurance";
$lang['service_providers_per_town'] = "Prestataires par ville";
?> ?>

View File

@ -131,7 +131,7 @@ if($users_geolocated_query!=false){
<div class="inner"> <div class="inner">
<h3><?php echo $count_geo;?></h3> <h3><?php echo $count_geo;?></h3>
<p><?php echo $this->lang->line('Utilisateurs géolocalisés'); ?></p> <p><?php echo $this->lang->line($hasWallet->first_row()->type == 'ilink_sante' ? 'service_providers' : 'Utilisateurs géolocalisés'); ?></p>
</div> </div>
<div class="icon"> <div class="icon">
<i class="ion ion-location"></i> <i class="ion ion-location"></i>
@ -154,6 +154,7 @@ if($users_geolocated_query!=false){
<a href="<?php echo base_url('Hyperviseur_dash/getAllSupervisor') ?>" class="small-box-footer"><?php echo $this->lang->line("Plus d'informations"); ?> <i class="fa fa-arrow-circle-right"></i></a> <a href="<?php echo base_url('Hyperviseur_dash/getAllSupervisor') ?>" class="small-box-footer"><?php echo $this->lang->line("Plus d'informations"); ?> <i class="fa fa-arrow-circle-right"></i></a>
</div> </div>
</div> </div>
<?php if($hasWallet->first_row()->type != 'ilink_sante') { ?>
<div class="col-lg-2 col-md-4 col-xs-6"> <div class="col-lg-2 col-md-4 col-xs-6">
<!-- small box --> <!-- small box -->
<div class="small-box bg-green"> <div class="small-box bg-green">
@ -210,6 +211,7 @@ if($users_geolocated_query!=false){
<a href="#" data-toggle="modal" data-target="#modal-default2" class="small-box-footer"><?php echo $this->lang->line("Plus d'informations"); ?> <i class="fa fa-arrow-circle-right"></i></a> <a href="#" data-toggle="modal" data-target="#modal-default2" class="small-box-footer"><?php echo $this->lang->line("Plus d'informations"); ?> <i class="fa fa-arrow-circle-right"></i></a>
</div> </div>
</div> </div>
<?php } ?>
<!-- /.col --> <!-- /.col -->
</div> </div>
<div class="row"> <div class="row">
@ -230,6 +232,7 @@ if($users_geolocated_query!=false){
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<?php if($hasWallet->first_row()->type != 'ilink_sante') { ?>
<div class="col-xs-6"> <div class="col-xs-6">
<!-- DONUT CHART --> <!-- DONUT CHART -->
<div class="box box-danger"> <div class="box box-danger">
@ -243,11 +246,12 @@ if($users_geolocated_query!=false){
</div> </div>
<!-- /.box --> <!-- /.box -->
</div> </div>
<?php } ?>
<div class="col-xs-6"> <div class="col-xs-6">
<!-- DONUT CHART --> <!-- DONUT CHART -->
<div class="box box-danger"> <div class="box box-danger">
<div class="box-header with-border"> <div class="box-header with-border">
<h3 class="box-title"><?php echo $this->lang->line("Utilisateurs géolocalisés par ville"); ?></h3> <h3 class="box-title"><?php echo $this->lang->line( $hasWallet->first_row()->type == 'ilink_sante' ? 'service_providers_per_town' : "Utilisateurs géolocalisés par ville"); ?></h3>
</div> </div>
<div class="box-body" id="chart"> <div class="box-body" id="chart">
<canvas id="pieChart" style="height:250px"></canvas> <canvas id="pieChart" style="height:250px"></canvas>
@ -337,6 +341,7 @@ if($users_geolocated_query!=false){
Pie = JSON.parse(Pie); Pie = JSON.parse(Pie);
} }
<?php if($hasWallet->first_row()->type != 'ilink_sante') { ?>
var Pie2 = '<?php echo json_encode($pieChart2) ?>'; var Pie2 = '<?php echo json_encode($pieChart2) ?>';
if(Pie2==='[]') { if(Pie2==='[]') {
var select = document.getElementById('chart2'); var select = document.getElementById('chart2');
@ -345,6 +350,7 @@ if($users_geolocated_query!=false){
}else{ }else{
Pie2 = JSON.parse(Pie2); Pie2 = JSON.parse(Pie2);
} }
<?php } ?>