diff --git a/www/application/controllers/Paymnt.php b/www/application/controllers/Paymnt.php index 8eb8565b..edde55a0 100644 --- a/www/application/controllers/Paymnt.php +++ b/www/application/controllers/Paymnt.php @@ -34,6 +34,36 @@ class Paymnt extends Users_Controller { $this->RenderUserPage('users/view_paypal', $data); } + public function paybankdeposit() { + $data = $this->getSessionArray(); + $data['card_table_result'] = $this->cardListData(4)['card_table_result']; + $data['page_title'] ="Deposit Funds"; + + $this->load->library('table'); + $this->table->set_template($this->template); + $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," + . "CASE WHEN m.status=1 THEN 'Pending' WHEN m.status=3 THEN 'Cancelled' WHEN m.status=5 THEN 'Completed' ELSE '' END AS Status " + . "FROM money_transfer m " + . "LEFT JOIN sendmoney_recipient r ON r.id = m.recipientid " + . "LEFT JOIN bank_entity_codes b ON b.code = r.bank_code " + . "LEFT JOIN members_payments mp ON mp.what_sendmoney = m.id " + . "WHERE m.member_id =" . $_SESSION['member_id'] . " AND mp.confirmation IS NOT NULL ORDER BY m.id DESC LIMIT 4"; + + $query = $this->db->query($mysql); + $this->table->set_heading('Date', 'Amount','Fee','Recipient','Confirmation', 'Status'); + $data['sendmoney_table'] = $this->table->generate($query); + $data['sendmoney_table_result'] = $query->result(); + + + $data['page_key'] = 'WRB_FUND_ACCOUNT'; + $data['txt_detail'] = $this->readFixedText($data['page_key']); + $data['txt_detail'] = str_replace("[how-it-worked-image-1]", "", $data['txt_detail']); + $data['txt_detail'] = str_replace("[how-it-worked-image-2]", "", $data['txt_detail']); + + $this->RenderUserPage('users/view_bankdeposit', $data); + } + private function cardListData($limit){ $data = array(); diff --git a/www/application/views/users/view_selectpay.php b/www/application/views/users/view_selectpay.php index f5f11378..6f1f6e11 100644 --- a/www/application/views/users/view_selectpay.php +++ b/www/application/views/users/view_selectpay.php @@ -16,6 +16,7 @@ +
@@ -109,7 +110,7 @@
- Deposit + Deposit