From 92af9cdd812f719fd8a8c8ac29f76ef0b6545dbd Mon Sep 17 00:00:00 2001 From: Olusesan Ameye Date: Mon, 7 Mar 2022 18:34:01 -0500 Subject: [PATCH] fix --- www/application/controllers/Member.php | 7 +- www/application/views/users/view_smoney.php | 160 ++++++++++++++------ 2 files changed, 117 insertions(+), 50 deletions(-) diff --git a/www/application/controllers/Member.php b/www/application/controllers/Member.php index 6ddd2da9..b7d85bc8 100644 --- a/www/application/controllers/Member.php +++ b/www/application/controllers/Member.php @@ -836,7 +836,7 @@ class Member extends Users_Controller { $out = array(); $res = $this->backend_model->wrenchboard_api($data, $out); // print_r($out); - exit; + // exit; $data = $this->getSessionArray(); // you will need this for new balace $data["fee"] = $out["Fee"]; $data["amount"] = $out["InitiatingAmount"]; @@ -873,7 +873,10 @@ class Member extends Users_Controller { */ } else { $pending_sendmoney = $this->session->flashdata('pending_sendmoney'); - $data['amount'] = 0; + // var_dump($pending_sendmoney); + if (!isset($pending_sendmoney)){ + redirect('member/balance'); + } $data['amount'] = $pending_sendmoney['amount']; $data['total'] = $pending_sendmoney['total']; $data['fee'] = $pending_sendmoney['fee']; diff --git a/www/application/views/users/view_smoney.php b/www/application/views/users/view_smoney.php index 3cf82d15..b3fcad36 100644 --- a/www/application/views/users/view_smoney.php +++ b/www/application/views/users/view_smoney.php @@ -9,7 +9,7 @@

- Withdraw from Balance [] + Withdraw from Naira Wallet :

@@ -22,13 +22,8 @@
-
-
-
-
- -
-
+ + + + + +
+ + +
+ +
+ + + + + + +
+ + +
+ + + + + + +
+
-
-
- -
- -
+ + + + +
+ +
+ + + + +
- -
- -
- -
+ + +
+ + + + + +
- -
- -
- -
-
- - -
- -
- -
-
- -
- -
- -
-
- -
- - -
- +
+ + + + +
+ + + + + + +
+ + +
+ + + + + + +
+ + + + + +
+ +
+ +
+ + + + +
+ +
+ + + + +
+ +
+
+ + + +