Add open wallet at mobile login param in networks edit

This commit is contained in:
Djery-Tom 2022-05-16 13:21:44 +01:00
parent c2e8a5d957
commit 2090ba607c
6 changed files with 225 additions and 176 deletions

View File

@ -306,10 +306,12 @@ class Gestion extends CI_Controller
if (isset($_POST)) { if (isset($_POST)) {
$old_network = $this->input->post('old_name'); $old_network = $this->input->post('old_name');
$new_network = $this->input->post('new_network'); $new_network = $this->input->post('new_network');
$open_wallet_at_mobile_login = $this->input->post('open_wallet_at_mobile_login');
$id_network = $this->input->post('id_network');
$res = $this->user_model->updateNetwork($old_network, $new_network); $res = $this->user_model->updateNetwork($id_network ,$old_network, $new_network , $open_wallet_at_mobile_login);
if ($res == true) { if ($res) {
echo json_encode("completed"); echo json_encode("completed");
} else { } else {
echo json_encode("error"); echo json_encode("error");

View File

@ -945,4 +945,5 @@ $lang['UNPAID'] = "Unpaid";
$lang['UNDER_RENEW'] = "Under renew"; $lang['UNDER_RENEW'] = "Under renew";
$lang['STOPPED'] = "Stopped"; $lang['STOPPED'] = "Stopped";
$lang['profile_image'] = "Profile image"; $lang['profile_image'] = "Profile image";
$lang['open_wallet_at_mobile_login'] = "Open wallet at mobile login"
?> ?>

View File

@ -954,4 +954,5 @@ $lang['UNPAID'] = "Non Payée";
$lang['UNDER_RENEW'] = "En cours de renouvellement"; $lang['UNDER_RENEW'] = "En cours de renouvellement";
$lang['STOPPED'] = "Arretée"; $lang['STOPPED'] = "Arretée";
$lang['profile_image'] = "Photo de profil"; $lang['profile_image'] = "Photo de profil";
$lang['open_wallet_at_mobile_login'] = "Ouverture du wallet à la connexion mobile"
?> ?>

View File

@ -1079,7 +1079,7 @@ class User_model extends CI_Model
} }
public function getAllAssignedNetworks(){ public function getAllAssignedNetworks(){
$query = $this->db->query("SELECT networks.name AS network,networks.status AS status,networks.id,countries.name AS country,networks.country_id FROM `networks` INNER JOIN countries ON networks.country_id=countries.id"); $query = $this->db->query("SELECT networks.name AS network,networks.status AS status,networks.id,countries.name AS country,networks.country_id , networks.open_wallet_at_mobile_login FROM `networks` INNER JOIN countries ON networks.country_id=countries.id");
return $query->num_rows() > 0 ? $query : false; return $query->num_rows() > 0 ? $query : false;
} }
@ -1097,9 +1097,11 @@ class User_model extends CI_Model
} }
} }
public function updateNetwork($old_network,$new_network){ public function updateNetwork($id_network,$old_network,$new_network, $open_wallet_at_mobile_login){
$query = $this->db->query("UPDATE networks SET networks.name='".$new_network."' WHERE networks.name ='".$old_network."'"); $this->db->query("UPDATE networks SET networks.name='".$new_network."' WHERE networks.name ='".$old_network."'");
return $query; // var_dump([$id_network,(int)$open_wallet_at_mobile_login]);
$this->db->where('id', $id_network);
return $this->db->update('networks',['open_wallet_at_mobile_login' => $open_wallet_at_mobile_login]);
} }
public function getAllAdmin(){ public function getAllAdmin(){
@ -1619,7 +1621,7 @@ class User_model extends CI_Model
return $query->row()->valeur; return $query->row()->valeur;
}else{ }else{
return false; return false;
} }
} }
public function getNameCountry($id){ public function getNameCountry($id){
$query = $this->db->query("SELECT name FROM countries WHERE id=".$id); $query = $this->db->query("SELECT name FROM countries WHERE id=".$id);
@ -1643,16 +1645,16 @@ class User_model extends CI_Model
return true; return true;
}else{ }else{
return false; return false;
} }
} }
public function create_town($country_id,$name){ public function create_town($country_id,$name){
$query = $this->db->query("INSERT INTO towns (`country_id`, `name`, `status`) VALUES (".$country_id.", '".$name."', 1)"); $query = $this->db->query("INSERT INTO towns (`country_id`, `name`, `status`) VALUES (".$country_id.", '".$name."', 1)");
return $query; return $query;
} }
public function update_town_agent($lat,$lng,$town_id){ public function update_town_agent($lat,$lng,$town_id){
$query = $this->db->query("UPDATE agents SET `town_id` = ".$town_id." WHERE `latitude`= ".$lat." AND `longitude`=".$lng); $query = $this->db->query("UPDATE agents SET `town_id` = ".$town_id." WHERE `latitude`= ".$lat." AND `longitude`=".$lng);
return $query; return $query;
} }
//wallet //wallet
@ -1692,7 +1694,7 @@ class User_model extends CI_Model
$query = $this->db->query("SELECT * $query = $this->db->query("SELECT *
FROM infos_transaction FROM infos_transaction
WHERE `network_id`=".$id_network.$chain); WHERE `network_id`=".$id_network.$chain);
return $query->num_rows() > 0 ? $query : false; return $query->num_rows() > 0 ? $query : false;
} }
public function getDeletedTransactions($debut , $fin , $id_network){ public function getDeletedTransactions($debut , $fin , $id_network){
@ -1715,7 +1717,7 @@ class User_model extends CI_Model
$query = $this->db->query("SELECT * $query = $this->db->query("SELECT *
FROM wallet_agent FROM wallet_agent
WHERE `network_id`=".$id_network); WHERE `network_id`=".$id_network);
return $query->num_rows() > 0 ? $query : false; return $query->num_rows() > 0 ? $query : false;
} }
/** /**

View File

@ -95,7 +95,8 @@
</label></td>"; </label></td>";
} }
echo "<td id='edition' align='center'> echo "<td id='edition' align='center'>
<button data-toggle='modal' data-id-network='$row->id' data-name-network='$row->network' data-country='$row->country' data-id-country='$row->country_id' class='open-modal modif btn btn-success' data-target='#editModal'><i class='fa fa-edit'></i></button> <button data-toggle='modal' data-id-network='$row->id' data-name-network='$row->network' data-country='$row->country' data-id-country='$row->country_id'
data-open_wallet_at_mobile_login='$row->open_wallet_at_mobile_login' class='open-modal modif btn btn-success' data-target='#editModal'><i class='fa fa-edit'></i></button>
</td> </td>
<td id='suppression' align='center'> <td id='suppression' align='center'>
<button data-toggle='modal' data-id-network='$row->id' data-id-country='$row->country_id' class=' btn btn-danger' data-target='#'><i class='fa fa-trash'></i></button> <button data-toggle='modal' data-id-network='$row->id' data-id-country='$row->country_id' class=' btn btn-danger' data-target='#'><i class='fa fa-trash'></i></button>
@ -208,6 +209,10 @@
<label for="modal-reseau"><?= $this->lang->line('Reseau'); ?></label> <label for="modal-reseau"><?= $this->lang->line('Reseau'); ?></label>
<input type="text" class="form-control input-lg" name="reseau" required id="modal-reseau"> <input type="text" class="form-control input-lg" name="reseau" required id="modal-reseau">
</div> </div>
<div class="form-group">
<input type="checkbox" name="open_wallet_at_mobile_login" id="modal-open_wallet_at_mobile_login">
<label for="modal-open_wallet_at_mobile_login"><?php echo $this->lang->line('open_wallet_at_mobile_login'); ?></label>
</div>
<div class="form-group"> <div class="form-group">
<input id="btn-add" type="submit" value="Confirmer" class="btn btn-primary"> <input id="btn-add" type="submit" value="Confirmer" class="btn btn-primary">
<button type="button" class="btn btn-default pull-right" data-dismiss="modal"><?= $this->lang->line('Fermer'); ?></button> <button type="button" class="btn btn-default pull-right" data-dismiss="modal"><?= $this->lang->line('Fermer'); ?></button>
@ -315,9 +320,11 @@
name_network = $(this).data('name-network'); name_network = $(this).data('name-network');
id_country = $(this).data('id-country'); id_country = $(this).data('id-country');
country = $(this).data('country'); country = $(this).data('country');
const open_wallet_at_mobile_login = $(this).data('open_wallet_at_mobile_login');
$(".modal-body #modal-pays").val(country); $(".modal-body #modal-pays").val(country);
$(".modal-body #modal-reseau").val( name_network ); $(".modal-body #modal-reseau").val( name_network );
$(".modal-body #modal-open_wallet_at_mobile_login").prop('checked', open_wallet_at_mobile_login);
}); });
@ -371,12 +378,12 @@
}); });
$("#update-form").submit(function(){ $("#update-form").submit(function(){
var up_network = $("#update-form #modal-reseau").val(); let up_network = $("#update-form #modal-reseau").val();
let open_wallet_at_mobile_login = $("#update-form #modal-open_wallet_at_mobile_login").is(':checked') ? 1 : 0 ;
$.ajax({ $.ajax({
url:'<?= base_url('Gestion/update_network')?>', url:'<?= base_url('Gestion/update_network')?>',
type: 'post', type: 'post',
data: {new_network: up_network,old_name:name_network}, data: {new_network: up_network,old_name:name_network , open_wallet_at_mobile_login : open_wallet_at_mobile_login, id_network : id_network},
dataType: 'json', dataType: 'json',
success: function(data){ success: function(data){
if(data==='completed'){ if(data==='completed'){

View File

@ -1,134 +1,146 @@
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?> <?php defined('BASEPATH') or exit('No direct script access allowed'); ?>
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>iLink | Hyperviseur</title> <title>iLink | Hyperviseur</title>
<!-- Tell the browser to be responsive to screen width --> <!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"> <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!-- Bootstrap 3.3.7 --> <!-- Bootstrap 3.3.7 -->
<link rel="stylesheet" href="<?= base_url('bower_components/bootstrap/dist/css/bootstrap.min.css') ?>"> <link rel="stylesheet" href="<?= base_url('bower_components/bootstrap/dist/css/bootstrap.min.css') ?>">
<!-- Font Awesome --> <!-- Font Awesome -->
<link rel="stylesheet" href="<?= base_url('bower_components/font-awesome/css/font-awesome.min.css') ?>"> <link rel="stylesheet" href="<?= base_url('bower_components/font-awesome/css/font-awesome.min.css') ?>">
<!-- Ionicons --> <!-- Ionicons -->
<link rel="stylesheet" href="<?= base_url('bower_components/Ionicons/css/ionicons.min.css') ?>"> <link rel="stylesheet" href="<?= base_url('bower_components/Ionicons/css/ionicons.min.css') ?>">
<!-- Theme style --> <!-- Theme style -->
<link rel="stylesheet" href="<?= base_url('dist/css/AdminLTE.css') ?>"> <link rel="stylesheet" href="<?= base_url('dist/css/AdminLTE.css') ?>">
<!-- AdminLTE Skins. Choose a skin from the css/skins <!-- AdminLTE Skins. Choose a skin from the css/skins
folder instead of downloading all of them to reduce the load. --> folder instead of downloading all of them to reduce the load. -->
<link rel="stylesheet" href="<?= base_url('dist/css/skins/_all-skins.min.css') ?>"> <link rel="stylesheet" href="<?= base_url('dist/css/skins/_all-skins.min.css') ?>">
<link rel="shortcut icon" href="<?= base_url('favicon.ico') ?>" type="image/x-icon"> <link rel="shortcut icon" href="<?= base_url('favicon.ico') ?>" type="image/x-icon">
<link rel="icon" href="<?= base_url('favicon.ico') ?>" type="image/x-icon"> <link rel="icon" href="<?= base_url('favicon.ico') ?>" type="image/x-icon">
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> <style media="screen">
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> .img-dash {
<![endif]--> height: 50px !important;
float: left !important;
padding: 1% !important;
}
<style media="screen"> .table_modified {
.img-dash { font-size: 11px !important;
height: 50px !important; }
float: left !important;
padding: 1% !important;
}
.table_modified { </style>
font-size: 11px !important;
}
</style>
</head> </head>
<body class="hold-transition skin-blue sidebar-mini"> <body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper"> <div class="wrapper">
<header class="main-header"> <header class="main-header">
<!-- Logo --> <!-- Logo -->
<a href="#" class="logo"> <a href="#" class="logo">
<!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini"><b>iLink</b></span> <?php
<!-- logo for regular state and mobile devices --> if ($this->session->userdata('network_id') == '271') {
<span class="logo-lg">
<?php
if($this->session->userdata('network_id') == '271') {
?> ?>
<!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini"><b>iLink</b></span>
<!-- logo for regular state and mobile devices -->
<span class="logo-lg">
<img class="img img-responsive img-dash" src="<?= base_url('images/miang-logo.png') ?>"> <img class="img img-responsive img-dash" src="<?= base_url('images/miang-logo.png') ?>">
<b>MIANG</b> <b>MIANG</b>
<?php } else { ?> </span>
<?php } else { ?>
<!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini"><b>iLink</b></span>
<!-- logo for regular state and mobile devices -->
<span class="logo-lg">
<img class="img img-responsive img-dash" src="<?= base_url('images/logo.png') ?>"> <img class="img img-responsive img-dash" src="<?= base_url('images/logo.png') ?>">
<b>iLink</b> World <b>iLink</b> World
<?php } ?> </span>
</span> <?php } ?>
</a>
<!-- Header Navbar: style can be found in header.less -->
<nav class="navbar navbar-static-top">
<!-- Sidebar toggle button-->
<a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
<span class="sr-only">Toggle navigation</span>
</a>
<div class="navbar-custom-menu">
<ul class="nav navbar-nav">
<!-- User Account: style can be found in dropdown.less --> </a>
<li class="dropdown user user-menu"> <!-- Header Navbar: style can be found in header.less -->
<a href="#" class="dropdown-toggle" data-toggle="dropdown"> <nav class="navbar navbar-static-top">
<?= $this->lang->line('Bienvenue'); ?> <span class="hidden-xs"><b><?= $this->session->userdata('firstname').' '.$this->session->userdata('lastname');?></b></span> <!-- Sidebar toggle button-->
</a> <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
<ul class="dropdown-menu"> <span class="sr-only">Toggle navigation</span>
<!-- User image --> </a>
<li class="user-header"> <div class="navbar-custom-menu">
<ul class="nav navbar-nav">
<p> <!-- User Account: style can be found in dropdown.less -->
<?= $this->session->userdata('network').' - '.$this->session->userdata('member_code');?> <li class="dropdown user user-menu">
<small><?= $this->session->userdata('email');?></small> <a href="#" class="dropdown-toggle" data-toggle="dropdown">
</p> <?= $this->lang->line('Bienvenue'); ?> <span
</li> class="hidden-xs"><b><?= $this->session->userdata('firstname') . ' ' . $this->session->userdata('lastname'); ?></b></span>
</a>
<ul class="dropdown-menu">
<!-- User image -->
<li class="user-header">
<li class="user-body"> <p>
<div class="row"> <?= $this->session->userdata('network') . ' - ' . $this->session->userdata('member_code'); ?>
<div class="col-xs-6 text-center"> <small><?= $this->session->userdata('email'); ?></small>
<?= $this->session->userdata('current_pays');?> </p>
</div> </li>
<div class="col-xs-6 text-center">
<?= $this->session->userdata('phone');?>
</div>
</div>
<!-- /.row -->
</li>
<li class="user-footer">
<div class="pull-right"> <li class="user-body">
<a href="<?= base_url('Users/logout') ?>" class="btn btn-default btn-flat"><?= $this->lang->line('Déconnexion'); ?></a> <div class="row">
</div> <div class="col-xs-6 text-center">
</li> <?= $this->session->userdata('current_pays'); ?>
</ul> </div>
</li> <div class="col-xs-6 text-center">
<?= $this->session->userdata('phone'); ?>
</div>
</div>
<!-- /.row -->
</li>
<li class="user-footer">
</ul> <div class="pull-right">
</div> <a href="<?= base_url('Users/logout') ?>"
</nav> class="btn btn-default btn-flat"><?= $this->lang->line('Déconnexion'); ?></a>
</header> </div>
<!-- Left side column. contains the logo and sidebar --> </li>
<aside class="main-sidebar"> </ul>
<!-- sidebar: style can be found in sidebar.less --> </li>
<section class="sidebar">
<!-- sidebar menu: : style can be found in sidebar.less -->
<ul class="sidebar-menu" data-widget="tree">
<li class="<?php if($active=="dash"){echo "active ";} ?>"> </ul>
</div>
</nav>
</header>
<!-- Left side column. contains the logo and sidebar -->
<aside class="main-sidebar">
<!-- sidebar: style can be found in sidebar.less -->
<section class="sidebar">
<!-- sidebar menu: : style can be found in sidebar.less -->
<ul class="sidebar-menu" data-widget="tree">
<li class="<?php if ($active == "dash") {
echo "active ";
} ?>">
<a href="<?= base_url('Hyperviseur_dash') ?>"> <a href="<?= base_url('Hyperviseur_dash') ?>">
<i class="fa fa-dashboard"></i> <span><?= $this->lang->line('Tableau de bord'); ?></span> <i class="fa fa-dashboard"></i> <span><?= $this->lang->line('Tableau de bord'); ?></span>
</a> </a>
</li> </li>
<li class="<?php if($active=="geolocated"){echo "active ";} ?>"> <li class="<?php if ($active == "geolocated") {
echo "active ";
} ?>">
<a href="#" data-toggle="modal" data-target="#modal-default"> <a href="#" data-toggle="modal" data-target="#modal-default">
<i class="fa fa-users"></i> <i class="fa fa-users"></i>
<span><?= $this->lang->line($hasWallet->first_row()->type == 'ilink_sante' ? 'service_providers' : 'Utilisateurs géolocalisés' ); ?></span> <span><?= $this->lang->line($hasWallet->first_row()->type == 'ilink_sante' ? 'service_providers' : 'Utilisateurs géolocalisés'); ?></span>
</a> </a>
</li> </li>
@ -140,7 +152,7 @@
</a> </a>
</li> </li>
<?php if($hasWallet->first_row()->type != 'ilink_sante') { ?> <?php if ($hasWallet->first_row()->type != 'ilink_sante') { ?>
<li class="<?= "treeview " . ((strpos($active, "demandes_credits") !== false) ? "active menu-open" : "") ?>" <li class="<?= "treeview " . ((strpos($active, "demandes_credits") !== false) ? "active menu-open" : "") ?>"
style="height: auto;"> style="height: auto;">
<a href="#"> <a href="#">
@ -156,7 +168,8 @@
echo "active "; echo "active ";
} ?>"> } ?>">
<a href="<?= base_url('Hyperviseur_dash/getDemandes') ?>"> <a href="<?= base_url('Hyperviseur_dash/getDemandes') ?>">
<i class="fa fa-users"></i> <span><?= $this->lang->line('Demandes de crédits'); ?></span> <i class="fa fa-users"></i>
<span><?= $this->lang->line('Demandes de crédits'); ?></span>
</a> </a>
</li> </li>
@ -178,7 +191,7 @@
</a> </a>
</li> </li>
<?php } ?> <?php } ?>
<?php if ($hasWallet) {?> <?php if ($hasWallet) { ?>
<li class="<?= "treeview " . ((strpos($active, "wallet_") !== false) ? "active menu-open" : "") ?>" <li class="<?= "treeview " . ((strpos($active, "wallet_") !== false) ? "active menu-open" : "") ?>"
style="height: auto;"> style="height: auto;">
<a href="#"> <a href="#">
@ -199,49 +212,65 @@
</a> </a>
</li> </li>
<?php if ($hasWallet->first_row()->type == 'ilink_sante') { ?> <?php if ($hasWallet->first_row()->type == 'ilink_sante') { ?>
<li class="<?php if ($active == "wallet_drugs_and_devices") {echo "active";} ?>"> <li class="<?php if ($active == "wallet_drugs_and_devices") {
echo "active";
} ?>">
<a href="<?= base_url('Hyperviseur_dash/drugs_and_devices') ?>"> <a href="<?= base_url('Hyperviseur_dash/drugs_and_devices') ?>">
<i class="fa fa-ambulance"></i> <i class="fa fa-ambulance"></i>
<span><?= $this->lang->line('drugs_and_devices'); ?></span> <span><?= $this->lang->line('drugs_and_devices'); ?></span>
</a> </a>
</li> </li>
<li class="<?php if ($active == "wallet_validating_doctors") {echo "active";} ?>"> <li class="<?php if ($active == "wallet_validating_doctors") {
echo "active";
} ?>">
<a href="<?= base_url('Hyperviseur_dash/validating_agents/doctors') ?>"> <a href="<?= base_url('Hyperviseur_dash/validating_agents/doctors') ?>">
<i class="fa fa-stethoscope"></i> <i class="fa fa-stethoscope"></i>
<span><?= $this->lang->line('validating_doctors'); ?></span> <span><?= $this->lang->line('validating_doctors'); ?></span>
</a> </a>
</li> </li>
<li class="<?php if ($active == "wallet_validating_controllers") {echo "active";} ?>"> <li class="<?php if ($active == "wallet_validating_controllers") {
echo "active";
} ?>">
<a href="<?= base_url('Hyperviseur_dash/validating_agents/controllers') ?>"> <a href="<?= base_url('Hyperviseur_dash/validating_agents/controllers') ?>">
<i class="fa fa-stethoscope"></i> <i class="fa fa-stethoscope"></i>
<span><?= $this->lang->line('controllers_doctors'); ?></span> <span><?= $this->lang->line('controllers_doctors'); ?></span>
</a> </a>
</li> </li>
<li class="<?php if ($active == "wallet_validating_agents") {echo "active";} ?>"> <li class="<?php if ($active == "wallet_validating_agents") {
echo "active";
} ?>">
<a href="<?= base_url('Hyperviseur_dash/validating_agents') ?>"> <a href="<?= base_url('Hyperviseur_dash/validating_agents') ?>">
<i class="fa fa-user"></i> <i class="fa fa-user"></i>
<span><?= $this->lang->line('validating_agents'); ?></span> <span><?= $this->lang->line('validating_agents'); ?></span>
</a> </a>
</li> </li>
<li class="<?php if ($active == "wallet_insured") {echo "active";} ?>"> <li class="<?php if ($active == "wallet_insured") {
echo "active";
} ?>">
<a href="<?= base_url('Hyperviseur_dash/wallet?history=insurance-insured') ?>"> <a href="<?= base_url('Hyperviseur_dash/wallet?history=insurance-insured') ?>">
<i class="fa fa-medkit"></i> <i class="fa fa-medkit"></i>
<span><?= $this->lang->line('insured'); ?></span> <span><?= $this->lang->line('insured'); ?></span>
</a> </a>
</li> </li>
<li class="<?php if ($active == "wallet_health_care_sheets") {echo "active";} ?>"> <li class="<?php if ($active == "wallet_health_care_sheets") {
echo "active";
} ?>">
<a href="<?= base_url('Hyperviseur_dash/wallet?history=insurance-health_care_sheets') ?>"> <a href="<?= base_url('Hyperviseur_dash/wallet?history=insurance-health_care_sheets') ?>">
<i class="fa fa-file-text"></i> <i class="fa fa-file-text"></i>
<span><?= $this->lang->line('health_care_sheets'); ?></span> <span><?= $this->lang->line('health_care_sheets'); ?></span>
</a> </a>
</li> </li>
<li class="<?php if ($active == "wallet_invoices") {echo "active";} ?>"> <li class="<?php if ($active == "wallet_invoices") {
echo "active";
} ?>">
<a href="<?= base_url('Hyperviseur_dash/wallet?history=insurance-invoices') ?>"> <a href="<?= base_url('Hyperviseur_dash/wallet?history=insurance-invoices') ?>">
<i class="fa fa-file-text"></i> <i class="fa fa-file-text"></i>
<span><?= $this->lang->line('invoices'); ?></span> <span><?= $this->lang->line('invoices'); ?></span>
</a> </a>
</li> </li>
<li class="<?php if ($active == "wallet_exclusions") {echo "active";} ?>"> <li class="<?php if ($active == "wallet_exclusions") {
echo "active";
} ?>">
<a href="<?= base_url('Hyperviseur_dash/exclusions') ?>"> <a href="<?= base_url('Hyperviseur_dash/exclusions') ?>">
<i class="fa fa-times"></i> <i class="fa fa-times"></i>
<span>Exclusions</span> <span>Exclusions</span>
@ -260,7 +289,7 @@
</li> </li>
<?php if (($hasWallet->first_row()->type == 'ilink') && ($hasWallet->first_row()->has_nano_credit)) { ?> <?php if (($hasWallet->first_row()->type == 'ilink') && ($hasWallet->first_row()->has_nano_credit)) { ?>
<li class="<?php if ($active == "nano_credit") { <li class="<?php if ($active == "nano_credit") {
echo "active"; echo "active";
} ?>"> } ?>">
@ -269,76 +298,83 @@
</a> </a>
</li> </li>
<li class="<?php if($active=="operators"){echo "active";} ?>"> <li class="<?php if ($active == "operators") {
echo "active";
} ?>">
<a href="<?= base_url('Hyperviseur_dash/operators') ?>"> <a href="<?= base_url('Hyperviseur_dash/operators') ?>">
<i class="fa fa-building"></i> <span><?= $this->lang->line('operators'); ?></span> <i class="fa fa-building"></i> <span><?= $this->lang->line('operators'); ?></span>
</a> </a>
</li> </li>
<?php }?> <?php } ?>
<?php } ?> <?php } ?>
<li class="<?php if($active=="recherche"){echo "active";} ?>"> <li class="<?php if ($active == "recherche") {
echo "active";
} ?>">
<a href="<?= base_url('Hyperviseur_dash/recherche') ?>"> <a href="<?= base_url('Hyperviseur_dash/recherche') ?>">
<i class="glyphicon glyphicon-search"></i> <span><?= $this->lang->line('Rechercher'); ?></span> <i class="glyphicon glyphicon-search"></i> <span><?= $this->lang->line('Rechercher'); ?></span>
</a> </a>
</li> </li>
<?php if (($hasWallet) && ($hasWallet->first_row()->type == 'ilink')){?> <?php if (($hasWallet) && ($hasWallet->first_row()->type == 'ilink')) { ?>
<li class="<?php if($active=="documentation"){echo "active";} ?>"> <li class="<?php if ($active == "documentation") {
echo "active";
} ?>">
<a href="<?= base_url('Hyperviseur_dash/documentation') ?>"> <a href="<?= base_url('Hyperviseur_dash/documentation') ?>">
<i class="fa fa-book"></i> <span>Documentation</span> <i class="fa fa-book"></i> <span>Documentation</span>
</a> </a>
</li> </li>
<?php } ?> <?php } ?>
</ul> </ul>
</section> </section>
<!-- /.sidebar --> <!-- /.sidebar -->
</aside> </aside>
<div class="modal fade" id="modal-default"> <div class="modal fade" id="modal-default">
<div class="modal-dialog"> <div class="modal-dialog">
<div class="modal-content"> <div class="modal-content">
<form action="<?= base_url('Hyperviseur_dash/getAllUser_g')?>" method="post"> <form action="<?= base_url('Hyperviseur_dash/getAllUser_g') ?>" method="post">
<div class="modal-header"> <div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"> <button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span> <span aria-hidden="true">&times;</span>
</button> </button>
<h4 class="modal-title"><?= $this->lang->line('Sélectionnez la ville'); ?></h4> <h4 class="modal-title"><?= $this->lang->line('Sélectionnez la ville'); ?></h4>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<div class="form-group"> <div class="form-group">
<?php <?php
$result=$villes; $result = $villes;
$numrows=$result->num_rows(); $numrows = $result->num_rows();
if ($numrows > 0) { ?> if ($numrows > 0) { ?>
<select class="form-control input-lg" name="ville" required> <select class="form-control input-lg" name="ville" required>
<?php foreach($result->result() as $row) { <?php foreach ($result->result() as $row) {
echo "<option value='$row->id'>".$row->ville."</option>"; echo "<option value='$row->id'>" . $row->ville . "</option>";
} ?> } ?>
</select> </select>
<?php }else{ <?php } else {
echo "Aucun utilisateur géolocalisé"; echo "Aucun utilisateur géolocalisé";
} }
?> ?>
</div> </div>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button type="button" class="btn btn-default pull-left" data-dismiss="modal"><?= $this->lang->line('Fermer'); ?></button> <button type="button" class="btn btn-default pull-left"
<button type="submit" class="btn btn-primary"><?= $this->lang->line('Continuer'); ?></button> data-dismiss="modal"><?= $this->lang->line('Fermer'); ?></button>
</div> <button type="submit" class="btn btn-primary"><?= $this->lang->line('Continuer'); ?></button>
</form> </div>
</div> </form>
</div> </div>
</div> </div>
</div>
<!-- /.modal --> <!-- /.modal -->
<script type="text/javascript" src="https://cdn.jsdelivr.net/jquery/latest/jquery.min.js"></script> <script type="text/javascript" src="https://cdn.jsdelivr.net/jquery/latest/jquery.min.js"></script>