From e5bca5ee3c76dc1049e678f6a4e8c1310ce5a74f Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Mon, 22 Jul 2024 10:18:34 -0400 Subject: [PATCH] added family data --- application/controllers/Bkouser.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/application/controllers/Bkouser.php b/application/controllers/Bkouser.php index 21d702f..7040c8d 100644 --- a/application/controllers/Bkouser.php +++ b/application/controllers/Bkouser.php @@ -313,10 +313,13 @@ class Bkouser extends Bko_Controller { $this->load->library('table'); $this->table->set_template($this->template); - $mysql = "SELECT firstname,lastname,balance,email FROM members WHERE id=" . $_SESSION['bko_selected_id']; + $mysql = "SELECT firstname,lastname,balance,email,country FROM members WHERE id=" . $_SESSION['bko_selected_id']; $query = $this->db->query($mysql); $data['user_table'] = $this->table->generate($query); + $mysql = "SELECT * FROM members_family_relative WHERE member_id = ". $_SESSION['bko_selected_id']; + $query = $this->db->query($mysql); + $data['family_table'] = $this->table->generate($query); $mysql = "SELECT m.added::date AS date,m.terminatingamount*0.01 AS amount,m.fee*0.01 as fee, " . "r.firstname||' '||r.lastname||'
Acc:'||r.account_no||'-'||b.name AS Recitient,mp.confirmation," @@ -359,7 +362,7 @@ class Bkouser extends Bko_Controller { User:
" . $data['user_table'] . "
Wallet

- ".$data['wallet_result']."
Withdraw Last 20:
" . $data['sendmoney_table'] . "
Payments:
" . $data['payment_result'].""; + ".$data['wallet_result']."
Family Relatives
".$data['family_table']."
Withdraw Last 20:
" . $data['sendmoney_table'] . "
Payments:
" . $data['payment_result'].""; } public function terms() {