<?php
$getid = $link->hrefquery ();
include ("assets/MPDF56/mpdf.php");
$getid=explode('&', $getid[1]);

$mpdf = new mPDF ( 'c' );

$mpdf->SetDisplayMode ( 'fullpage' );

$mpdf->list_indent_first_level = 0; // 1 or 0 - whether to indent the first
                                    // level of a list
$getempname= $db->get_col("employees", array("e_id"=>$getid[0]), 'e_name');                                    
$filename = SERVER_ROOT . '/uploads/pdf/' . $getempname[0]."_".$_REQUEST['month']. "_invoice.html";
$mpdf->WriteHTML ( file_get_contents ( $filename ) );

$mpdf->Output ( $getempname[0]."_".$_REQUEST['month']. '_invoice.pdf', 'D' );
// $mpdf->Output ();
$session->redirect ( "viewslip_table", Admin, "?empid=" . $getid [1] );
exit ();
// ==============================================================
// ==============================================================
// ==============================================================
?>