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 16, 2020 – Page 2 – Base de données MCPV "Prestataires"

Day: December 16, 2020

One thing’s for positive, making it collectively might be a

Toydemon Com: #1 Us Shop For Japanese Onaholes, Sex Toys, & Masturbator The Kinsey Institute and Lovehoney performed a survey of 2,000 American adults and located that 69% of males found that masturbation allowed them to discover new turn-ons and sources of pleasure. Simple and intuitive, it is designed for those moments if you need…

Read More

The similar goes for the phallus—the erectile tissue goes deep

20 Greatest Sex Toys For Males That May Enhance Your Sex Life In 2025 The answer to this question will determine the shape, size, and functionality of the toys you choose. “But really, this tiny body-safe ABS plastic clitoral vibe packs an, [in my opinion], unmatched punch in terms of power, and the angled tip…

Read More

Shannon also appreciates that it’s waterproof and can get the

Purchase Adult Intercourse Toys On-line The Explore Your Self Retailer Maybe you’re a newbie to the world of grownup toys otherwise you’re a seasoned pro. Either means, our number of adult sex toys will give you the stimulation you have to reach a complete new stage of sexual pleasure. Find a new vibrating butt plug,…

Read More