Mini Shell

Direktori : /home/admin/web/mcpv.demarco.ddnsfree.com/public_html/external/prestataires/
Upload File :
Current File : /home/admin/web/mcpv.demarco.ddnsfree.com/public_html/external/prestataires/export_csv.php

<!doctype html>
<html lang="fr">
<head>
<?php 
require_once("_include/meta.php"); 
require_once("_include/link.php"); 
require_once("_include/script.php");
require_once("_include/init.php");
if(!current_user_can('administrator') ) {
	echo "Section réservée aux administrateurs du site uniquement. <a href='javascript:window.parent.location.href=\"/mcpv/index.php\"'>Revenir au site</a>";
	exit();
}
?>

<script type="text/javascript">

$(document).ready(function() {
	
	$('#btn-csv-prestataires').on('click',function() {
		$('#popup').modal('show');
		$.ajax({
			type: 'post',
			url: 'prestataire_csv.php',
			data: null,
			success: function(data) {
					var bom = '\ufeff' + data; // Write BOM character sequence to fix UTF-8 in Excel
					setTimeout(function() {
					  var link = document.getElementById("a-csv-download");
					  var csv = new Blob([bom], {type: 'text/csv'});
					  link.href = URL.createObjectURL(csv);
					  link.download = 'prestataires.csv';
					  $( "#btn-csv-download").click();
					  location.reload(true);
					}, 3000);

			},
			error: function(XMLHttpRequest, textStatus, errorThrown) { 
				alert("Status: " + textStatus); alert("Error: " + errorThrown); 
			}
		});
	});	
	
	$('#btn-csv-avis').on('click',function() {
		$('#popup').modal('show');
		$.ajax({
			type: 'post',
			url: 'avis_csv.php',
			data: null,
			success: function(data) {
					var bom = '\ufeff' + data; // Write BOM character sequence to fix UTF-8 in Excel
					setTimeout(function() {
					  var link = document.getElementById("a-csv-download");
					  var csv = new Blob([bom], {type: 'text/csv'});
					  link.href = URL.createObjectURL(csv);
					  link.download = 'avis.csv';
					  $( "#btn-csv-download").click();
					  location.reload(true);
					}, 3000);
					$('#popup').modal('hide');
			},
			error: function(XMLHttpRequest, textStatus, errorThrown) { 
				alert("Status: " + textStatus); alert("Error: " + errorThrown); 
			}
		});
	});	
});
</script>

<title>Export données</title>
</head>

<body>

<h5 class="text-center my-5">Exporter données vers Excel</h5>

<div class="container-flex">
	 <div class="row">
				<div class="col-4"></div>
				<div class="col-2 text-center">
					<button class="btn btn-sm btn-block btn-primary" id="btn-csv-prestataires" name="btn-csv-prestataires">
							<i class="fa fa-user"></i><br /><span>Données prestataires</span></button>
				</div>
				<div class="col-2 text-center">
					<button class="btn btn-sm btn-block btn-primary" id="btn-csv-avis" name="btn-csv-avis">
							<i class="fa fa-thermometer"></i><br /><span>Avis prestataires</span></button>
				</div>
				<div class="col-4"></div>
	</div>
</div>
<br/>

<!-- Page modale - Popup attente -->

<div class="modal fade" id="popup">
    <div class="modal-dialog modal-dialog-centered modal-sm">
        <div class="modal-content">
                <div class="modal-header text-center">Exportation données</div>
                <div id="modal-body" class="modal-body text-center">
                        Exportation en cours<br />
                        Veuillez patienter<br />
						<p class="text-center">
						  <div class="spinner-border text-primary"></div>
						</p>
                </div>
				<a href="javascript:void(0)" id="a-csv-download" style="display: none;">
					<button class="btn btn-sm btn-primary" id="btn-csv-download"><i class="fa fa-download"></i>Télécharger</button>
				</a>
        </div>
    </div>
</div>

</body>
</html>
December 29, 2020 – Page 3 – Base de données MCPV "Prestataires"

Day: December 29, 2020

Our selection is not just about imitating the look of luxury

NYC counterfeit bust seizes $1B in fake handbags and shoes Around Christmastime people are usually selling a lot more of their shoes. This customer wanted to sell two pairs of Yeezy DS 350 V2 shoes with different color schemes. The customer isn’t happy cheap fake shoes, but he’s not keeping up with the prices. That’s…

Read More

Some single-use male masturbators just like the Tenga Easy

For Discerning Adults Certified sex therapist Bat Sheva Marcus Charming Sexy Long Sleeves Midriff Lace Jampsuit For Ladies New Design Lace Spliecd With Mesh Tediies Bright-colored Deep V Neck Halter Lace Suit Jampsuit, Ph.D., MSW New Fashion Topless One-piece Deep V Neck Lingeries, MPH Adult Enchanting Lace Bandaged Low-cut Teddies, notes this is a brand…

Read More