-
Notifications
You must be signed in to change notification settings - Fork 23
/
wallet.php
79 lines (78 loc) · 3.6 KB
/
wallet.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
<?php
require('require/top.php');
authorise_user2();
$sid = $_SESSION['USER_ID'];
$r = mysqli_fetch_assoc(mysqli_query($con, "select * from user_wallet where user_id='$sid'"));
$sr = mysqli_query($con, "select * from user_w_msg where u_id='$sid'");
?>
<div class="path">
<div class="container">
<a href="index.php">Home</a>
/
<a href="wallet.php">My Wallet</a>
</div>
</div>
<section class="mywallet">
<?php require('require/headbanner.php'); ?>
<section class="myac-body">
<div class="flex row">
<?php require('require/ac-left.php'); ?>
<div class="right">
<h4><i class="uil uil-wallet"></i>My Wallet</h4>
<div class="col-lg-12 col-md-12">
<div class="pdpt-bg2">
<div class="imgbox">
<img src="assets/images/money.svg" alt="">
</div>
<span class="rewrd-title">My Balance</span>
<h4 class="cashbk-price">₹<?php echo $r['ballance']; ?></h4>
</div>
<div class="pdpt-bg">
<div class="pdpt-title">
<h4>History</h4>
</div>
<div class="order-body10">
<ul class="history-list">
<?php
while ($row = mysqli_fetch_assoc($sr)) {
?>
<li>
<div class="purchase-history">
<div class="purchase-history-left">
<h4><?php
if ($row['cod'] == 1) {
echo "Credited";
} else {
echo "Debited";
}
?></h4>
<p>Message: <ins><?php echo $row['msg'] ?></ins></p>
<span> <?php
echo $row['added_on'];
?></span>
</div>
<div class="purchase-history-right">
<span>
<?php
if ($row['cod'] == 1) {
echo "+";
} else {
echo "-";
}
echo "₹" . $row['balance'];
?>
</span>
</div>
</div>
</li>
<?php } ?>
</ul>
</div>
</div>
</div>
</div>
</div>
</section>
</section>
<?php require('require/foot.php'); ?>
<?php require('require/last.php'); ?>