-
Notifications
You must be signed in to change notification settings - Fork 0
/
clics.php
executable file
·93 lines (87 loc) · 4.31 KB
/
clics.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
<?php
include('./requiert/php-global.php');
$meta_title = 'Quizzdeal.fr : Les clics rémunérés';
$meta_description = '';
include('./requiert/inc-head.php');
include('./requiert/inc-header-navigation.php');
?>
<!-- SECTION HEADLINE -->
<div class="section-headline-wrap v3">
<div class="section-headline">
<h2>Les clics rémunérés</h2>
<p>Accueil<span class="separator">/</span><span class="current-section">Clics</span></p>
</div>
</div>
<!-- /SECTION HEADLINE -->
<!-- SAMAKUNCHAN -->
<div class="info-clic">
<h4 >Effectuez des clics sur les offres présentes ci-dessous et gagnez des €uros.</h4>
</div>
<!-- /SAMAKUNCHAN -->
<section class="bg-light-grey absolute-section-1 margin-base">
<div class="m-auto content p-40-20 container">
<div class="row clics">
<div class="col-md-12 f-s-14 f-w-light " style="font-size: 17px">
<!-- TRANSACTION LIST HEADER -->
<div class="transaction-list-header">
<div class="transaction-list-header-date">
<p class="text-header small">Nom de l'offre</p>
</div>
<div class="transaction-list-header-author">
<p class="text-header small">Rémunération</p>
</div>
<div class="transaction-list-header-item">
<p class="text-header small"> </p>
</div>
<div class="transaction-list-header-icon"></div>
</div>
<!-- /TRANSACTION LIST HEADER -->
<?php
$sql_Clics = $pdo->query("SELECT * FROM offers_clics WHERE actif = 1 AND pays LIKE '".$country_code."' ORDER BY nom");
$all_Clics = $sql_Clics->fetchAll(PDO::FETCH_ASSOC);?>
<?php foreach ($all_Clics as $dones_Clics): ?>
<?php
$sql_countClics = $pdo->query("SELECT COUNT(id) as 'count' FROM histo_clics WHERE idUser = '".$mbreHashId."' AND idOffers = '".$dones_Clics['idoffre']."' AND date LIKE '".date('d/m/Y')."%%'");
$resultat_countClics = $sql_countClics->fetch(PDO::FETCH_ASSOC);
$countClics = $resultat_countClics['count'];
?>
<?php if ($countClics == 0): ?>
<!-- TRANSACTION LIST ITEM -->
<div class="transaction-list-item">
<div class="transaction-list-item-date">
<p><?= $dones_Clics['nom']; ?></p>
</div>
<div class="transaction-list-item-author">
<p class="text-header">
<a href=""><?= displayMontant($dones_Clics['remuneration'], 3, ' €'); ?></a>
</p>
</div>
<div class="transaction-list-item-item">
<form
method="POST"
target="_blank"
style="cursor:pointer;display:inline-block;"
action="<?= URL_SITE; ?>/cpc.html">
<input type="hidden" name="off_id" value="<?= $dones_Clics['idoffre']; ?>" />
<a title="Accéder à l'offre" onclick="redirectReload(this);">
<div class="button color-white button primary">Cliquez-ici</div></a>
</form>
</div>
</div>
<!-- /TRANSACTION LIST ITEM -->
<?php endif; ?>
<?php endforeach; ?>
<script>
function redirectReload(elmt) {
elmt.parentElement.submit();
setTimeout(function () {
window.location.reload();
}, 1000);
}
</script>
</div>
</div></div>
</section>
<?php
include('./requiert/inc-footer.php');
?>