headerinfo

This commit is contained in:
Monique
2022-11-02 15:19:47 +01:00
parent 308f13d9ec
commit b6f68be4b3
4 changed files with 9 additions and 8 deletions
@@ -152,8 +152,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);
}
+6 -5
View File
@@ -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);
//
}
}
+1 -1
View File
@@ -79,7 +79,7 @@ class MY_Controller extends CI_Controller{
// public $version = '1.18.05';// fout schoolgegevens compactsop
// public $version = '1.18.08';// kleurenfout
// public $version = '1.18.09';// zoek gebruikers sneller
public $version = '1.18.10';// compactsops maken van valtonderorgs
public $version = '1.18.11';// compactsops maken van valtonderorgs
@@ -11,7 +11,7 @@
</div>
<div class="modal-body">
<table style="width: 90%;" data-bind="with: $root.schoolasobsject">
<table style="width: 90%;" data-bind="with: $root.schoolasobject">
<tr >
<td style="width: 20%" data-bind="text: $root.orgsoort "></td>
<td style="width: 30%" data-bind="text: naam"></td>