-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstantclaim.php
145 lines (106 loc) · 4.46 KB
/
instantclaim.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
<?php
define('_VALID_PHP', true);
$pname = 'Instant Claim';
$menu = 'Instant Claim';
$pagemenu="BID";
$submenu = '';
require_once 'init.php';
use Carbon\Carbon;
$allclaim=$list->FEgetAllClaim();
// pre($homeSlider);
// if (!$user->logged_in) {
// redirect_to(SITEURL.'/index.php');
// }
?>
<?php
include 'fehead.php';
?>
<!-- Page content -->
<div class="page-content">
<!-- Main content -->
<div class="content-wrapper">
<div class="panel panel-flat" style="height:100%">
<div class="panel-body">
<?php if(!$allclaim){
?>
<div class="col-sm-12 col-md-12 col-xs-12 text-center">
<div class="panel panel-flat timeline-content">
<div class="panel-body">
No Instant Claim at the Moment
</div>
</div>
</div>
<?php
}
// pre($allclaim);
foreach ($allclaim as $key => $value) {
$claim_id = $value->id;
$check_claim = $fz->checkUserClaim($claim_id);
?>
<div class="col-sm-12 col-md-12 col-xs-12 text-center">
<div class="panel panel-flat timeline-content">
<div class="panel-body" style="padding:5px">
<div class="col-sm-4 col-md-4 col-xs-12 text-center">
<div class="col-sm-12 col-md-12 col-xs-12 text-center">
<div class="bg-danger-600" style="padding:5px;margin-top:3px;border:2px solid white"><span>Instant Claim</span></div>
</div>
<div class="col-sm-12 col-md-12 col-xs-12 text-center">
<img src="<?php echo BACK_UPLOADS.$value->img_header;?>" class="img-responsive" alt="" width="100%" style="border:2px solid white">
</div>
</div>
<div class="col-sm-6 col-md-6 col-xs-12 text-center">
<h6 class="content-group text-left"><?php echo styleword($value->title);?><br><small>Each claim - <b><?php echo $value->gold_amount;?></b> POTBOY GOLD</small></h6>
<div class="progress">
<div class="progress-bar bg-purple" style="width: <?php echo stylewordpercent($value->percent);?>">
<?php if($value->percent>10){
?>
<?php echo "<span id='text".$value->bidid."'>".stylewordpercent($value->percent)."</span>";?>
<?php
}?>
</div>
<?php if($value->percent<=10){
?>
<?php echo "<span id='text".$value->bidid."'>".stylewordpercent($value->percent)."</span>";?>
<?php
}?>
</div>
<span class="pull-right">
<ul class="list-inline list-inline-condensed heading-text">
<li><a href="#" class="text-default">Voucher Available<br> <?php echo ($value->max_participant-$value->participant);?></a></li>
</ul>
</span>
</div>
<div class="col-sm-2 col-md-2 col-xs-12 text-center">
<br>
<span class="pull-right">
<?php
if($check_claim){
?>
<button class="btn bg-purple" disabled>Claimed</button>
<?php
}else{
?>
<button class="btn bg-purple btn_claim" id="<?php echo $value->id?>">Claim Now</button>
<?php
}
?>
</span>
</div>
</div>
</div>
</div>
<?php
}
?>
</div>
</div>
</div>
<!-- /main content -->
</div>
<script type="text/javascript">
$(document).ready(function(){
});
</script>
<?php
include 'fefoot.php';
?>