| 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/xml.php |
<?
/////////////////////////////////////
include("config.php");
include("includes/fonctions.php");
$page="xml";
include("auth.php");
$annee_en_cours = date("Y");
$mois_en_cours = date("M");
$annee_depart = 2018;
$annee_fin = $annee_en_cours+1;
/////////////////////////////////////
$utilisateur_id = $_SESSION['admin_id'];
?>
<!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" />
<!-- 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" />
<!-- END THEME LAYOUT STYLES -->
<link href="<?echo $icone;?>" rel="shortcut icon" type="image/x-icon">
<style type="text/css" class="init">
#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 -->
<div class="clearfix">
</div>
<!-- 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-->
<div class="modal fade" id="portlet-config" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<!-- /.modal-dialog -->
</div>
<!-- /.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>Visualisation XML</b>
</li>
</ul>
<div class="page-toolbar">
<div class="btn-group pull-right">
<button type="submit" form="affectation" class="btn btn-fit-height" style="color:#fff;background-color:<?echo $charte_couleur;?>;border: 1px solid #fff;"> GENERER </button>
</div>
</div>
</div>
<!-- END PAGE HEADER-->
<!-- BEGIN PAGE CONTENT-->
<?
$affectation_xml=$_REQUEST['affectation_xml'];
if($affectation_xml)
{
include("xml_genere.php");
}
$critere_cron = " AND (paiement_statut = 1 AND attribution_date!='0000-00-00' AND date_creation>='2020-12-01') ";
$myquery = "SELECT * from constat where 1 ".$critere_cron." order by date_creation DESC";
$site_calls = $db->get_results($myquery);
?>
<form method="post" id="affectation" action="xml.php">
<div class="row">
<!--SYNTHESE GLOBALE-->
<div class="col-md-12">
<!-- BEGIN EXAMPLE TABLE PORTLET-->
<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:#fff;" class="fa fa-user"></i>Visualisation XML
</div>
</div>
<div class="portlet-body">
<table class="compact table table-striped table-bordered" id="philippe">
<thead>
<tr>
<th></th>
<th></th>
<th class="text-left"><small>Date versement</small></th>
<th class="text-right"><small>Montant</small></th>
<th class="text-center"><small>Type de paiement</small></th>
<th class="text-center"><small>Solde à encaisser</small></th>
<th class="text-center"><small>Infos Client</small></th>
<th class="text-center"><small>facture</small></th>
<th class="text-center"><small>IBAN</small></th>
<th class="text-center"><small>BIC</small></th>
<th class="text-center"><small>généré le</small></th>
</tr>
</thead>
<tbody>
<?
$date_jour = date("Y-m-d");
if (!empty($site_calls))
{
foreach ( $site_calls as $liste )
{
$huissier_nom = "";
$iban = "";
$bic = "";
$date_versement = date('Y-m-d', strtotime($liste->attribution_date . " +2 days"));
$constat_reference="HE/".date("Y", strtotime($liste->date_creation))."/C/".$liste->id;
if ($liste->attribution_id)
{
$myquery = "SELECT * from huissier where id=".$liste->attribution_id;
$huissier = $db->get_row($myquery);
$huissier_nom="<a href='huissier_ajout.php?huissier_id=".$huissier->id."'>".$huissier->huissier."</a>";
$iban=$huissier->iban;
$bic=$huissier->bic;
}
$acompte=0.25*$liste->tarif;
$montant=$liste->tarif;
$check="";
//if ($date_versement<=$date_jour) {$check=" checked ";}
if ($liste->date_generation_xml=="0000-00-00") {$check=" checked ";}
?>
<tr>
<td></td>
<td class="text-center" >
<label class="mt-checkbox mt-checkbox-single mt-checkbox-outline">
<input name="affectation_xml[]" <?echo $check;?> type="checkbox" class="checkboxes" value="<?echo $liste->id;?>" />
<span></span>
</label>
</td>
<td class="text-left"><small><?echo $date_style;?><?echo date("d-m-Y", strtotime($date_versement));?></b></td>
<td class="text-right"><small><?echo number_format($montant,2,"."," ");?> €</small><?//echo " - ".$total_tarif_mois;?></td>
<td class="text-center" style="text-align:center;"><small>CONSTAT <?echo $huissier_nom;?></small></td>
<td class="text-center" style="text-align:center;"><small><?echo $constat_reference;?></small></td>
<td class="text-center" style="text-align:center;"><small><b><?echo "<b>".ucfirst($liste->nom)."</b> ".$liste->prenom ;?></small></td>
<td><small>-</small></td>
<td><small><?echo $iban;?></small></td>
<td><small><?echo $bic;?></small></td>
<td class="text-right"><small><b><?if ($liste->date_generation_xml!="0000-00-00") {echo date("d-m-Y", strtotime($liste->date_generation_xml));}?></td>
</tr>
<?
}
}
?>
</tbody>
</table>
</div>
</div>
<!-- END EXAMPLE TABLE PORTLET-->
</div>
<!--SYNTHESE GLOBALE-->
</div>
</form>
<!-- END PAGE CONTENT-->
</div>
</div>
<!-- END CONTENT -->
<!-- BEGIN QUICK SIDEBAR -->
<!--Cooming Soon...-->
<!-- END QUICK SIDEBAR -->
</div>
<!-- END CONTAINER -->
<!-- BEGIN FOOTER -->
<div class="page-footer">
<div class="page-footer-inner">
</div>
<div class="scroll-to-top">
<i class="icon-arrow-up"></i>
</div>
</div>
<!-- END FOOTER -->
</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>
<!-- 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>
<script type="text/javascript" class="init">
$(document).ready(function() {
var table = $('#philippe').DataTable( {
paging: false,
"columnDefs": [
{"targets": [0], "visible": false, "orderable": false},
{"targets": [3], "visible": true, "orderable": false},
{"targets": [9], "visible": true, "orderable": false}
],
orderable: false,
"orderClasses": false,
"bSort": false,
"searching": true,
"language": {
"zeroRecords": "Aucun enregistrement dans la base",
"info": "",
"infoEmpty": "Résultat vide",
"infoFiltered": "(Sur _MAX_ résultats)",
"sSearch": "Rechercher : "
}
} );
} );
</script>
</body>
</html>