diff --git a/www/application/controllers/Member.php b/www/application/controllers/Member.php
index c4975083..fa5d8b08 100644
--- a/www/application/controllers/Member.php
+++ b/www/application/controllers/Member.php
@@ -633,6 +633,34 @@ class Member extends Users_Controller {
$this->RenderUserPage('users/view_addfund', $data);
}
+ public function starttopup(){
+
+ $data = $this->getSessionArray();
+
+
+ $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_starttopup', $data);
+ }
public function faq() {
$data = $this->getSessionArray();
diff --git a/www/application/views/users/view_addfund.php b/www/application/views/users/view_addfund.php
index 61c4683a..fed6200f 100644
--- a/www/application/views/users/view_addfund.php
+++ b/www/application/views/users/view_addfund.php
@@ -3,9 +3,47 @@
| Date | +Recipient | +Amount/Fee | +Conf/Status | +|
|---|---|---|---|---|
| + =$row->date?> + | ++ =$row->recitient?> + + | +
+ =$row->amount?> =$row->fee?> + |
+ + =$row->confirmation?> + =$row->status?> + | ++ + + + | +