| Current Path : /home/happyrenas/old/huissier-express.fr/administration/2020/ |
Linux webd005.cluster105.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 |
| Current File : /home/happyrenas/old/huissier-express.fr/administration/2020/synthese.php |
<?
/////////////////////////////////////
include("config.php");
include("includes/fonctions.php");
if ($_SESSION['admin_droit']==2) {$huissier_id = $_SESSION['admin_id'];$page = "synthese";}
include("auth.php");
$annee_en_cours = date("Y");
$mois_en_cours = date("m");
/////////////////////////////////////
$filtre_departement = $db->escape($_GET['filtre_departement']);
$filtre_bloc = $db->escape($_GET['filtre_bloc']);
//$critere_limite=" LIMIT 100";
?>
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="fr" class="no-js">
<!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
<meta charset="utf-8" />
<title><?echo $titre_application;?></title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1" name="viewport" />
<meta content="" name="description" />
<meta content="" name="author" />
<!-- BEGIN GLOBAL MANDATORY STYLES -->
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&subset=all" rel="stylesheet" type="text/css" />
<link href="../assets/global/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<link href="../assets/global/plugins/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" type="text/css" />
<link href="../assets/global/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="../assets/global/plugins/bootstrap-switch/css/bootstrap-switch.min.css" rel="stylesheet" type="text/css" />
<!-- END GLOBAL MANDATORY STYLES -->
<!-- BEGIN PAGE LEVEL PLUGINS -->
<link href="../assets/global/plugins/datatables/datatables.min.css" rel="stylesheet" type="text/css" />
<link href="../assets/global/plugins/datatables/plugins/bootstrap/datatables.bootstrap.css" rel="stylesheet" type="text/css" />
<!-- END PAGE LEVEL PLUGINS -->
<!-- BEGIN THEME GLOBAL STYLES -->
<link href="../assets/global/css/components.min.css" rel="stylesheet" id="style_components" type="text/css" />
<link href="../assets/global/css/plugins.min.css" rel="stylesheet" type="text/css" />
<link href="../assets/global/plugins/bootstrap-modal/css/bootstrap-modal-bs3patch.css" rel="stylesheet" type="text/css" />
<link href="../assets/global/plugins/bootstrap-modal/css/bootstrap-modal.css" rel="stylesheet" type="text/css" />
<!-- END THEME GLOBAL STYLES -->
<!-- BEGIN THEME LAYOUT STYLES -->
<link href="../assets/layouts/layout2/css/layout.min.css" rel="stylesheet" type="text/css" />
<link href="../assets/layouts/layout2/css/themes/grey.min.css" rel="stylesheet" type="text/css" id="style_color" />
<link href="../assets/layouts/layout2/css/custom.min.css" rel="stylesheet" type="text/css" />
<link href="../assets/global/plugins/bootstrap-datepicker/css/bootstrap-datepicker3.min.css" rel="stylesheet" type="text/css" />
<!-- END THEME LAYOUT STYLES -->
<link href="<?echo $icone;?>" rel="shortcut icon" type="image/x-icon">
<style type="text/css" class="init">
#philippe{display:none;}
#philippe tbody tr:hover {background-color:<?echo $datatable_hover;?> !important;}
</style>
</head>
<!-- END HEAD -->
<body class="page-header-fixed page-sidebar-closed-hide-logo page-container-bg-solid">
<!-- BEGIN HEADER -->
<?include("header_top.php");?>
<!-- END HEADER -->
<!-- BEGIN CONTAINER -->
<div class="page-container">
<!-- BEGIN SIDEBAR -->
<div class="page-sidebar-wrapper">
<!-- DOC: Set data-auto-scroll="false" to disable the sidebar from auto scrolling/focusing -->
<!-- DOC: Change data-auto-speed="200" to adjust the sub menu slide up/down speed -->
<div class="page-sidebar navbar-collapse collapse">
<?include("header_left.php");?>
</div>
</div>
<!-- END SIDEBAR -->
<!-- BEGIN CONTENT -->
<div class="page-content-wrapper">
<div class="page-content">
<!-- BEGIN SAMPLE PORTLET CONFIGURATION MODAL FORM-->
<!-- /.modal -->
<!-- END SAMPLE PORTLET CONFIGURATION MODAL FORM-->
<!-- BEGIN PAGE HEADER-->
<div class="page-bar">
<ul class="page-breadcrumb">
<li>
<i class="fa fa-home"></i>
<a href="index.php">Accueil</a>
<i class="fa fa-angle-right"></i>
</li>
<li>
<b>Synthèse</b>
</li>
</ul>
</div>
<?
$critere_huissier = " AND attribution1_id =".$huissier_id." OR attribution2_id=".$huissier_id;
$myquery = "SELECT * from devis where 1 ".$critere_huissier." order by id desc ".$critere_limite;
$myquery_calls = $db->get_results($myquery);
$num = $db->num_rows;
?>
<div class="row">
<div class="col-md-12">
<div class="portlet box" style="background-color:<?echo $charte_couleur;?>;border: 1px solid <?echo $charte_couleur;?>;">
<div class="portlet-title">
<div class="caption"><i style="color:#00e5ff;" class="fa fa-database"></i>
Les devis acceptés
</div>
</div>
<div class="portlet-body">
<table class="table compact table-striped table-bordered" id="philippe1">
<thead>
<tr>
<th width="1px"> </th>
<th width="1px">Référence</th>
<th width="1px"> </th>
<th width="10%">Info</th>
<th width="15%">Demandeur </th>
<th width="20%">Ville</th>
<th class="text-center" width="10%">Intervention </th>
<th class="text-right" width="10%">Posté le</th>
<th class="text-right" width="10%">Attribué le</th>
</tr>
</thead>
<tbody>
<?
if (!empty($myquery_calls))
{
foreach ( $myquery_calls as $devis )
{
if ($devis->attribution1_id==$huissier_id) {$date_attribution=date("d/m/Y H:i", strtotime($devis->attribution1_date));}
if ($devis->attribution2_id==$huissier_id) {$date_attribution=date("d/m/Y H:i", strtotime($devis->attribution2_date));}
$devis_reference="DH/".date("Y", strtotime($devis->date_creation))."/D/".$devis->id;
?>
<tr>
<td></td>
<td class='text-left'><a class="btn btn-sm btn-default" href="devis_ajout.php?devis_id=<?echo $devis->id;?>"><?echo $devis_reference;?></a></td>
<td class='text-left'><span class="btn btn-sm" style="cursor:default;color:<?echo $tableau_devis_bloc_texte[$devis->bloc];?>;background-color:<?echo $tableau_devis_bloc_fond[$devis->bloc];?>"><?echo $tableau_devis_bloc[$devis->bloc];?></a></td>
<td class='text-left'><i><?echo cutString($devis->besoin,0,40);?></i></td>
<td><?echo "<b>".ucfirst($devis->nom)."</b> ".$devis->prenom ;?></a></td>
<td class="text-left"><?echo $devis->cp;?> <?echo ucfirst($devis->ville);?> <small>(<?echo $devis->departement;?>)</small></a></td>
<td class="text-center"> <small><?echo $devis->lieu_intervention;?></small></a></td>
<td class="text-right"><?echo date("d/m/Y H:i", strtotime($devis->date_creation));?></a></td>
<td class="text-right"><?echo $date_attribution;?></a></td>
</tr>
<?
}
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<?
$critere_huissier = " AND attribution_id =".$huissier_id;
$myquery = "SELECT * from constat where 1 ".$critere_huissier." order by id desc ".$critere_limite;
$myquery_calls = $db->get_results($myquery);
$num = $db->num_rows;
?>
<div class="row">
<div class="col-md-12">
<div class="portlet box" style="background-color:<?echo $charte_couleur;?>;border: 1px solid <?echo $charte_couleur;?>;">
<div class="portlet-title">
<div class="caption"><i style="color:#00e5ff;" class="fa fa-database"></i>
Les constats acceptés
</div>
</div>
<div class="portlet-body">
<table class="table compact table-striped table-bordered" id="philippe2">
<thead>
<tr>
<th width="1px"> </th>
<th width="1px">Réference</th>
<th width="1px">Info</th>
<th width="15%">Demandeur </th>
<th width="20%">Ville</th>
<th class="text-right" width="10%">Posté le</th>
<th class="text-right" width="10%">Accepté le</th>
</tr>
</thead>
<tbody>
<?
if (!empty($myquery_calls))
{
foreach ( $myquery_calls as $liste )
{
$reference="HE/".date("Y", strtotime($liste->date_creation))."/C/".$liste->id;
?>
<tr>
<td></td>
<td class='text-left'><a class="btn btn-sm btn-default" href="constat_ajout.php?constat_id=<?echo $liste->id;?>"><?echo $reference;?></a></td>
<td class='text-left'><i><small><?echo cutString($liste->information,0,100);?></small></i></td>
<td><?echo "<b>".ucfirst($liste->nom)."</b> ".$liste->prenom ;?></a></td>
<td class="text-left"><?echo $liste->cp;?> <?echo ucfirst($liste->ville);?> <small><b>(<?echo $liste->constat_departement;?>)</b></small></a></td>
<td class="text-right"><?echo date("d/m/Y H:i", strtotime($liste->date_creation));?></a></td>
<td class="text-right"><?echo date("d/m/Y H:i", strtotime($liste->attribution_date));?></a></td>
</tr>
<?
}
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<?
$critere_huissier = " AND attribution_id =".$huissier_id;
$myquery = "SELECT * from impaye where 1 ".$critere_huissier." order by id desc ".$critere_limite;
$myquery_calls = $db->get_results($myquery);
$num = $db->num_rows;
?>
<div class="row">
<div class="col-md-12">
<div class="portlet box" style="background-color:<?echo $charte_couleur;?>;border: 1px solid <?echo $charte_couleur;?>;">
<div class="portlet-title">
<div class="caption"><i style="color:#00e5ff;" class="fa fa-database"></i>
Les recouvrements acceptés
</div>
</div>
<div class="portlet-body">
<table class="table compact table-striped table-bordered" id="philippe3">
<thead>
<tr>
<th width="1px"> </th>
<th width="1px">Réference</th>
<th width="1px">Info</th>
<th width="15%">Demandeur </th>
<th width="20%">Ville</th>
<th class="text-right" width="10%">Posté le</th>
<th class="text-right" width="10%">Accepté le</th>
</tr>
</thead>
<tbody>
<?
if (!empty($myquery_calls))
{
foreach ( $myquery_calls as $liste )
{
$reference="HE/".date("Y", strtotime($liste->date_creation))."/R/".$liste->id;
?>
<tr>
<td></td>
<td class='text-left'><a class="btn btn-sm btn-default" href="recouvrement_ajout.php?impaye_id=<?echo $liste->id;?>"><?echo $reference;?></a></td>
<td class='text-left'><i><small><?echo cutString($liste->impaye_description,0,100);?></small></i></td>
<td><?echo "<b>".ucfirst($liste->client_nom)."</b> ".$liste->client_prenom ;?></a></td>
<td class="text-left"><?echo $liste->cp;?> <?echo ucfirst($liste->debiteur_ville);?> <small><b>(<?echo $liste->debiteur_departement;?>)</b></small></a></td>
<td class="text-right"><?echo date("d/m/Y H:i", strtotime($liste->date_creation));?></a></td>
<td class="text-right"><?echo date("d/m/Y H:i", strtotime($liste->attribution_date));?></a></td>
</tr>
<?
}
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<?
$critere_huissier = " AND attribution_id =".$huissier_id;
$myquery = "SELECT * from urgence where 1 ".$critere_huissier." order by id desc ".$critere_limite;
$myquery_calls = $db->get_results($myquery);
$num = $db->num_rows;
?>
<div class="row">
<div class="col-md-12">
<div class="portlet box" style="background-color:<?echo $charte_couleur;?>;border: 1px solid <?echo $charte_couleur;?>;">
<div class="portlet-title">
<div class="caption"><i style="color:#00e5ff;" class="fa fa-database"></i>
Les actes en urgence acceptés
</div>
</div>
<div class="portlet-body">
<table class="table compact table-striped table-bordered" id="philippe4">
<thead>
<tr>
<th width="1px"> </th>
<th width="1px">Réference</th>
<th width="1px">Info</th>
<th width="15%">Demandeur </th>
<th width="20%">Ville</th>
<th class="text-right" width="10%">Posté le</th>
<th class="text-right" width="10%">Accepté le</th>
</tr>
</thead>
<tbody>
<?
if (!empty($myquery_calls))
{
foreach ( $myquery_calls as $liste )
{
$reference="HE/".date("Y", strtotime($liste->date_creation))."/U/".$liste->id;
?>
<tr>
<td></td>
<td class='text-left'><a class="btn btn-sm btn-default" href="urgence_ajout.php?urgence_id=<?echo $liste->id;?>"><?echo $reference;?></a></td>
<td class='text-left'><i><small><?echo cutString($liste->urgence_description,0,100);?></small></i></td>
<td><?echo "<b>".ucfirst($liste->client_nom)."</b> ".$liste->client_prenom ;?></a></td>
<td class="text-left"><?echo $liste->cp;?> <?echo ucfirst($liste->client_ville);?> <small><b>(<?echo $liste->client_departement;?>)</b></small></a></td>
<td class="text-right"><?echo date("d/m/Y H:i", strtotime($liste->date_creation));?></a></td>
<td class="text-right"><?echo date("d/m/Y H:i", strtotime($liste->attribution_date));?></a></td>
</tr>
<?
}
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<!-- END PAGE CONTENT-->
</div>
</div>
<!-- END CONTENT -->
<!-- BEGIN QUICK SIDEBAR -->
<!--Cooming Soon...-->
<!-- END QUICK SIDEBAR -->
</div>
<!-- END CONTAINER -->
<?
include("footer.php");
?>
</div>
<!--[if lt IE 9]>
<script src="../assets/global/plugins/respond.min.js"></script>
<script src="../assets/global/plugins/excanvas.min.js"></script>
<script src="../assets/global/plugins/ie8.fix.min.js"></script>
<![endif]-->
<!-- BEGIN CORE PLUGINS -->
<script src="../assets/global/plugins/jquery.min.js" type="text/javascript"></script>
<script src="../assets/global/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script src="../assets/global/plugins/js.cookie.min.js" type="text/javascript"></script>
<script src="../assets/global/plugins/jquery-slimscroll/jquery.slimscroll.min.js" type="text/javascript"></script>
<script src="../assets/global/plugins/jquery.blockui.min.js" type="text/javascript"></script>
<script src="../assets/global/plugins/bootstrap-switch/js/bootstrap-switch.min.js" type="text/javascript"></script>
<!-- END CORE PLUGINS -->
<!-- BEGIN PAGE LEVEL PLUGINS -->
<script src="../assets/global/plugins/jquery-notific8/jquery.notific8.min.js" type="text/javascript"></script>
<script src="../assets/global/scripts/datatable.js" type="text/javascript"></script>
<script src="../assets/global/plugins/datatables/datatables.min.js" type="text/javascript"></script>
<script src="../assets/global/plugins/datatables/plugins/bootstrap/datatables.bootstrap.js" type="text/javascript"></script>
<!-- END PAGE LEVEL PLUGINS -->
<!-- BEGIN THEME GLOBAL SCRIPTS -->
<script src="../assets/global/scripts/app.min.js" type="text/javascript"></script>
<script src="../assets/global/plugins/bootstrap-modal/js/bootstrap-modalmanager.js" type="text/javascript"></script>
<script src="../assets/global/plugins/bootstrap-modal/js/bootstrap-modal.js" type="text/javascript"></script>
<script src="//cdn.datatables.net/plug-ins/1.10.21/sorting/date-euro.js" type="text/javascript"></script>
<!-- END THEME GLOBAL SCRIPTS -->
<!-- BEGIN PAGE LEVEL SCRIPTS -->
<script src="../assets/pages/scripts/ui-notific8.min.js" type="text/javascript"></script>
<!-- END PAGE LEVEL SCRIPTS -->
<!-- BEGIN THEME LAYOUT SCRIPTS -->
<script src="../assets/layouts/layout2/scripts/layout.min.js" type="text/javascript"></script>
<script src="../assets/layouts/layout2/scripts/demo.min.js" type="text/javascript"></script>
<script src="../assets/layouts/global/scripts/quick-sidebar.min.js" type="text/javascript"></script>
<script src="../assets/layouts/global/scripts/quick-nav.min.js" type="text/javascript"></script>
<link href="https://cdn.jsdelivr.net/npm/select2@4.0.12/dist/css/select2.min.css" rel="stylesheet" />
<script src="https://cdn.jsdelivr.net/npm/select2@4.0.12/dist/js/select2.min.js"></script>
<script type="text/javascript" class="init">
$(document).ready(function() {
var table = $('#philippe1').DataTable( {
paging: true,
"pageLength": 10,
"columnDefs": [
{"targets": [0], "visible": false, "orderable": false},
{"targets": [3], "visible": true, "orderable": false},
{"targets": [5], "visible": true, "orderable": false},
{"targets": [7], "visible": true, "orderable": true,"type" : "date-euro"},
{"targets": [8], "visible": true, "orderable": true,"type" : "date-euro"},
],
orderable: false,
"orderClasses": true,
"bSort": true,
"searching": true,
"language": {
"zeroRecords": "Aucun enregistrement dans la base",
"info": "",
"sLengthMenu": "_MENU_ par page",
"infoEmpty": "Résultat vide",
"infoFiltered": "(Sur _MAX_ résultats)",
"sSearch": "Rechercher : "
},
} );
var table = $('#philippe2').DataTable( {
paging: true,
"pageLength": 10,
"columnDefs": [
{"targets": [0], "visible": false, "orderable": false},
{"targets": [3], "visible": true, "orderable": false},
{"targets": [4], "visible": true, "orderable": false},
{"targets": [5], "visible": true, "orderable": true,"type" : "date-euro"},
{"targets": [6], "visible": true, "orderable": true,"type" : "date-euro"},
],
orderable: false,
"orderClasses": true,
"bSort": true,
"searching": true,
"language": {
"zeroRecords": "Aucun enregistrement dans la base",
"info": "",
"sLengthMenu": "_MENU_ par page",
"infoEmpty": "Résultat vide",
"infoFiltered": "(Sur _MAX_ résultats)",
"sSearch": "Rechercher : "
},
} );
var table = $('#philippe3').DataTable( {
paging: true,
"pageLength": 10,
"columnDefs": [
{"targets": [0], "visible": false, "orderable": false},
{"targets": [3], "visible": true, "orderable": false},
{"targets": [4], "visible": true, "orderable": false},
{"targets": [5], "visible": true, "orderable": true,"type" : "date-euro"},
{"targets": [6], "visible": true, "orderable": true,"type" : "date-euro"},
],
orderable: false,
"orderClasses": true,
"bSort": true,
"searching": true,
"language": {
"zeroRecords": "Aucun enregistrement dans la base",
"info": "",
"sLengthMenu": "_MENU_ par page",
"infoEmpty": "Résultat vide",
"infoFiltered": "(Sur _MAX_ résultats)",
"sSearch": "Rechercher : "
},
} );
var table = $('#philippe4').DataTable( {
paging: true,
"pageLength": 10,
"columnDefs": [
{"targets": [0], "visible": false, "orderable": false},
{"targets": [3], "visible": true, "orderable": false},
{"targets": [4], "visible": true, "orderable": false},
{"targets": [5], "visible": true, "orderable": true,"type" : "date-euro"},
{"targets": [6], "visible": true, "orderable": true,"type" : "date-euro"},
],
orderable: false,
"orderClasses": true,
"bSort": true,
"searching": true,
"language": {
"zeroRecords": "Aucun enregistrement dans la base",
"info": "",
"sLengthMenu": "_MENU_ par page",
"infoEmpty": "Résultat vide",
"infoFiltered": "(Sur _MAX_ résultats)",
"sSearch": "Rechercher : "
},
} );
} );
$('#philippe').on('init.dt', function () {
$('#philippe').show();
$('#loading').hide();
})
</script>
</body>
</html>