From 8c80b5d962a02eb25b45268d82bede79ed45cd1e Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Fri, 10 May 2024 11:58:55 -0400 Subject: [PATCH] mobile login --- application/libraries/Bko_Controller.php | 5 ++++ .../libraries/Bkomember_Controller.php | 5 ++++ application/views/bko/view_bko_dash.php | 26 +++++-------------- 3 files changed, 16 insertions(+), 20 deletions(-) diff --git a/application/libraries/Bko_Controller.php b/application/libraries/Bko_Controller.php index 8d28a9e..47e795d 100644 --- a/application/libraries/Bko_Controller.php +++ b/application/libraries/Bko_Controller.php @@ -67,6 +67,7 @@ class Bko_Controller extends WRB_Controller { return $data; } protected function bkoDashData() { + $this->load->model('backend_model'); $is_live = $this->backend_model->cfgReadChar("system.live"); $data = array(); @@ -197,6 +198,10 @@ class Bko_Controller extends WRB_Controller { $data['total_members'] = $row['total_members']; + $mysql = "SELECT count(id) AS mobile_login FROM mobile_login WHERE added::date = now()::date"; + $query = $this->db->query($mysql); + $row = $query->row_array(); + $data['mobile_login'] = $row['mobile_login']; $mysql = "SELECT sum(amount) AS total_balance FROM members_wallet WHERE currency = 'NAIRA'"; $query = $this->db->query($mysql); diff --git a/application/libraries/Bkomember_Controller.php b/application/libraries/Bkomember_Controller.php index cdf3611..20bbe8e 100644 --- a/application/libraries/Bkomember_Controller.php +++ b/application/libraries/Bkomember_Controller.php @@ -171,6 +171,11 @@ class Bkomember_Controller extends Bko_Controller { $row = $query->row_array(); $data['total_members'] = $row['total_members']; + $mysql = "SELECT count(id) AS mobile_login FROM mobile_login WHERE added::date = now()::date"; + $query = $this->db->query($mysql); + $row = $query->row_array(); + $data['mobile_login'] = $row['mobile_login']; + $mysql = "SELECT sum(balance)AS total_balance FROM members WHERE status =1"; $query = $this->db->query($mysql); $row = $query->row_array(); diff --git a/application/views/bko/view_bko_dash.php b/application/views/bko/view_bko_dash.php index b53a59e..5d6f01e 100644 --- a/application/views/bko/view_bko_dash.php +++ b/application/views/bko/view_bko_dash.php @@ -11,44 +11,30 @@
- -
-
MEMBERS :
-
APP : 0
+
MEMBERS :
+
APP LOGIN :
- -
- -
-
-
NAIRA:
-
USD:
+
+
NAIRA:
+
USD:
- -
- -
- - -