-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdashboard_withdraw.php
89 lines (89 loc) · 2.49 KB
/
dashboard_withdraw.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?php
require_once './api/config.php';
?>
<table class="table" style="width: 100%;">
<thead class="thead-dark text-center">
<tr>
<th scope="col">วัน</th>
<th scope="col">เวลา</th>
<th scope="col">ยูสเซอร์</th>
<th scope="col">จำนวนเงิน</th>
<th scope="col">สถานะ</th>
</tr>
</thead>
<tbody>
<?php
$q_1 = dd_q('SELECT w_id, w_date_create, w_time_create, w_u_id, w_user, w_amount, w_status FROM withdraw_tb WHERE (w_status = ? OR w_status = ?) ORDER BY w_id DESC', ['0', '99']);
if ($q_1->rowCount() > 0)
{
?>
<script type="text/javascript">
$(function(){
playSound_withdraw();
});
function playSound_withdraw()
{//เสียงแจ้งถอน
//var audio = new Audio('<?=base_url()?>/assets/sound/withdraw_sound.mp3?ver=1');
//audio.play();
}
</script>
<?php
}
while($row = $q_1->fetch(PDO::FETCH_ASSOC))
{
?>
<tr>
<td>
<?=date('d/m/Y', strtotime($row['w_date_create']))?>
</td>
<td>
<?=$row['w_time_create']?>
</td>
<td>
<a href="./customer/detail/<?=$row['w_u_id']?>" target="_blank"><?=$row['w_user']?></a>
</td>
<td>
<?=$row['w_amount']?>
</td>
<td>
<a href="./withdraw/detail/<?=$row['w_id']?>" target="_blank">
<?php
if($row['w_status'] == "0")
{
?>
<span class="text-warning"><u>รอโอนเงิน</u></span>
<?php
}
elseif($row['w_status'] == "1")
{
?>
<span class="text-success"><u>โอนเงินสำเร็จ</u></span>
<?php
}
elseif($row['w_status'] == "2")
{
?>
<span class="text-danger"><u>ยกเลิกรายการ</u></span>
<?php
}
elseif($row['w_status'] == "3")
{
?>
<span class="text-primary"><u>คืนเครดิต</u></span>
<?php
}
elseif($row['w_status'] == "99")
{
?>
<span class="text-warning"><u>รอแอดมินตรวจสอบ</u></span>
<?php
}
?>
</a>
</td>
</tr>
<?php
}
?>
</tbody>
</table>