. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
| Server IP : 213.186.33.4 / Your IP :
216.73.216.146 [
Web Server : Apache System : Linux webm002.cluster103.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : dealkatnwc ( 662330) PHP Version : 7.0.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/dealkatnwc/www/GDEAL/pages/ |
Upload File : |
<?php
include 'config.php';
include_once 'class/coupon.class.php';
if (!(isset($_SESSION['GDEAL']['user']['id'])))
{header('Location: dcx.php');exit();}
?>
<!-- Navigation -->
<nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html"></a>
</div>
<!-- /.navbar-header -->
<ul class="nav navbar-top-links navbar-right">
<?php
$managerCou = new CouponManager($db);
$nbdeal['tout'] = $managerCou->getNbDeal('tout');
$nbdeal['-24'] = $managerCou->getNbDeal('-24');
$nbdeal['encours'] = $managerCou->getNbDeal('encours');
$nbdeal['exp'] = $managerCou->getNbDeal('exp');
$nbdeal['nb_pal'] = $managerCou->count(7);
$nbdeal['nb_mm'] = $managerCou->count(8);
$nbdeal['nb_mustmail'] = $managerCou->count('mustmail');
?>
<!-- /.dropdown -->
<?php if($nbdeal['nb_pal'] > 0) {?>
<li class="dropdown">
<a class="animated infinite swing" href="http://gdeal.dealka.tn/pages/index.php?filtre=showmepal&redirect_to=/pages/coupons.php" title="Demande de livraison">
<i class="fad fa-shipping-fast" style="color: red;"></i><b><?php echo $nbdeal['nb_pal'];?> </b>
</a>
</li>
<?php } ?>
<?php if($nbdeal['nb_mm'] > 0) {?>
<li class="dropdown">
<a class="animated infinite swing" href="http://gdeal.dealka.tn/pages/index.php?filtre=showmemm&redirect_to=/pages/coupons.php" title="Mandat Minute">
<i class="fad fa-clock" style="color: red;"></i><b><?php echo $nbdeal['nb_mm'];?> </b>
</a>
</li>
<?php } ?>
<?php if($nbdeal['nb_mustmail'] > 0) {?>
<li class="dropdown">
<a class="animated infinite swing" href="http://gdeal.dealka.tn/pages/coupons.php" title="Paiement en ligne non notifié">
<i class="fad fa-credit-card" style="color: red;"></i><b><?php echo $nbdeal['nb_mustmail'];?> </b>
</a>
</li>
<?php } ?>
<li class="dropdown ">
<a class="animated <?php if($nbdeal['-24']>0) echo "infinite"; ?> swing " href="editdeal.php#tabDealExp24" data-tab-destination="tabDealExp24" title="Deal(s) Expire en -24h">
<i class="fad fa-hourglass-end" style="color: #ff9019;"> </i><b><?php echo $nbdeal['-24'];?></b>
</a>
</li>
<li class="dropdown">
<a class="animated swing" href="editdeal.php#tabDealEncours" data-tab-destination="tabDealEncours" title="Deal(s) en cours">
<i class="fad fa-hourglass-half" style="color: green;"></i><b><?php echo $nbdeal['encours'];?> </b>
</a>
</li>
<li class="dropdown animated swing">
<a class="" href="editdeal.php#tabDealExp" data-tab-destination="tabDealExp" title="Deal(s) Expiré(s)">
<i class="fad fa-hourglass " style="color: red;"></i> <b><?php echo $nbdeal['exp'];?></b>
</a>
</li>
<li class="dropdown animated swing">
<a class="" href="editdeal.php#tt" data-tab-destination="tt" title="Deals enregistrés">
<i class="fad fa-tasks fa-fw" style="color: black"></i><b><?php echo $nbdeal['tout'];?> </b>
</a>
</li>
<!-- /.dropdown -->
<li class="dropdown">
<a class="dropdown-toggle animated zoomInRight" data-toggle="dropdown" href="#">
<i class="fad fa-bell fa-fw"></i> <i class="fas fa-caret-down"></i>
</a>
<ul class="dropdown-menu dropdown-alerts">
<?php if($nbdeal['nb_pal'] > 0) {?>
<li>
<a href="coupons.php">
<div>
<i class="fad fa-shipping-fast fa-fw"></i> <b><?php echo $nbdeal['nb_pal'];?> </b> Demande(s) de livraison
</div>
</a>
</li>
<li class="divider"></li>
<?php } ?>
<?php if($nbdeal['nb_mm'] > 0) {?>
<li>
<a href="coupons.php">
<div>
<i class="fad fa-clock fa-fw"></i> <b><?php echo $nbdeal['nb_mm'];?> </b> Mandat Minute
</div>
</a>
</li>
<li class="divider"></li>
<?php } ?>
<?php if($nbdeal['nb_mustmail'] > 0) {?>
<li>
<a href="coupons.php">
<div>
<i class="fad fa-credit-card fa-fw"></i> <b><?php echo $nbdeal['nb_mustmail'];?> </b> Paiement en ligne non notifié
</div>
</a>
</li>
<li class="divider"></li>
<?php } ?>
<li>
<a href="editdeal.php#liste">
<div>
<i class="fad fa-hourglass-end fa-fw"></i> <b><?php echo $nbdeal['-24'];?> </b> Deal(s) Expire en -24h
</div>
</a>
</li>
<li class="divider"></li>
<li>
<a href="editdeal.php#liste">
<div>
<i class="fad fa-hourglass-half fa-fw"></i> <b><?php echo $nbdeal['encours'];?> </b> Deal(s) en cours
</div>
</a>
</li>
<li class="divider"></li>
<li>
<a href="editdeal.php#liste">
<div>
<i class="fad fa-hourglass fa-fw"></i> <b><?php echo $nbdeal['exp'];?> </b> Deal(s) Expiré(s)
</div>
</a>
</li>
<li class="divider"></li>
<li>
<a href="editdeal.php#liste">
<div>
<i class="fad fa-tasks fa-fw"></i> <b><?php echo $nbdeal['tout'];?> </b> Deals enregistrés
</div>
</a>
</li>
</ul>
<!-- /.dropdown-alerts -->
</li>
<!-- /.dropdown -->
<li class="dropdown">
<a class="dropdown-toggle animated zoomInRight" data-toggle="dropdown" href="#">
<i class="fad fa-external-link-square-alt fa-fw"></i> Accés Rapide <i class="fas fa-caret-down"></i>
</a>
<ul class="dropdown-menu dropdown-user">
<li><a href="http://dealka.tn/" target='_blank'><i class="fad fa-desktop fa-fw"></i> Le site</a></li>
<li><a href="http://dealka.tn/wp-admin/" target='_blank'><i class="fad fa-cogs fa-fw"></i> Le Backoffice</a></li>
<li><a href="https://www.facebook.com/dealka.tn/" target='_blank'><i class="fab fa-facebook-square fa-fw"></i> Page Facebook</a>
<li><a href="https://plus.google.com/103688527672937295398" target='_blank'><i class="fab fa-google-plus-square fa-fw"></i> Page Google+</a>
<li><a href="https://www.youtube.com/channel/UCL7zw6XqxLtI59cnxGNl7JQ" target='_blank'><i class="fab fa-youtube-square fa-fw"></i> Chaine Youtube</a>
<li><a href="https://twitter.com/DealkaTn" target='_blank'><i class="fab fa-twitter-square fa-fw"></i> Compte Twitter</a>
<li><a href="https://www.ovh.com/manager/web/index.html#/configuration/domain/dealka.tn" target='_blank'><i class="fad fa-cloud-download-alt fa-fw"></i> OVH</a></li>
<li><a href="https://phpmyadmin.ovh.net/index.php?pma_username=dealkatnwcdk2016&pma_servername=dealkatnwcdk2016.mysql.db" target='_blank'><i class="fad fa-database fa-fw"></i> BD</a></li>
<li><a href="http://cluster003.ovh.net/net2ftp/?username=dealkatnwc" target='_blank'><i class="fad fa-file-code fa-fw"></i> FTP</a></li>
<li><a href="https://www.gpgcheckout.com/gpgadmin" target='_blank'><i class="fad fa-credit-card fa-fw"></i> GPG</a>
<li><a href="https://analytics.google.com/analytics/web/?authuser=0#dashboard/PpxHMFadQBSZtM8Z0nlbpw/a79228696w118384363p123829190/%3F_u.date00%3D20160922%26_u.date01%3D20161023/" target='_blank'><i class="fas fa-chart-line fa-fw"></i> Google Analytics</a>
<li><a href="https://us13.admin.mailchimp.com/" target='_blank'><i class="fab fa-mailchimp fa-fw"></i> Mail Chimp</a>
<li><a href="https://mail.google.com/mail/u/0/?hl=fr&shva=1#inbox" target='_blank'><i class="fad fa-mail-bulk fa-fw"></i> Gmail</a>
<li><a href="https://mail.ovh.net/roundcube/?_task=mail&_mbox=INBOX" target='_blank'><i class="fad fa-envelope-open-text fa-fw"></i> Roundcube</a>
</li>
</ul>
<!-- /.dropdown-user -->
</li>
<li class="dropdown">
<a class="dropdown-toggle animated zoomInRight" data-toggle="dropdown" href="#">
<i class="fad fa-user fa-fw"></i> <?php echo $_SESSION['GDEAL']['user']['nom']?> <i class="fas fa-caret-down"></i>
</a>
<ul class="dropdown-menu dropdown-user">
<li><a href="monprofil.php"><i class="fad fa-user fa-fw"></i> Mon Profil</a>
</li>
<li><a href="modifierprofil.php"><i class="fad fa-user-edit fa-fw"></i> Modifier</a>
</li>
<li class="divider"></li>
<li><a href="dcx.php"><i class="fad fa-sign-out-alt fa-fw"></i> Déconnexion</a>
</li>
</ul>
<!-- /.dropdown-user -->
</li>
<!-- /.dropdown -->
</ul>
<!-- /.navbar-top-links -->
<div class="navbar-default sidebar" role="navigation">
<div class="sidebar-nav navbar-collapse">
<ul class="nav" id="side-menu">
<li>
<a class="jello animated" href="index.html"><img src='images/gdeal-logo.png' style='width: 100%' ></a>
</li>
<li class="sidebar-search">
<form name='frm' id='frm' action='coupons.php' method='get'>
<div class="input-group custom-search-form">
<input type="text" name="query" id='query_m' class="form-control" placeholder="Recherche..." pattern="^[a-zA-ZÀ-ÿ0-9_-., ]{3,70}$" title="Mot à rechercher" required>
<span class="input-group-btn">
<button class="btn btn-default" type="button" data-toggle="modal" data-target="#searchmodal" onclick="document.getElementById('query_p').value = document.getElementById('query_m').value;" style="height: 34px;">
<i class="fas fa-search"></i>
</button>
</span>
</div>
</form>
<!-- /input-group -->
</li>
<li>
<a href="index.php"><i class="fad fa-tachometer-alt fa-fw"></i> Accueil</a>
</li>
<li>
<a href="dec.php"><i class="fad fa-stopwatch fa-fw"></i> DEALS EN COURS</a>
</li>
<?php if (he_can('EDITDEAL')) { ?>
<li>
<a href="editdeal.php"><i class="fad fa-cogs fa-fw"></i> Modifier les Deals <?php if($nbdeal['-24']>0) echo "<span class='animated infinite flash'><span class='label' style='background-color: #ff9019;'><i class='fas fa-hourglass-end' title='Deal(s) Expire en -24h'>' <i style='font-size: 13px;color: #000;font-weight: bolder;'>".$nbdeal['-24']."</i></i></span></span>"; ?> </a>
</li>
<?php } ?>
<?php if (he_can('VENDRE')) { ?>
<li><a href="vendre.php"><i class="fad fa-shopping-bag fa-fw"></i> Vendre</a></li>
<?php } ?>
<?php if (he_can('TTCOUPONS')) { ?><li><a href="couponsrapide.php"><i class="fad fa-cart-arrow-down fa-fw"></i> Commandes
<?php if($nbdeal['nb_pal']>0) echo "<span class='animated infinite flash'><span class='label' style='background-color: red;'><i class='fas fa-shipping-fast' title='Demande de livraison'> <i style='font-size: 13px;color: #000;font-weight: bolder;'>".$nbdeal['nb_pal']."</i></i></span></span>"; ?>
<?php if($nbdeal['nb_mm']>0) echo "<span class='animated infinite flash'><span class='label' style='background-color: red;'><i class='far fa-clock' title='Mandat Minute'>' <i style='font-size: 13px;color: #000;font-weight: bolder;'>".$nbdeal['nb_mm']."</i></i></span></span>"; ?>
<?php if($nbdeal['nb_mustmail']>0) echo "<span class='animated infinite flash'><span class='label' style='background-color: red;'><i class='fas fa-credit-card' title='Mandat Minute'>' <i style='font-size: 13px;color: #000;font-weight: bolder;'>".$nbdeal['nb_mustmail']."</i></i></span></span>"; ?>
</a></li><?php } ?>
<?php if (he_can('COUPONS')) { ?>
<li <?php $filtre_on = "";if(isset($_SESSION['GDEAL']['filtre'])){$filtre_on = "<i class='fas fa-cog fa-spin'></i>"; echo "class='active'";} ?> >
<a href="#"><i class="fad fa-filter fa-fw"></i> Filtre<?php echo $filtre_on;?> <span class="fa arrow"></span></i></a>
<ul class="nav nav-second-level">
<?php include 'filtre.php';?>
</ul>
</li>
<?php } ?>
<li>
<a href="modeles.php"><i class="fad fa-file-word fa-fw"></i> Modéles des documents</a>
</li>
<li>
<a href="prix.php"><i class="fad fa-coins fa-fw"></i> Prix</a>
</li>
<?php if (he_can('STAT')) { ?>
<li>
<a href="statistique.php"><i class="fad fa-chart-bar fa-fw"></i> Statistique</a>
</li>
<?php } ?>
<?php if (he_can('FACTURE')) { ?>
<li>
<a href="facture.php"><i class="fad fa-calculator fa-fw"></i> Facture</a>
</li>
<?php } ?>
<?php if (he_can('USERS')) { ?>
<li>
<a href="#"><i class="fad fa-users fa-fw"></i> Utilisateurs<span class="fa arrow"></span></a>
<ul class="nav nav-second-level">
<?php if (he_can('TTUSERS')) { ?><li><a href="utilisateurs.php"><i class="fad fa-users fa-fw"></i> Toutes les Utilisateurs</a></li><?php } ?>
<?php
for($i=1;$i< count($statut_code);$i++)
{
if (he_can('STATUTUSERS')) { echo "<li><a href='utilisateurs.php?statut=".$i."'><i class='fad fa-user fa-fw'></i> ".$statut_code[$i]."s</a></li>";}
}
?>
</ul>
<!-- /.nav-second-level -->
</li>
<?php } ?>
<li>
<a href="#"><i class="fad fa-cogs fa-fw"></i> Profil<span class="fa arrow"></span></a>
<ul class="nav nav-second-level">
<li><a href="monprofil.php"><i class="fad fa-user fa-fw"></i> Mon Profil</a></li>
<li><a href="modifierprofil.php"><i class="fad fa-edit fa-fw"></i> Modifier Mon Profil</a></li>
<li><a href="dcx.php"><i class="fad fa-sign-out-alt fa-fw"></i> Déconnexion</a>
</ul>
<!-- /.nav-second-level -->
</li>
<?php if (he_can('BD')) { ?>
<li>
<a href="basededonnees.php"><i class="fad fa-database fa-fw"></i> Base de données</a>
</li>
<?php } ?>
<?php if (he_can('CLT')) { ?>
<li>
<a href="client.php"><i class="fad fa-id-card fa-fw"></i> Clients</a>
</li>
<?php } ?>
<?php if (he_can('LINK')) { ?>
<li>
<a href="lien.php"><i class="fad fa-external-link-square-alt fa-fw"></i> Lien</a>
</li>
<?php } ?>
<?php if (he_can('TTCOUPONS')) { ?><li><a href="coupons.php"><i class="fad fa-shopping-cart fa-fw"></i> Toutes les coupons</a></li><?php } ?>
</ul>
</div>
<!-- /.sidebar-collapse -->
</div>
<!-- /.navbar-static-side -->
</nav>
<p id="back-top">
<a href="#top"><span></span></a>
</p>
<div class="modal fade modal-primary" id="searchmodal" tabindex="-1" role="dialog">
<div class="modal-dialog modal-sm" role="document">
<div class="modal-content">
<div class="modal-body">
<div class="container-fluid">
<div class="row">
<form action="client.php" method="get" id="form1">
<div class="col-sm-12 col-xs-12 text-left"><h3>Recherche de:</h3></div>
<div class="col-sm-12 col-xs-12 text-left"><input type="text" name="query" id='query_p' required></div>
<div class="col-sm-12 col-xs-12 text-left">
<div class='radio radio-primary'><input type='radio' name='src' value='acc' id='Coupons' required onChange="if(this.checked){document.getElementById('form1').action='couponsrapide.php'}"><label for='Coupons'><i class='fad fa-cart-arrow-down' aria-hidden='true'></i> Coupons</label></div>
<div class='radio radio-primary'><input type='radio' name='src' value='acc' id='Clients' checked onChange="if(this.checked){document.getElementById('form1').action='client.php'}"><label for='Clients'><i class='fad fa-id-card' aria-hidden='true'></i> Clients</label></div>
</div>
<div class="col-sm-12 col-xs-12 text-center">
<button type="submit" class="btn btn-primary"> <i class="fad fa-search"></i> Chercher</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>