Transform agent commission into levels (palier)
This commit is contained in:
parent
3dcf5be639
commit
0be0197b85
|
@ -405,9 +405,12 @@ class Admin_dash extends CI_Controller
|
|||
$this->load->view('config_wallet_ilink_hyp/user_wallet_wallet');
|
||||
break;
|
||||
case 'user_wallet_carte':
|
||||
$data['taux_u_w_cart'] = $taux->taux_com_user_wallet_carte;
|
||||
$data['taux_hyp_s_wallet_cart_ilink'] = $taux->taux_com_hyp_envoi_wallet_carte_ilink;
|
||||
$data['taux_bq_s_wallet_cart_ilink'] = $taux->taux_com_banque_envoi_wallet_carte_ilink;
|
||||
$data['plr_user_wallet_cart_national'] = $this->wallet_model->getPalierCommissionsWallet("user_wallet_cart_national", $data['idConfig']);
|
||||
$data['plr_hyp_user_wallet_cart_national'] = $this->wallet_model->getPalierCommissionsWallet("hyp_user_wallet_cart_national", $data['idConfig']);
|
||||
$data['plr_bank_user_wallet_cart_national'] = $this->wallet_model->getPalierCommissionsWallet("bank_user_wallet_cart_national", $data['idConfig']);
|
||||
$data['plr_user_wallet_cart_international'] = $this->wallet_model->getPalierCommissionsWallet("user_wallet_cart_international", $data['idConfig']);
|
||||
$data['plr_hyp_user_wallet_cart_international'] = $this->wallet_model->getPalierCommissionsWallet("hyp_user_wallet_cart_international", $data['idConfig']);
|
||||
$data['plr_bank_user_wallet_cart_international'] = $this->wallet_model->getPalierCommissionsWallet("bank_user_wallet_cart_international", $data['idConfig']);
|
||||
$this->load->view('header', $data);
|
||||
$this->load->view('config_wallet_ilink_hyp/user_wallet_carte');
|
||||
break;
|
||||
|
@ -418,42 +421,79 @@ class Admin_dash extends CI_Controller
|
|||
$this->load->view('config_wallet_ilink_hyp/user_wallet_cash');
|
||||
break;
|
||||
case 'user_carte_wallet':
|
||||
$data['taux_u_c_w'] = $taux->taux_com_user_carte_wallet;
|
||||
$data['taux_u_c_c'] = $taux->taux_com_user_carte_cash;
|
||||
$data['taux_hyp_r_cart_ilink'] = $taux->taux_com_hyp_retrait_carte_cash_ilink;
|
||||
$data['taux_bq_r_cart_ilink'] = $taux->taux_com_banque_retrait_carte_cash_ilink;
|
||||
$data['plr_user_cart_wallet_national'] = $this->wallet_model->getPalierCommissionsWallet("user_cart_wallet_national", $data['idConfig']);
|
||||
$data['plr_user_cart_wallet_international'] = $this->wallet_model->getPalierCommissionsWallet("user_cart_wallet_international", $data['idConfig']);
|
||||
|
||||
$data['plr_user_cart_cash_national'] = $this->wallet_model->getPalierCommissionsWallet("user_cart_cash_national", $data['idConfig']);
|
||||
$data['plr_user_cart_cash_international'] = $this->wallet_model->getPalierCommissionsWallet("user_cart_cash_international", $data['idConfig']);
|
||||
|
||||
$data['plr_hyp_user_cart_cash_national'] = $this->wallet_model->getPalierCommissionsWallet("hyp_user_cart_cash_national", $data['idConfig']);
|
||||
$data['plr_hyp_user_cart_cash_international'] = $this->wallet_model->getPalierCommissionsWallet("hyp_user_cart_cash_international", $data['idConfig']);
|
||||
|
||||
$data['plr_bank_user_cart_cash_national'] = $this->wallet_model->getPalierCommissionsWallet("bank_user_cart_cash_national", $data['idConfig']);
|
||||
$data['plr_bank_user_cart_cash_international'] = $this->wallet_model->getPalierCommissionsWallet("bank_user_cart_cash_international", $data['idConfig']);
|
||||
|
||||
$this->load->view('header', $data);
|
||||
$this->load->view('config_wallet_ilink_hyp/user_carte_wallet');
|
||||
break;
|
||||
case 'agent_remove_cash':
|
||||
$data['taux_ag_r_c'] = $taux->taux_com_ag_retrait_cash;
|
||||
$data['taux_sup_r_c'] = $taux->taux_com_sup_retrait_cash;
|
||||
$data['taux_hyp_r_c'] = $taux->taux_com_hyp_retrait_cash;
|
||||
$data['plr_agent_wallet_cash_national'] = $this->wallet_model->getPalierCommissionsWallet("agent_wallet_cash_national", $data['idConfig']);
|
||||
$data['plr_agent_wallet_cash_international'] = $this->wallet_model->getPalierCommissionsWallet("agent_wallet_cash_international", $data['idConfig']);
|
||||
|
||||
$data['plr_sup_wallet_cash_national'] = $this->wallet_model->getPalierCommissionsWallet("sup_wallet_cash_national", $data['idConfig']);
|
||||
$data['plr_sup_wallet_cash_international'] = $this->wallet_model->getPalierCommissionsWallet("sup_wallet_cash_international", $data['idConfig']);
|
||||
|
||||
$data['plr_hyp_wallet_cash_national'] = $this->wallet_model->getPalierCommissionsWallet("hyp_wallet_cash_national", $data['idConfig']);
|
||||
$data['plr_hyp_wallet_cash_international'] = $this->wallet_model->getPalierCommissionsWallet("hyp_wallet_cash_international", $data['idConfig']);
|
||||
|
||||
$this->load->view('header', $data);
|
||||
$this->load->view('config_wallet_ilink_hyp/agent_remove_cash');
|
||||
break;
|
||||
case 'agent_remove_carte_cash':
|
||||
$data['taux_ag_cart_c'] = $taux->taux_com_wallet_ag_carte_cash;
|
||||
$data['taux_ag_r_cart'] = $taux->taux_com_ag_retrait_carte_cash;
|
||||
$data['taux_sup_r_cart'] = $taux->taux_com_sup_retrait_carte_cash;
|
||||
$data['taux_hyp_r_cart'] = $taux->taux_com_hyp_retrait_carte_cash;
|
||||
$data['taux_bq_r_cart'] = $taux->taux_com_banque_retrait_carte_cash;
|
||||
$data['plr_customer_cart_cash_national'] = $this->wallet_model->getPalierCommissionsWallet("customer_cart_cash_national", $data['idConfig']);
|
||||
$data['plr_customer_cart_cash_international'] = $this->wallet_model->getPalierCommissionsWallet("customer_cart_cash_international", $data['idConfig']);
|
||||
|
||||
$data['plr_agent_cart_cash_national'] = $this->wallet_model->getPalierCommissionsWallet("agent_cart_cash_national", $data['idConfig']);
|
||||
$data['plr_agent_cart_cash_international'] = $this->wallet_model->getPalierCommissionsWallet("agent_cart_cash_international", $data['idConfig']);
|
||||
|
||||
$data['plr_sup_cart_cash_national'] = $this->wallet_model->getPalierCommissionsWallet("sup_cart_cash_national", $data['idConfig']);
|
||||
$data['plr_sup_cart_cash_international'] = $this->wallet_model->getPalierCommissionsWallet("sup_cart_cash_international", $data['idConfig']);
|
||||
|
||||
$data['plr_hyp_cart_cash_national'] = $this->wallet_model->getPalierCommissionsWallet("hyp_cart_cash_national", $data['idConfig']);
|
||||
$data['plr_hyp_cart_cash_international'] = $this->wallet_model->getPalierCommissionsWallet("hyp_cart_cash_international", $data['idConfig']);
|
||||
|
||||
$data['plr_bank_cart_cash_national'] = $this->wallet_model->getPalierCommissionsWallet("bank_cart_cash_national", $data['idConfig']);
|
||||
$data['plr_bank_cart_cash_international'] = $this->wallet_model->getPalierCommissionsWallet("bank_cart_cash_international", $data['idConfig']);
|
||||
|
||||
$this->load->view('header', $data);
|
||||
$this->load->view('config_wallet_ilink_hyp/agent_remove_carte_cash');
|
||||
break;
|
||||
case 'agent_send_cash_carte':
|
||||
$data['taux_ag_d_c_c'] = $taux->taux_com_wallet_ag_envoi_cash_carte;
|
||||
$data['taux_ag_d_c'] = $taux->taux_com_ag_depot_cash_carte;
|
||||
$data['taux_sup_d_c'] = $taux->taux_com_sup_depot_cash_carte;
|
||||
$data['taux_hyp_d_c'] = $taux->taux_com_hyp_depot_cash_carte;
|
||||
$data['taux_bq_d_c'] = $taux->taux_com_banque_depot_cash_carte;
|
||||
$data['plr_customer_cash_cart_national'] = $this->wallet_model->getPalierCommissionsWallet("customer_cash_cart_national", $data['idConfig']);
|
||||
$data['plr_customer_cash_cart_international'] = $this->wallet_model->getPalierCommissionsWallet("customer_cash_cart_international", $data['idConfig']);
|
||||
|
||||
$data['plr_agent_cash_cart_national'] = $this->wallet_model->getPalierCommissionsWallet("agent_cash_cart_national", $data['idConfig']);
|
||||
$data['plr_agent_cash_cart_international'] = $this->wallet_model->getPalierCommissionsWallet("agent_cash_cart_international", $data['idConfig']);
|
||||
|
||||
$data['plr_sup_cash_cart_national'] = $this->wallet_model->getPalierCommissionsWallet("sup_cash_cart_national", $data['idConfig']);
|
||||
$data['plr_sup_cash_cart_international'] = $this->wallet_model->getPalierCommissionsWallet("sup_cash_cart_international", $data['idConfig']);
|
||||
|
||||
$data['plr_hyp_cash_cart_national'] = $this->wallet_model->getPalierCommissionsWallet("hyp_cash_cart_national", $data['idConfig']);
|
||||
$data['plr_hyp_cash_cart_international'] = $this->wallet_model->getPalierCommissionsWallet("hyp_cash_cart_international", $data['idConfig']);
|
||||
|
||||
$data['plr_bank_cash_cart_national'] = $this->wallet_model->getPalierCommissionsWallet("bank_cash_cart_national", $data['idConfig']);
|
||||
$data['plr_bank_cash_cart_international'] = $this->wallet_model->getPalierCommissionsWallet("bank_cash_cart_international", $data['idConfig']);
|
||||
|
||||
$this->load->view('header', $data);
|
||||
$this->load->view('config_wallet_ilink_hyp/agent_send_cash_carte');
|
||||
break;
|
||||
case 'agent_send_cash_canal':
|
||||
$data['taux_ag_s_c'] = $taux->taux_com_ag_envoi_cash;
|
||||
$data['taux_sup_s_c'] = $taux->taux_com_sup_envoi_cash;
|
||||
$data['taux_hyp_s_c'] = $taux->taux_com_hyp_envoi_cash;
|
||||
$data['plr_agent_cash_wallet_or_cash_national'] = $this->wallet_model->getPalierCommissionsWallet("agent_cash_wallet_or_cash_national", $data['idConfig']);
|
||||
$data['plr_agent_cash_wallet_or_cash_international'] = $this->wallet_model->getPalierCommissionsWallet("agent_cash_wallet_or_cash_international", $data['idConfig']);
|
||||
$data['plr_sup_cash_wallet_or_cash_national'] = $this->wallet_model->getPalierCommissionsWallet("sup_cash_wallet_or_cash_national", $data['idConfig']);
|
||||
$data['plr_sup_cash_wallet_or_cash_international'] = $this->wallet_model->getPalierCommissionsWallet("sup_cash_wallet_or_cash_international", $data['idConfig']);
|
||||
$data['plr_hyp_cash_wallet_or_cash_national'] = $this->wallet_model->getPalierCommissionsWallet("hyp_cash_wallet_or_cash_national", $data['idConfig']);
|
||||
$data['plr_hyp_cash_wallet_or_cash_international'] = $this->wallet_model->getPalierCommissionsWallet("hyp_cash_wallet_or_cash_international", $data['idConfig']);
|
||||
|
||||
$data['plr_agent_depot_wallet_ilink'] = $this->wallet_model->getPalierConfigWallet("agent_depot_wallet_ilink_international" , $data['idConfig']);
|
||||
$data['plr_agent_depot_autre_wallet'] = $this->wallet_model->getPalierConfigWallet("agent_depot_autre_wallet_international" , $data['idConfig']);
|
||||
|
|
|
@ -758,7 +758,7 @@ class Gestion extends CI_Controller
|
|||
$networks_compte[] = null;
|
||||
$networks_name[] = null;
|
||||
|
||||
if ($data['agent'] != false) {
|
||||
if ($data['agent']) {
|
||||
foreach ($data['agent']->result() as $row1) {
|
||||
if (!strstr($row1->lastname, "Super -") and !strstr($row1->lastname, "Airtel")) {
|
||||
$totalGeo = 0;
|
||||
|
@ -1094,7 +1094,7 @@ class Gestion extends CI_Controller
|
|||
if (isset($_POST)) {
|
||||
$pays = $this->input->post('pays');
|
||||
$pays_name = $this->user_model->getNameCountry($pays);
|
||||
if ($pays_name != false) {
|
||||
if ($pays_name) {
|
||||
$this->session->set_userdata('current_game_country', $pays);
|
||||
$this->session->set_userdata('current_game_country_name', $pays_name);
|
||||
echo 1;
|
||||
|
@ -1181,7 +1181,7 @@ class Gestion extends CI_Controller
|
|||
|
||||
$res = $this->user_model->get_user($where_clause);
|
||||
|
||||
if ($res != false) {
|
||||
if ($res) {
|
||||
$ville = $this->session->userdata('current_ville');
|
||||
$hyper = $this->session->userdata('current_hyper');
|
||||
$pays = $this->session->userdata('current_pays');
|
||||
|
@ -1240,7 +1240,7 @@ class Gestion extends CI_Controller
|
|||
$email = $_POST['email'];
|
||||
$nom = $_POST['nom'];
|
||||
$res = $this->user_model->update_user_infos($nom, $adresse, $email, $phone, $id);
|
||||
if ($res != false) {
|
||||
if ($res) {
|
||||
echo json_encode("200");
|
||||
} else {
|
||||
echo json_encode("500");
|
||||
|
@ -1266,7 +1266,7 @@ class Gestion extends CI_Controller
|
|||
echo json_encode("400");
|
||||
} else {
|
||||
$res = $this->user_model->update_geolocated_infos($nom, $adresse, $email, $id_agent, $transac, $phone, $id_netAg);
|
||||
if ($res != false) {
|
||||
if ($res) {
|
||||
echo json_encode("200");
|
||||
} else {
|
||||
echo json_encode("500");
|
||||
|
@ -1312,7 +1312,7 @@ class Gestion extends CI_Controller
|
|||
} elseif ($etat == 1) {
|
||||
$res = $this->user_model->updateStatePub($id_pub, 0);
|
||||
}
|
||||
if ($res != false) {
|
||||
if ($res) {
|
||||
echo json_encode("200");
|
||||
} else {
|
||||
echo json_encode("500");
|
||||
|
@ -1329,7 +1329,7 @@ class Gestion extends CI_Controller
|
|||
if (isset($_POST)) {
|
||||
$id_country = $_POST['country_id'];
|
||||
$res = $this->user_model->createPubRow($id_country);
|
||||
if ($res != false) {
|
||||
if ($res) {
|
||||
echo json_encode("200");
|
||||
} else {
|
||||
echo json_encode("500");
|
||||
|
@ -1544,42 +1544,119 @@ class Gestion extends CI_Controller
|
|||
|
||||
switch ($config) {
|
||||
case 'user_wallet_wallet':
|
||||
$plr_user_wallet_wallet = isset($_POST['plr_user_wallet_wallet']) ? $_POST['plr_user_wallet_wallet'] : null;
|
||||
$plr_user_wallet_wallet_national = isset($_POST['plr_user_wallet_wallet_national']) ? $_POST['plr_user_wallet_wallet_national'] : null;
|
||||
$plr_user_wallet_wallet = $_POST['plr_user_wallet_wallet'] ?? null;
|
||||
$plr_user_wallet_wallet_national = $_POST['plr_user_wallet_wallet_national'] ?? null;
|
||||
$this->insertPalier($plr_user_wallet_wallet, "user_wallet_wallet_international", $idConfig);
|
||||
$this->insertPalier($plr_user_wallet_wallet_national, "user_wallet_wallet_national", $idConfig);
|
||||
break;
|
||||
case 'user_wallet_carte':
|
||||
$this->wallet_model->updateConfigWalletIlink_u_w_cart($rows['taux_u_w_cart'], $rows['taux_hyp_s_wallet_cart_ilink'], $rows['taux_bq_s_wallet_cart_ilink'], $idConfig);
|
||||
$plr_user_wallet_cart_national = $_POST['plr_user_wallet_cart_national'] ?? null;
|
||||
$plr_hyp_user_wallet_cart_national = $_POST['plr_hyp_user_wallet_cart_national'] ?? null;
|
||||
$plr_bank_user_wallet_cart_national = $_POST['plr_bank_user_wallet_cart_national'] ?? null;
|
||||
$plr_user_wallet_cart_international = $_POST['plr_user_wallet_cart_international'] ?? null;
|
||||
$plr_hyp_user_wallet_cart_international = $_POST['plr_hyp_user_wallet_cart_international'] ?? null;
|
||||
$plr_bank_user_wallet_cart_international = $_POST['plr_bank_user_wallet_cart_international'] ?? null;
|
||||
$this->insertPalier($plr_user_wallet_cart_national, "user_wallet_cart_national", $idConfig,'paliers_commissions_wallet');
|
||||
$this->insertPalier($plr_hyp_user_wallet_cart_national, "hyp_user_wallet_cart_national", $idConfig ,'paliers_commissions_wallet');
|
||||
$this->insertPalier($plr_bank_user_wallet_cart_national, "bank_user_wallet_cart_national", $idConfig,'paliers_commissions_wallet');
|
||||
$this->insertPalier($plr_user_wallet_cart_international, "user_wallet_cart_international", $idConfig,'paliers_commissions_wallet');
|
||||
$this->insertPalier($plr_hyp_user_wallet_cart_international, "hyp_user_wallet_cart_international", $idConfig ,'paliers_commissions_wallet');
|
||||
$this->insertPalier($plr_bank_user_wallet_cart_international, "bank_user_wallet_cart_international", $idConfig,'paliers_commissions_wallet');
|
||||
break;
|
||||
case 'user_wallet_cash':
|
||||
$plr_user_wallet_cash = isset($_POST['plr_user_wallet_cash']) ? $_POST['plr_user_wallet_cash'] : null;
|
||||
$plr_user_wallet_cash_national = isset($_POST['plr_user_wallet_cash_national']) ? $_POST['plr_user_wallet_cash_national'] : null;
|
||||
$plr_user_wallet_cash = $_POST['plr_user_wallet_cash'] ?? null;
|
||||
$plr_user_wallet_cash_national = $_POST['plr_user_wallet_cash_national'] ?? null;
|
||||
$this->insertPalier($plr_user_wallet_cash, "user_wallet_cash_international", $idConfig);
|
||||
$this->insertPalier($plr_user_wallet_cash_national, "user_wallet_cash_national", $idConfig);
|
||||
break;
|
||||
case 'user_carte_wallet':
|
||||
$this->wallet_model->updateConfigWalletIlink_u_c_w($rows['taux_u_c_w'], $rows['taux_u_c_c'], $rows['taux_hyp_r_cart_ilink'], $rows['taux_bq_r_cart_ilink'], $idConfig);
|
||||
$plr_user_cart_wallet_international = $_POST['plr_user_cart_wallet_international'] ?? null;
|
||||
$plr_user_cart_wallet_national = $_POST['plr_user_cart_wallet_national'] ?? null;
|
||||
$plr_user_cart_cash_international = $_POST['plr_user_cart_cash_international'] ?? null;
|
||||
$plr_user_cart_cash_national = $_POST['plr_user_cart_cash_national'] ?? null;
|
||||
$plr_hyp_user_cart_cash_international = $_POST['plr_hyp_user_cart_cash_international'] ?? null;
|
||||
$plr_hyp_user_cart_cash_national = $_POST['plr_hyp_user_cart_cash_national'] ?? null;
|
||||
$plr_bank_user_cart_cash_international = $_POST['plr_bank_user_cart_cash_international'] ?? null;
|
||||
$plr_bank_user_cart_cash_national = $_POST['plr_bank_user_cart_cash_national'] ?? null;
|
||||
|
||||
$this->insertPalier($plr_user_cart_wallet_international, "user_cart_wallet_international", $idConfig,'paliers_commissions_wallet');
|
||||
$this->insertPalier($plr_user_cart_wallet_national, "user_cart_wallet_national", $idConfig ,'paliers_commissions_wallet');
|
||||
$this->insertPalier($plr_user_cart_cash_international, "user_cart_cash_international", $idConfig,'paliers_commissions_wallet');
|
||||
$this->insertPalier($plr_user_cart_cash_national, "user_cart_cash_national", $idConfig,'paliers_commissions_wallet');
|
||||
$this->insertPalier($plr_hyp_user_cart_cash_international, "hyp_user_cart_cash_international", $idConfig ,'paliers_commissions_wallet');
|
||||
$this->insertPalier($plr_hyp_user_cart_cash_national, "hyp_user_cart_cash_national", $idConfig,'paliers_commissions_wallet');
|
||||
$this->insertPalier($plr_bank_user_cart_cash_international, "bank_user_cart_cash_international", $idConfig ,'paliers_commissions_wallet');
|
||||
$this->insertPalier($plr_bank_user_cart_cash_national, "bank_user_cart_cash_national", $idConfig,'paliers_commissions_wallet');
|
||||
|
||||
break;
|
||||
case 'agent_remove_cash':
|
||||
$this->wallet_model->updateConfigWalletIlink_a_r_c($rows['taux_ag_r_c'], $rows['taux_sup_r_c'],
|
||||
$rows['taux_hyp_r_c'], $idConfig);
|
||||
$plr_agent_wallet_cash_national = $_POST['plr_agent_wallet_cash_national'] ?? null;
|
||||
$plr_sup_wallet_cash_national = $_POST['plr_sup_wallet_cash_national'] ?? null;
|
||||
$plr_hyp_wallet_cash_national = $_POST['plr_hyp_wallet_cash_national'] ?? null;
|
||||
$plr_agent_wallet_cash_international = $_POST['plr_agent_wallet_cash_international'] ?? null;
|
||||
$plr_sup_wallet_cash_international = $_POST['plr_sup_wallet_cash_international'] ?? null;
|
||||
$plr_hyp_wallet_cash_international = $_POST['plr_hyp_wallet_cash_international'] ?? null;
|
||||
$this->insertPalier($plr_agent_wallet_cash_national, "agent_wallet_cash_national", $idConfig,'paliers_commissions_wallet');
|
||||
$this->insertPalier($plr_sup_wallet_cash_national, "sup_wallet_cash_national", $idConfig ,'paliers_commissions_wallet');
|
||||
$this->insertPalier($plr_hyp_wallet_cash_national, "hyp_wallet_cash_national", $idConfig,'paliers_commissions_wallet');
|
||||
$this->insertPalier($plr_agent_wallet_cash_international, "agent_wallet_cash_international", $idConfig,'paliers_commissions_wallet');
|
||||
$this->insertPalier($plr_sup_wallet_cash_international, "sup_wallet_cash_international", $idConfig ,'paliers_commissions_wallet');
|
||||
$this->insertPalier($plr_hyp_wallet_cash_international, "hyp_wallet_cash_international", $idConfig,'paliers_commissions_wallet');
|
||||
break;
|
||||
case 'agent_remove_carte_cash':
|
||||
$this->wallet_model->updateConfigWalletIlink_a_r_cart($rows['taux_ag_cart_c'], $rows['taux_ag_r_cart'], $rows['taux_sup_r_cart'],
|
||||
$rows['taux_hyp_r_cart'], $rows['taux_bq_r_cart'], $idConfig);
|
||||
$plr_customer_cart_cash_international = $_POST['plr_customer_cart_cash_international'] ?? null;
|
||||
$plr_customer_cart_cash_national = $_POST['plr_customer_cart_cash_national'] ?? null;
|
||||
$plr_agent_cart_cash_international = $_POST['plr_agent_cart_cash_international'] ?? null;
|
||||
$plr_agent_cart_cash_national = $_POST['plr_agent_cart_cash_national'] ?? null;
|
||||
$plr_sup_cart_cash_international = $_POST['plr_sup_cart_cash_international'] ?? null;
|
||||
$plr_sup_cart_cash_national = $_POST['plr_sup_cart_cash_national'] ?? null;
|
||||
$plr_hyp_cart_cash_international = $_POST['plr_hyp_cart_cash_international'] ?? null;
|
||||
$plr_hyp_cart_cash_national = $_POST['plr_hyp_cart_cash_national'] ?? null;
|
||||
$plr_bank_cart_cash_international = $_POST['plr_bank_cart_cash_international'] ?? null;
|
||||
$plr_bank_cart_cash_national = $_POST['plr_bank_cart_cash_national'] ?? null;
|
||||
|
||||
$this->insertPalier($plr_customer_cart_cash_international, "customer_cart_cash_international", $idConfig,'paliers_commissions_wallet');
|
||||
$this->insertPalier($plr_customer_cart_cash_national, "customer_cart_cash_national", $idConfig ,'paliers_commissions_wallet');
|
||||
$this->insertPalier($plr_agent_cart_cash_international, "agent_cart_cash_international", $idConfig,'paliers_commissions_wallet');
|
||||
$this->insertPalier($plr_agent_cart_cash_national, "agent_cart_cash_national", $idConfig,'paliers_commissions_wallet');
|
||||
$this->insertPalier($plr_sup_cart_cash_international, "sup_cart_cash_international", $idConfig ,'paliers_commissions_wallet');
|
||||
$this->insertPalier($plr_sup_cart_cash_national, "sup_cart_cash_national", $idConfig,'paliers_commissions_wallet');
|
||||
$this->insertPalier($plr_hyp_cart_cash_international, "hyp_cart_cash_international", $idConfig ,'paliers_commissions_wallet');
|
||||
$this->insertPalier($plr_hyp_cart_cash_national, "hyp_cart_cash_national", $idConfig,'paliers_commissions_wallet');
|
||||
$this->insertPalier($plr_bank_cart_cash_international, "bank_cart_cash_international", $idConfig ,'paliers_commissions_wallet');
|
||||
$this->insertPalier($plr_bank_cart_cash_national, "bank_cart_cash_national", $idConfig,'paliers_commissions_wallet');
|
||||
break;
|
||||
case 'agent_send_cash_carte':
|
||||
$this->wallet_model->updateConfigWalletIlink_a_s_cc($rows['taux_ag_d_c_c'], $rows['taux_ag_d_c'], $rows['taux_sup_d_c'], $rows['taux_hyp_d_c'], $rows['taux_bq_d_c'], $idConfig);
|
||||
$plr_customer_cash_cart_international = $_POST['plr_customer_cash_cart_international'] ?? null;
|
||||
$plr_customer_cash_cart_national = $_POST['plr_customer_cash_cart_national'] ?? null;
|
||||
$plr_agent_cash_cart_international = $_POST['plr_agent_cash_cart_international'] ?? null;
|
||||
$plr_agent_cash_cart_national = $_POST['plr_agent_cash_cart_national'] ?? null;
|
||||
$plr_sup_cash_cart_international = $_POST['plr_sup_cash_cart_international'] ?? null;
|
||||
$plr_sup_cash_cart_national = $_POST['plr_sup_cash_cart_national'] ?? null;
|
||||
$plr_hyp_cash_cart_international = $_POST['plr_hyp_cash_cart_international'] ?? null;
|
||||
$plr_hyp_cash_cart_national = $_POST['plr_hyp_cash_cart_national'] ?? null;
|
||||
$plr_bank_cash_cart_international = $_POST['plr_bank_cash_cart_international'] ?? null;
|
||||
$plr_bank_cash_cart_national = $_POST['plr_bank_cash_cart_national'] ?? null;
|
||||
|
||||
$this->insertPalier($plr_customer_cash_cart_international, "customer_cash_cart_international", $idConfig,'paliers_commissions_wallet');
|
||||
$this->insertPalier($plr_customer_cash_cart_national, "customer_cash_cart_national", $idConfig ,'paliers_commissions_wallet');
|
||||
$this->insertPalier($plr_agent_cash_cart_international, "agent_cash_cart_international", $idConfig,'paliers_commissions_wallet');
|
||||
$this->insertPalier($plr_agent_cash_cart_national, "agent_cash_cart_national", $idConfig,'paliers_commissions_wallet');
|
||||
$this->insertPalier($plr_sup_cash_cart_international, "sup_cash_cart_international", $idConfig ,'paliers_commissions_wallet');
|
||||
$this->insertPalier($plr_sup_cash_cart_national, "sup_cash_cart_national", $idConfig,'paliers_commissions_wallet');
|
||||
$this->insertPalier($plr_hyp_cash_cart_international, "hyp_cash_cart_international", $idConfig ,'paliers_commissions_wallet');
|
||||
$this->insertPalier($plr_hyp_cash_cart_national, "hyp_cash_cart_national", $idConfig,'paliers_commissions_wallet');
|
||||
$this->insertPalier($plr_bank_cash_cart_international, "bank_cash_cart_international", $idConfig ,'paliers_commissions_wallet');
|
||||
$this->insertPalier($plr_bank_cash_cart_national, "bank_cash_cart_national", $idConfig,'paliers_commissions_wallet');
|
||||
break;
|
||||
case 'agent_send_cash_canal':
|
||||
$plr_agent_depot_wallet_ilink = isset($_POST['plr_agent_depot_wallet_ilink']) ? $_POST['plr_agent_depot_wallet_ilink'] : null;
|
||||
$plr_agent_depot_autre_wallet = isset($_POST['plr_agent_depot_autre_wallet']) ? $_POST['plr_agent_depot_autre_wallet'] : null;
|
||||
$plr_agent_cash_cash = isset($_POST['plr_agent_cash_cash']) ? $_POST['plr_agent_cash_cash'] : null;
|
||||
$plr_agent_depot_wallet_ilink = $_POST['plr_agent_depot_wallet_ilink'] ?? null;
|
||||
$plr_agent_depot_autre_wallet = $_POST['plr_agent_depot_autre_wallet'] ?? null;
|
||||
$plr_agent_cash_cash = $_POST['plr_agent_cash_cash'] ?? null;
|
||||
|
||||
$plr_agent_depot_wallet_ilink_national = isset($_POST['plr_agent_depot_wallet_ilink_national']) ? $_POST['plr_agent_depot_wallet_ilink_national'] : null;
|
||||
$plr_agent_depot_autre_wallet_national = isset($_POST['plr_agent_depot_autre_wallet_national']) ? $_POST['plr_agent_depot_autre_wallet_national'] : null;
|
||||
$plr_agent_cash_cash_national = isset($_POST['plr_agent_cash_cash_national']) ? $_POST['plr_agent_cash_cash_national'] : null;
|
||||
$plr_agent_depot_wallet_ilink_national = $_POST['plr_agent_depot_wallet_ilink_national'] ?? null;
|
||||
$plr_agent_depot_autre_wallet_national = $_POST['plr_agent_depot_autre_wallet_national'] ?? null;
|
||||
$plr_agent_cash_cash_national = $_POST['plr_agent_cash_cash_national'] ?? null;
|
||||
|
||||
$this->insertPalier($plr_agent_depot_wallet_ilink, "agent_depot_wallet_ilink_international", $idConfig);
|
||||
$this->insertPalier($plr_agent_depot_autre_wallet, "agent_depot_autre_wallet_international", $idConfig);
|
||||
|
@ -1589,7 +1666,21 @@ class Gestion extends CI_Controller
|
|||
$this->insertPalier($plr_agent_depot_autre_wallet_national, "agent_depot_autre_wallet_national", $idConfig);
|
||||
$this->insertPalier($plr_agent_cash_cash_national, "agent_cash_cash_national", $idConfig);
|
||||
|
||||
$this->wallet_model->updateConfigWalletIlink_a_s_c($rows['taux_ag_s_c'], $rows['taux_sup_s_c'], $rows['taux_hyp_s_c'], $idConfig);
|
||||
// Paliers des commissions
|
||||
|
||||
$plr_agent_cash_wallet_or_cash_international = $_POST['plr_agent_cash_wallet_or_cash_international'] ?? null;
|
||||
$plr_agent_cash_wallet_or_cash_national = $_POST['plr_agent_cash_wallet_or_cash_national'] ?? null;
|
||||
$plr_sup_cash_wallet_or_cash_international = $_POST['plr_sup_cash_wallet_or_cash_international'] ?? null;
|
||||
$plr_sup_cash_wallet_or_cash_national = $_POST['plr_sup_cash_wallet_or_cash_national'] ?? null;
|
||||
$plr_hyp_cash_wallet_or_cash_international = $_POST['plr_hyp_cash_wallet_or_cash_international'] ?? null;
|
||||
$plr_hyp_cash_wallet_or_cash_national = $_POST['plr_hyp_cash_wallet_or_cash_national'] ?? null;
|
||||
|
||||
$this->insertPalier($plr_agent_cash_wallet_or_cash_international, "agent_cash_wallet_or_cash_international", $idConfig,'paliers_commissions_wallet');
|
||||
$this->insertPalier($plr_agent_cash_wallet_or_cash_national, "agent_cash_wallet_or_cash_national", $idConfig ,'paliers_commissions_wallet');
|
||||
$this->insertPalier($plr_sup_cash_wallet_or_cash_international, "sup_cash_wallet_or_cash_international", $idConfig,'paliers_commissions_wallet');
|
||||
$this->insertPalier($plr_sup_cash_wallet_or_cash_national, "sup_cash_wallet_or_cash_national", $idConfig,'paliers_commissions_wallet');
|
||||
$this->insertPalier($plr_hyp_cash_wallet_or_cash_international, "hyp_cash_wallet_or_cash_international", $idConfig ,'paliers_commissions_wallet');
|
||||
$this->insertPalier($plr_hyp_cash_wallet_or_cash_national, "hyp_cash_wallet_or_cash_national", $idConfig,'paliers_commissions_wallet');
|
||||
|
||||
break;
|
||||
}
|
||||
|
@ -1634,9 +1725,9 @@ class Gestion extends CI_Controller
|
|||
}
|
||||
}
|
||||
|
||||
private function insertPalier($palier, $type, $idConfig)
|
||||
private function insertPalier($palier, $type, $idConfig , $table = 'paliersConfigWallet')
|
||||
{
|
||||
$this->db->delete('paliersConfigWallet',['type' => $type , 'idConfig' => $idConfig]);
|
||||
$this->db->delete($table,['type' => $type , 'idConfig' => $idConfig]);
|
||||
|
||||
if ($palier) {
|
||||
$data = [];
|
||||
|
@ -1651,7 +1742,7 @@ class Gestion extends CI_Controller
|
|||
];
|
||||
}
|
||||
if(sizeof($data) > 0){
|
||||
$this->db->insert_batch('paliersConfigWallet',$data);
|
||||
$this->db->insert_batch($table,$data);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1685,7 +1776,7 @@ class Gestion extends CI_Controller
|
|||
if (isset($_POST)) {
|
||||
$network_id = $_POST['network_id'];
|
||||
$res = $this->wallet_model->deleteConfigWallet($network_id);
|
||||
if ($res != false) {
|
||||
if ($res) {
|
||||
echo json_encode("200");
|
||||
} else {
|
||||
echo json_encode("500");
|
||||
|
@ -1701,7 +1792,7 @@ class Gestion extends CI_Controller
|
|||
if (isset($_POST)) {
|
||||
$network_id = $_POST['network_id'];
|
||||
$res = $this->wallet_model->disableConfigWallet($network_id);
|
||||
if ($res != false) {
|
||||
if ($res) {
|
||||
echo json_encode("200");
|
||||
} else {
|
||||
echo json_encode("500");
|
||||
|
|
|
@ -1409,9 +1409,12 @@ class Hyperviseur_dash extends CI_Controller
|
|||
$this->load->view('config_wallet_ilink_hyp/user_wallet_wallet');
|
||||
break;
|
||||
case 'user_wallet_carte':
|
||||
$data['taux_u_w_cart'] = $taux->taux_com_user_wallet_carte;
|
||||
$data['taux_hyp_s_wallet_cart_ilink'] = $taux->taux_com_hyp_envoi_wallet_carte_ilink;
|
||||
$data['taux_bq_s_wallet_cart_ilink'] = $taux->taux_com_banque_envoi_wallet_carte_ilink;
|
||||
$data['plr_user_wallet_cart_national'] = $this->wallet_model->getPalierCommissionsWallet("user_wallet_cart_national", $data['idConfig']);
|
||||
$data['plr_hyp_user_wallet_cart_national'] = $this->wallet_model->getPalierCommissionsWallet("hyp_user_wallet_cart_national", $data['idConfig']);
|
||||
$data['plr_bank_user_wallet_cart_national'] = $this->wallet_model->getPalierCommissionsWallet("bank_user_wallet_cart_national", $data['idConfig']);
|
||||
$data['plr_user_wallet_cart_international'] = $this->wallet_model->getPalierCommissionsWallet("user_wallet_cart_international", $data['idConfig']);
|
||||
$data['plr_hyp_user_wallet_cart_international'] = $this->wallet_model->getPalierCommissionsWallet("hyp_user_wallet_cart_international", $data['idConfig']);
|
||||
$data['plr_bank_user_wallet_cart_international'] = $this->wallet_model->getPalierCommissionsWallet("bank_user_wallet_cart_international", $data['idConfig']);
|
||||
$this->load->view('header_hyp', $data);
|
||||
$this->load->view('config_wallet_ilink_hyp/user_wallet_carte');
|
||||
break;
|
||||
|
@ -1422,42 +1425,79 @@ class Hyperviseur_dash extends CI_Controller
|
|||
$this->load->view('config_wallet_ilink_hyp/user_wallet_cash');
|
||||
break;
|
||||
case 'user_carte_wallet':
|
||||
$data['taux_u_c_w'] = $taux->taux_com_user_carte_wallet;
|
||||
$data['taux_u_c_c'] = $taux->taux_com_user_carte_cash;
|
||||
$data['taux_hyp_r_cart_ilink'] = $taux->taux_com_hyp_retrait_carte_cash_ilink;
|
||||
$data['taux_bq_r_cart_ilink'] = $taux->taux_com_banque_retrait_carte_cash_ilink;
|
||||
$data['plr_user_cart_wallet_national'] = $this->wallet_model->getPalierCommissionsWallet("user_cart_wallet_national", $data['idConfig']);
|
||||
$data['plr_user_cart_wallet_international'] = $this->wallet_model->getPalierCommissionsWallet("user_cart_wallet_international", $data['idConfig']);
|
||||
|
||||
$data['plr_user_cart_cash_national'] = $this->wallet_model->getPalierCommissionsWallet("user_cart_cash_national", $data['idConfig']);
|
||||
$data['plr_user_cart_cash_international'] = $this->wallet_model->getPalierCommissionsWallet("user_cart_cash_international", $data['idConfig']);
|
||||
|
||||
$data['plr_hyp_user_cart_cash_national'] = $this->wallet_model->getPalierCommissionsWallet("hyp_user_cart_cash_national", $data['idConfig']);
|
||||
$data['plr_hyp_user_cart_cash_international'] = $this->wallet_model->getPalierCommissionsWallet("hyp_user_cart_cash_international", $data['idConfig']);
|
||||
|
||||
$data['plr_bank_user_cart_cash_national'] = $this->wallet_model->getPalierCommissionsWallet("bank_user_cart_cash_national", $data['idConfig']);
|
||||
$data['plr_bank_user_cart_cash_international'] = $this->wallet_model->getPalierCommissionsWallet("bank_user_cart_cash_international", $data['idConfig']);
|
||||
|
||||
$this->load->view('header_hyp', $data);
|
||||
$this->load->view('config_wallet_ilink_hyp/user_carte_wallet');
|
||||
break;
|
||||
case 'agent_remove_cash':
|
||||
$data['taux_ag_r_c'] = $taux->taux_com_ag_retrait_cash;
|
||||
$data['taux_sup_r_c'] = $taux->taux_com_sup_retrait_cash;
|
||||
$data['taux_hyp_r_c'] = $taux->taux_com_hyp_retrait_cash;
|
||||
$data['plr_agent_wallet_cash_national'] = $this->wallet_model->getPalierCommissionsWallet("agent_wallet_cash_national", $data['idConfig']);
|
||||
$data['plr_agent_wallet_cash_international'] = $this->wallet_model->getPalierCommissionsWallet("agent_wallet_cash_international", $data['idConfig']);
|
||||
|
||||
$data['plr_sup_wallet_cash_national'] = $this->wallet_model->getPalierCommissionsWallet("sup_wallet_cash_national", $data['idConfig']);
|
||||
$data['plr_sup_wallet_cash_international'] = $this->wallet_model->getPalierCommissionsWallet("sup_wallet_cash_international", $data['idConfig']);
|
||||
|
||||
$data['plr_hyp_wallet_cash_national'] = $this->wallet_model->getPalierCommissionsWallet("hyp_wallet_cash_national", $data['idConfig']);
|
||||
$data['plr_hyp_wallet_cash_international'] = $this->wallet_model->getPalierCommissionsWallet("hyp_wallet_cash_international", $data['idConfig']);
|
||||
|
||||
$this->load->view('header_hyp', $data);
|
||||
$this->load->view('config_wallet_ilink_hyp/agent_remove_cash');
|
||||
break;
|
||||
case 'agent_remove_carte_cash':
|
||||
$data['taux_ag_cart_c'] = $taux->taux_com_wallet_ag_carte_cash;
|
||||
$data['taux_ag_r_cart'] = $taux->taux_com_ag_retrait_carte_cash;
|
||||
$data['taux_sup_r_cart'] = $taux->taux_com_sup_retrait_carte_cash;
|
||||
$data['taux_hyp_r_cart'] = $taux->taux_com_hyp_retrait_carte_cash;
|
||||
$data['taux_bq_r_cart'] = $taux->taux_com_banque_retrait_carte_cash;
|
||||
$data['plr_customer_cart_cash_national'] = $this->wallet_model->getPalierCommissionsWallet("customer_cart_cash_national", $data['idConfig']);
|
||||
$data['plr_customer_cart_cash_international'] = $this->wallet_model->getPalierCommissionsWallet("customer_cart_cash_international", $data['idConfig']);
|
||||
|
||||
$data['plr_agent_cart_cash_national'] = $this->wallet_model->getPalierCommissionsWallet("agent_cart_cash_national", $data['idConfig']);
|
||||
$data['plr_agent_cart_cash_international'] = $this->wallet_model->getPalierCommissionsWallet("agent_cart_cash_international", $data['idConfig']);
|
||||
|
||||
$data['plr_sup_cart_cash_national'] = $this->wallet_model->getPalierCommissionsWallet("sup_cart_cash_national", $data['idConfig']);
|
||||
$data['plr_sup_cart_cash_international'] = $this->wallet_model->getPalierCommissionsWallet("sup_cart_cash_international", $data['idConfig']);
|
||||
|
||||
$data['plr_hyp_cart_cash_national'] = $this->wallet_model->getPalierCommissionsWallet("hyp_cart_cash_national", $data['idConfig']);
|
||||
$data['plr_hyp_cart_cash_international'] = $this->wallet_model->getPalierCommissionsWallet("hyp_cart_cash_international", $data['idConfig']);
|
||||
|
||||
$data['plr_bank_cart_cash_national'] = $this->wallet_model->getPalierCommissionsWallet("bank_cart_cash_national", $data['idConfig']);
|
||||
$data['plr_bank_cart_cash_international'] = $this->wallet_model->getPalierCommissionsWallet("bank_cart_cash_international", $data['idConfig']);
|
||||
|
||||
$this->load->view('header_hyp', $data);
|
||||
$this->load->view('config_wallet_ilink_hyp/agent_remove_carte_cash');
|
||||
break;
|
||||
case 'agent_send_cash_carte':
|
||||
$data['taux_ag_d_c_c'] = $taux->taux_com_wallet_ag_envoi_cash_carte;
|
||||
$data['taux_ag_d_c'] = $taux->taux_com_ag_depot_cash_carte;
|
||||
$data['taux_sup_d_c'] = $taux->taux_com_sup_depot_cash_carte;
|
||||
$data['taux_hyp_d_c'] = $taux->taux_com_hyp_depot_cash_carte;
|
||||
$data['taux_bq_d_c'] = $taux->taux_com_banque_depot_cash_carte;
|
||||
$data['plr_customer_cash_cart_national'] = $this->wallet_model->getPalierCommissionsWallet("customer_cash_cart_national", $data['idConfig']);
|
||||
$data['plr_customer_cash_cart_international'] = $this->wallet_model->getPalierCommissionsWallet("customer_cash_cart_international", $data['idConfig']);
|
||||
|
||||
$data['plr_agent_cash_cart_national'] = $this->wallet_model->getPalierCommissionsWallet("agent_cash_cart_national", $data['idConfig']);
|
||||
$data['plr_agent_cash_cart_international'] = $this->wallet_model->getPalierCommissionsWallet("agent_cash_cart_international", $data['idConfig']);
|
||||
|
||||
$data['plr_sup_cash_cart_national'] = $this->wallet_model->getPalierCommissionsWallet("sup_cash_cart_national", $data['idConfig']);
|
||||
$data['plr_sup_cash_cart_international'] = $this->wallet_model->getPalierCommissionsWallet("sup_cash_cart_international", $data['idConfig']);
|
||||
|
||||
$data['plr_hyp_cash_cart_national'] = $this->wallet_model->getPalierCommissionsWallet("hyp_cash_cart_national", $data['idConfig']);
|
||||
$data['plr_hyp_cash_cart_international'] = $this->wallet_model->getPalierCommissionsWallet("hyp_cash_cart_international", $data['idConfig']);
|
||||
|
||||
$data['plr_bank_cash_cart_national'] = $this->wallet_model->getPalierCommissionsWallet("bank_cash_cart_national", $data['idConfig']);
|
||||
$data['plr_bank_cash_cart_international'] = $this->wallet_model->getPalierCommissionsWallet("bank_cash_cart_international", $data['idConfig']);
|
||||
|
||||
$this->load->view('header_hyp', $data);
|
||||
$this->load->view('config_wallet_ilink_hyp/agent_send_cash_carte');
|
||||
break;
|
||||
case 'agent_send_cash_canal':
|
||||
$data['taux_ag_s_c'] = $taux->taux_com_ag_envoi_cash;
|
||||
$data['taux_sup_s_c'] = $taux->taux_com_sup_envoi_cash;
|
||||
$data['taux_hyp_s_c'] = $taux->taux_com_hyp_envoi_cash;
|
||||
$data['plr_agent_cash_wallet_or_cash_national'] = $this->wallet_model->getPalierCommissionsWallet("agent_cash_wallet_or_cash_national", $data['idConfig']);
|
||||
$data['plr_agent_cash_wallet_or_cash_international'] = $this->wallet_model->getPalierCommissionsWallet("agent_cash_wallet_or_cash_international", $data['idConfig']);
|
||||
$data['plr_sup_cash_wallet_or_cash_national'] = $this->wallet_model->getPalierCommissionsWallet("sup_cash_wallet_or_cash_national", $data['idConfig']);
|
||||
$data['plr_sup_cash_wallet_or_cash_international'] = $this->wallet_model->getPalierCommissionsWallet("sup_cash_wallet_or_cash_international", $data['idConfig']);
|
||||
$data['plr_hyp_cash_wallet_or_cash_national'] = $this->wallet_model->getPalierCommissionsWallet("hyp_cash_wallet_or_cash_national", $data['idConfig']);
|
||||
$data['plr_hyp_cash_wallet_or_cash_international'] = $this->wallet_model->getPalierCommissionsWallet("hyp_cash_wallet_or_cash_international", $data['idConfig']);
|
||||
|
||||
$data['plr_agent_depot_wallet_ilink'] = $this->wallet_model->getPalierConfigWallet("agent_depot_wallet_ilink_international" , $data['idConfig']);
|
||||
$data['plr_agent_depot_autre_wallet'] = $this->wallet_model->getPalierConfigWallet("agent_depot_autre_wallet_international" , $data['idConfig']);
|
||||
|
@ -1845,7 +1885,7 @@ class Hyperviseur_dash extends CI_Controller
|
|||
$data['hasWallet'] = $this->wallet_model->getConfigWallet($this->session->userdata('network_id'));
|
||||
|
||||
|
||||
if ($res != false) {
|
||||
if ($res) {
|
||||
|
||||
$count_users = $res->num_rows();
|
||||
if ($simple_users != null) {
|
||||
|
|
|
@ -77,7 +77,7 @@ class Superviseur_dash extends CI_Controller
|
|||
$data['active'] = "geolocated";
|
||||
$data['positions'] = $position;
|
||||
$numberGeo = $this->user_model->getNumberGeoBySuper($this->session->userdata('member_code'));
|
||||
if ($numberGeo != false) {
|
||||
if ($numberGeo) {
|
||||
$data['numberGeo'] = $numberGeo;
|
||||
} else {
|
||||
$data['numberGeo'] = "";
|
||||
|
@ -458,7 +458,7 @@ class Superviseur_dash extends CI_Controller
|
|||
$data['category'] = $this->session->userdata('category');
|
||||
|
||||
|
||||
if ($res != false) {
|
||||
if ($res) {
|
||||
|
||||
$count_users = $res->num_rows();
|
||||
if ($simple_users != null) {
|
||||
|
|
|
@ -310,36 +310,60 @@ $lang ['rate_com_user_wallet_wallet_national'] = 'Wallet user commission rate to
|
|||
$lang ['new_level'] = 'New level';
|
||||
$lang ['rate_com_user_wallet_cash_international'] = 'Wallet user commission rate for foreign country cash';
|
||||
$lang ['rate_com_user_wallet_cash_national'] = 'Wallet user commission rate with national cash';
|
||||
$lang ['rate_com_user_wallet_cart'] = 'Wallet to card user commission rate';
|
||||
$lang ['rate_com_user_cart_wallet'] = 'User commission rate card to wallet';
|
||||
$lang ['rate_com_user_cart_cash'] = 'User card to cash commission rate';
|
||||
$lang['rate_com_user_wallet_cart_national'] = 'Customer commission rate on domestic wallet-to-card transactions';
|
||||
$lang['rate_com_user_wallet_cart_international'] = 'Customer commission rate on foreign wallet card transaction';
|
||||
$lang['rate_com_user_cart_wallet_international'] = "Customer commission rate on international wallet card transaction";
|
||||
$lang['rate_com_user_cart_wallet_national'] = "Customer commission rate on domestic wallet card transaction";
|
||||
$lang['rate_com_user_cart_cash_international'] = 'International cash card user commission rate';
|
||||
$lang['rate_com_user_cart_cash_national'] = 'National cash card user commission rate';
|
||||
$lang ['rate_com_agent_depot_wallet_national'] = 'Agent depot commission rate to national iLink wallet';
|
||||
$lang ['rate_com_agent_depot_wallet_international'] = 'Commission rate agent deposit to foreign iLink wallet';
|
||||
$lang ['rate_com_agent_depot_autre_wallet_national'] = 'Agent depot commission rate to national other wallet';
|
||||
$lang ['rate_com_agent_depot_autre_wallet_international'] = 'Commission rate agent deposit to foreign other wallet';
|
||||
$lang ['rate_com_agent_depot_cash_cart'] = 'Agent commission rate deposit cash to card';
|
||||
$lang['rate_com_agent_depot_cash_cart_international'] = "Customer commission rate for sending cash to international card";
|
||||
$lang['rate_com_agent_depot_cash_cart_national'] = "Customer commission rate on cash-to-card transactions";
|
||||
$lang ['rate_com_agent_cash_cash_national'] = 'Agent commission rate sending cash to national cash';
|
||||
$lang ['rate_com_agent_cash_cash_international'] = 'Agent commission rate sending cash to cash in foreign countries';
|
||||
$lang ['rate_com_agent_send_cash'] = 'Commission rate of the geolocated agent on the operation of sending money';
|
||||
$lang ['rate_com_sup_send_cash'] = 'Supervisor\'s commission rate on sending money';
|
||||
$lang ['rate_com_hyp_send_cash'] = 'Commission rate of the hypervisor on sending money';
|
||||
$lang ['rate_com_agent_remove_cash'] = 'Geolocated agent commission rate on money withdrawal operation';
|
||||
$lang ['rate_com_sup_remove_cash'] = 'Supervisor\'s commission rate on money withdrawal operation';
|
||||
$lang ['rate_com_hyp_remove_cash'] = 'Commission rate of the hypervisor on money withdrawal operation';
|
||||
$lang ['rate_com_agent_depot_cart'] = 'Commission rate of the geolocated agent on deposit to card operation';
|
||||
$lang ['rate_com_sup_depot_cart'] = 'Supervisor commission rate on deposit to card operation';
|
||||
$lang ['rate_com_hyp_depot_cart'] = 'Rate of hypervisor commission on deposit to card operation';
|
||||
$lang ['rate_com_bq_depot_cart'] = 'Bank commission rate on deposit to card operation';
|
||||
$lang ['rate_com_agent_remove_cart'] = 'Commission rate of the geolocated agent on card withdrawal operation';
|
||||
$lang ['rate_com_sup_remove_cart'] = 'Supervisor commission rate on card withdrawal operation';
|
||||
$lang ['rate_com_hyp_remove_cart'] = 'Hypervisor commission rate on card withdrawal operation';
|
||||
$lang ['rate_com_bq_remove_cart'] = 'Bank commission rate on card withdrawal operation';
|
||||
$lang ['rate_com_agent_cart_cash'] = 'Geolocated agent commission rate on cash card withdrawal';
|
||||
$lang['rate_com_agent_send_cash_international'] = "Geolocated agent's commission rate on international money sending operation";
|
||||
$lang['rate_com_agent_send_cash_national'] = "Geolocated agent's commission rate on national money sending operation";
|
||||
$lang['rate_com_sup_send_cash_international'] = "Supervisor's commission rate on international money sending operation";
|
||||
$lang['rate_com_sup_send_cash_national'] = "Supervisor's commission rate on national money sending operation";
|
||||
$lang['rate_com_hyp_send_cash_international'] = "Hypervisor's commission rate on international money sending operation";
|
||||
$lang['rate_com_hyp_send_cash_national'] = "Hypervisor commission rate on national money sending operation";
|
||||
$lang['rate_com_agent_wallet_cash_international'] = "Geolocated agent's commission rate on international cash withdrawal operation";
|
||||
$lang['rate_com_agent_wallet_cash_national'] = "Geolocated agent's commission rate on national cash withdrawal operation";
|
||||
$lang['rate_com_sup_wallet_cash_international'] = "Supervisor's commission rate on international cash withdrawal operation";
|
||||
$lang['rate_com_sup_wallet_cash_national'] = "Supervisor's commission rate on national cash withdrawal operation";
|
||||
$lang['rate_com_hyp_wallet_cash_international'] = "Hypervisor commission rate on international cash withdrawal operation";
|
||||
$lang['rate_com_hyp_wallet_cash_national'] = "Hypervisor commission rate on national cash withdrawal operation";
|
||||
$lang['rate_com_agent_depot_cart_international'] = "Geolocated agent's commission rate on international card deposit";
|
||||
$lang['rate_com_agent_depot_cart_national'] = "Geolocated agent's commission rate on national card deposit operation";
|
||||
$lang['rate_com_sup_depot_cart_international'] = "Supervisor commission rate on international card deposit transactions";
|
||||
$lang['rate_com_sup_depot_cart_national'] = "Supervisor commission rate on national card deposit transactions";
|
||||
$lang['rate_com_hyp_depot_cart_international'] = "Hypervisor commission rate on international card deposit transactions";
|
||||
$lang['rate_com_hyp_depot_cart_national'] = "Hypervisor commission rate on national card deposit transactions";
|
||||
$lang['rate_com_bq_depot_cart_international'] = "Bank commission rate on international card deposit transactions";
|
||||
$lang['rate_com_bq_depot_cart_national'] = "Bank's commission rate on national card deposit operation";
|
||||
$lang['rate_com_agent_remove_cart_international'] = "Geolocated agent's commission rate on international card withdrawal operation";
|
||||
$lang['rate_com_agent_remove_cart_national'] = "Geolocated agent's commission rate on national card withdrawal operation";
|
||||
$lang['rate_com_sup_remove_cart_international'] = 'Supervisor commission rate on international card withdrawal transaction';
|
||||
$lang['rate_com_sup_remove_cart_national'] = 'Supervisor commission rate on national card withdrawal transaction';
|
||||
$lang['rate_com_hyp_remove_cart_international'] = 'Hypervisor commission rate on international card withdrawal operation';
|
||||
$lang['rate_com_hyp_remove_cart_national'] = 'Hypervisor commission rate on national card withdrawal operation';
|
||||
$lang['rate_com_bq_remove_cart_international'] = "Bank's commission rate on international card withdrawal operation";
|
||||
$lang['rate_com_bq_remove_cart_national'] = "Bank's commission rate on national card withdrawal operation";
|
||||
$lang['rate_com_agent_cart_cash_international'] = "Customer commission rate at the geolocated agent on international cash card withdrawal";
|
||||
$lang['rate_com_agent_cart_cash_national'] = "Customer commission rate at the geolocated agent for national cash card withdrawals";
|
||||
$lang ['rate_com_agent_cash_cart'] = 'Commission rate of the geolocated agent on cash deposit to card';
|
||||
$lang ['rate_com_hyp_remove_cart_ilink'] = 'Hypervisor commission rate on card withdrawal operation for iLink user';
|
||||
$lang ['rate_com_bq_remove_cart_ilink'] = 'Bank commission rate on card withdrawal operation for iLink user';
|
||||
$lang['rate_com_hyp_send_wallet_cart_ilink'] = 'Hypervisor commission rate on wallet to card sending operation for iLink user';
|
||||
$lang['rate_com_bq_send_wallet_cart_ilink'] = 'Bank commission rate on wallet to card sending operation for iLink user...';
|
||||
$lang['rate_com_hyp_remove_cart_ilink_international'] = 'Taux de commission hyperviseur sur operation de retrait dans carte pour utilisateur iLink international';
|
||||
$lang['rate_com_hyp_remove_cart_ilink_national'] = 'Taux de commission hyperviseur sur operation de retrait dans carte pour utilisateur iLink national';
|
||||
$lang['rate_com_bq_remove_cart_ilink_international'] = 'Bank commission rate on card withdrawal transaction for iLink international user';
|
||||
$lang['rate_com_bq_remove_cart_ilink_national'] = 'Bank commission rate on card withdrawal transaction for national iLink user';
|
||||
$lang['rate_com_hyp_send_wallet_cart_ilink_national'] = "Hypervisor commission rate on wallet-to-card sending operation for iLink national user";
|
||||
$lang['rate_com_hyp_send_wallet_cart_ilink_international'] = "Hypervisor commission rate on wallet-to-card transaction for iLink international user";
|
||||
$lang['rate_com_bq_send_wallet_cart_ilink_national'] = "Bank commission rate on wallet-to-card transaction for national iLink user";
|
||||
$lang['rate_com_bq_send_wallet_cart_ilink_international'] = "Bank commission rate on wallet-to-card transaction for iLink international user";
|
||||
|
||||
|
||||
// Currency management
|
||||
$lang ['currency'] = 'Currency';
|
||||
|
|
|
@ -317,43 +317,66 @@
|
|||
$lang['no_geolocated_agent'] = 'Aucun utilisateur géolocalisé';
|
||||
$lang['choose_wallet_type'] = 'Choisissez le type de wallet';
|
||||
$lang['rate'] = 'Taux';
|
||||
$lang['rate_com_user_wallet_wallet_international'] = 'Taux de commission du client sur opération d\'envoi de wallet à wallet pays etranger';
|
||||
$lang['rate_com_user_wallet_wallet_international'] = 'Taux de commission du client sur opération d\'envoi de wallet à wallet pays étranger';
|
||||
$lang['rate_com_user_wallet_wallet_national'] = 'Taux de commission du client sur opération d\'envoi de wallet à wallet national';
|
||||
$lang['new_level'] = 'Nouveau palier';
|
||||
$lang['rate_com_user_wallet_cash_international'] = 'Taux de commission du client sur opération d\'envoi de wallet à cash pays etranger';
|
||||
$lang['rate_com_user_wallet_cash_international'] = 'Taux de commission du client sur opération d\'envoi de wallet à cash pays étranger';
|
||||
$lang['rate_com_user_wallet_cash_national'] = 'Taux de commission du client sur opération d\'envoi de wallet à cash national';
|
||||
$lang['rate_com_user_wallet_cart'] = 'Taux de commission du client sur opération d\'envoi de wallet à carte';
|
||||
$lang['rate_com_user_cart_wallet'] = 'Taux de commission du client sur opération d\'envoi de carte à wallet';
|
||||
$lang['rate_com_user_cart_cash'] = 'Taux de commission utilisateur carte à cash';
|
||||
$lang['rate_com_user_wallet_cart_national'] = 'Taux de commission du client sur opération d\'envoi de wallet à carte national';
|
||||
$lang['rate_com_user_wallet_cart_international'] = 'Taux de commission du client sur opération d\'envoi de wallet à carte étranger';
|
||||
$lang['rate_com_user_cart_wallet_international'] = "Taux de commission du client sur opération d'envoi de carte à wallet international";
|
||||
$lang['rate_com_user_cart_wallet_national'] = "Taux de commission du client sur opération d'envoi de carte à wallet national";
|
||||
$lang['rate_com_user_cart_cash_international'] = 'Taux de commission utilisateur carte à cash international';
|
||||
$lang['rate_com_user_cart_cash_national'] = 'Taux de commission utilisateur carte à cash national';
|
||||
$lang['rate_com_agent_depot_wallet_national'] = 'Taux de commission du client sur opération d\'envoi vers wallet iLink national';
|
||||
$lang['rate_com_agent_depot_wallet_international'] = 'Taux de commission du client sur opération d\'envoi vers wallet iLink etranger';
|
||||
$lang['rate_com_agent_depot_wallet_international'] = 'Taux de commission du client sur opération d\'envoi vers wallet iLink étranger';
|
||||
$lang['rate_com_agent_depot_autre_wallet_national'] = 'Taux de commission du client sur opération d\'envoi vers autre wallet national';
|
||||
$lang['rate_com_agent_depot_autre_wallet_international'] = 'Taux de commission du client sur opération d\'envoi vers autre wallet etranger';
|
||||
$lang['rate_com_agent_depot_cash_cart'] = 'Taux de commission du client sur opération d\'envoi de cash vers carte';
|
||||
$lang['rate_com_agent_depot_autre_wallet_international'] = 'Taux de commission du client sur opération d\'envoi vers autre wallet étranger';
|
||||
$lang['rate_com_agent_depot_cash_cart_international'] = "Taux de commission du client sur opération d'envoi de cash vers carte international";
|
||||
$lang['rate_com_agent_depot_cash_cart_national'] = "Taux de commission du client sur opération d'envoi de cash vers carte national";
|
||||
$lang['rate_com_agent_cash_cash_national'] = 'Taux de commission du client sur opération d\'envoi de cash vers cash national';
|
||||
$lang['rate_com_agent_cash_cash_international'] = 'Taux de commission du client sur opération d\'envoi cash vers cash pays etranger';
|
||||
$lang['rate_com_agent_send_cash'] = 'Taux de commission de l\'agent géolocalisé sur operation d\'envoi d\'argent ';
|
||||
$lang['rate_com_sup_send_cash'] = 'Taux de commission du superviseur sur operation d\'envoi d\'argent ';
|
||||
$lang['rate_com_hyp_send_cash'] = 'Taux de commission de l\'hyperviseur sur operation d\'envoi d\'argent ';
|
||||
$lang['rate_com_agent_remove_cash'] = 'Taux de commission de l\'agent géolocalisé sur operation de retrait d\'argent ';
|
||||
$lang['rate_com_sup_remove_cash'] = 'Taux de commission du superviseur sur operation de retrait d\'argent ';
|
||||
$lang['rate_com_hyp_remove_cash'] = 'Taux de commission de l\'hyperviseur sur operation de retrait d\'argent ';
|
||||
$lang['rate_com_agent_depot_cart'] = 'Taux de commission de l\'agent géolocalisé sur operation de depot vers carte ';
|
||||
$lang['rate_com_sup_depot_cart'] = 'Taux de commission superviseur sur operation de depot vers carte ';
|
||||
$lang['rate_com_hyp_depot_cart'] = 'Taux de commission hyperviseur sur operation de depot vers carte ';
|
||||
$lang['rate_com_bq_depot_cart'] = 'Taux de commission de la banque sur operation de depot vers carte ';
|
||||
$lang['rate_com_agent_remove_cart'] = 'Taux de commission de l\'agent géolocalisé sur operation de retrait dans carte ';
|
||||
$lang['rate_com_sup_remove_cart'] = 'Taux de commission superviseur sur operation de retrait dans carte ';
|
||||
$lang['rate_com_hyp_remove_cart'] = 'Taux de commission hyperviseur sur operation de retrait dans carte ';
|
||||
$lang['rate_com_bq_remove_cart'] = 'Taux de commission de la banque sur operation de retrait dans carte ';
|
||||
$lang['rate_com_agent_cart_cash'] = 'Taux de commission du client chez l\'agent géolocalisé sur retrait carte à cash ';
|
||||
$lang['rate_com_agent_cash_cash_international'] = 'Taux de commission du client sur opération d\'envoi cash vers cash pays étranger';
|
||||
$lang['rate_com_agent_send_cash_international'] = "Taux de commission de l'agent géolocalisé sur operation d'envoi d'argent international";
|
||||
$lang['rate_com_agent_send_cash_national'] = "Taux de commission de l'agent géolocalisé sur operation d'envoi d'argent national";
|
||||
$lang['rate_com_sup_send_cash_international'] = "Taux de commission du superviseur sur operation d'envoi d'argent international";
|
||||
$lang['rate_com_sup_send_cash_national'] = "Taux de commission du superviseur sur operation d'envoi d'argent national";
|
||||
$lang['rate_com_hyp_send_cash_international'] = "Taux de commission de l'hyperviseur sur operation d'envoi d'argent international";
|
||||
$lang['rate_com_hyp_send_cash_national'] = "Taux de commission de l'hyperviseur sur operation d'envoi d'argent national";
|
||||
$lang['rate_com_agent_wallet_cash_international'] = "Taux de commission de l'agent géolocalisé sur operation de retrait d'argent international";
|
||||
$lang['rate_com_agent_wallet_cash_national'] = "Taux de commission de l'agent géolocalisé sur operation de retrait d'argent national";
|
||||
$lang['rate_com_sup_wallet_cash_international'] = "Taux de commission du superviseur sur operation de retrait d'argent international";
|
||||
$lang['rate_com_sup_wallet_cash_national'] = "Taux de commission du superviseur sur operation de retrait d'argent national";
|
||||
$lang['rate_com_hyp_wallet_cash_international'] = "Taux de commission de l'hyperviseur sur operation de retrait d'argent international";
|
||||
$lang['rate_com_hyp_wallet_cash_national'] = "Taux de commission de l'hyperviseur sur operation de retrait d'argent national";
|
||||
$lang['rate_com_agent_depot_cart_international'] = "Taux de commission de l'agent géolocalisé sur operation de depot vers carte international";
|
||||
$lang['rate_com_agent_depot_cart_national'] = "Taux de commission de l'agent géolocalisé sur operation de depot vers carte national";
|
||||
$lang['rate_com_sup_depot_cart_international'] = "Taux de commission superviseur sur operation de depot vers carte international";
|
||||
$lang['rate_com_sup_depot_cart_national'] = "Taux de commission superviseur sur operation de depot vers carte national";
|
||||
$lang['rate_com_hyp_depot_cart_international'] = "Taux de commission hyperviseur sur operation de depot vers carte international";
|
||||
$lang['rate_com_hyp_depot_cart_national'] = "Taux de commission hyperviseur sur operation de depot vers carte national";
|
||||
$lang['rate_com_bq_depot_cart_international'] = "Taux de commission de la banque sur operation de depot vers carte international";
|
||||
$lang['rate_com_bq_depot_cart_national'] = "Taux de commission de la banque sur operation de depot vers carte national";
|
||||
$lang['rate_com_agent_remove_cart_international'] = "Taux de commission de l'agent géolocalisé sur operation de retrait dans carte international";
|
||||
$lang['rate_com_agent_remove_cart_national'] = "Taux de commission de l'agent géolocalisé sur operation de retrait dans carte national";
|
||||
$lang['rate_com_sup_remove_cart_international'] = 'Taux de commission superviseur sur operation de retrait dans carte international';
|
||||
$lang['rate_com_sup_remove_cart_national'] = 'Taux de commission superviseur sur operation de retrait dans carte national';
|
||||
$lang['rate_com_hyp_remove_cart_international'] = 'Taux de commission hyperviseur sur operation de retrait dans carte international';
|
||||
$lang['rate_com_hyp_remove_cart_national'] = 'Taux de commission hyperviseur sur operation de retrait dans carte national';
|
||||
$lang['rate_com_bq_remove_cart_international'] = "Taux de commission de la banque sur operation de retrait dans carte international";
|
||||
$lang['rate_com_bq_remove_cart_national'] = "Taux de commission de la banque sur operation de retrait dans carte national";
|
||||
$lang['rate_com_agent_cart_cash_international'] = "Taux de commission du client chez l'agent géolocalisé sur retrait carte à cash international";
|
||||
$lang['rate_com_agent_cart_cash_national'] = "Taux de commission du client chez l'agent géolocalisé sur retrait carte à cash national";
|
||||
$lang['rate_com_agent_cash_cart'] = 'Taux de commission de l\'agent géolocalisé sur depot cash vers carte ';
|
||||
$lang['rate_com_hyp_remove_cart_ilink'] = 'Taux de commission hyperviseur sur operation de retrait dans carte pour utilisateur iLink ';
|
||||
$lang['rate_com_bq_remove_cart_ilink'] = 'Taux de commission banque sur operation de retrait dans carte pour utilisateur iLink ';
|
||||
$lang['rate_com_hyp_send_wallet_cart_ilink'] = 'Taux de commission hyperviseur sur operation d\'envoi de wallet vers carte pour utilisateur iLink';
|
||||
$lang['rate_com_bq_send_wallet_cart_ilink'] = 'Taux de commission banque sur operation d\'envoi de wallet vers carte pour utilisateur iLink';
|
||||
$lang['rate_com_hyp_remove_cart_ilink_international'] = 'Taux de commission hyperviseur sur operation de retrait dans carte pour utilisateur iLink international';
|
||||
$lang['rate_com_hyp_remove_cart_ilink_national'] = 'Taux de commission hyperviseur sur operation de retrait dans carte pour utilisateur iLink national';
|
||||
$lang['rate_com_bq_remove_cart_ilink_international'] = 'Taux de commission banque sur operation de retrait dans carte pour utilisateur iLink international';
|
||||
$lang['rate_com_bq_remove_cart_ilink_national'] = 'Taux de commission banque sur operation de retrait dans carte pour utilisateur iLink national';
|
||||
$lang['rate_com_hyp_send_wallet_cart_ilink_national'] = "Taux de commission hyperviseur sur operation d'envoi de wallet vers carte pour utilisateur iLink national";
|
||||
$lang['rate_com_hyp_send_wallet_cart_ilink_international'] = "Taux de commission hyperviseur sur operation d'envoi de wallet vers carte pour utilisateur iLink international";
|
||||
$lang['rate_com_bq_send_wallet_cart_ilink_national'] = "Taux de commission banque sur operation d'envoi de wallet vers carte pour utilisateur iLink national";
|
||||
$lang['rate_com_bq_send_wallet_cart_ilink_international'] = "Taux de commission banque sur operation d'envoi de wallet vers carte pour utilisateur iLink international";
|
||||
|
||||
// Gestion de la monnaie
|
||||
// Gestion de la monnaie
|
||||
$lang['currency'] = 'Monnaie';
|
||||
$lang['currency_code'] = 'Code de la monnaie';
|
||||
$lang['currency_management'] = 'Gestion de la monnaie';
|
||||
|
|
|
@ -1963,199 +1963,6 @@ class User_model extends CI_Model
|
|||
return ($query->num_rows() > 0) ? $query : false;
|
||||
}
|
||||
|
||||
public function addWalletPassword($network_id, $encrypted_password, $salt, $email)
|
||||
{
|
||||
$sql = "INSERT INTO `walletsPassword` (`network_id`, `encrypted_password`, `salt`, `email`) VALUES ( ?, ?, ?, ?);";
|
||||
$query = $this->db->query($sql, array($network_id, $encrypted_password, $salt, $email));
|
||||
return $query;
|
||||
}
|
||||
|
||||
public function updateWalletPassword($wallet_password_id, $encrypted_password, $salt)
|
||||
{
|
||||
$sql = "UPDATE `walletsPassword` SET `encrypted_password` = ? , `salt` = ? WHERE (`id` = ?);";
|
||||
$query = $this->db->query($sql, array($encrypted_password, $salt, $wallet_password_id));
|
||||
return $query;
|
||||
}
|
||||
|
||||
public function getWalletPassword($network_id)
|
||||
{
|
||||
$sql = "SELECT * FROM walletsPassword WHERE network_id = ?";
|
||||
$query = $this->db->query($sql, array($network_id));
|
||||
if ($query->num_rows() > 0) {
|
||||
return $query;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public function getRecharges($debut , $fin , $id_network){
|
||||
$chain = $debut ? " AND date BETWEEN '".$debut."' AND '".$fin."'" : "";
|
||||
$query = $this->db->query("SELECT *
|
||||
FROM infos_recharges
|
||||
WHERE `network_id`=".$id_network.$chain);
|
||||
return ($query->num_rows() > 0) ? $query : false;
|
||||
}
|
||||
|
||||
public function addWalletRecharge($montant,$wallet_id){
|
||||
$sql = "INSERT INTO `wallet_recharge` (`montant`, `wallet_id`) VALUES (?, ?);";
|
||||
$query = $this->db->query($sql , array($montant,$wallet_id));
|
||||
return $query;
|
||||
}
|
||||
|
||||
public function updateWalletBalance($montant,$wallet_id){
|
||||
$sql = "UPDATE `wallets` SET balance_princ = balance_princ + ? WHERE (`id` = ? );";
|
||||
$query = $this->db->query($sql , array($montant,$wallet_id));
|
||||
return $query;
|
||||
}
|
||||
|
||||
// Wallet ilink
|
||||
public function addPalierConfigWallet($type, $idConfig, $min, $max, $taux)
|
||||
{
|
||||
$sql = "INSERT INTO `paliersConfigWallet` (`type`, `min`, `max`, `taux`, `idConfig`) VALUES (?,?,?,?,?);";
|
||||
$query = $this->db->query($sql, array($type, $min, $max, $taux, $idConfig));
|
||||
return $query;
|
||||
}
|
||||
|
||||
public function addTaxe($idConfig, $nom, $type, $valeur, $destination, $categorie = 'wallet')
|
||||
{
|
||||
$sql = "INSERT INTO `taxes` (`nom`, `type`, `valeur`, `destination`,`categorie`, `idConfig`) VALUES (?,?,?,?,?,?);";
|
||||
$query = $this->db->query($sql, array($nom, $type, $valeur, $destination, $categorie, $idConfig));
|
||||
return $query;
|
||||
}
|
||||
|
||||
public function updatePalierConfigWallet($id, $min, $max, $taux)
|
||||
{
|
||||
$sql = "UPDATE `paliersConfigWallet` SET `min` = ? , `max` = ? , `taux` = ? WHERE (`id` = ?);";
|
||||
$query = $this->db->query($sql, array($min, $max, $taux, $id));
|
||||
return $query;
|
||||
}
|
||||
|
||||
public function getPalierConfigWallet($type, $idConfig)
|
||||
{
|
||||
$sql = "SELECT * FROM `paliersConfigWallet` WHERE (`type` = ? AND `idConfig` = ? );";
|
||||
$query = $this->db->query($sql, array($type, $idConfig));
|
||||
if ($query->num_rows() > 0) {
|
||||
return $query;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public function getTaxes($idConfig, $categorie = 'wallet')
|
||||
{
|
||||
$sql = "SELECT * FROM `taxes` WHERE (`idConfig` = ? AND `categorie` = ? );";
|
||||
$query = $this->db->query($sql, array($idConfig, $categorie));
|
||||
if ($query->num_rows() > 0) {
|
||||
return $query;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public function getOnePalierConfigWallet($id)
|
||||
{
|
||||
$sql = "SELECT * FROM `paliersConfigWallet` WHERE (`id` = ?);";
|
||||
$query = $this->db->query($sql, array($id));
|
||||
return ($query->num_rows() > 0) ? $query : false;
|
||||
}
|
||||
|
||||
public function deletePalierConfigWallet($type, $idConfig)
|
||||
{
|
||||
$sql = "DELETE FROM `paliersConfigWallet` WHERE (`type` = ? AND `idConfig` = ? );";
|
||||
$query = $this->db->query($sql, array($type, $idConfig));
|
||||
return $query;
|
||||
|
||||
}
|
||||
|
||||
public function deleteTaxes($idConfig, $categorie = 'wallet')
|
||||
{
|
||||
$sql = "DELETE FROM `taxes` WHERE (`idConfig` = ? AND `categorie` = ? );";
|
||||
$query = $this->db->query($sql, array($idConfig, $categorie));
|
||||
return $query;
|
||||
|
||||
}
|
||||
|
||||
public function updateConfigWalletIlink_a_s_c($taux_ag_s_c, $taux_sup_s_c, $taux_hyp_s_c, $idConfig)
|
||||
{
|
||||
$sql = "UPDATE `configWallet` SET `taux_com_ag_envoi_cash` = ?, `taux_com_sup_envoi_cash` = ?, `taux_com_hyp_envoi_cash` = ? WHERE (`id` = ?);";
|
||||
$query = $this->db->query($sql, array($taux_ag_s_c, $taux_sup_s_c, $taux_hyp_s_c, $idConfig));
|
||||
return $query;
|
||||
}
|
||||
|
||||
public function updateConfigWalletIlink_u_w_cart($taux_u_w_cart,$taux_hyp_s_wallet_cart_ilink,$taux_bq_s_wallet_cart_ilink, $idConfig){
|
||||
$sql = "UPDATE `configWallet` SET `taux_com_user_wallet_carte` = ?,
|
||||
`taux_com_hyp_envoi_wallet_carte_ilink` = ?, `taux_com_banque_envoi_wallet_carte_ilink` = ? WHERE (`id` = ?);";
|
||||
$query = $this->db->query($sql , array($taux_u_w_cart,$taux_hyp_s_wallet_cart_ilink,$taux_bq_s_wallet_cart_ilink,$idConfig));
|
||||
return $query;
|
||||
}
|
||||
|
||||
public function updateConfigWalletIlink_u_c_w($taux_u_c_w,$taux_u_c_c,$taux_hyp_r_cart_ilink,$taux_bq_r_cart_ilink , $idConfig){
|
||||
$sql = "UPDATE `configWallet` SET `taux_com_user_carte_wallet` = ?, `taux_com_user_carte_cash` = ?, `taux_com_hyp_retrait_carte_cash_ilink` = ?, `taux_com_banque_retrait_carte_cash_ilink` = ?
|
||||
WHERE (`id` = ?);";
|
||||
$query = $this->db->query($sql , array($taux_u_c_w,$taux_u_c_c,$taux_hyp_r_cart_ilink,$taux_bq_r_cart_ilink,$idConfig));
|
||||
return $query;
|
||||
}
|
||||
|
||||
public function updateConfigWalletIlink_a_r_c($taux_ag_r_c,$taux_sup_r_c,$taux_hyp_r_c,$idConfig){
|
||||
$sql = "UPDATE `configWallet` SET `taux_com_ag_retrait_cash` = ?, `taux_com_sup_retrait_cash` = ?, `taux_com_hyp_retrait_cash` = ? WHERE (`id` = ?);";
|
||||
$query = $this->db->query($sql , array($taux_ag_r_c,$taux_sup_r_c,$taux_hyp_r_c,$idConfig));
|
||||
return $query;
|
||||
}
|
||||
|
||||
public function updateConfigWalletIlink_a_r_cart($taux_ag_cart_c,$taux_ag_r_cart,$taux_sup_r_cart,$taux_hyp_r_cart,$taux_bq_r_cart ,$idConfig){
|
||||
$sql = "UPDATE `configWallet` SET `taux_com_wallet_ag_carte_cash` = ?, `taux_com_ag_retrait_carte_cash` = ?, `taux_com_sup_retrait_carte_cash` = ?,
|
||||
`taux_com_hyp_retrait_carte_cash` = ?, `taux_com_banque_retrait_carte_cash` = ? WHERE (`id` = ?);";
|
||||
$query = $this->db->query($sql , array($taux_ag_cart_c,$taux_ag_r_cart,$taux_sup_r_cart,$taux_hyp_r_cart, $taux_bq_r_cart ,$idConfig));
|
||||
return $query;
|
||||
}
|
||||
|
||||
public function updateConfigWalletIlink_a_s_cc($taux_ag_d_c_c,$taux_ag_d_c,$taux_sup_d_c,$taux_hyp_d_c,$taux_bq_d_c , $idConfig){
|
||||
$sql = "UPDATE `configWallet` SET `taux_com_wallet_ag_envoi_cash_carte` = ?,
|
||||
`taux_com_ag_depot_cash_carte` = ?, `taux_com_sup_depot_cash_carte` = ?, `taux_com_hyp_depot_cash_carte` = ?, `taux_com_banque_depot_cash_carte` = ?
|
||||
WHERE (`id` = ?);";
|
||||
$query = $this->db->query($sql , array($taux_ag_d_c_c, $taux_ag_d_c,$taux_sup_d_c,$taux_hyp_d_c,$taux_bq_d_c ,$idConfig));
|
||||
return $query;
|
||||
}
|
||||
|
||||
// La liste des monnaies pour les pays actifs
|
||||
public function getCurrencies($code){
|
||||
$sql= "SELECT * FROM currencies WHERE id IN(
|
||||
SELECT idCurrency FROM countries WHERE id IN (
|
||||
SELECT distinct country_id FROM networks WHERE status = 1
|
||||
)
|
||||
) AND code <> ? ;";
|
||||
$query = $this->db->query($sql, array($code));
|
||||
return ($query->num_rows() > 0) ? $query : false;
|
||||
}
|
||||
|
||||
//Liste des monnaies pour les pays dont un wallet est actif
|
||||
public function getWalletsCountriesCurrencies($code){
|
||||
$sql= "SELECT * FROM currencies WHERE id IN(
|
||||
SELECT idCurrency FROM countries WHERE id IN (
|
||||
SELECT distinct c.id FROM networks n INNER JOIN countries_currencies c ON n.country_id=c.id INNER JOIN configWallet cw ON cw.id_network = n.id WHERE status = 1
|
||||
)
|
||||
) AND code <> ? ;";
|
||||
$query = $this->db->query($sql, array($code));
|
||||
return ($query->num_rows() > 0) ? $query : false;
|
||||
}
|
||||
|
||||
public function insertExchangeRate($currency ,$rate){
|
||||
$sql = "INSERT INTO `exchange_rate` (`target_currency`, `exchange_rate`) VALUES ( ?, ?);";
|
||||
$query = $this->db->query($sql , array($currency,$rate));
|
||||
return $query;
|
||||
}
|
||||
|
||||
public function getExchangeRate($currency){
|
||||
$sql = "SELECT * FROM `exchange_rate` WHERE `target_currency` = ?;";
|
||||
$query = $this->db->query($sql , array($currency));
|
||||
return ($query->num_rows() > 0) ? $query : false;
|
||||
}
|
||||
|
||||
public function updateExchangeRate($currency,$rate){
|
||||
$sql = "UPDATE `exchange_rate` SET `exchange_rate` = ? WHERE (`target_currency` = ?);";
|
||||
$query = $this->db->query($sql , array($currency,$rate));
|
||||
return $query;
|
||||
}
|
||||
|
||||
//Liste des pays dont un wallet est actif
|
||||
public function getWalletsCountries(){
|
||||
|
|
|
@ -408,24 +408,18 @@ class Wallet_model extends CI_Model
|
|||
|
||||
public function getPalierConfigWallet($type, $idConfig)
|
||||
{
|
||||
$sql = "SELECT * FROM `paliersConfigWallet` WHERE (`type` = ? AND `idConfig` = ? );";
|
||||
$query = $this->db->query($sql, array($type, $idConfig));
|
||||
if ($query->num_rows() > 0) {
|
||||
return $query;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
return $this->db->get_where('paliersConfigWallet',['type' => $type , 'idConfig' => $idConfig]);
|
||||
}
|
||||
|
||||
public function getPalierCommissionsWallet($type, $idConfig)
|
||||
{
|
||||
return $this->db->get_where('paliers_commissions_wallet',['type' => $type , 'idConfig' => $idConfig]);
|
||||
}
|
||||
|
||||
|
||||
public function getTaxes($idConfig, $categorie = 'wallet')
|
||||
{
|
||||
$sql = "SELECT * FROM `taxes` WHERE (`idConfig` = ? AND `categorie` = ? );";
|
||||
$query = $this->db->query($sql, array($idConfig, $categorie));
|
||||
if ($query->num_rows() > 0) {
|
||||
return $query;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
return $this->db->get_where('taxes',['categorie' => $categorie , 'idConfig' => $idConfig]);
|
||||
}
|
||||
|
||||
public function getOnePalierConfigWallet($id)
|
||||
|
@ -451,48 +445,6 @@ class Wallet_model extends CI_Model
|
|||
|
||||
}
|
||||
|
||||
public function updateConfigWalletIlink_a_s_c($taux_ag_s_c, $taux_sup_s_c, $taux_hyp_s_c, $idConfig)
|
||||
{
|
||||
$sql = "UPDATE `configWallet` SET `taux_com_ag_envoi_cash` = ?, `taux_com_sup_envoi_cash` = ?, `taux_com_hyp_envoi_cash` = ? WHERE (`id` = ?);";
|
||||
$query = $this->db->query($sql, array($taux_ag_s_c, $taux_sup_s_c, $taux_hyp_s_c, $idConfig));
|
||||
return $query;
|
||||
}
|
||||
|
||||
public function updateConfigWalletIlink_u_w_cart($taux_u_w_cart,$taux_hyp_s_wallet_cart_ilink,$taux_bq_s_wallet_cart_ilink, $idConfig){
|
||||
$sql = "UPDATE `configWallet` SET `taux_com_user_wallet_carte` = ?,
|
||||
`taux_com_hyp_envoi_wallet_carte_ilink` = ?, `taux_com_banque_envoi_wallet_carte_ilink` = ? WHERE (`id` = ?);";
|
||||
$query = $this->db->query($sql , array($taux_u_w_cart,$taux_hyp_s_wallet_cart_ilink,$taux_bq_s_wallet_cart_ilink,$idConfig));
|
||||
return $query;
|
||||
}
|
||||
|
||||
public function updateConfigWalletIlink_u_c_w($taux_u_c_w,$taux_u_c_c,$taux_hyp_r_cart_ilink,$taux_bq_r_cart_ilink , $idConfig){
|
||||
$sql = "UPDATE `configWallet` SET `taux_com_user_carte_wallet` = ?, `taux_com_user_carte_cash` = ?, `taux_com_hyp_retrait_carte_cash_ilink` = ?, `taux_com_banque_retrait_carte_cash_ilink` = ?
|
||||
WHERE (`id` = ?);";
|
||||
$query = $this->db->query($sql , array($taux_u_c_w,$taux_u_c_c,$taux_hyp_r_cart_ilink,$taux_bq_r_cart_ilink,$idConfig));
|
||||
return $query;
|
||||
}
|
||||
|
||||
public function updateConfigWalletIlink_a_r_c($taux_ag_r_c,$taux_sup_r_c,$taux_hyp_r_c,$idConfig){
|
||||
$sql = "UPDATE `configWallet` SET `taux_com_ag_retrait_cash` = ?, `taux_com_sup_retrait_cash` = ?, `taux_com_hyp_retrait_cash` = ? WHERE (`id` = ?);";
|
||||
$query = $this->db->query($sql , array($taux_ag_r_c,$taux_sup_r_c,$taux_hyp_r_c,$idConfig));
|
||||
return $query;
|
||||
}
|
||||
|
||||
public function updateConfigWalletIlink_a_r_cart($taux_ag_cart_c,$taux_ag_r_cart,$taux_sup_r_cart,$taux_hyp_r_cart,$taux_bq_r_cart ,$idConfig){
|
||||
$sql = "UPDATE `configWallet` SET `taux_com_wallet_ag_carte_cash` = ?, `taux_com_ag_retrait_carte_cash` = ?, `taux_com_sup_retrait_carte_cash` = ?,
|
||||
`taux_com_hyp_retrait_carte_cash` = ?, `taux_com_banque_retrait_carte_cash` = ? WHERE (`id` = ?);";
|
||||
$query = $this->db->query($sql , array($taux_ag_cart_c,$taux_ag_r_cart,$taux_sup_r_cart,$taux_hyp_r_cart, $taux_bq_r_cart ,$idConfig));
|
||||
return $query;
|
||||
}
|
||||
|
||||
public function updateConfigWalletIlink_a_s_cc($taux_ag_d_c_c,$taux_ag_d_c,$taux_sup_d_c,$taux_hyp_d_c,$taux_bq_d_c , $idConfig){
|
||||
$sql = "UPDATE `configWallet` SET `taux_com_wallet_ag_envoi_cash_carte` = ?,
|
||||
`taux_com_ag_depot_cash_carte` = ?, `taux_com_sup_depot_cash_carte` = ?, `taux_com_hyp_depot_cash_carte` = ?, `taux_com_banque_depot_cash_carte` = ?
|
||||
WHERE (`id` = ?);";
|
||||
$query = $this->db->query($sql , array($taux_ag_d_c_c, $taux_ag_d_c,$taux_sup_d_c,$taux_hyp_d_c,$taux_bq_d_c ,$idConfig));
|
||||
return $query;
|
||||
}
|
||||
|
||||
// La liste des monnaies pour les pays actifs
|
||||
public function getCurrencies($code){
|
||||
$sql= "SELECT * FROM currencies WHERE id IN(
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -4,10 +4,7 @@
|
|||
<link rel="stylesheet"
|
||||
href="<?= base_url('bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css') ?>">
|
||||
<link rel="stylesheet" href="<?= base_url('bower_components/toastr/toastr.css') ?>">
|
||||
|
||||
<link rel="stylesheet" href="<?= base_url('bower_components/google-material-icons/google-material-icons.min.css') ?>">
|
||||
|
||||
|
||||
<link rel="stylesheet" href="<?= base_url('dist/css/custom/levels-table.css') ?>">
|
||||
<?php
|
||||
|
||||
|
@ -64,6 +61,10 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="callout callout-info">
|
||||
<p>Note</p>
|
||||
<h4><?= $this->lang->line('config_ilink_note') ?></h4>
|
||||
</div>
|
||||
<div class="row centered">
|
||||
<div class="col-lg-6 col-xs-12">
|
||||
<div class="box">
|
||||
|
@ -82,7 +83,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
|
||||
</tr>
|
||||
<?php
|
||||
if ($plr_user_wallet_cash != false) {
|
||||
if ($plr_user_wallet_cash) {
|
||||
foreach ($plr_user_wallet_cash->result() as $row) {
|
||||
echo "<tr>
|
||||
<td>" . $fmt->format($row->min) . "</td>
|
||||
|
@ -115,7 +116,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
<th><?= $this->lang->line('ceiling')?></th>
|
||||
</tr>
|
||||
<?php
|
||||
if ($plr_user_wallet_cash_national != false) {
|
||||
if ($plr_user_wallet_cash_national) {
|
||||
foreach ($plr_user_wallet_cash_national->result() as $row) {
|
||||
echo "<tr>
|
||||
<td>" . $fmt->format($row->min) . "</td>
|
||||
|
@ -133,10 +134,6 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="callout callout-info">
|
||||
<p>Note</p>
|
||||
<h4><?= $this->lang->line('config_ilink_note') ?></h4>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="modal fade" id="modal-update">
|
||||
<div class="modal-dialog" style="max-width: 1200px; width: 100%;">
|
||||
|
@ -177,7 +174,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if ($plr_user_wallet_cash != false) {
|
||||
if ($plr_user_wallet_cash) {
|
||||
foreach ($plr_user_wallet_cash->result() as $row) {
|
||||
echo "<tr>
|
||||
<td>" . $row->min . "</td>
|
||||
|
@ -224,7 +221,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if ($plr_user_wallet_cash_national != false) {
|
||||
if ($plr_user_wallet_cash_national) {
|
||||
foreach ($plr_user_wallet_cash_national->result() as $row) {
|
||||
echo "<tr>
|
||||
<td>" . $row->min . "</td>
|
||||
|
@ -284,6 +281,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
<script src="<?= base_url('bower_components/chart.js/Chart.js') ?>"></script>
|
||||
<script src="<?= base_url('bower_components/toastr/toastr.js') ?>"></script>
|
||||
<script src="<?= base_url('dist/js/sweetalert2.js') ?>"></script>
|
||||
<script src="<?= base_url('dist/js/helpers.js') ?>"></script>
|
||||
|
||||
<script>
|
||||
toastr.options.closeButton = true;
|
||||
|
@ -297,31 +295,8 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
if ($('#walletForm')[0].checkValidity()) {
|
||||
|
||||
// Paliers
|
||||
var plr_user_wallet_cash = [];
|
||||
|
||||
var plr_user_wallet_cash_national = [];
|
||||
|
||||
$('#user_wallet_cash tr').has('td').each(function () {
|
||||
var arrayItem = {};
|
||||
$('td', $(this)).each(function (index, item) {
|
||||
if (index < 4){
|
||||
let val = parseFloat($(item).html())
|
||||
arrayItem[index] = !isNaN(val) ? val : null;
|
||||
}
|
||||
});
|
||||
plr_user_wallet_cash.push(arrayItem);
|
||||
});
|
||||
|
||||
$('#user_wallet_cash_national tr').has('td').each(function () {
|
||||
var arrayItem = {};
|
||||
$('td', $(this)).each(function (index, item) {
|
||||
if (index < 4){
|
||||
let val = parseFloat($(item).html())
|
||||
arrayItem[index] = !isNaN(val) ? val : null;
|
||||
}
|
||||
});
|
||||
plr_user_wallet_cash_national.push(arrayItem);
|
||||
});
|
||||
var plr_user_wallet_cash = getPaliersTable('user_wallet_cash');
|
||||
var plr_user_wallet_cash_national = getPaliersTable('user_wallet_cash_national');
|
||||
|
||||
$.ajax({
|
||||
url: '<?= base_url('Gestion/config_wallet/update')?>',
|
||||
|
|
|
@ -4,10 +4,7 @@
|
|||
<link rel="stylesheet"
|
||||
href="<?= base_url('bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css') ?>">
|
||||
<link rel="stylesheet" href="<?= base_url('bower_components/toastr/toastr.css') ?>">
|
||||
|
||||
<link rel="stylesheet" href="<?= base_url('bower_components/google-material-icons/google-material-icons.min.css') ?>">
|
||||
|
||||
|
||||
<link rel="stylesheet" href="<?= base_url('dist/css/custom/levels-table.css') ?>">
|
||||
<?php
|
||||
|
||||
|
@ -63,6 +60,10 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="callout callout-info">
|
||||
<p>Note</p>
|
||||
<h4><?= $this->lang->line('config_ilink_note') ?></h4>
|
||||
</div>
|
||||
<div class="row centered">
|
||||
<div class="col-lg-6 col-xs-12">
|
||||
<div class="box">
|
||||
|
@ -80,7 +81,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
<th><?= $this->lang->line('ceiling')?></th>
|
||||
</tr>
|
||||
<?php
|
||||
if ($plr_user_wallet_wallet != false) {
|
||||
if ($plr_user_wallet_wallet) {
|
||||
foreach ($plr_user_wallet_wallet->result() as $row) {
|
||||
echo "<tr>
|
||||
<td>" . $fmt->format($row->min) . "</td>
|
||||
|
@ -113,7 +114,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
<th><?= $this->lang->line('ceiling')?></th>
|
||||
</tr>
|
||||
<?php
|
||||
if ($plr_user_wallet_wallet_national != false) {
|
||||
if ($plr_user_wallet_wallet_national) {
|
||||
foreach ($plr_user_wallet_wallet_national->result() as $row) {
|
||||
echo "<tr>
|
||||
<td>" . $fmt->format($row->min) . "</td>
|
||||
|
@ -131,10 +132,6 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="callout callout-info">
|
||||
<p>Note</p>
|
||||
<h4><?= $this->lang->line('config_ilink_note') ?></h4>
|
||||
</div>
|
||||
<div class="modal fade" id="modal-update">
|
||||
<div class="modal-dialog" style="max-width: 1200px; width: 100%;">
|
||||
<div class="modal-content">
|
||||
|
@ -174,7 +171,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if ($plr_user_wallet_wallet != false) {
|
||||
if ($plr_user_wallet_wallet) {
|
||||
foreach ($plr_user_wallet_wallet->result() as $row) {
|
||||
echo "<tr>
|
||||
<td>" . $row->min . "</td>
|
||||
|
@ -221,7 +218,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if ($plr_user_wallet_wallet_national != false) {
|
||||
if ($plr_user_wallet_wallet_national) {
|
||||
foreach ($plr_user_wallet_wallet_national->result() as $row) {
|
||||
echo "<tr>
|
||||
<td>" . $row->min . "</td>
|
||||
|
@ -280,6 +277,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
<script src="<?= base_url('bower_components/chart.js/Chart.js') ?>"></script>
|
||||
<script src="<?= base_url('bower_components/toastr/toastr.js') ?>"></script>
|
||||
<script src="<?= base_url('dist/js/sweetalert2.js') ?>"></script>
|
||||
<script src="<?= base_url('dist/js/helpers.js') ?>"></script>
|
||||
|
||||
<script>
|
||||
toastr.options.closeButton = true;
|
||||
|
@ -293,33 +291,8 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
if ($('#walletForm')[0].checkValidity()) {
|
||||
|
||||
// Paliers
|
||||
var plr_user_wallet_wallet = [];
|
||||
|
||||
var plr_user_wallet_wallet_national = [];
|
||||
|
||||
$('#user_wallet_wallet tr').has('td').each(function () {
|
||||
var arrayItem = {};
|
||||
$('td', $(this)).each(function (index, item) {
|
||||
if (index < 4){
|
||||
let val = parseFloat($(item).html())
|
||||
arrayItem[index] = !isNaN(val) ? val : null;
|
||||
}
|
||||
});
|
||||
plr_user_wallet_wallet.push(arrayItem);
|
||||
});
|
||||
|
||||
|
||||
$('#user_wallet_wallet_national tr').has('td').each(function () {
|
||||
var arrayItem = {};
|
||||
$('td', $(this)).each(function (index, item) {
|
||||
if (index < 4){
|
||||
let val = parseFloat($(item).html())
|
||||
arrayItem[index] = !isNaN(val) ? val : null;
|
||||
}
|
||||
});
|
||||
plr_user_wallet_wallet_national.push(arrayItem);
|
||||
});
|
||||
|
||||
var plr_user_wallet_wallet = getPaliersTable('user_wallet_wallet');
|
||||
var plr_user_wallet_wallet_national = getPaliersTable('user_wallet_wallet_national');
|
||||
|
||||
$.ajax({
|
||||
url: '<?= base_url('Gestion/config_wallet/update')?>',
|
||||
|
@ -377,7 +350,7 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
|
|||
var row = '<tr>' +
|
||||
'<td><input type="number" required min="0" class="form-control" name="min" id="min"></td>' +
|
||||
'<td><input type="number" required class="form-control" name="max" id="max"></td>' +
|
||||
'<td><input type="number" required class="form-control" min="0" name="taux" id="taux"></td>' +
|
||||
'<td><input type="number" required class="form-control" min="0" step="any" name="taux" id="taux"></td>' +
|
||||
'<td><input type="number" min="1" class="form-control" name="plafond" id="plafond"></td>' +
|
||||
'<td> ' + actions1 + '</td>' +
|
||||
'</tr>';
|
||||
|
|
|
@ -65,7 +65,7 @@
|
|||
<span class="info-box-text"><?= $this->lang->line('Temps moyen de traitement entrant'); ?> </span>
|
||||
<span class="info-box-number">
|
||||
<?php
|
||||
if ($temp_moyen != false) {
|
||||
if ($temp_moyen) {
|
||||
if (duree($temp_moyen) == "") {
|
||||
echo "0s";
|
||||
} else {
|
||||
|
@ -108,7 +108,7 @@
|
|||
<span class="info-box-text"><?= $this->lang->line('Temps moyen de traitement sortant'); ?></span>
|
||||
<span class="info-box-number">
|
||||
<?php
|
||||
if ($temp_moyen_mine != false) {
|
||||
if ($temp_moyen_mine) {
|
||||
if (duree($temp_moyen_mine) == "") {
|
||||
echo "0s";
|
||||
} else {
|
||||
|
@ -139,7 +139,7 @@
|
|||
<?php
|
||||
|
||||
$result = $list;
|
||||
if ($result != false){
|
||||
if ($result){
|
||||
|
||||
$numrows = $result->num_rows();
|
||||
$num = 0;
|
||||
|
@ -230,7 +230,7 @@
|
|||
<?php
|
||||
|
||||
$result = $mydem;
|
||||
if ($result != false){
|
||||
if ($result){
|
||||
|
||||
$numrows = $result->num_rows();
|
||||
$num = 0;
|
||||
|
@ -321,7 +321,7 @@
|
|||
<?php
|
||||
|
||||
$result = $tab_fastDemande;
|
||||
if ($result != false){
|
||||
if ($result){
|
||||
|
||||
$numrows = $result->num_rows();
|
||||
$num = 0;
|
||||
|
@ -402,7 +402,7 @@
|
|||
<?php
|
||||
|
||||
$result = $tab_fastDemande_s;
|
||||
if ($result != false){
|
||||
if ($result){
|
||||
|
||||
$numrows = $result->num_rows();
|
||||
$num = 0;
|
||||
|
@ -483,7 +483,7 @@
|
|||
<?php
|
||||
|
||||
$result = $tab_slowDemande;
|
||||
if ($result != false){
|
||||
if ($result){
|
||||
|
||||
$numrows = $result->num_rows();
|
||||
$num = 0;
|
||||
|
@ -564,7 +564,7 @@
|
|||
<?php
|
||||
|
||||
$result = $tab_slowDemande_s;
|
||||
if ($result != false){
|
||||
if ($result){
|
||||
|
||||
$numrows = $result->num_rows();
|
||||
$num = 0;
|
||||
|
@ -644,7 +644,7 @@
|
|||
<?php
|
||||
|
||||
$result = $list;
|
||||
if ($result != false){
|
||||
if ($result){
|
||||
|
||||
$numrows = $result->num_rows();
|
||||
$num = 0;
|
||||
|
@ -739,7 +739,7 @@
|
|||
<?php
|
||||
|
||||
$result = $tab_fastDemande;
|
||||
if ($result != false){
|
||||
if ($result){
|
||||
|
||||
$numrows = $result->num_rows();
|
||||
$num = 0;
|
||||
|
@ -819,7 +819,7 @@
|
|||
<?php
|
||||
|
||||
$result = $tab_slowDemande;
|
||||
if ($result != false){
|
||||
if ($result){
|
||||
|
||||
$numrows = $result->num_rows();
|
||||
$num = 0;
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
<span class="info-box-text"><?= $this->lang->line('Temps moyen de traitement entrant'); ?> </span>
|
||||
<span class="info-box-number">
|
||||
<?php
|
||||
if ($temp_moyen != false) {
|
||||
if ($temp_moyen) {
|
||||
if (duree($temp_moyen) == "") {
|
||||
echo "0s";
|
||||
} else {
|
||||
|
|
|
@ -179,7 +179,7 @@
|
|||
<div class="box-body">
|
||||
<div class="row">
|
||||
<?php $users = $res_users;
|
||||
if ($users != false) {
|
||||
if ($users) {
|
||||
$numrows = $users->num_rows();
|
||||
$num = 0;
|
||||
if ($numrows > 0) {
|
||||
|
|
|
@ -60,7 +60,7 @@ $depots = $this->db->query("SELECT * FROM infos_transaction
|
|||
AND date_created BETWEEN '" . $startDate . "' AND '" . $endDate . "'
|
||||
AND type_transac='credit'");
|
||||
|
||||
if ($transactions != false) {
|
||||
if ($transactions) {
|
||||
$transac = $transactions->num_rows();
|
||||
$array_transac = array();
|
||||
$num = 0;
|
||||
|
|
|
@ -65,7 +65,7 @@ $depots = $this->db->query("SELECT * FROM infos_transaction
|
|||
AND date_created BETWEEN '" . $startDate . "' AND '" . $endDate . "'
|
||||
AND type_transac='credit'");
|
||||
|
||||
//if ($transactions != false) {
|
||||
//if ($transactions) {
|
||||
// $transac = $transactions->num_rows();
|
||||
// $array_transac = array();
|
||||
// $num = 0;
|
||||
|
|
|
@ -63,7 +63,7 @@ $depots = $this->db->query("SELECT * FROM infos_ilink_transaction
|
|||
WHERE network_emetteur='" . $network_id . "'
|
||||
AND date BETWEEN '" . $startDate . "' AND '" . $endDate . "'
|
||||
AND type_transaction='depot'");
|
||||
if ($transactions != false) {
|
||||
if ($transactions) {
|
||||
$transac = $transactions->num_rows();
|
||||
$array_transac = array();
|
||||
$num = 0;
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
|
||||
<?php
|
||||
$sql2 = $networks;
|
||||
if ($sql2 != false) {
|
||||
if ($sql2) {
|
||||
$numrows = sizeof($sql2);
|
||||
$num = 0;
|
||||
if ($numrows > 0) {
|
||||
|
@ -167,7 +167,7 @@
|
|||
|
||||
<?php
|
||||
$sql2 = $networks;
|
||||
if ($sql2 != false) {
|
||||
if ($sql2) {
|
||||
$sql2 = array_filter($sql2, function ($val) {
|
||||
return $val->type == 'autre';
|
||||
});
|
||||
|
|
|
@ -58,7 +58,7 @@
|
|||
|
||||
<?php
|
||||
$sql2 = $networks;
|
||||
if ($sql2 != false) {
|
||||
if ($sql2) {
|
||||
$numrows = $networks->num_rows();
|
||||
$num = 0;
|
||||
if ($numrows > 0) {
|
||||
|
@ -153,7 +153,7 @@
|
|||
|
||||
<?php
|
||||
$sql2 = $transmitting_networks;
|
||||
if ($sql2 != false) {
|
||||
if ($sql2) {
|
||||
$numrows = $networks->num_rows();
|
||||
$num = 0;
|
||||
if ($numrows > 0) {
|
||||
|
|
|
@ -72,7 +72,7 @@
|
|||
|
||||
<?php
|
||||
$result = $list;
|
||||
if ($result != false){
|
||||
if ($result){
|
||||
|
||||
$numrows = $result->num_rows();
|
||||
$num = 0;
|
||||
|
|
|
@ -230,7 +230,7 @@ $context = new \Brick\Money\Context\AutoContext();
|
|||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if ($rates != false) {
|
||||
if ($rates) {
|
||||
foreach ($rates->result() as $row) {
|
||||
echo "<tr>
|
||||
<td>" . $row->duree_mois . "</td>
|
||||
|
@ -260,7 +260,7 @@ $context = new \Brick\Money\Context\AutoContext();
|
|||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if ($taxes != false) {
|
||||
if ($taxes) {
|
||||
foreach ($taxes->result() as $row) {
|
||||
echo "<tr>
|
||||
<td>" . $row->nom . "</td>
|
||||
|
@ -313,7 +313,7 @@ $context = new \Brick\Money\Context\AutoContext();
|
|||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if ($rates != false) {
|
||||
if ($rates) {
|
||||
foreach ($rates->result() as $row) {
|
||||
echo "<tr>
|
||||
<td>" . $row->duree_mois . "</td>
|
||||
|
@ -380,7 +380,7 @@ $context = new \Brick\Money\Context\AutoContext();
|
|||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if ($taxes != false) {
|
||||
if ($taxes) {
|
||||
foreach ($taxes->result() as $row) {
|
||||
echo "<tr>
|
||||
<td>" . $row->nom . "</td>
|
||||
|
|
|
@ -83,7 +83,7 @@ $context = new \Brick\Money\Context\AutoContext();
|
|||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if ($rates != false) {
|
||||
if ($rates) {
|
||||
foreach ($rates->result() as $row) {
|
||||
echo "<tr>
|
||||
<td>" . $row->duree_mois . "</td>
|
||||
|
@ -113,7 +113,7 @@ $context = new \Brick\Money\Context\AutoContext();
|
|||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if ($taxes != false) {
|
||||
if ($taxes) {
|
||||
foreach ($taxes->result() as $row) {
|
||||
echo "<tr>
|
||||
<td>" . $row->nom . "</td>
|
||||
|
@ -166,7 +166,7 @@ $context = new \Brick\Money\Context\AutoContext();
|
|||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if ($rates != false) {
|
||||
if ($rates) {
|
||||
foreach ($rates->result() as $row) {
|
||||
echo "<tr>
|
||||
<td>" . $row->duree_mois . "</td>
|
||||
|
@ -233,7 +233,7 @@ $context = new \Brick\Money\Context\AutoContext();
|
|||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if ($taxes != false) {
|
||||
if ($taxes) {
|
||||
foreach ($taxes->result() as $row) {
|
||||
echo "<tr>
|
||||
<td>" . $row->nom . "</td>
|
||||
|
|
|
@ -91,7 +91,7 @@ $context = new \Brick\Money\Context\AutoContext();
|
|||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if ($rates_nano_credit != false) {
|
||||
if ($rates_nano_credit) {
|
||||
foreach ($rates_nano_credit->result() as $row) {
|
||||
echo "<tr>
|
||||
<td>" . $row->duree_mois . "</td>
|
||||
|
@ -121,7 +121,7 @@ $context = new \Brick\Money\Context\AutoContext();
|
|||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if ($taxes_nano_credit != false) {
|
||||
if ($taxes_nano_credit) {
|
||||
foreach ($taxes_nano_credit->result() as $row) {
|
||||
echo "<tr>
|
||||
<td>" . $row->nom . "</td>
|
||||
|
@ -153,7 +153,7 @@ $context = new \Brick\Money\Context\AutoContext();
|
|||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if ($rates_epargne != false) {
|
||||
if ($rates_epargne) {
|
||||
foreach ($rates_epargne->result() as $row) {
|
||||
echo "<tr>
|
||||
<td>" . $row->duree_mois . "</td>
|
||||
|
@ -183,7 +183,7 @@ $context = new \Brick\Money\Context\AutoContext();
|
|||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if ($taxes_epargne != false) {
|
||||
if ($taxes_epargne) {
|
||||
foreach ($taxes_epargne->result() as $row) {
|
||||
echo "<tr>
|
||||
<td>" . $row->nom . "</td>
|
||||
|
@ -236,7 +236,7 @@ $context = new \Brick\Money\Context\AutoContext();
|
|||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if ($groups != false) {
|
||||
if ($groups) {
|
||||
foreach ($groups->result() as $row) {
|
||||
echo "<tr>
|
||||
<td>" . $row->code_groupe . "</td>
|
||||
|
|
|
@ -135,7 +135,7 @@ $context = new \Brick\Money\Context\AutoContext();
|
|||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if ($groups != false) {
|
||||
if ($groups) {
|
||||
foreach ($groups->result() as $row) {
|
||||
echo "<tr>
|
||||
<td>" . $row->code_groupe . "</td>
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
<?php
|
||||
|
||||
$sql2 = $networks;
|
||||
if ($sql2 != false) {
|
||||
if ($sql2) {
|
||||
$numrows = $sql2->num_rows();
|
||||
$num = 0;
|
||||
if ($numrows > 0) {
|
||||
|
|
|
@ -154,7 +154,7 @@ $context = new \Brick\Money\Context\AutoContext();
|
|||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if ($members != false) {
|
||||
if ($members) {
|
||||
foreach ($members->result() as $row) { ?>
|
||||
<tr>
|
||||
<?php
|
||||
|
|
|
@ -22,7 +22,7 @@ $context = new \Brick\Money\Context\AutoContext();
|
|||
// $label_months [] = date("M", $month) . " " . date("Y", $month);
|
||||
//}
|
||||
|
||||
//if ($transactions != false) {
|
||||
//if ($transactions) {
|
||||
// $transac = $transactions->num_rows();
|
||||
// $array_transac = array();
|
||||
// $num = 0;
|
||||
|
|
|
@ -93,7 +93,7 @@ $context = new \Brick\Money\Context\AutoContext();
|
|||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if ($rates_nano_credit != false) {
|
||||
if ($rates_nano_credit) {
|
||||
foreach ($rates_nano_credit->result() as $row) {
|
||||
echo "<tr>
|
||||
<td>" . $row->duree_mois . "</td>
|
||||
|
@ -123,7 +123,7 @@ $context = new \Brick\Money\Context\AutoContext();
|
|||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if ($taxes_nano_credit != false) {
|
||||
if ($taxes_nano_credit) {
|
||||
foreach ($taxes_nano_credit->result() as $row) {
|
||||
echo "<tr>
|
||||
<td>" . $row->nom . "</td>
|
||||
|
@ -155,7 +155,7 @@ $context = new \Brick\Money\Context\AutoContext();
|
|||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if ($rates_epargne != false) {
|
||||
if ($rates_epargne) {
|
||||
foreach ($rates_epargne->result() as $row) {
|
||||
echo "<tr>
|
||||
<td>" . $row->duree_mois . "</td>
|
||||
|
@ -185,7 +185,7 @@ $context = new \Brick\Money\Context\AutoContext();
|
|||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if ($taxes_epargne != false) {
|
||||
if ($taxes_epargne) {
|
||||
foreach ($taxes_epargne->result() as $row) {
|
||||
echo "<tr>
|
||||
<td>" . $row->nom . "</td>
|
||||
|
@ -232,7 +232,7 @@ $context = new \Brick\Money\Context\AutoContext();
|
|||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if ($insurances != false) {
|
||||
if ($insurances) {
|
||||
foreach ($insurances->result() as $i => $row) {
|
||||
echo "<tr>
|
||||
<td>" . $i . "</td>
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
<?php
|
||||
|
||||
$sql2 = $networks;
|
||||
if ($sql2 != false) {
|
||||
if ($sql2) {
|
||||
$numrows = $sql2->num_rows();
|
||||
$num = 0;
|
||||
if ($numrows > 0) {
|
||||
|
|
|
@ -34,7 +34,7 @@ for ($i = 1; $i <= 12; $i++) {
|
|||
|
||||
$careRequests = [];
|
||||
|
||||
//if ($transactions != false) {
|
||||
//if ($transactions) {
|
||||
// $transac = $transactions->num_rows();
|
||||
// $array_transac = array();
|
||||
// $num = 0;
|
||||
|
|
|
@ -34,7 +34,7 @@ for ($i = 1; $i <= 12; $i++) {
|
|||
|
||||
$careRequests = [];
|
||||
|
||||
//if ($transactions != false) {
|
||||
//if ($transactions) {
|
||||
// $transac = $transactions->num_rows();
|
||||
// $array_transac = array();
|
||||
// $num = 0;
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
function getPaliersTable(tableId){
|
||||
let table = [];
|
||||
$(`#${tableId} tr`).has('td').each(function () {
|
||||
var arrayItem = {};
|
||||
$('td', $(this)).each(function (index, item) {
|
||||
if (index < 4){
|
||||
let val = parseFloat($(item).html())
|
||||
arrayItem[index] = !isNaN(val) ? val : null;
|
||||
}
|
||||
});
|
||||
table.push(arrayItem);
|
||||
});
|
||||
return table
|
||||
}
|
Loading…
Reference in New Issue