-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreferral.php
190 lines (172 loc) · 9.03 KB
/
referral.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
182
183
184
185
186
187
188
189
190
<?php
$freePage = 1;
include("meta.php");
include("header.php");
if (!$register)exit("<script>location.href='index.php'</script>");
function currx($val) {
if (!strpos($val,".")) return number_format($val, 0,'.', ',');
else return number_format($val, 1,'.', ',');
}
if ( $login ){
$page = !isset($_GET['page']) ? 1 : $_GET['page'];
//get Referral data
$reqAPIReferralData = array(
"auth" => $authapi,
"userid"=> $login,
"type" => 1,
);
$respReferralData = sendAPI($url_Api . "/referral?page=".$page, $reqAPIReferralData, 'JSON', '02e97eddc9524a1e');
$dataReferral = $respReferralData->data;
$total_page = $dataReferral->last_page;
}
?>
<div id="content">
<div class="container">
<div class="clear space_30"></div>
<div class="wrap">
<div class="full">
<div class="head-wrap">
<h1>Referral</h1>
</div>
<div class="body-wrap text-justify">
<form method="post" id="form_reg">
<div class="res" id="res_reg"></div>
<?php
if (!$login){
?>
<!--
<p style="text-align:justify">System referral adalah salah satu strategy promosi marketing kami untuk mengundang kalian semua agar ikut serta dalam program ini dan mendapatkan keuntungan, referral system dari nagapoker.com tidak dipungut biaya apapun, hanya dengan modal online saja, kalian akan mendapatkan penghasilan lebih.</p>
<p style="text-align:justify">Tugas anda disini adalah hanya mendaftarkan orang-orang yang ingin bermain poker online di nagapoker.com, setelah itu anda hanya tinggal mengecek keuntungan anda yang dapat dilihat secara online kapanpun dan dimanapun.</p>
<p style="text-align:justify">System referral kami tidak mengharuskan anda untuk memiliki teman-teman yang suka bermain poker online agar mendapatkan keuntungan lebih tapi hanya dengan modal giat dan aktif maka uang puluhan juta setiap minggunya adalah sesuatu yang bukan mimpi lagi, anda sebagai member cukuplah dengan menyebarkan link2x referral yang anda dapatkan setelah register di nagapoker.com maka uang akan bekerja untuk anda.</p>
-->
<?php
if ($referral_text){
echo $referral_text;
}else{
?>
<div align="center">
<img src="assets/images/referral-image.jpg" />
</div>
<div style="height:20px;"></div>
<div align="justify">
<h4>Tips Promosi</h4>
<div style="height:5px;"></div>
<ol>
<li>Anda bisa menyebarkan link referral anda ke FORUM</li>
<li>Bisa juga dengan mentweet link referral anda di TWITTER</li>
<li>Melakukan posting komentar di FACEBOOK</li>
<li>Memasang link referral anda anda di BLOG</li>
<li>Menyebarkan link referral kesemua contact EMAIL</li>
</ol>
<div style="height:20px;"></div>
<h4>Cara Melihat Komisi dan Total Refferal Anda</h4>
<div style="height:5px;"></div>
<ol>
<li>Login ke <?php echo"".DOMAIN_NAME."";?></li>
<li>Klik referral untuk melihat total referral anda</li>
<li>Klik KOMISI untuk melihat total KOMISI anda</li>
<li>Cara penarikan referral dapat dilakukan setiap hari Kamis dengan melakukan withdraw.</li>
</ol>
</div>
<?php
}
?>
<?php
} else {
$batas = 5;
?>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr valign="top">
<td width="540">
<a class="btn btn-login" href="referral.php?date=<?php echo"".$userpass."";?>&userid=<?php echo"".$login."";?>&st=5&j=1&batas=5&ref=getdate()">Data</a>
<a class="btn btn-login" href="referral-daftar.php?date=<?php echo"".$userpass."";?>&userid=<?php echo"".$login."";?>&type=star">Daftar</a>
<div style="height:20px;"></div>
<div>
<div id="table_list">
<form onsubmit="submitfilter('', '#table_list', 'preloader'); return false;">
<div style="margin-bottom:2px;">
<?php
getPaging($total_page, $page, 'referral.php', array('showMore' => true));
?>
</div>
<table width="100%" cellpadding="0" cellspacing="0" border="0" id="table" style="font-size:12px;color:#000;">
<thead align="left">
<tr>
<th align="center" height="23">#</th>
<th>User</th>
<th>Tgl. Daftar</th>
<th>Turn Over</th>
<th>Komisi</th>
</tr>
</thead>
<tbody align="left">
<?php
$no = $dataReferral->from;
$subtotal = $subcomm = 0;
foreach ($dataReferral->data as $ref){
$dateJoin = strtotime($ref->joindate);
$date = date('d/m/Y', $dateJoin);
$subtotal += $ref->ttl;
$subcomm += $ref->cmm;
?>
<tr style="color:#000">
<td height="23" style="color:#000"><span><?php echo $no++;?></span></td>
<td style="color:#000"><span><?php echo $ref->player;?></span></td>
<td style="color:#000"><span><?php echo $date;?></span></td>
<td style="color:#000"><span><?php echo"".currx($ref->ttl)."";?></span></td>
<td style="color:#000"><span><?php echo"".currx($ref->cmm)."";?></span></td>
</tr>
<?php
}
?>
</tbody>
<tfoot>
<tr>
<td colspan=3 align=right height="23" style="color:#000"><b style="color:#000">SubTotal</b></td>
<td style="color:#000"><span><b style="color:#000"><?php echo"".currx($subtotal)."";?></b></span></td>
<td style="color:#000"><span><b style="color:#000"><?php echo"".currx($subcomm)."";?></b></span></td>
</tr>
<tr>
<td colspan=3 align=right style="color:#000"><b style="color:#000">Grand Total</b></td>
<td style="color:#000"><b style="color:#000"><?php echo currx($respReferralData->grandTot->ttl);?></b></td>
<td style="color:#000"><span><b style="color:#000"><?php echo currx($respReferralData->grandTot->cmm);?></b></span></td>
</tr>
</tfoot>
</table>
</form>
<div style="height:10px;"></div>
<script language="JavaScript" type="text/javascript">
jQuery(document).ready(function(){
jQuery(".popup").nyroModal();
fixtable("#table", null, "#198dd1", "#198dd1", "#33b4ff");
// getfilter();
jQuery(".toggleCheck").bind("click", function(){
var current=jQuery(this);
var table=current.parent().children("a.table").attr("rel");
var id=current.parent().children("a.id").attr("rel");
if(confirm("Are you sure want to perform this action? Click 'OK' to continue.")){
jQuery.get(''+"/"+table+"/"+id+"/"+current.attr("rel"), function(r){
jQuery("#statusCheck"+id).html(r);
})
}
});
})
</script>
</div>
</div>
</td>
</tr>
</table>
<?php
}
?>
</form>
</div>
</div>
</div>
<div class="clear space_30"></div>
</div>
</div>
<?php
include("footer.php");
?>