fix
This commit is contained in:
@@ -749,7 +749,7 @@ class Member extends Users_Controller {
|
||||
$data['card_coupon_data_result'] = $this->report_model->getRedeemCouponsList(6)['card_coupon_data_result'];
|
||||
|
||||
$data['wallet'] = $this->account_model->getUserWallet( $_SESSION['member_id']);
|
||||
|
||||
$data['escrow'] = $this->account_model->getUserEscrowWallet( $_SESSION['member_id']);
|
||||
|
||||
if ($_POST) {
|
||||
$data['comment'] = $this->input->post('comment');
|
||||
|
||||
@@ -18,6 +18,12 @@ class Account_model extends CI_Model {
|
||||
return $query->result_array();
|
||||
}
|
||||
|
||||
public function getUserEscrowWallet($member_id) {
|
||||
$mysql = "SELECT sum(amount),currency FROM members_payments WHERE code ='OFDPS' AND member_id = $member_id AND confirmation IS NOT NULL GROUP BY currency";
|
||||
$query = $this->db->query($mysql);
|
||||
return $query->result_array();
|
||||
}
|
||||
|
||||
public function verify_link($data) {
|
||||
$q = $this
|
||||
->db
|
||||
|
||||
@@ -42,7 +42,8 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="p-5 rounded bg-light-primary text-dark fw-bold mw-lg-500px text-end"
|
||||
data-kt-element="message-text"><?=$row['msg']?></div>
|
||||
data-kt-element="message-text"><?=$row['msg']?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -54,7 +54,20 @@ function getAddWithdrawButtons(){
|
||||
<span class="badge badge-light-success fs-7 fw-bolder"><? echo money_format('%.2n', $wlt['amount']*0.01); ?></span>
|
||||
</td>
|
||||
<td class="text-start">
|
||||
<span class="badge badge-light-danger fs-7 fw-bolder"><? echo money_format('%.2n', 0 * 0.01); ?></span>
|
||||
<span class="badge badge-light-danger fs-7 fw-bolder"><?
|
||||
// var_dump($escrow);
|
||||
// $found_key = array_search($wlt['code'], array_column($escrow[0], 'currency'));
|
||||
// var_dump($found_key);
|
||||
$escrow_amount = 0;
|
||||
foreach ($escrow as $key => $val) {
|
||||
if ($val['currency'] === $wlt['code']) {
|
||||
$escrow_amount = $val['sum'];
|
||||
}
|
||||
}
|
||||
|
||||
echo money_format('%.2n', $escrow_amount * 0.01);
|
||||
|
||||
?></span>
|
||||
</td>
|
||||
<td class="text-end">
|
||||
<?php
|
||||
|
||||
@@ -31,7 +31,9 @@
|
||||
</div>
|
||||
<div class="p-5 rounded bg-light-primary text-dark fw-bold mw-lg-500px text-end"
|
||||
data-kt-element="message-text"
|
||||
onclick="RelyBoxShow(<?=$row['msg_id']?>,'<?=$row['memo']?>');"><?=$row['msg']?></div>
|
||||
onclick="RelyBoxShow(<?=$row['msg_id']?>,'<?=$row['memo']?>');"><?=$row['msg']?>
|
||||
<?=($row['reply']!='') ? '<br><small>Replied : '.$row['reply'].'</small>' : '' ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -50,7 +52,9 @@
|
||||
</div>
|
||||
<div class="p-5 rounded bg-light-info text-dark fw-bold mw-lg-500px text-start"
|
||||
data-kt-element="message-text"
|
||||
onclick="RelyBoxShow(<?=$row['msg_id']?>,'<?=$row['memo']?>');"><?=$row['msg']?></div>
|
||||
onclick="RelyBoxShow(<?=$row['msg_id']?>,'<?=$row['memo']?>');"><?=$row['msg']?>
|
||||
<?=($row['reply']!='') ? '<br><small>Replied : '.$row['reply'].'</small>' : '<br><small>Reply Now</small>' ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
|
||||
Reference in New Issue
Block a user