fix
This commit is contained in:
@@ -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||'<br><b>Acc:</b>'||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]", "<img src='/assets/images/howitworks/howitworks-1.jpg' alt=''>", $data['txt_detail']);
|
||||
$data['txt_detail'] = str_replace("[how-it-worked-image-2]", "<img src='/assets/images/howitworks/howitworks-2.jpg' alt=''>", $data['txt_detail']);
|
||||
|
||||
$this->RenderUserPage('users/view_bankdeposit', $data);
|
||||
}
|
||||
|
||||
|
||||
private function cardListData($limit){
|
||||
$data = array();
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
</div>
|
||||
<!--end::Row-->
|
||||
|
||||
|
||||
<!--begin::Row-->
|
||||
<div class="row g-5 g-xl-8">
|
||||
<!--begin::Col-->
|
||||
@@ -109,7 +110,7 @@
|
||||
|
||||
</div>
|
||||
<div style="padding: 25px; width: 100%; text-align: center; background-color: yellow">
|
||||
<a class="btn btn-block btn-info" href="/paymnt/paycc">Deposit</a>
|
||||
<a class="btn btn-block btn-info" href="/paymnt/paybankdeposit">Deposit</a>
|
||||
</div>
|
||||
</div>
|
||||
<!--end::Body-->
|
||||
|
||||
Reference in New Issue
Block a user