. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
| 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 : |
<link href="../dist/css/build.css" rel="stylesheet">
<?php
// var_dump($_SESSION['GDEAL']['filtre']);
// var_dump($_POST);
// exit;
if (isset($_POST['filtrer']))
{
unset($_SESSION['GDEAL']['filtre']);
if ((isset($_POST['cd']))&&($_POST['cd'])) {$_SESSION['GDEAL']['filtre']['cd'] = $_POST['cd'];}
if ((isset($_POST['dd']))&&($_POST['dd'])) {$_SESSION['GDEAL']['filtre']['dd'] = $_POST['dd'];}
if ((isset($_POST['df']))&&($_POST['df'])) {$_SESSION['GDEAL']['filtre']['df'] = $_POST['df'];}
if ((isset($_POST['etat']))&&(!(isset($_POST['tous'])))) {$_SESSION['GDEAL']['filtre']['etat'] = $_POST['etat'];}
if (isset($_POST['tous'])){unset($_SESSION['GDEAL']['filtre']['etat']);}
if(( (int) $_POST['recu'] + (int) $_POST['nonrecu'])%2 == 1)
{$_SESSION['GDEAL']['filtre']['recu'] = $_POST['recu'];
$_SESSION['GDEAL']['filtre']['nonrecu'] = $_POST['nonrecu'];}
if(( (int) $_POST['mailing'] + (int) $_POST['nonmailing'])%2 == 1)
{$_SESSION['GDEAL']['filtre']['mailing'] = $_POST['mailing'];
$_SESSION['GDEAL']['filtre']['nonmailing'] = $_POST['nonmailing'];}
echo '<script language="javascript">window.location.href = "'.$_SERVER['REQUEST_URI'].'"</script>';
}
if (isset($_GET['pas_filtre'])){unset($_SESSION['GDEAL']['filtre']);
// header("Location: ".$_SERVER['PHP_SELF']);exit;
echo '<script language="javascript">window.location.href = "'.$_GET['redirect_to'].'"</script>';
}
if ((isset($_GET['filtre']))&&($_GET['filtre']=='payee_aujourdhui')){
unset($_SESSION['GDEAL']['filtre']);
$_SESSION['GDEAL']['filtre']['dd'] = date('Y-m-d');
$_SESSION['GDEAL']['filtre']['df'] = date('Y-m-d');
$_SESSION['GDEAL']['filtre']['etat'] = array (2,3,4,5);
// header("Location: ".$_SERVER['PHP_SELF']);exit;
echo '<script language="javascript">window.location.href = "'.$_GET['redirect_to'].'"</script>';
}
// var_dump($_SESSION['GDEAL']['filtre']);
if ((isset($_GET['filtre']))&&($_GET['filtre']=='showmepel')){
unset($_SESSION['GDEAL']['filtre']);
$_SESSION['GDEAL']['filtre']['etat'] = array (2);
$_SESSION['GDEAL']['filtre']['nonmailing'] = 1;
// header("Location: ".$_SERVER['PHP_SELF']);exit;
echo '<script language="javascript">window.location.href = "'.$_GET['redirect_to'].'"</script>';
}
if ((isset($_GET['filtre']))&&($_GET['filtre']=='showmepal')){
unset($_SESSION['GDEAL']['filtre']);
$_SESSION['GDEAL']['filtre']['etat'] = array (7);
// header("Location: ".$_SERVER['PHP_SELF']);exit;
echo '<script language="javascript">window.location.href = "'.$_GET['redirect_to'].'"</script>';
}
if ((isset($_GET['filtre']))&&($_GET['filtre']=='showmemm')){
unset($_SESSION['GDEAL']['filtre']);
$_SESSION['GDEAL']['filtre']['etat'] = array (8);
// header("Location: ".$_SERVER['PHP_SELF']);exit;
echo '<script language="javascript">window.location.href = "'.$_GET['redirect_to'].'"</script>';
}
echo "<div class='well'><center><h2>.: Filtre :.</h2></center>";
echo "<form name='frmfiltre' id='frmfiltre' action='' method='post'>";
echo "<div class='form-group'><div class='input-group'><span class='input-group-addon' id='basic-addon1'><i class='fad fa-bullhorn' aria-hidden='true'></i></span><input type='text' id='cd' name='cd' class='form-control' value='".@$_SESSION['GDEAL']['filtre']['cd']."' placeholder='Code du Deal' pattern='^[0-9, ]{1,70}$' title='Les chiffres, les espaces et les virgules sont acceptés ' aria-describedby='basic-addon1'></div></div>";
echo "<div class='form-group'><div class='input-group date' id='datetimepicker1'><span class='input-group-addon'><i class='fad fa-calendar-check' aria-hidden='true'></i></span><input type='date' name='dd' value='".@$_SESSION['GDEAL']['filtre']['dd']."' class='form-control'> </div>";
echo "<div class='input-group date' id='datetimepicker2'><span class='input-group-addon'><i class='fad fa-calendar-check' aria-hidden='true'></i></span><input type='date' name='df' value='".@$_SESSION['GDEAL']['filtre']['df']."' class='form-control'> </div></div>";
$nb='0';
echo "<div class='row checkbox checkbox-info'>";
foreach ($coupon_code_icon as $e)
{
echo "<div class='col-lg-4 col-xs-4'>";
echo "<input type='checkbox' checked name='etat[]' id='etat".$nb."' value='".$nb."' onclick=\"if(!(checked)){document.getElementById('tous').checked = false;}\" /><label for='etat".$nb."'> ".$e."</label>";
$nb++;
echo "</div>";
}
echo "<div class='col-lg-8 col-xs-8'>";
echo "<input type='checkbox' checked name='tous' id='tous' onclick=\"if(checked){for (j=0; j<".$nb."; j++)document.getElementById('etat'+j).checked = true;}else{for (j=0; j<".$nb."; j++)document.getElementById('etat'+j).checked = false;}\" /><label for='tous'> <b>Tous.</b></label>";
echo "</div>";
echo "</div>";
if (@$_SESSION['GDEAL']['filtre']['etat'])
{echo "<script>for (j=0; j<".$nb."; j++)document.getElementById('etat'+j).checked = false;document.getElementById('tous').checked = false;</script>";
foreach ($_SESSION['GDEAL']['filtre']['etat'] as $e)
{echo "<script>for (j=0; j<".$nb."; j++){if (document.getElementById('etat'+j).value == '".$e."') document.getElementById('etat'+j).checked = true;}</script>";} }
echo " <input type='hidden' value='0' name='recu'><input type='hidden' value='0' name='nonrecu'><input type='hidden' value='0' name='mailing'><input type='hidden' value='0' name='nonmailing'>";
$ch_recu = $ch_nonrecu = $ch_mailing = $ch_nonmailing = "checked";
if (isset($_SESSION['GDEAL']['filtre']['recu'])&&($_SESSION['GDEAL']['filtre']['recu'] == 0)) $ch_recu = "";
if (isset($_SESSION['GDEAL']['filtre']['nonrecu'])&&($_SESSION['GDEAL']['filtre']['nonrecu'] == 0)) $ch_nonrecu = "";
if (isset($_SESSION['GDEAL']['filtre']['mailing'])&&($_SESSION['GDEAL']['filtre']['mailing'] == 0)) $ch_mailing = "";
if (isset($_SESSION['GDEAL']['filtre']['nonmailing'])&&($_SESSION['GDEAL']['filtre']['nonmailing'] == 0)) $ch_nonmailing = "";
echo "<div class='row checkbox checkbox-primary'>";
echo "<div class='col-lg-3 col-xs-6'><input type='checkbox' ".$ch_recu." name='recu' id='recu' value='1'/><label for='recu' style='line-height: 0;'> <i class='fad fa-thumbs-up' style='--fa-secondary-opacity: 0.5; --fa-primary-color: green; --fa-secondary-color: green;' title='Coupon reçu' data-toggle='tooltip' data-placement='bottom' aria-hidden='true' ></i></label></div>";
echo "<div class='col-lg-3 col-xs-6'><input type='checkbox' ".$ch_nonrecu." name='nonrecu' id='nonrecu' value='1'/><label for='nonrecu' style='line-height: 0;'> <i class='fad fa-thumbs-up' title='Coupon non reçu' data-toggle='tooltip' data-placement='bottom' aria-hidden='true' ></i></label></div>";
echo "<div class='col-lg-3 col-xs-6'><input type='checkbox' ".$ch_mailing." name='mailing' id='mailing' value='1'/><label for='mailing' style='line-height: 0;'> <i class='fad fa-envelope-open-text' style='--fa-secondary-opacity: 0.5; --fa-primary-color: green; --fa-secondary-color: green;' title='Client Notifiée Par Mail' data-toggle='tooltip' data-placement='bottom' aria-hidden='true' ></i></label></div>";
echo "<div class='col-lg-3 col-xs-6'><input type='checkbox' ".$ch_nonmailing." name='nonmailing' id='nonmailing' value='1'/><label for='nonmailing' style='line-height: 0;'> <i class='fad fa-envelope' title='Client non Notifiée Par Mail' data-toggle='tooltip' data-placement='bottom' aria-hidden='true' ></i></label></div>";
echo "</div>";
// echo "
// <div class='text-right'>
// <div class='btn-group dropup'>
// <button type='button' class='btn btn-primary dropdown-toggle' data-toggle='dropdown' aria-haspopup='true' aria-expanded='false'>
// <span class='caret'></span>
// <span class='sr-only'>Toggle Dropdown</span>
// </button>
// <ul class='dropdown-menu'>
// <li><a href='#' onClick=\"location.href='?filtre=payee_aujourdhui&redirect_to=".$_SERVER['REQUEST_URI']."'\" ><i class='fad fa-calendar fa-fw'></i> Payée Aujourd`hui</a></li>
// <li><a href='#' onClick=\"location.href='?pas_filtre=oui&redirect_to=".$_SERVER['REQUEST_URI']."'\"><i class='fad fa-ban fa-fw'></i> Initialisation</a></li>
// </ul>
// </div>
// ";
// echo "<input type='submit' class='btn btn-primary' value='Filtrer' name='filtrer'><div>";
// echo "<br><div class='clearfix'></div>
// <div class='btn-group dropup pull-right'>
// <input type='submit' class='btn btn-primary' value='Filtrer' name='filtrer'>
// <button type='button' class='btn btn-primary dropdown-toggle' data-toggle='dropdown' aria-haspopup='true' aria-expanded='false'>
// <span class='caret'></span>
// <span class='sr-only'>Toggle Dropdown</span>
// </button>
// <ul class='dropdown-menu pull-right'>
// <li><a href='#' onClick=\"location.href='?filtre=payee_aujourdhui&redirect_to=".$_SERVER['REQUEST_URI']."'\" ><i class='fad fa-calendar fa-fw'></i> Payée Aujourd`hui</a></li>
// <li><a href='#' onClick=\"location.href='?pas_filtre=oui&redirect_to=".$_SERVER['REQUEST_URI']."'\"><i class='fad fa-ban fa-fw'></i> Initialisation</a></li>
// </ul>
// </div><br>
// ";
echo "<div class='clearfix'></div>
<div class='btn-group pull-right'>
<a class='btn btn-info btn-sm col-lg-3 col-xs-6' href='#' title='Initialisation' data-toggle='tooltip' data-placement='top' onClick=\"location.href='?pas_filtre=oui&redirect_to=".$_SERVER['REQUEST_URI']."'\"> <i class='fad fa-ban fa-fw'></i> </a>
<a class='btn btn-info btn-sm col-lg-3 col-xs-6' href='#' title='Payée Aujourd`hui' data-toggle='tooltip' data-placement='top' onClick=\"location.href='?filtre=payee_aujourdhui&redirect_to=".$_SERVER['REQUEST_URI']."'\" > <i class='fad fa-calendar-alt fa-fw'></i> </a>
<button type='submit' class='btn btn-primary btn-sm col-lg-6 col-xs-12' title='Filtrer' data-toggle='tooltip' data-placement='top' value='Filtrer' name='filtrer'><i class='fad fa-filter fa-fw'></i> Filtrer</button>
</div>
";
echo "</form></div>";
if(isset($_SESSION['GDEAL']['filtre']))
{
?>
<script src="../js/bootstrap-notify.js"></script>
<script>
$.notify({
// options
icon: 'fad fa-exclamation-triangle',
title: '<strong>Attention :</strong>',
message: 'Filtre actif<br>Cliquez pour le desactiver',
url: '?pas_filtre=oui&redirect_to='+document.location.href,
target: '_self'
},{
// settings
element: 'body',
position: 'fixed',
type: "danger",
offset: {x: 50,y: 100},
allow_dismiss: true,
newest_on_top: true,
showProgressbar: true,
placement: {
from: "top",
align: "left"
},
offset: 20,
spacing: 10,
z_index: 1031,
delay: 5000,
timer: 1000,
url_target: '_self',
mouse_over: 'pause',
animate: {
enter: "animated fadeInDown",
exit: "animated hinge"
},
onShow: null,
onShown: null,
onClose: null,
onClosed: null,
icon_type: 'class',
template: '<div data-notify="container" class="col-xs-11 col-sm-3 alert alert-{0}" role="alert">' +
'<button type="button" aria-hidden="true" class="close" data-notify="dismiss"><i class="fad fa-times fa-2x" aria-hidden="true"></i></button>' +
'<span data-notify="icon"></span> ' +
'<span data-notify="title">{1}</span> ' +
'<span data-notify="message">{2}</span>' +
'<div class="progress" data-notify="progressbar">' +
'<div class="progress-bar progress-bar-{0}" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%;"></div>' +
'</div>' +
'<a href="{3}" target="{4}" data-notify="url"></a>' +
'</div>'
});
</script>
<?php
}
/////////////// fin filtre
?>