$lejour){
$malistec .= "
• ".$lejour." 2019 |
";
$qd = "SELECT * FROM planning WHERE onoff='0' AND jour='".$clef."' AND valid='0' AND theme='3' ORDER BY jour, CAST(heure AS UNSIGNED)";
$resultd = mysqli_query($connect,$qd);
while($row = mysqli_fetch_array($resultd))
{
$malistec .= "
Animateur ".strtoupper($tablointervenant[$row['intervenant']]['nom'])." ".$tablointervenant[$row['intervenant']]['prenom']." ".$tablointervenant[$row['intervenant']]['mobile']." ".$tablointervenant[$row['intervenant']]['email']."
Atelier ".$row['titre']."
Descriptif ".$row['description']."
Date / horaire / lieu le ".$lejour." / de ".$row['heure']." à ".$row['heurefin']." / à ".$tablolieux[$row['lieu']]."
|
";
}
}
ob_start();
?>
TERRE DE CONVERGENCE - AGENDA 2019
|
$content = ob_get_clean();
unlink("../pdf/agenda_bruno.pdf");
require_once("./html2pdf.class.php");
try
{
$html2pdf = new HTML2PDF("P", "A4", "fr");
$html2pdf->pdf->SetAuthor('Terre de Convergence');
$html2pdf->pdf->SetTitle('Agenda 2019');
$html2pdf->pdf->SetSubject('Planning des interventions');
$html2pdf->pdf->SetKeywords('Terre de Convergence');
$html2pdf->setDefaultFont('helvetica', '', 14);
$html2pdf->pdf->SetDisplayMode('real');
$html2pdf->writeHTML($content);
$html2pdf->Output("../pdf/agenda_bruno.pdf", "F");
}
catch(HTML2PDF_exception $e) {
echo $e;
exit;
}
header("location: pdfs.php");
//header('Content-Type: application/pdf');
//readfile('../pdf/agenda_bruno.pdf');
?>