Пример #1
0
                $h = count($datosfam) < 7 ? 3 : 12;
                $hCell = count($datosfam) < 4 || count($datosfam) > 6 ? 15 : 35;
                $pdf->Ln($h);
                $pdf->SetFont('Arial', '', 10);
                $pdf->MultiCell(0, 4, 'Autorizo el descuento por nómina la cantidad única de (' . $totpagar . ') mensual, correspondiente por el Plan de cobertura suscrito en el presente contrato', 0);
                $pdf->SetFont('Arial', '', 10);
                $pdf->Cell(21, $hCell, '', 0, 0);
                $pdf->Cell(44, $hCell, '', 'B', 0);
                $pdf->Cell(10, $hCell, '', 0, 0);
                $pdf->Cell(44, $hCell, '', 'B', 0);
                $pdf->Cell(10, $hCell, '', 0, 0);
                $pdf->Cell(44, $hCell, '', 'B', 0);
                $pdf->Cell(21, $hCell, '', 0, 1);
                $pdf->Cell(21, 4, '', 0, 0);
                $pdf->Cell(44, 4, 'Firma y Huella del Trabajador', 0, 0, 'C');
                $pdf->Cell(10, 4, '', 0, 0);
                $pdf->Cell(44, 4, 'Revisado por', 0, 0, 'C');
                $pdf->Cell(10, 4, '', 0, 0);
                $pdf->Cell(44, 4, 'Aprobado por', 0, 1, 'C');
                $name = $_GET['codigo'];
                $pdf->Output($name . ".pdf", "D");
            } else {
                echo "NO hay registro";
            }
        } else {
            echo "Error: " . $sql;
        }
    } catch (Exception $e) {
        echo $e->getMessage();
    }
}