1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
echo "<div class='source-code3 runnable' style='display:none;'>
<!--
BootstrapDialog.show({
title: 'Partage du dossier !',
message: 'Voulez vous partager ce dossier ?',
buttons: [{
icon: 'glyphicon glyphicon-send',
label: 'oui',
cssClass: 'btn-primary',
autospin: true,
action: function(dialogRef){
dialogRef.enableButtons(false);
dialogRef.setClosable(false);
dialogRef.getModalBody().html('Génération du lien en cours <img src=images/loader-line.gif >');
setTimeout(function(){
var xmlhttp;
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject('Microsoft.XMLHTTP');
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
dialogRef.getModalBody().html(xmlhttp.responseText);
}
}
xmlhttp.open('GET','partage.php?variable en GET',true);
xmlhttp.send();
dialogRef.setClosable(true);
dialogRef.enableButtons(true);
}, 1000);
}
}, {
label: 'Close',
action: function(dialogRef){
dialogRef.close();
}
}]
});
-->
</div>"; |
Partager