. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
| 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 'class/utilisateur.class.php';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php include 'header.php';?>
<script type="text/javascript">
function GetURLParameter(sParam)
{
var sPageURL = window.location.search.substring(1);
var sURLVariables = sPageURL.split('&');
for (var i = 0; i < sURLVariables.length; i++)
{var sParameterName = sURLVariables[i].split('=');
if (sParameterName[0] == sParam)
{return sParameterName[1];}
}
}
function search_detect()
{
GetURLParameter('query');
var q = GetURLParameter('query');
var the_inputs=document.getElementsByTagName("input");
for(var n=0;n<the_inputs.length;n++){if(the_inputs[n].type=="search"){the_inputs[n].value = String (q);}}
}
window.onload = search_detect;
</script>
</head>
<body>
<div id="wrapper">
<?php include 'menu.php'; ?>
<?php if (!(he_can('CLT'))) {echo "<script>location.href = '403.php';</script>";}?>
<?php
$cltman = new CouponManager($db);
if(isset($_GET['query']))
{
$_GET['query'] = trim($_GET['query']);
$clt = $cltman->clt('QUERY',@$_GET['query']);
$libelle ="<span class='animated infinite flash'><span class='label' style='background-color: red;'><i class='fas fa-exclamation-triangle' title='Recherche Activé'></i></span></span>";
$libelle .= " <font style='color: red;'>Recherche : <b>".@$_GET['query']." </b></font><font style='color: black;'>(".count($clt)." résultats)</font>";
$libelle .= " <a href='".$_SERVER['PHP_SELF']."' type='button' class='btn-info btn-sm' style='text-decoration: none;'><i class='fas fa-refresh fa-spin' aria-hidden='true'></i> Initialiser</a>";
$get_query = "query=".@$_GET['query']."&";
}
else
{$clt = $cltman->clt();
$libelle = "Liste de toutes les Clients";
}
?>
<!-- Page Content -->
<div id="page-wrapper">
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">Clients</h1>
</div>
<!-- /.col-lg-12 -->
</div>
<!-- /.row -->
<!-- /.row -->
<div class="row">
<div class="col-lg-12">
<div class="panel panel-default">
<div class="panel-heading">
<?php echo $libelle;?>
</div>
<?php //var_dump($clt);exit ?>
<!-- /.panel-heading -->
<div class="panel-body">
<div class="dataTable_wrapper">
<table class="table table-striped table-bordered table-hover" id="dataTables-user" cellspacing="0" width="100%">
<thead>
<tr>
<th>SRC</th>
<th>Nom</th>
<th>Téléphone</th>
<th>Email</th>
<th><i class="fas fa-cogs "></i></th>
</tr>
</thead>
<tbody>
<?php foreach ($clt as $c) { ?>
<tr class="odd gradeX">
<td class="center"><center><?php
//if ($c['src'] == 'INS') echo '<i class="fas fa-address-book " title="Inscrit" ></i>';
//if ($c['src'] == 'CPN') echo '<i class="fas fa-shopping-bag" title="Acheteur" style="color: #4f9fcf;"></i>';
if ($c['src'] == 'INS') echo '<i class="fad fa-laptop" title="Inscrit" style="color: #007CBB;"></i>';
if ($c['src'] == 'CPN') echo '<i class="fad fa-store" title="Acheteur" style="--fa-primary-color: goldenrod; --fa-secondary-color: #007CBB;--fa-secondary-opacity: 1.0"></i>';
?></center></td>
<td><a target="_blanc" href="couponsrapide.php?query=<?php echo $c['prenom'].' '.$c['nom'];?>"><i class="fas fa-search"></i></a><?php echo $c['prenom'].' '.$c['nom'];?></td>
<td><a target="_blanc" href="couponsrapide.php?query=<?php echo $c['tel'];?>"><i class="fas fa-search"></i></a><?php echo $c['tel'];?></td>
<td><a target="_blanc" href="couponsrapide.php?query=<?php echo $c['email'];?>"><i class="fas fa-search"></i></a><?php echo $c['email'];?></td>
<td class="center">
<?php if (strlen($c['email']) > 5){ ?><a target="_blanc" href="https://www.facebook.com/search/people/?q=<?php echo $c['email'];?>"><i class="fab fa-facebook-square fa-2x"></i></a><?php } ?>
<?php if (strlen($c['tel']) > 5){ ?><a target="_blanc" href="https://www.facebook.com/search/people/?q=<?php echo $c['tel'];?>"><i class="fab fa-facebook-square fa-2x" style="color: #fdbd32;"></i></a><?php } ?>
<a class="" href="#" data-toggle="modal" data-target="#infoclt<?php echo $c['id'];?>" title="Fiche Client"><i class="fas fa-plus-square fa-2x" style="color: #000000;"></i></a>
</td>
</tr>
<?php }?>
</tbody>
</table>
</div>
<!-- /.table-responsive -->
<?php foreach ($clt as $c) { ?>
<div class="modal fade modal-primary" id="infoclt<?php echo $c['id'];?>" data-easein="flipXIn" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog <?php echo $animated_open_effect[array_rand($animated_open_effect, 1)]; ?> animated modal-sm" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h1 class="modal-title text-center" id="myModalLabel">
Fiche Client
</h1>
</div>
<div class="modal-body">
<table class="table table-condensed">
<tbody>
<tr>
<th><i class="fas fa-user" aria-hidden="true"></i>
<?php echo $c['nom']." ".$c['prenom']; ?></th>
</tr>
<tr>
<th><i class="fas fa-phone-square" aria-hidden="true"></i>
<?php echo $c['tel'];?></th>
</tr>
<tr>
<th><i class="fas fa-envelope-open-text" aria-hidden="true"></i>
<?php echo $c['email'];?></th>
</tr>
<?php
$client= array();
if (strlen($c['email']) > 5)
{$client = $managerCou->getInfoClt($c['email']); ?>
<tr>
<td><i class="fas fa-map-marker" aria-hidden="true"></i>
<?php echo $client['adr'];?></td>
</tr>
<tr>
<td><i class="fas fa-address-card" aria-hidden="true"></i>
<?php echo $client['civilite'];?>, <?php echo $client['gender'];?></td>
</tr>
<tr>
<td><i class="fas fa-calendar" aria-hidden="true"></i>
<?php echo $client['date_de_naissance'];?></td>
</tr>
<?php } ?>
<?php
if (count($client)== 0){ ?>
<tr>
<td>
<div class="alert alert-danger">
<span class="fa-stack fa-lg">
<i class="fas fa-user fa-stack-1x"></i>
<i class="fas fa-ban fa-stack-2x text-danger"></i>
</span>
Client Non Inscrit </div>
</td>
</tr>
<?php } ?>
<tr>
<th><i class="fas fa-external-link-square-alt" aria-hidden="true"></i>
<?php if (strlen($c['email']) > 5){ ?><a target="_blanc" href="https://www.facebook.com/search/people/?q=<?php echo $c['email'];?>"><i class="fab fa-facebook-square fa-2x"></i></a><?php } ?>
<?php if (strlen($c['tel']) > 5){ ?><a target="_blanc" href="https://www.facebook.com/search/people/?q=<?php echo $c['tel'];?>"><i class="fab fa-facebook-square fa-2x" style="color: #fdbd32;"></i></a><?php } ?>
</th>
</tr>
</tbody>
</table>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Fermer</button>
</div>
</div>
</div>
</div>
<?php } ?>
</div>
<!-- /.panel-body -->
</div>
<!-- /.panel -->
</div>
<!-- /.col-lg-12 -->
</div>
</div>
<!-- /.container-fluid -->
</div>
<!-- /#page-wrapper -->
</div>
<!-- /#wrapper -->
<!-- jQuery -->
<script src="../bower_components/jquery/dist/jquery.min.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="../bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- Metis Menu Plugin JavaScript -->
<script src="../bower_components/metisMenu/dist/metisMenu.min.js"></script>
<!-- Custom Theme JavaScript -->
<script src="../dist/js/sb-admin-2.js"></script>
<!-- Page-Level Demo Scripts - Tables - Use for reference -->
<script src='../js/velocity.min.js'></script>
<script src='../js/velocity.ui.min.js'></script>
<link href="../datatable/responsive.dataTables.css" rel="stylesheet">
<link href="https://cdn.datatables.net/1.10.16/css/dataTables.bootstrap.min.css" rel="stylesheet">
<!--script src="../datatable/jquery.dataTables.js"></script-->
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
<script src="../datatable/dataTables.responsive.js"></script>
<script src="https://cdn.datatables.net/1.10.16/js/dataTables.foundation.min.js"></script>
<script>
$.extend( $.fn.dataTable.defaults, {
responsive: true
} );
$(document).ready(function() {
$('#dataTables-user_filter label input').attr('id', 'cerca'),
$('#dataTables-user').DataTable( {
"order": [[ 1, "asc" ]],
"language": {
"sProcessing": "Traitement en cours...",
"sSearch": "Rechercher :",
"sLengthMenu": "Afficher _MENU_ éléments",
"sInfo": "Affichage de l'élément _START_ à _END_ sur _TOTAL_ éléments",
"sInfoEmpty": "Affichage de l'élément 0 à 0 sur 0 élément",
"sInfoFiltered": "(filtré de _MAX_ éléments au total)",
"sInfoPostFix": "",
"sLoadingRecords": "Chargement en cours...",
"sZeroRecords": "Aucun élément à afficher",
"sEmptyTable": "Aucune donnée disponible dans le tableau",
"oPaginate": {
"sFirst": "Premier",
"sPrevious": "Précédent",
"sNext": "Suivant",
"sLast": "Dernier"
},
"oAria": {
"sSortAscending": ": activer pour trier la colonne par ordre croissant",
"sSortDescending": ": activer pour trier la colonne par ordre décroissant"
}
}
} );
} );
</script>
</body>
</html>