diff --git a/application/controllers/Gestion.php b/application/controllers/Gestion.php
index 9d1e71e3..053b9471 100755
--- a/application/controllers/Gestion.php
+++ b/application/controllers/Gestion.php
@@ -2064,11 +2064,27 @@ class Gestion extends CI_Controller
$data['active'] = "nano_credit";
$data['alert'] = "";
$data['game_pays'] = $this->user_model->getGameCountry();
- $data['networks'] = $this->user_model->getAllIlinkWorldNetworks();
- $this->load->view('header_gestion', $data);
- $this->load->view('nano_credit/gestion_nano_credits');
- $this->load->view('footer');
+ if ($this->input->get('id')) {
+ $data['network_id'] = $this->input->get('id');
+ $data['groups'] = $this->user_model->getUsersGroups($data['network_id']);
+ $data['configWallet'] = $this->user_model->getConfigWallet($data['network_id'])->first_row();
+ $networkDetails = $this->user_model->getNetworkDetails($data['network_id']);
+ if ($networkDetails) {
+ $data['network'] = $networkDetails->first_row()->network;
+ $data['country'] = $networkDetails->first_row()->country;
+ $data['currency_code'] = $networkDetails->first_row()->currency_code;
+ }
+ $this->load->view('header_gestion', $data);
+ $this->load->view('nano_credit/gestion_nano_credit_admin');
+ $this->load->view('footer');
+ } else {
+ $data['networks'] = $this->user_model->getAllIlinkWorldNetworks();
+ $this->load->view('header_gestion', $data);
+ $this->load->view('nano_credit/gestion_nano_credits');
+ $this->load->view('footer');
+
+ }
}
}
diff --git a/application/controllers/Hyperviseur_dash.php b/application/controllers/Hyperviseur_dash.php
index 0ab482c0..8a3cc412 100755
--- a/application/controllers/Hyperviseur_dash.php
+++ b/application/controllers/Hyperviseur_dash.php
@@ -381,8 +381,8 @@ class Hyperviseur_dash extends CI_Controller
}
$row = $res->first_row();
- $data["commission"] = Money::of(round($row->balance_com,2), $this->session->userdata('currency_code'),$context)->formatTo('fr_FR');
- $data["principal"] = Money::of(round($row->balance_princ,2), $this->session->userdata('currency_code'),$context)->formatTo('fr_FR');
+ $data["commission"] = Money::of(round($row->balance_com, 2), $this->session->userdata('currency_code'), $context)->formatTo('fr_FR');
+ $data["principal"] = Money::of(round($row->balance_princ, 2), $this->session->userdata('currency_code'), $context)->formatTo('fr_FR');
$data['wallet_id'] = $row->wallet_id;
$data['curreny_code'] = $this->session->userdata('currency_code');
@@ -390,7 +390,7 @@ class Hyperviseur_dash extends CI_Controller
$res = $this->user_model->getWalletPassword($id_network);
$data['walletPassword'] = $res ? $res->first_row() : null;
$data['alert'] = "";
- $data['active'] = "wallet";
+ $data['active'] = "wallet_wallet";
$data['token'] = $this->session->userdata('token');
$data['email'] = $this->session->userdata('email');
$data['firstname'] = $this->session->userdata('firstname');
@@ -666,7 +666,7 @@ class Hyperviseur_dash extends CI_Controller
public function calculator()
{
if ($this->isLogged()) {
- $data['active'] = "calculator";
+ $data['active'] = "wallet_calculator";
$data['alert'] = "";
$data['firstname'] = $this->session->userdata('firstname');
$data['lastname'] = $this->session->userdata('lastname');
@@ -1191,6 +1191,7 @@ class Hyperviseur_dash extends CI_Controller
{
if ($this->isLogged()) {
$data['hasWallet'] = $this->user_model->getConfigWallet($this->session->userdata('network_id'));
+ $data['groups'] = $this->user_model->getUsersGroups($this->session->userdata('network_id'));
$data['active'] = "nano_credit";
$data['alert'] = "";
$data['game_pays'] = $this->user_model->getGameCountry();
diff --git a/application/language/french/message_lang.php b/application/language/french/message_lang.php
index 8aa0e2e5..7224cb58 100755
--- a/application/language/french/message_lang.php
+++ b/application/language/french/message_lang.php
@@ -468,4 +468,11 @@ $lang['credit_limit'] = 'Limite de crédit';
$lang['nano_credit_removal'] = 'Suppression du nano crédit';
$lang['set_credit_limit'] = 'Définir la limite de crédit';
$lang['nano_credit_deleted'] = 'Nano crédit supprimé';
+$lang['users_groups'] = 'Groupes clients';
+$lang['nano_credit_history'] = 'Historique de nano credits';
+$lang['group_code'] = 'Code du groupe';
+$lang['creator'] = 'Createur';
+$lang['credit_limit'] = 'Limite de credit';
+$lang['wallet_management'] = 'Gestion du wallet';
+$lang['nano_credit_management'] = 'Gestion du nano credit';
?>
diff --git a/application/models/User_model.php b/application/models/User_model.php
index 1b961121..a20d47af 100755
--- a/application/models/User_model.php
+++ b/application/models/User_model.php
@@ -2683,4 +2683,14 @@ class User_model extends CI_Model
return false;
}
}
+
+ public function getUsersGroups($id_network)
+ {
+ $query = $this->db->query("SELECT * FROM infos_users_groups WHERE id_network = '" . $id_network . "'");
+ if ($query->num_rows() > 0) {
+ return $query;
+ } else {
+ return false;
+ }
+ }
}
diff --git a/application/views/header_hyp.php b/application/views/header_hyp.php
index 186a60c7..4fb9fb0d 100755
--- a/application/views/header_hyp.php
+++ b/application/views/header_hyp.php
@@ -151,19 +151,48 @@
-
">
-
- Walletlang->line('Game'); ?>
-
-
- ">
-
- lang->line('menu_wallet_password'); ?>
+ "
+ style="height: auto;">
+
+
+ lang->line('wallet_management'); ?>
+
+
+
+
- first_row()->type == 'ilink'){ ?>
+
+
+ first_row()->type == 'ilink') { ?>
">
@@ -171,14 +200,6 @@
Nano credit
- ">
-
-
- lang->line('calculator'); ?>
-
-
diff --git a/application/views/nano_credit/gestion_nano_credit_admin.php b/application/views/nano_credit/gestion_nano_credit_admin.php
new file mode 100755
index 00000000..e655f7ec
--- /dev/null
+++ b/application/views/nano_credit/gestion_nano_credit_admin.php
@@ -0,0 +1,339 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
limite_credit_min, 2), $currency_code, $context)->formatTo('fr_FR') ?>
+
lang->line('minimum_credit_limit') ?>
+
+
+
+
+
+
+
+
+
+
+
limite_credit_max, 2), $currency_code, $context)->formatTo('fr_FR'); ?>
+
lang->line('maximum_credit_limit') ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ " . $this->lang->line('group_code') . "
+ " . $this->lang->line('Nom') . " |
+ " . $this->lang->line('creator') . " |
+ " . $this->lang->line('credit_limit') . " |
+ Sponsor 1 |
+ Sponsor 2 |
+ Sponsor 3 |
+ Status |
+ " . $this->lang->line('created_date') . " | ";
+ ?>
+
+
+
+ result() as $row) {
+ echo "
+ " . $row->code_groupe . " |
+ " . $row->nom . " |
+ " . $row->createur . " |
+ " . Money::of(round($row->limite_credit, 2), $row->currency_code, $context)->formatTo('fr_FR') . " |
+ " . $row->sponsor1 . " |
+ " . $row->sponsor2 . " |
+ " . $row->sponsor3 . " | ";
+ ?>
+ actif) {
+ ?>
+
+ lang->line('Actif') ?>
+ |
+
+
+ lang->line('Inactif') ?>
+ |
+
+ = $row->date_creation ?> |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/application/views/nano_credit/gestion_nano_credit_hyp.php b/application/views/nano_credit/gestion_nano_credit_hyp.php
index f78739ef..8c28d303 100755
--- a/application/views/nano_credit/gestion_nano_credit_hyp.php
+++ b/application/views/nano_credit/gestion_nano_credit_hyp.php
@@ -6,63 +6,12 @@
-
-
-
-
@@ -137,87 +86,78 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
-
-
-
-
-
- lang->line('Commissions Superviseurs') ?>
-
-
-
- lang->line('commission_transfer_historic'); ?>
-
-
-
- lang->line('balance_statement'); ?>
-
-
-
-
-
-
-
- ".$this->lang->line('Nom')."
- // ".$this->lang->line('Solde Principal')." |
- // ".$this->lang->line('Solde Commission')." |
- // ".$this->lang->line('Commission banque')." |
- // ".$this->lang->line('DEPOT'). 's'." |
- // ".$this->lang->line('RETRAIT').'s'." | ";
- // ?>
-
-
-
- result() as $row) {
- // $wallet = null;
- // foreach ($agentWalletInfos->result() as $value) {
- // if ($value->agent_id == $row->agent_id) {
- // $wallet = $value;
- // break;
- // }
- // }
- // $com = 0;
- // $princ = 0;
- // if($wallet) {
- // $com = $wallet->balance_com;
- // $princ = $wallet->balance_princ;
- // }
- // echo "
- // ".$row->lastname." |
- // ".Money::of(round($princ,2), $this->session->userdata('currency_code'),$context)->formatTo('fr_FR')." |
- // ".Money::of(round($com,2), $this->session->userdata('currency_code'),$context)->formatTo('fr_FR')." | ";
- // $nb_depots = 0;
- // $nb_retraits = 0;
- // $commission_banque = 0;
- // foreach($depots as $depot){
- // if($depot->code_parrain == $row->member_code) {
- // $nb_depots ++;
- // $commission_banque+= $depot->commission_banque;
- // }
- // }
- // foreach($retraits as $retrait){
- // if($retrait->code_parrain == $row->member_code) {
- // $nb_retraits ++;
- // $commission_banque+= $retrait->commission_banque;
- // }
- // }
- // echo "".Money::of(round($commission_banque,2), $this->session->userdata('currency_code'),$context)->formatTo('fr_FR')." |
- // ".$nb_depots." |
- // ".$nb_retraits." |
- //
";
- // }
- //
- // }
- // ?>
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+ " . $this->lang->line('group_code') . "
+ " . $this->lang->line('Nom') . " |
+ " . $this->lang->line('creator') . " |
+ " . $this->lang->line('credit_limit') . " |
+ Sponsor 1 |
+ Sponsor 2 |
+ Sponsor 3 |
+ Status |
+ " . $this->lang->line('created_date') . " | ";
+ ?>
+
+
+
+ result() as $row) {
+ echo "
+ " . $row->code_groupe . " |
+ " . $row->nom . " |
+ " . $row->createur . " |
+ " . Money::of(round($row->limite_credit, 2), $row->currency_code, $context)->formatTo('fr_FR') . " |
+ " . $row->sponsor1 . " |
+ " . $row->sponsor2 . " |
+ " . $row->sponsor3 . " | ";
+ ?>
+ actif) {
+ ?>
+
+ lang->line('Actif') ?>
+ |
+
+
+ lang->line('Inactif') ?>
+ |
+
+ = $row->date_creation ?> |
+
+
+
+
+
+
+
+
+
@@ -258,7 +198,6 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
- -->
@@ -285,9 +224,32 @@ $fmt = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
+