| Current Path : /home/happyrenas/old/happy-and-pay.fr/administration/templates/admin3/ |
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/happy-and-pay.fr/administration/templates/admin3/listing.php |
<?
session_start();
include("config.php");
$page="listing";
$debug=1;
?>
<!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>ADMINISTRATION HAPPY RENTALS</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="http://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/uniform/css/uniform.default.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 PLUGIN STYLES -->
<link href="../../assets/global/plugins/bootstrap-daterangepicker/daterangepicker-bs3.css" rel="stylesheet" type="text/css"/>
<link href="../../assets/global/plugins/fullcalendar/fullcalendar.min.css" rel="stylesheet" type="text/css"/>
<link href="../../assets/global/plugins/jqvmap/jqvmap/jqvmap.css" rel="stylesheet" type="text/css"/>
<!-- END PAGE LEVEL PLUGIN STYLES -->
<!-- BEGIN PAGE STYLES -->
<link href="../../assets/admin/pages/css/tasks.css" rel="stylesheet" type="text/css"/>
<!-- END PAGE STYLES -->
<!-- BEGIN THEME STYLES -->
<link href="../../assets/global/css/components.css" rel="stylesheet" type="text/css"/>
<link href="../../assets/global/css/plugins.css" rel="stylesheet" type="text/css"/>
<link href="../../assets/admin/layout2/css/layout.css" rel="stylesheet" type="text/css"/>
<link href="../../assets/admin/layout2/css/themes/grey.css" rel="stylesheet" type="text/css" id="style_color"/>
<link href="../../assets/admin/layout2/css/custom.css" rel="stylesheet" type="text/css"/>
<!-- END THEME STYLES -->
<link rel="shortcut icon" href="favicon.ico"/>
</head>
<!-- END HEAD -->
<!-- BEGIN BODY -->
<!-- DOC: Apply "page-header-fixed-mobile" and "page-footer-fixed-mobile" class to body element to force fixed header or footer in mobile devices -->
<!-- DOC: Apply "page-sidebar-closed" class to the body and "page-sidebar-menu-closed" class to the sidebar menu element to hide the sidebar by default -->
<!-- DOC: Apply "page-sidebar-hide" class to the body to make the sidebar completely hidden on toggle -->
<!-- DOC: Apply "page-sidebar-closed-hide-logo" class to the body element to make the logo hidden on sidebar toggle -->
<!-- DOC: Apply "page-sidebar-hide" class to body element to completely hide the sidebar on sidebar toggle -->
<!-- DOC: Apply "page-sidebar-fixed" class to have fixed sidebar -->
<!-- DOC: Apply "page-footer-fixed" class to the body element to have fixed footer -->
<!-- DOC: Apply "page-sidebar-reversed" class to put the sidebar on the right side -->
<!-- DOC: Apply "page-full-width" class to the body element to have full width page without the sidebar menu -->
<body class="page-boxed page-header-fixed page-sidebar-closed-hide-logo page-container-bg-solid page-sidebar-closed-hide-logo">
<!-- BEGIN HEADER -->
<?include("header_top.php");?>
<!-- END HEADER -->
<div class="clearfix">
</div>
<!-- BEGIN CONTAINER -->
<div class="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-->
<h3 class="page-title">
Tableau de bord <?echo date("d/m/Y");?></h3>
<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>
<a href="#">Tableau de bord </a>
</li>
</ul>
</div>
<!-- END PAGE HEADER-->
<?
// STATUT 0 => NON PAYE
// STATUT 4 => PAYE
// STATUT 6 => REMBOURSE
// CGV 0 ou vide => NON REPONSE
// CGV 1 => OK
// CGV 2 => REFUS
$date_jour = date("Y-m-d");
$date_jour = date("Y-m-d", strtotime($date_jour));
$jour_plus_dix = date('Y-m-d', strtotime('-10 days'));
$jour_plus_quatre = date('Y-m-d', strtotime('-4 days'));
$jour_moins_trois = date('Y-m-d', strtotime('+3 days'));
$jour_moins_deux = date('Y-m-d', strtotime('-2 days'));
?>
<div class="row">
<div class="col-md-12">
<?
$myquery = "SELECT * from client_reservation where (cgv=0 || cgv='') AND statut = 4 AND date_creation<='".$jour_plus_quatre."' order by id DESC";
$myquery_calls = $db->get_results($myquery);
$num = $db->num_rows;
?>
<div class="portlet box red">
<div class="portlet-title">
<div class="caption">
<i class="fa fa-cogs"></i>Non acceptation des CGV à J + 4
</div>
</div>
<div class="portlet-body"><small><?if ($debug) {echo $myquery;}?></small>
<div class="table-scrollable">
<table class="table table-bordered table-striped table-condensed flip-content">
<thead>
<tr>
<th align="center" width="1px"><i>1.2 %</th>
<th width="30%">Client</th>
<th width="30%">Propriétaire</th>
<th width="30%">Date</th>
<th width="10%">Relance</th>
</tr>
</thead>
<tbody>
<?
if (!empty($myquery_calls))
{
foreach ( $myquery_calls as $reservation )
{
$compteur=$compteur+1;
$myquery="select * from client where id=".$reservation->client_id;
$client = $db->get_row($myquery);
?>
<tr>
<td><?echo $reservation->id;?></td>
<td><?echo $client->mail;?></td>
<td><?echo $reservation->proprietaire_mail;?></a></td>
<td><?echo date("d-m-Y", strtotime($reservation->date_creation));?></a></td>
<?if ($reservation->cgv_relance==1) {?><td><?echo date("d-m-Y H:i:s", strtotime($reservation->cgv_relance_date));?></td><?}?>
<?if ($reservation->cgv_relance!=1) {?><td><a target="_blank" href="relance.php?payment_id=<?echo $reservation->payment_id;?>&reservation_id=<?echo $reservation->id;?>">S</a></td></td><?}?>
</tr>
<?
}
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<?
$myquery = "SELECT * from client_reservation where (cgv=0 || cgv='') AND statut = 4 AND date_debut='".$jour_moins_trois."' order by id DESC";
$myquery_calls = $db->get_results($myquery);
$num = $db->num_rows;
?>
<div class="portlet box red">
<div class="portlet-title">
<div class="caption">
<i class="fa fa-cogs"></i>Non réponse à Date de début -3 ( Solde ou acompte ) </small>
</div>
</div>
<div class="portlet-body"><small><?if ($debug) {echo $myquery;}?></small>
<div class="table-scrollable">
<table class="table table-bordered table-striped table-condensed flip-content">
<thead>
<tr>
<th align="center" width="1px"><i>1.2 %</th>
<th width="30%">Client</th>
<th width="30%">Propriétaire</th>
<th width="30%">Date</th>
</tr>
</thead>
<tbody>
<?
if (!empty($myquery_calls))
{
foreach ( $myquery_calls as $reservation )
{
$compteur=$compteur+1;
$myquery="select * from client where id=".$reservation->id;
$client = $db->get_row($myquery);
?>
<tr>
<td><?echo $reservation->id;?></td>
<td><?echo $client->mail;?></td>
<td><?echo $reservation->proprietaire_mail;?></a></td>
<td><?echo date("d-m-Y", strtotime($reservation->date_creation));?></a></td>
</tr>
<?
}
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<?
$myquery = "SELECT * from client_reservation where cgv=2 AND statut = 4 order by id DESC";
$myquery_calls = $db->get_results($myquery);
$num = $db->num_rows;
?>
<div class="portlet box red">
<div class="portlet-title">
<div class="caption">
<i class="fa fa-cogs"></i>REFUS NET( Solde ou acompte ) </small>
</div>
</div>
<div class="portlet-body"><small><?if ($debug) {echo $myquery;}?></small>
<div class="table-scrollable">
<table class="table table-bordered table-striped table-condensed flip-content">
<thead>
<tr>
<th align="center" width="1px"><i>1.2 %</th>
<th width="30%">Client</th>
<th width="30%">Propriétaire</th>
<th width="30%">Date</th>
</tr>
</thead>
<tbody>
<?
if (!empty($myquery_calls))
{
foreach ( $myquery_calls as $reservation )
{
$compteur=$compteur+1;
$myquery="select * from client where id=".$reservation->id;
$client = $db->get_row($myquery);
?>
<tr>
<td><?echo $reservation->id;?></td>
<td><?echo $client->mail;?></td>
<td><?echo $reservation->proprietaire_mail;?></a></td>
<td><?echo date("d-m-Y", strtotime($reservation->date_creation));?></a></td>
</tr>
<?
}
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<?
$myquery = "SELECT * from client_reservation where cgv=1 AND statut = 4 AND paiement_type=1 AND date_debut='".$jour_moins_deux."' order by id DESC" ;
$myquery_calls = $db->get_results($myquery);
$num = $db->num_rows;
?>
<div class="portlet box blue-steel">
<div class="portlet-title">
<div class="caption">
<i class="fa fa-cogs"></i>Remboursement ACOMPTE date de début + 2
</div>
</div>
<div class="portlet-body"><small><?if ($debug) {echo $myquery;}?></small>
<div class="table-scrollable">
<table class="table table-bordered table-striped table-condensed flip-content">
<thead>
<tr>
<th align="center" width="1px"><i>12 %</th>
<th width="30%">Client</th>
<th width="30%">Propriétaire</th>
<th width="30%">Date</th>
</tr>
</thead>
<tbody>
<?
if (!empty($myquery_calls))
{
foreach ( $myquery_calls as $reservation )
{
$compteur=$compteur+1;
$myquery="select * from client where id=".$reservation->id;
$client = $db->get_row($myquery);
?>
<tr>
<td><?echo $reservation->id;?></td>
<td><?echo $client->mail;?></td>
<td><?echo $reservation->proprietaire_mail;?></a></td>
<td><?echo date("d-m-Y", strtotime($reservation->date_creation));?></a></td>
</tr>
<?
}
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<?
$myquery = "SELECT * from client_reservation where cgv=1 AND statut = 4 AND paiement_type=2 AND date_debut='".$jour_moins_deux."' order by id DESC";
$myquery_calls = $db->get_results($myquery);
$num = $db->num_rows;
?>
<div class="portlet box blue-steel">
<div class="portlet-title">
<div class="caption">
<i class="fa fa-cogs"></i>PAIEMENT SOLDE date de début + 2 </i>
</div>
</div>
<div class="portlet-body"><small><?if ($debug) {echo $myquery;}?></small>
<div class="table-scrollable">
<table class="table table-bordered table-striped table-condensed flip-content">
<thead>
<tr>
<th align="center" width="1px"><i>3 %</th>
<th width="30%">Client</th>
<th width="30%">Propriétaire</th>
<th width="30%">Date</th>
</tr>
</thead>
<tbody>
<?
if (!empty($myquery_calls))
{
foreach ( $myquery_calls as $reservation )
{
$compteur=$compteur+1;
$myquery="select * from client where id=".$reservation->id;
$client = $db->get_row($myquery);
?>
<tr>
<td><?echo $reservation->id;?></td>
<td><?echo $client->mail;?></td>
<td><?echo $reservation->proprietaire_mail;?></a></td>
<td><?echo date("d-m-Y", strtotime($reservation->date_creation));?></a></td>
</tr>
<?
}
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<?include("footer.php");?>