}
$full_listing[$reccord['id']] = array('id' => $reccord['id'], 'label' => $reccord['label'], 'pw' => substr(addslashes($pw), strlen($reccord['rand_key'])), 'login' => $reccord['login']);
}
}
$id_managed = $reccord['id'];
}
}
}
//Build PDF
if (!empty($full_listing)) {
//Prepare the PDF file
include '../includes/libraries/tfpdf/tfpdf.php';
$pdf = new tFPDF();
//Add font for utf-8
$pdf->AddFont('DejaVu', '', 'DejaVuSansCondensed.ttf', true);
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->SetFont('DejaVu', '', 16);
$pdf->Cell(0, 10, $txt['print_out_pdf_title'], 0, 1, 'C', false);
$pdf->SetFont('DejaVu', '', 12);
$pdf->Cell(0, 10, $txt['pdf_del_date'] . " " . date($_SESSION['settings']['date_format'] . " " . $_SESSION['settings']['time_format'], mktime(date("H"), date("i"), date("s"), date("m"), date("d"), date("Y"))) . ' ' . $txt['by'] . ' ' . $_SESSION['login'], 0, 1, 'C', false);
$pdf->SetFont('DejaVu', '', 10);
$pdf->SetFillColor(192, 192, 192);
$pdf->cell(65, 6, $txt['label'], 1, 0, "C", 1);
$pdf->cell(55, 6, $txt['login'], 1, 0, "C", 1);
$pdf->cell(70, 6, $txt['pw'], 1, 1, "C", 1);
$pdf->SetFont('DejaVu', '', 9);
foreach ($full_listing as $item) {
$pdf->cell(65, 6, stripslashes($item['label']), 1, 0, "L");
$pdf->cell(55, 6, stripslashes($item['login']), 1, 0, "C");
$pdf->cell(70, 6, stripslashes($item['pw']), 1, 1, "C");