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

Day: August 13, 2020

As the name implies, these qualities will be very similar to ,

NYC counterfeit bust seizes $1B in fake handbags and shoes If you want any information, you can book a free appointment with our sourcing representative. These shoes are delicate as compared to the Tonghuo shows. Apparently, they will look exactly the same as the original one. As the name implies, these qualities will be very…

Read More

Also neat is that half of the underbelly is ridged

Greatest New Sex Toys Order Newest Sex Toys On The Market We had been skeptical of the dimensions , but the ergonomic structure rapidly negated the considerations. More importantly, the weighted mannequin made the expertise more sensible. According to Hot Octopuss, this toy has bought over two million models, and once you’ve felt the vibrations…

Read More

Live vendor games are more and more well-liked as they carry

Bay Area Casino In Rohnert Park You do this by getting closer to the sum of 21 than the supplier without going over. Blackjack requires some know-how to reduce the casino’s benefit, so we do not recommend it to novices. Each on line casino is scored utilizing a Safety Index based on over 20 components,…

Read More