Merge branch 'master' into develop
# Conflicts: # public/css/monpas/main.css
This commit is contained in:
@@ -499,6 +499,51 @@ $lijsten[0]->vorm=2;
|
||||
$this->Phantom_model->create_pdf($html, $filenaam, FALSE, FALSE, FALSE);
|
||||
}
|
||||
|
||||
function ijkpuntenpdf(){
|
||||
|
||||
$inputstring = $this->input->post('data');
|
||||
$input = json_decode($inputstring);
|
||||
$versieID = $input->versie;
|
||||
$titel = $this->Modules_model->get_module_bij_versie($versieID);
|
||||
$data= [];
|
||||
$datum = new DateTime();
|
||||
$datum = $datum->format('Y-m-d H:i:s');
|
||||
$filenaam = preg_replace('/\s+/', '', $titel)."_". preg_replace('/\s+/', '', $datum);
|
||||
|
||||
$data['titel'] = $titel;
|
||||
$data['chart'] = $input->chart;
|
||||
$data['tabellen'] = $input->tabellen;
|
||||
$data['legenda'] = $input->legenda;
|
||||
$data['ambities'] = $input->ambities;
|
||||
$data['resultaten'] = $input->resultaten;
|
||||
|
||||
|
||||
|
||||
|
||||
$logo = [];
|
||||
|
||||
$html = $this->load->view("monpas/reports/ijkpuntenchart", $data, true);
|
||||
|
||||
$filenaam="ijkpunten";
|
||||
$orientatie = 'landscape';
|
||||
|
||||
$this->Phantom_model->create_pdf($html, $filenaam, FALSE, FALSE, FALSE, $orientatie);
|
||||
|
||||
|
||||
// $this->Phantom_model->create_pdf($html, $filenaam, FALSE, TRUE, FALSE, 'portrait');
|
||||
// $pdf = $this->Phantom_model->create_and_get_pdf($html, $filenaam, FALSE, TRUE, FALSE, 'portrait');
|
||||
// $pdf = $pdf.'pdf';
|
||||
// $fileNameRapport = '../documents/tmp/'.random_string('alnum', 40).'.pdf';
|
||||
// file_put_contents($fileNameRapport, $pdf);
|
||||
//
|
||||
// header( 'Cache-Control: public' );
|
||||
// header( 'Content-type: application/pdf' );
|
||||
// header( 'Content-Disposition: inline; filename=" ' . $filenaam . ' ".pdf" ' );
|
||||
// header( 'Content-Length: ' . filesize( $fileNameRapport ) );
|
||||
// readfile($fileNameRapport );
|
||||
// unlink($fileNameRapport);
|
||||
}
|
||||
|
||||
|
||||
function maakijkpuntenpdf(){
|
||||
//TODO clean input
|
||||
|
||||
Reference in New Issue
Block a user