fix
This commit is contained in:
@@ -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||'<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_starttopup', $data);
|
||||
}
|
||||
|
||||
public function faq() {
|
||||
$data = $this->getSessionArray();
|
||||
|
||||
@@ -3,9 +3,47 @@
|
||||
<div class="row g-5 g-xl-8">
|
||||
<!--begin::Col-->
|
||||
<div class="col-xl-6">
|
||||
<!--begin::Tables Widget 3-->
|
||||
|
||||
<div class="card card-xl-stretch mb-5 mb-xl-8">
|
||||
<div class="card mb-5 mb-xl-8">
|
||||
<!--begin::Card header-->
|
||||
<div class="card-header border-0 cursor-pointer" role="button" data-bs-toggle="collapse" data-bs-target="#kt_account_profile_details" aria-expanded="true" aria-controls="kt_account_profile_details">
|
||||
<!--begin::Card title-->
|
||||
<div class="card-title m-0">
|
||||
<h3 class="fw-bolder m-0">Add Credit with Account Deposit</h3>
|
||||
</div>
|
||||
<!--end::Card title-->
|
||||
</div>
|
||||
<!--begin::Card header-->
|
||||
<!--begin::Content-->
|
||||
<div id="kt_account_settings_profile_details" class="collapse show">
|
||||
<!--begin::Form-->
|
||||
<form id="start_top_up" action="/member/starttopup" class="form" method="post">
|
||||
<!--begin::Card body-->
|
||||
<div class="card-body border-top p-9">
|
||||
<div class="row mb-6">
|
||||
<!--begin::Label-->
|
||||
<label class="col-lg-4 col-form-label required fw-bold fs-6">Amount(Naira)</label>
|
||||
<!--end::Label-->
|
||||
<!--begin::Col-->
|
||||
<div class="col-lg-8 fv-row">
|
||||
<input type="text" name="company" class="form-control form-control-lg form-control-solid" placeholder="Company name" value="0" />
|
||||
</div>
|
||||
<!--end::Col-->
|
||||
</div>
|
||||
</div>
|
||||
<!--end::Card body-->
|
||||
<!--begin::Actions-->
|
||||
<div class="card-footer d-flex justify-content-end py-6 px-9">
|
||||
<button type="submit" class="btn btn-sx btn-primary" id="kt_account_profile_details_submit">Continue</button>
|
||||
</div>
|
||||
<!--end::Actions-->
|
||||
</form>
|
||||
<!--end::Form-->
|
||||
</div>
|
||||
<!--end::Content-->
|
||||
</div>
|
||||
|
||||
<div class="card mb-5 mb-xl-8">
|
||||
<!--begin::Card header-->
|
||||
<div class="card-header">
|
||||
<div class="card-title">
|
||||
@@ -23,8 +61,6 @@
|
||||
</div>
|
||||
<!--end::Card body-->
|
||||
</div>
|
||||
|
||||
<!--end::Tables Widget 3-->
|
||||
</div>
|
||||
<!--end::Col-->
|
||||
|
||||
|
||||
@@ -0,0 +1,130 @@
|
||||
<?php include('common/userstrip.php'); ?>
|
||||
<!--begin::Row-->
|
||||
<div class="row g-5 g-xl-8">
|
||||
<!--begin::Col-->
|
||||
<div class="col-xl-6">
|
||||
<div class="card mb-5 mb-xl-8">
|
||||
<!--begin::Card header-->
|
||||
<div class="card-header border-0 cursor-pointer" role="button" data-bs-toggle="collapse" data-bs-target="#kt_account_profile_details" aria-expanded="true" aria-controls="kt_account_profile_details">
|
||||
<!--begin::Card title-->
|
||||
<div class="card-title m-0">
|
||||
<h3 class="fw-bolder m-0">Add Credit with Account Deposit</h3>
|
||||
</div>
|
||||
<!--end::Card title-->
|
||||
</div>
|
||||
<!--begin::Card header-->
|
||||
<!--begin::Content-->
|
||||
<div id="kt_account_settings_profile_details" class="collapse show">
|
||||
<!--begin::Form-->
|
||||
<form id="start_top_up" action="/member/starttopup" class="form" method="post">
|
||||
<!--begin::Card body-->
|
||||
<div class="card-body border-top p-9">
|
||||
<div class="row mb-6">
|
||||
<!--begin::Label-->
|
||||
<label class="col-lg-4 col-form-label required fw-bold fs-6">Amount(Naira)</label>
|
||||
<!--end::Label-->
|
||||
<!--begin::Col-->
|
||||
<div class="col-lg-8 fv-row">
|
||||
<input type="text" name="company" class="form-control form-control-lg form-control-solid" placeholder="Company name" value="0" />
|
||||
</div>
|
||||
<!--end::Col-->
|
||||
</div>
|
||||
</div>
|
||||
<!--end::Card body-->
|
||||
<!--begin::Actions-->
|
||||
<div class="card-footer d-flex justify-content-end py-6 px-9">
|
||||
<button type="submit" class="btn btn-sx btn-primary" id="kt_account_profile_details_submit">Continue</button>
|
||||
</div>
|
||||
<!--end::Actions-->
|
||||
</form>
|
||||
<!--end::Form-->
|
||||
</div>
|
||||
<!--end::Content-->
|
||||
</div>
|
||||
</div>
|
||||
<!--end::Col-->
|
||||
|
||||
<div class="col-xl-6">
|
||||
<!--begin::Table Widget 8-->
|
||||
<div class="card card-xl-stretch mb-5 mb-xl-8">
|
||||
<!--begin::Header-->
|
||||
<div class="card-header border-0 pt-5">
|
||||
<h3 class="card-title align-items-start flex-column">
|
||||
<span class="card-label fw-bolder fs-3 mb-1">Recent Activities</span>
|
||||
<span class="text-muted mt-1 fw-bold fs-7">Activity Report</span>
|
||||
</h3>
|
||||
<div class="card-toolbar">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!--end::Header-->
|
||||
<!--begin::Body-->
|
||||
<div class="card-body py-3">
|
||||
<div class="tab-content">
|
||||
<!--begin::Tap pane-->
|
||||
<div class="tab-pane fade show active" id="kt_table_widget_8_tab_1">
|
||||
<!--begin::Table container-->
|
||||
<div class="table-responsive">
|
||||
<!--begin::Table-->
|
||||
<table class="table align-middle gs-0 gy-3">
|
||||
<!--begin::Table head-->
|
||||
<thead>
|
||||
|
||||
<tr>
|
||||
<th class="p-0 w-90px">Date</th>
|
||||
<th class="p-0 min-w-160px">Recipient</th>
|
||||
<th class="p-0 w-100px">Amount/Fee</th>
|
||||
<th class="p-0 w-100px">Conf/Status</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<!--end::Table head-->
|
||||
<!--begin::Table body-->
|
||||
<tbody>
|
||||
<?php
|
||||
//var_dump($sendmoney_table_result);
|
||||
foreach( $sendmoney_table_result as $row){
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<?=$row->date?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="#" class="text-dark fw-bolder text-hover-primary mb-1 fs-6"><?=$row->recitient?></a>
|
||||
<span class="text-muted fw-bold d-block fs-7"></span>
|
||||
</td>
|
||||
<td>
|
||||
<?=$row->amount?><br><?=$row->fee?>
|
||||
</td>
|
||||
<td class="text-end">
|
||||
<span class="text-dark fw-bolder d-block fs-7"><?=$row->confirmation?></span>
|
||||
<span class="text-muted fw-bold d-block fs-8"><?=$row->status?></span>
|
||||
</td>
|
||||
<td class="text-end">
|
||||
<a href="#" class="btn btn-sm btn-icon btn-bg-light btn-active-color-primary">
|
||||
<i class="bi bi-three-dots fs-5"></i>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
<!--end::Table body-->
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
||||
<!--end::Table-->
|
||||
</div>
|
||||
<!--end::Tap pane-->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!--end::Body-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user