diff --git a/application/controllers/monpas/Compactsop.php b/application/controllers/monpas/Compactsop.php index f0fcf7a..d972ac3 100644 --- a/application/controllers/monpas/Compactsop.php +++ b/application/controllers/monpas/Compactsop.php @@ -153,8 +153,8 @@ class Compactsop extends MY_Controller{ $schoolID = $orgid; $html = (new Compactepaginas($compacteonderdelen, $paginas))->getHtml(); $padnaam = $schoolID . $schooljaarnr; - file_put_contents(MYROOTPATH.'public/tmp/temp'.$schoolID.$schooljaarnr.'.html', $html); + file_put_contents(MYROOTPATH.'public/tmp/temp'.$schoolID.$schooljaarnr.'.html', $html); echo json_encode($padnaam); } diff --git a/application/controllers/monpas/Pdfmaker.php b/application/controllers/monpas/Pdfmaker.php index 9758eb3..a0c50ff 100644 --- a/application/controllers/monpas/Pdfmaker.php +++ b/application/controllers/monpas/Pdfmaker.php @@ -84,14 +84,15 @@ class Pdfmaker extends MY_Controller{ file_put_contents($downloadnaam, $pdf); chmod($downloadnaam, 0777); - header( 'Content-Description: File Transfer' ); + + + // header( 'Content-Description: File Transfer' ); header( 'Content-Type: application/pdf' ); header( 'Content-disposition:inline; filename="' .$bestandsnaam.'"'); - header( 'Cache-Control: no-cache, must-revalidate, post-check=0, pre-check=0' ); - header( 'Pragma: public' ); - header( 'Content-Length: ' . filesize( $downloadnaam ) ); + // header( 'Cache-Control: no-cache, must-revalidate, post-check=0, pre-check=0' ); + // header( 'Pragma: public' ); + // header( 'Content-Length: ' . filesize( $downloadnaam ) ); readfile($downloadnaam); -// } diff --git a/public/js/monpas/models/compactsopmodel.js b/public/js/monpas/models/compactsopmodel.js index 9b9f314..a08fdfb 100644 --- a/public/js/monpas/models/compactsopmodel.js +++ b/public/js/monpas/models/compactsopmodel.js @@ -458,6 +458,10 @@ mh.initCompactSopModel = function(){ self.toonOnderdelen(true); }); } + else{ + apprise("geen instrumenten voor het compact sop gevonden.") + } + },'json'); } // else },