diff --git a/includes/customRapport/customRapport.php b/includes/customRapport/customRapport.php new file mode 100644 index 000000000..7916423d7 --- /dev/null +++ b/includes/customRapport/customRapport.php @@ -0,0 +1,79 @@ +'; + echo ''; + echo ''; + echo ''; + echo $_POST['titre']; + echo $_POST['content']; + $siret = $_GET['siret']; + $siren = substr($_GET['siret'], 0, 9); + $idEntreprise = $_GET['idEntreprise']; + include('pages/rsynthese.php'); + $content = ob_get_contents(); + ob_end_clean(); + file_put_contents('../cache/pages/rapport-'.$siren.'.html', $content); + wkhtmltopdf('../cache/pages/rapport-'.$siren.'.html'); + +} else { +?> +