-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuserAccount.php
181 lines (160 loc) · 7.1 KB
/
userAccount.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
<?php
define('_VALID_PHP', true);
$pname = 'My Account';
$menu = 'dailyGold';
$pagemenu = 'UACC';
$submenu = '';
require_once 'init.php';
use Carbon\Carbon;
$AllDailyReward = [];
if (!$user->logged_in) {
redirect_to(SITEURL.'/login.php');
}
$diamond_trans = $fz->getUserDiamondTrans($user->uid);
$gold_trans = $fz->getUserGoldTrans($user->uid);
?>
<?php
include 'fehead.php';
?>
<!-- Page container -->
<div class="page-container bg-white">
<!-- Page content -->
<div class="page-content">
<!-- Main content -->
<div class="content-wrapper">
<div class="col-md-4 col-sm-12 col-xs-12">
<div class="panel panel-flat">
<div class="panel-heading">
<h5 class="panel-title"><b><?php echo $user->name; ?></b></h5>
</div>
<div class="list-group no-border no-padding-top">
<span class="list-group-item"><i class="icon-envelop3"></i> <?php echo $user->email; ?></span>
<span class="list-group-item"><i class="icon-diamond text-info"></i> <?php echo $user->diamond; ?></span>
<span class="list-group-item"><i class="icon-radio-unchecked text-gold"></i> <?php echo $user->gold; ?></span>
</div>
</div>
<div class="panel panel-flat">
<div class="list-group no-border no-padding-top">
<a href="userAccount.php" class="list-group-item active"><i class="icon-cash3"></i> My Transaction</a>
<a href="userBid.php" class="list-group-item"><i class="icon-hammer"></i> My Bid</a>
<a href="userClaim.php" class="list-group-item"><i class="icon-cash3"></i> My Instant Claim</a>
<!-- <a href="#" class="list-group-item"><i class="icon-cash3"></i> Balance</a>
<a href="#" class="list-group-item"><i class="icon-tree7"></i> Connections <span class="badge bg-danger pull-right">29</span></a>
<a href="#" class="list-group-item"><i class="icon-users"></i> Friends</a> -->
</div>
</div>
</div>
<div class="col-md-8 col-sm-12 col-xs-12">
<?php
// pre($user);
switch ($user->useraccess) {
case '0':
?>
<div class="alert alert-info alert-styled-left alert-arrow-left alert-component">
<button type="button" class="close" data-dismiss="alert"><span>×</span><span class="sr-only">Close</span></button>
<h6 class="alert-heading text-semibold">Not Logged in</h6>
<a onclick="verifylink('userAccount.php')" >Click here to Login to your Account</a>
</div>
<?php
break;
case '1':
?>
<div class="alert alert-info alert-styled-left alert-arrow-left alert-component">
<button type="button" class="close" data-dismiss="alert"><span>×</span><span class="sr-only">Close</span></button>
<h6 class="alert-heading text-semibold">Mobile Number And Address not Available</h6>
<a onclick="verifylink('userAccount.php')" >Click here to Fill the Infomation</a>
</div>
<?php
break;
case '2':
?>
<div class="alert alert-info alert-styled-left alert-arrow-left alert-component">
<button type="button" class="close" data-dismiss="alert"><span>×</span><span class="sr-only">Close</span></button>
<h6 class="alert-heading text-semibold">Your Mobile Number is not Verified.</h6>
<a onclick="verifylink('userAccount.php')" >Click here to Verify your Account;</a>
</div>
<?php
break;
}
?>
<!-- <br>ACCOUNT INFORMATION
<br>Address Book -->
<div class="tabbable">
<ul class="nav nav-tabs nav-tabs-bottom">
<li class="active"><a href="#right-icon-tab1" data-toggle="tab" aria-expanded="false">Diamond Transaction <i class="icon-diamond position-right"></i></a></li>
<li class=""><a href="#right-icon-tab2" data-toggle="tab" aria-expanded="false">Gold Transaction <i class="icon-radio-unchecked position-right"></i></a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="right-icon-tab1">
<table class="table table-striped table-bordered table-advance table-hover datatable-basic">
<thead>
<tr>
<th width="25%">
<i class="fa fa-calendar"></i> Date
</th>
<th width="50%">
<i class="fa fa-question"></i> Description
</th>
<th>
<i class="fa fa-usd"></i> Amount
</th>
</tr>
</thead>
<tbody>
<?php
foreach($diamond_trans as $key => $row){
?>
<tr>
<td> <?php echo date("d/m/y \n h:ia",strtotime($row->created_at)); ?> </td>
<td> <?php echo $row->title.'<br>( '.$row->desc.' )'; ?> </td>
<td> <span class="<?php echo $row->amount < 0 ? 'text-danger' : 'text-success'; ?>"><?php echo $row->amount; ?> Diamond </span> </td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
<div class="tab-pane" id="right-icon-tab2">
<table class="table table-striped table-bordered table-advance table-hover datatable-basic">
<thead>
<tr>
<th width="25%">
<i class="fa fa-calendar"></i> Date
</th>
<th width="50%">
<i class="fa fa-question"></i> Type
</th>
<th>
<i class="fa fa-usd"></i> Amount
</th>
</tr>
</thead>
<tbody>
<?php
foreach($gold_trans as $key => $row){
?>
<tr>
<td> <?php echo date("d/m/y \n h:ia",strtotime($row->created_at)); ?> </td>
<td> <?php echo $row->title.'<br>( '.$row->desc.' )'; ?> </td>
<td> <span class="<?php echo $row->amount_gold < 0 ? 'text-danger' : 'text-success'; ?>"><?php echo $row->amount_gold; ?> Gold </span> </td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<!-- /main content -->
</div>
<div class="clearfix"></div>
<!-- /page content -->
<?php
include 'fefoot.php';
?>
</div>
</body>
</html>