<?php } } ?> </table> <?php } else { $acpm = select_normal("SELECT * FROM kz_tec_mej_acpm where 1 = 1 {$filtros} order by {$orden} fecha_apertura desc"); if ($_POST['pdf']) { require FPDF_PDF_RUTA . 'lib/pdftable.inc.php'; $p = new PDFTable('P'); $p->SetMargins(3, 43, 0); if ($_POST['modo_resumen']) { $p->AddPage('L'); $p->SetMargins(3, 10, 0); $p->titulo(5, $titulo); $p->setfont('Arial', '', 8); $p->SetTitle(date("d-m-Y") . "_informe"); $p->SetFillColor(255, 255, 255); $p->SetTextColor(0, 0, 0); $p->SetDrawColor(0, 0, 0); $filtrostab = "<table>"; $filtrostab .= $l_filtros; $filtrostab .= "</table>"; $p->HTMLtable($filtrostab); $p->ln(5); $tabla_cantidad = "<table>\n\t\t\t\t<tr><td>Cantidad total de Acciones Correctivas: " . count($acpm) . "</td></tr>\t\n\t\t\t</table>"; $p->HTMLtable($tabla_cantidad); $p->ln(5); $color1 = 'A6A6A6'; $color2 = 'FFFFFF';