diff --git a/modules/export_seda/Ajax_seda_zip.php b/modules/export_seda/Ajax_seda_zip.php index 040f6c0239c10489a68348249008ae1e7b61a87c..317231d1dbc8791335b008e274ad2e0ee4e868a7 100644 --- a/modules/export_seda/Ajax_seda_zip.php +++ b/modules/export_seda/Ajax_seda_zip.php @@ -61,7 +61,9 @@ class Extract public function download($full_path) { $file_name = basename($full_path); - + + header('Content-Description: File Transfer'); + header('Content-Type: application/octet-stream'); header('Content-Tranfer-Encoding: fichier'); header('Content-Length: '.filesize($full_path)); header('Content-Type: application/force-download'); diff --git a/modules/export_seda/export_seda.php b/modules/export_seda/export_seda.php index 1b1a48c63931c14ac0ccb19bdbbb2203c66a10eb..6cdbb93083d6b32ab4ef8a11056682c82527deaa 100644 --- a/modules/export_seda/export_seda.php +++ b/modules/export_seda/export_seda.php @@ -33,7 +33,6 @@ function get_form_txt($values, $path_manage_action, $id_action, $table, $module $result = $archiveTransfer->deleteMessage($values); - $result = $archiveTransfer->receive($values); $db = new Database(); diff --git a/modules/export_seda/js/functions.js b/modules/export_seda/js/functions.js index ad6e8997f4eb5b318b3df14fd3b7c52c7eb69da6..b436cad033a65e21cf710cb18c223893e3fc3cd5 100644 --- a/modules/export_seda/js/functions.js +++ b/modules/export_seda/js/functions.js @@ -1,19 +1,3 @@ function actionSeda($path) { - new Ajax.Request($path, - { - method:'post', - parameters: { url : $path, - }, - onSuccess: function(answer) { - eval("response = "+answer.responseText); - if(response.status == 0){ - var btn = $('<input type="button" value="_VALIDATE"/>'); - $("validSeda").append(btn); - } else { - alert(response.error); - eval(response.exec_js); - } - // $('loading_' + target).style.display='none'; - } - }); + window.open($path); } \ No newline at end of file