$pdf->Image('../../public_html/imagenes/logoivss.png', 20, 7, 13);
$pdf->SetFont('Arial', '', 8);
$pdf->Text(40, 10, utf8_decode('REPÚBLICA BOLIVARIANA DE VENEZUELA'));
$pdf->Text(40, 13, utf8_decode('MINISTERIO DEL PODER POPULAR PARA EL TRABAJO Y SEGURIDAD SOCIAL'));
$pdf->Text(40, 16, utf8_decode('INSTITUTO VENEZOLANO DE LOS SEGUROS SOCIALES'));
$pdf->Text(40, 19, utf8_decode('DIRECCIÓN GENERAL DE FISCALIZACIÓN'));
/*--------------------------------------- HEADER ----------------------------------------------*/
/*------------------------------------ NUMERO FORMA -------------------------------------------*/
/*$pdf->SetFont('Arial','B',8);
$pdf->setXY(180,10);
$pdf->MultiCell(0,0,utf8_decode('Pág. 1'));*/
/*------------------------------------ NUMERO FORMA -------------------------------------------*/
/*---------------------------------------------------------------------------------------------*/
/*-------------------------------- NUMERO DEL DOCUMENTO ---------------------------------------*/
$pdf->SetFont('Arial', 'B', 10);
$pdf->setXY(20, 30);
$pdf->MultiCell(0, 0, utf8_decode('N°: OAPOZ-N-DGF-2015-_____________'));
/*-------------------------------- NUMERO DEL DOCUMENTO ---------------------------------------*/
/*---------------------------------------------------------------------------------------------*/
/*--------------------------------------- FECHA -----------------------------------------------*/
$pdf->SetFont('Arial', 'B', 8);
$pdf->setXY(102, 40);
$pdf->MultiCell(0, 0, utf8_decode('_____________________, ____ de __________________ del 2015.'));
/*--------------------------------------- FECHA ------------------------------------------------*/
/*----------------------------------------------------------------------------------------------*/
/*----------------------------------- CUADRO SUPERIOR  -----------------------------------------*/
$pdf->SetXY(20, 50);
$pdf->MultiCell(26, 5, utf8_decode('Razon Social'), 1, 'L', 0);
$pdf->Rect(46, 50, 145, 5, 'D');
$pdf->SetXY(20, 55);
$pdf->MultiCell(26, 5, utf8_decode('RIF'), 1, 'L', 0);
$pdf = new FPDF('P', 'mm', 'legal');
$pdf->AddPage();
$pdf->Image('../../public_html/imagenes/logoclaro.png', 40, 100, 130);
$pdf->SetTitle("Notificación al denunciante", true);
/*---------------------------------------------------------------------------------------------*/
/*--------------------------------------- HEADER ----------------------------------------------*/
$pdf->Image('../../public_html/imagenes/logoivss.png', 20, 7, 13);
$pdf->SetFont('Arial', '', 8);
$pdf->Text(40, 10, utf8_decode('REPÚBLICA BOLIVARIANA DE VENEZUELA'));
$pdf->Text(40, 13, utf8_decode('MINISTERIO DEL PODER POPULAR PARA EL TRABAJO Y SEGURIDAD SOCIAL'));
$pdf->Text(40, 16, utf8_decode('INSTITUTO VENEZOLANO DE LOS SEGUROS SOCIALES'));
$pdf->Text(40, 19, utf8_decode('DIRECCIÓN GENERAL DE FISCALIZACIÓN'));
/*--------------------------------------- HEADER ----------------------------------------------*/
/*-------------------------------- TITULO DEL DOCUMENTO ---------------------------------------*/
$pdf->SetFont('Arial', 'B', 10);
$pdf->setXY(20, 38);
$pdf->SetRightMargin(25.0);
$pdf->MultiCell(0, 4, utf8_decode('ACTA DE INICIO DE PROCEDIMIENTO'), 0, 'C');
/*-------------------------------- TITULO DEL DOCUMENTO ---------------------------------------*/
/*---------------------------------------------------------------------------------------------*/
/*-------------------------------- NUMERO DEL DOCUMENTO ---------------------------------------*/
$pdf->SetFont('Arial', 'B', 10);
$pdf->setXY(20, 30);
$pdf->MultiCell(0, 0, utf8_decode('N° DGF-DFROR-AIP-2015-00XXXX'));
/*-------------------------------- NUMERO DEL DOCUMENTO ---------------------------------------*/
/*---------------------------------------------------------------------------------------------*/
/*-------------------------------- CUERPO DEL DOCUMENTO----------------------------------------*/
$pdf->setXY(20, 50);
$pdf->SetFont('Arial', '', '8');
$pdf->MultiCell(0, 4, utf8_decode('Quien suscribe, _________________________________________________, venezolano, mayor de edad, titular de la cédula de identidad Número__________________, procediendo en mi condición de Servidor Público Actuante, adscrito a la Dirección General de Fiscalización del IVSS, según Resolución de Nombramiento, signada ________________________________________, de fecha ____ de __________ del año____; ampliamente autorizado para este acto según Providencia Administrativa suscrita por el Director General de Fiscalización del IVSS, identificada con las siglas DGF-DFROR-PA-2015-00XXXX, de fecha XX de XXXXXXX del año 2015; por medio del presente acta, se inicia en el domicilio de la sociedad mercantil  XXXXXXXXXXX, identificada con el número patronal XXXXXXXXX, el procedimiento de verificación contenido en los artículos 182, 183, 184, 185 y 186 del Código Orgánico Tributario, a fin de constatar el oportuno cumplimiento de las obligaciones establecidas en la Ley del Seguro Social y su Reglamento General, entre ellas: : Haberse inscrito oportunamente en el Instituto Venezolano de los Seguros Sociales, haber informado si fuere el caso sobre la cesación de actividades, cambios de razón social, traspaso del dominio a cualquier título, y en general, otras circunstancias relativas a las actividades de la empresa, establecimiento, explotación o faena; de igual modo verificar, si el citado empleador, cumplió con la obligación de inscribir a sus trabajadores dentro de los tres (3) días hábiles siguientes al de su ingreso al trabajo, para los trabajadores activos en el período comprendido desde el mes de Febrero 2015 hasta Abril 2015 así como el deber de notificar al Instituto el despido o retiro de los trabajadores dentro de los tres (3) días hábiles siguientes a aquel en el que se produzca tal hecho,  para el período comprendido desde el mes de Febrero 2015  hasta Abril 2015.'));
$pdf->setXY(20, 115);
define('FPDF_FONTPATH', 'font');
require 'fpdf.php';
include "../connection/dbConnect.php";
$sql = "SELECT * FROM tbl_participants ORDER BY id ASC";
$smt = $con->query($sql);
$numOfRows = $smt->rowCount();
$query = $con->prepare($sql);
$query->execute();
$pdf = new FPDF('P', 'pt', 'Letter');
$pdf->SetFont('Times');
$pdf->AddPage('L');
$pdf->SetAutoPageBreak(false);
$pdf->SetFillColor(170, 170, 170);
//gray
$pdf->setFont("times", "B", "12");
$pdf->setXY(40, 40);
$pdf->Cell(25, 20, "#", 1, 0, "C", 1);
$pdf->Cell(140, 20, "Last Name", 1, 0, "C", 1);
$pdf->Cell(140, 20, "First Name", 1, 0, "C", 1);
$pdf->Cell(140, 20, "Middle Name", 1, 0, "C", 1);
$pdf->Cell(120, 20, "Contact Number", 1, 0, "C", 1);
$pdf->Cell(160, 20, "e-mail", 1, 0, "C", 1);
$y = 60;
$x = 40;
$pdf->setXY($x, $y);
$z = 0;
while ($row = $query->fetch()) {
    $pdf->Cell(25, 20, $z += 1, 1);
    $pdf->Cell(140, 20, iconv('UTF-8', 'windows-1252', $row[3]), 1);
    $pdf->Cell(140, 20, iconv('UTF-8', 'windows-1252', $row[1]), 1);
    $pdf->Cell(140, 20, iconv('UTF-8', 'windows-1252', $row[2]), 1);
示例#4
0
 $pdf->setFont('Arial', '', 12);
 $pdf->Cell(20, 15, 'Surname', 0, 0, "L");
 $pdf->setFont('Arial', '', 12);
 $pdf->Cell(10, 0, '', 0, 0, "C");
 $pdf->Cell(40, 15, $surname, 0, 1, "L");
 $pdf->SetFillColor(150, 150, 150);
 $pdf->Rect(40, 90, 114, 0.5, 'F');
 $pdf->setFont('Arial', '', 12);
 $pdf->Cell(20, 5, 'Firstname', 0, 0, "L");
 $pdf->setFont('Arial', '', 12);
 $pdf->Cell(10, 0, '', 0, 0, "C");
 $pdf->Cell(40, 5, $firstname, 0, 1, "L");
 $pdf->SetFillColor(150, 150, 150);
 $pdf->Rect(40, 100, 114, 0.5, 'F');
 // Explora icon
 $pdf->setXY(160, 61);
 $image1 = "logo.png";
 $pdf->Cell(40, 40, $pdf->Image($image1, $pdf->GetX(), $pdf->GetY(), 33.78), 0, 1, 'L', false);
 $pdf->setFont('Arial', '', 12);
 $pdf->Cell(20, 12, 'Lastname', 0, 0, "L");
 $pdf->setFont('Arial', '', 12);
 $pdf->Cell(10, 0, '', 0, 0, "C");
 $pdf->Cell(40, 12, $lastname, 0, 1, "L");
 $pdf->SetFillColor(150, 150, 150);
 $pdf->Rect(40, 109, 114, 0.5, 'F');
 //add new row
 $pdf->Cell(210, 10, '', 0, 20, "C");
 $pdf->setFont('Arial', '', 12);
 $pdf->Cell(20, -13, 'Birthdate', 0, 0, "L");
 $pdf->setFont('Arial', '', 12);
 $pdf->Cell(10, 0, '', 0, 0, "C");
示例#5
0
include "../config/config.php";
include "../pdf/fpdf/fpdf.php";
//include "../barcode/barcode.php";
//include "../barcode/bars.php";
$pdf = new FPDF();
$pdf->Open();
$pdf->addPage();
$pdf->setAutoPageBreak(true);
$pdf->setFont('Arial', '', 12);
$pdf->text(10, 25, 'Tes User DB');
$pdf->Line(10, 31, 198, 31);
$yi = 50;
$ya = 44;
$pdf->setFont('Arial', '', 9);
$pdf->setFillColor(222, 222, 222);
$pdf->setXY(10, $ya);
$pdf->CELL(6, 6, 'ID', 1, 0, 'C', 1);
$pdf->CELL(40, 6, 'Username', 1, 0, 'C', 1);
$pdf->CELL(50, 6, 'Password', 1, 0, 'C', 1);
$ya = $yi + $row;
$sql = "SELECT id, password, username FROM user";
$result = $conn->query($sql);
$i = 1;
$no = 1;
$max = 31;
//$row = 6;
if ($result->num_rows > 0) {
    while ($row = $result->fetch_assoc()) {
        $pdf->setXY(10, $ya);
        $pdf->setFont('arial', '', 9);
        $pdf->setFillColor(255, 255, 255);
$pdf->Cell(110);
$pdf->Cell(110, 05, 'Email: ' . $supervisor_details->memail, 'R');
$pdf->Ln();
$pdf->Cell(130);
$pdf->Cell(120, 05, 'Zone: ' . $supervisor_details->zoneName, 'R');
$pdf->Ln();
/*********************************display zones******************************************************/
$pdf->Ln();
$pdf->SetX(10);
$pdf->SetFont('times', 'B', 12);
$pdf->Cell(200, 10, "                   Technician Details.                                                          Station .                                           Site.");
$pdf->SetFillColor(255, 140, 0);
$pdf->SetTextColor(255, 255, 255);
$pdf->setFont("times", "B", 9);
$pdf->Ln();
$pdf->setXY(10, 65);
$pdf->Cell(20, 10, "NO:", 1, 0, "L", 1);
// header fields
$pdf->Cell(35, 10, "TECHNICIAN NAME:", 1, 0, "L", 1);
$pdf->Cell(25, 10, "CONTACT NO", 1, 0, "L", 1);
$pdf->Cell(35, 10, "EMAIL ADDRESS", 1, 0, "L", 1);
$pdf->Cell(40, 10, "STATION NAME:", 1, 0, "L", 1);
$pdf->Cell(40, 10, "SITE NAME:", 1, 0, "L", 1);
$y = 75;
$x = 10;
$pdf->setXY($x, $y);
if (is_array($techDetails)) {
    foreach ($techDetails as $tech) {
        $pdf->SetFont('times', '', '9');
        $pdf->SetFillColor(255, 255, 255);
        $pdf->setTextColor(05, 05, 05);
     $addr_line_width = $pdf->GetStringWidth($address[$j]);
     if ($addr_line_width > $max_addr_width) {
         $max_addr_width = $addr_line_width;
     }
 }
 $max_line_width = max($name_width, $max_addr_width);
 // Center the longest line, and make everything else left justified to that
 $left_x = $start_x + $col * ($x_size + $row_sep) + ($x_size - $max_line_width) / 2;
 $pdf->SetLeftMargin($left_x);
 // Draw the name line
 $pdf->SetFont("Astrud", "", NAME_SIZE_PTS);
 //$name_width = $pdf->GetStringWidth($name_string);
 //$name_x = $start_x + ($col * ($x_size + $row_sep)) + (($x_size - $name_width) / 2);
 $name_y = $start_y + $row * $y_size + TOP_MARGIN_IN;
 //$pdf->setXY($name_x, $name_y);
 $pdf->setXY($left_x, $name_y);
 $pdf->write($name_height, $name_string);
 // Draw the address lines
 $pdf->SetFont("ufonts.com_century-gothic", "", ADDR_SIZE_PTS);
 //$address = create_address($parties[$i]);
 // Determine the max address line width
 /*
 $max_addr_width = $pdf->GetStringWidth($address[0]);
 for ($j = 1; $j < count($address); ++$j) {
 	$addr_line_width = $pdf->GetStringWidth($address[$j]);
 	if ($addr_line_width > $max_addr_width) {
 		$max_addr_width = $addr_line_width;
 	}
 }
 $addr_x = $start_x + ($col * ($x_size + $row_sep)) + (($x_size - $max_addr_width) / 2);
 */
示例#8
0
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if ($datefrom == NULL || $dateto == NULL) {
    $starting = "REVERSED TRANSACTIONS POSTED ON: " . date("F j, Y, g:i a");
} else {
    $starting = "REVERSED TRANSACTIONS AS FROM " . $datefrom . " TO " . $dateto;
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// $this->Image('images/new.png',10,8,33);
$pdf->Image('../images/logo.png', 180, 10, -300);
$pdf->SetFont('Arial', 'B', 11);
$pdf->SetTextColor(204, 102, 0);
$pdf->Cell(40, 10, '     ' . $starting . ' AT ' . $branchname . '  BRANCH');
// Add date report ran
$pdf->SetFont('HELVETICA', 'B', 10);
$date = date("F j, Y");
$pdf->Cell(40, 30, 'Report date: ' . $date . '                                                 REPORT BY: ' . $USER);
$pdf->SetDrawColor(0, 0, 0);
//black
//table header
$pdf->SetFillColor(102, 51, 0);
$pdf->SetTextColor(252, 252, 252);
$pdf->setFont("Arial", "B", "11");
$pdf->setXY(10, 40);
$pdf->Cell(22, 10, "TRANS ID:", 1, 0, "L", 1);
// my field headers
$pdf->Cell(25, 10, "MEMBER #:", 1, 0, "L", 1);
$pdf->Cell(55, 10, "FULL NAMES", 1, 0, "L", 1);
$pdf->Cell(20, 10, "REF NO:", 1, 0, "L", 1);
$pdf->Cell(30, 10, "TRANS DATE", 1, 0, "L", 1);
$pdf->Cell(30, 10, "FUND NAME", 1, 0, "L", 1);
$pdf->Cell(30, 10, "REASON", 1, 0, "L", 1);
$pdf->Cell(25, 10, "AMOUNT", 1, 0, "L", 1);
    public function makepdf()
    {
        global $user;
        // Get required files.
        require_once 'others/fpdf/fpdf.php';
        // Set some document variables
        $author = "eduCloud";
        $x = 35;
        $text = <<<EOT
Hello
EOT;
        // Create fpdf object
        $pdf = new FPDF('P', 'pt', 'Letter');
        // Set base font to start
        $pdf->SetFont('Arial', 'B', 16);
        // Add a new page to the document
        $pdf->addPage();
        $pdf->setLeftMargin($x);
        //page border
        $pdf->Line(35, 30, 35, 750);
        $pdf->Line(35, 30, 575, 30);
        $pdf->Line(575, 30, 575, 750);
        $pdf->Line(575, 750, 35, 750);
        //end of page border
        // Set the x,y coordinates of the cursor
        $pdf->SetXY($x + 20, 40);
        // Write 'Simple PDF' with a line height of 1 at the current position
        $pdf->Write(25, 'Employee Details');
        $pdf->Image($_SERVER['DOCUMENT_ROOT'] . '/cloud/images/school_logo.jpg', 500, 35, 50, 50, 'JPG');
        // Reset the font
        // Reset font, color, and coordinates
        $pdf->SetFont('Arial', '', 12);
        $pdf->SetTextColor(0, 0, 0);
        $pdf->SetLeftMargin($x + 50);
        $pdf->setXY($x + 50, 90);
        global $objPDO;
        require_once $_SERVER['DOCUMENT_ROOT'] . '/cloud/model/teacher_class.php';
        $record = new Teacher($objPDO);
        if ($user->checkAdmin()) {
            $eid = $_GET['uid'];
        } else {
            $student = new Student($objPDO, $user->getuserId());
            $eid = $student->getID();
        }
        $record->loadByUserId($eid);
        // Write out a long text blurb.
        //$array=$record->getAsArray();
        //$x=0;
        /* TEMPLATE 1 DESIGN*/
        $pdf->SetFont('Arial', '', 8);
        $pdf->setFillColor(255, 255, 255);
        $pdf->cell(200, 20, 'Employee Id (reference) : ' . $record->getTeacherId(), 0, 1, 'L', true);
        $pdf->SetFont('Arial', '', 12);
        $pdf->setFillColor(50, 50, 50);
        $pdf->setTextColor(255, 255, 255);
        $pdf->cell(450, 20, 'Employee Details', 0, 1, 'C', true);
        $pdf->setTextColor(0, 0, 0);
        $pdf->setFillColor(221, 221, 221);
        $pdf->cell(200, 20, 'Employee Name', 0, 0, 'C', true);
        $pdf->cell(250, 20, $record->getName(), 0, 1, 'C', true);
        $pdf->setFillColor(255, 255, 255);
        $pdf->cell(200, 20, 'Qualification', 0, 0, 'C', true);
        $pdf->cell(250, 20, $record->getQualification(), 0, 1, 'C', true);
        require_once $_SERVER['DOCUMENT_ROOT'] . '/cloud/model/subject_class.php';
        $subject_id = new Subject($objPDO);
        $subject_id->setID($record->getSubjectId());
        $pdf->setFillColor(221, 221, 221);
        $pdf->cell(200, 20, 'Subject', 0, 0, 'C', true);
        $pdf->cell(250, 20, $subject_id->getName(), 0, 1, 'C', true);
        $pdf->setFillColor(255, 255, 255);
        $pdf->cell(200, 20, 'Date Of Birth', 0, 0, 'C', true);
        $pdf->cell(250, 20, $record->getDateOfBirth(), 0, 1, 'C', true);
        $pdf->setFillColor(221, 221, 221);
        $pdf->cell(200, 20, 'Gender', 0, 0, 'C', true);
        $pdf->cell(250, 20, ucfirst($record->getGender()), 0, 1, 'C', true);
        $pdf->setFillColor(255, 255, 255);
        $pdf->cell(200, 20, 'Blood Group', 0, 0, 'C', true);
        $pdf->cell(250, 20, $record->getBloodGroup(), 0, 1, 'C', true);
        $pdf->setFillColor(255, 255, 255);
        $pdf->cell(200, 20, '', 0, 0, 'C', true);
        $pdf->cell(250, 20, '', 0, 1, 'C', true);
        $pdf->setFillColor(50, 50, 50);
        $pdf->setTextColor(255, 255, 255);
        $pdf->cell(450, 20, 'Contact Details', 0, 1, 'C', true);
        $pdf->setTextColor(0, 0, 0);
        $pdf->setFillColor(221, 221, 221);
        $pdf->cell(200, 20, 'Correspondence Address', 0, 0, 'C', true);
        $pdf->cell(250, 20, $record->getCorrespondenceAddressLine1(), 0, 1, 'C', true);
        $pdf->cell(200, 20, '', 0, 0, 'C', true);
        $pdf->cell(250, 20, $record->getCorrespondenceAddressLine2(), 0, 1, 'C', true);
        $pdf->setFillColor(255, 255, 255);
        $pdf->cell(200, 20, 'City', 0, 0, 'C', true);
        $pdf->cell(250, 20, $record->getCorrespondenceCity(), 0, 1, 'C', true);
        $pdf->setFillColor(221, 221, 221);
        $pdf->cell(200, 20, 'State', 0, 0, 'C', true);
        $pdf->cell(250, 20, $record->getCorrespondenceState(), 0, 1, 'C', true);
        $pdf->setFillColor(255, 255, 255);
        $pdf->cell(200, 20, 'Pincode', 0, 0, 'C', true);
        $pdf->cell(250, 20, $record->getCorrespondencePincode(), 0, 1, 'C', true);
        $pdf->setFillColor(221, 221, 221);
        $pdf->cell(200, 20, 'Phone', 0, 0, 'C', true);
        $pdf->cell(250, 20, $record->getPhone(), 0, 1, 'C', true);
        $pdf->setFillColor(255, 255, 255);
        $pdf->cell(200, 20, 'Mobile', 0, 0, 'C', true);
        $pdf->cell(250, 20, $record->getMobile(), 0, 1, 'C', true);
        $pdf->setFillColor(221, 221, 221);
        $pdf->cell(200, 20, 'Email', 0, 0, 'C', true);
        $pdf->cell(250, 20, $record->getEmail(), 0, 1, 'C', true);
        $pdf->setFillColor(255, 255, 255);
        $pdf->cell(450, 20, '', 0, 1, 'C', true);
        $pdf->setFillColor(50, 50, 50);
        $pdf->setTextColor(255, 255, 255);
        $pdf->cell(450, 20, 'Login Details', 0, 1, 'C', true);
        $pdf->setTextColor(0, 0, 0);
        $pdf->setFillColor(221, 221, 221);
        $pdf->cell(200, 20, 'Employee Id *', 0, 0, 'C', true);
        $pdf->cell(250, 20, $record->getTeacherId(), 0, 1, 'C', true);
        $pdf->setFillColor(255, 255, 255);
        $pdf->cell(200, 20, 'Temporary Password **', 0, 0, 'C', true);
        $pdf->cell(250, 20, $record->getTempPass(), 0, 1, 'C', true);
        /* TEMPLATE 1 DESIGN END*/
        $pdf->SetFont('Arial', '', 10);
        $pdf->SetXY($x + 100, 620);
        $pdf->write(15, 'Employee\'s Signature');
        $pdf->SetXY($x + 350, 620);
        $pdf->write(15, 'Admin\'s Signature');
        $pdf->SetFont('Arial', '', 8);
        $pdf->SetXY($x + 20, 710);
        $pdf->write(15, '* Employee Id may be Temporary , ** Please Change the Password for Security Reasons');
        $pdf->SetXY($x + 20, 720);
        $pdf->write(15, 'This is a Computer Generated Form. If any Discrepancy Contact Admin : eduCloud Reference Number ' . $user->getuserId());
        // Close the document and save to the filesystem with the name simple.pdf
        $pdf->Output('generated_files/enroll' . $record->getUserId() . '.pdf', 'F');
        header('Location:http://localhost/cloud/generated_files/enroll' . $record->getUserId() . '.pdf');
    }
$pdf->AddPage();
$pdf->Image('../../public_html/imagenes/logoclaro.png', 40, 100, 130);
$pdf->SetTitle("Notificación al denunciante", true);
/*--------------------------------------- HEADER ----------------------------------------------*/
$pdf->Image('../../public_html/imagenes/logoivss.png', 20, 7, 13);
$pdf->SetFont('Arial', '', 8);
$pdf->Text(40, 10, utf8_decode('REPÚBLICA BOLIVARIANA DE VENEZUELA'));
$pdf->Text(40, 13, utf8_decode('MINISTERIO DEL PODER POPULAR PARA EL TRABAJO Y SEGURIDAD SOCIAL'));
$pdf->Text(40, 16, utf8_decode('INSTITUTO VENEZOLANO DE LOS SEGUROS SOCIALES'));
$pdf->Text(40, 19, utf8_decode('DIRECCIÓN GENERAL DE FISCALIZACIÓN'));
/*--------------------------------------- HEADER ----------------------------------------------*/
/*---------------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------------*/
/*-------------------------------- TITULO DEL DOCUMENTO ---------------------------------------*/
$pdf->SetFont('Arial', 'B', 10);
$pdf->setXY(20, 38);
$pdf->SetRightMargin(25.0);
$pdf->MultiCell(0, 4, utf8_decode('ACTA DE REQUERIMIENTO DE DOCUMENTOS'), 0, 'C');
/*-------------------------------- TITULO DEL DOCUMENTO ---------------------------------------*/
/*---------------------------------------------------------------------------------------------*/
/*-------------------------------- NUMERO DEL DOCUMENTO ---------------------------------------*/
$pdf->SetFont('Arial', 'B', 10);
$pdf->setXY(20, 30);
$pdf->MultiCell(0, 0, utf8_decode('N° DGF-DFROR-AIP-2015-00XXXX'));
/*-------------------------------- NUMERO DEL DOCUMENTO ---------------------------------------*/
/*---------------------------------------------------------------------------------------------*/
/*-------------------------------- CUERPO DEL DOCUMENTO----------------------------------------*/
$pdf->setXY(20, 50);
$pdf->SetFont('Arial', '', '8');
$pdf->MultiCell(0, 4, utf8_decode('Hoy, _______________________________________encontrándonos en el domicilio de la sociedad mercantil ____________________, identificada con el Registro de Información Fiscal (RIF) número __________________ e inscrita en el IVSS, bajo el número patronal _____________, se levanta la presente Acta de Requerimiento de Documentos, a fin de solicitar al aludido empleador, la documentación necesaria para llevar a cabo el procedimiento de verificación iniciado a través del Acta de Inicio de Procedimiento, identificada con la nomenclatura DGF-DFROR-AIP-2015-000001, de fecha ___ de _________ de 2015, en atención a ello, la citada sociedad mercantil, deberá entregar al Servidor Público Actuante debidamente autorizado, mediante Providencia Administrativa signada DGF-DFROR-PA-2015-000001, de fecha ____ de __________ de 2015, la siguiente documentación:'));
$pdf->SetFont('Arial', 'B', '8');
$pdf->AddPage();
$codes = array("3ZRCT5L5", "V9K4NFKP", "F4RUH3CX", "PE99XUGV", "7RAA842U", "TSVULCL7", "W8J9TQ34", "49Z6SJD8", "ULLK3EC7", "2DXRNWWQ", "PFXB3X33", "2BSGC6VH", "K7APZR9J", "TBBY545M", "GXXR2UDP", "EP242HFK", "B5BPXTW7", "HAB7G93W", "R7PE4BJR", "FJ8KKCBD", "ACZDZP3Z", "EKH2FNJD", "7MZLG2CH", "6ERVQJUA", "PPSFDAJV", "RGABLEJW", "JJ65C52Q", "3B6FKAUB", "VQSZTZZ8", "3ZHFCKE9", "V9KYR97J", "25PTMJJZ", "6H4C9Z3Z", "D62C6UTT", "UVB4G8W6", "2Q37LUAA", "BLLB96WG", "URY895AA", "P6TNEMLJ", "QAPC92JF", "F5XBA9Z7", "Q3PPWR56", "4XSWBBY7", "DXFTMAXV", "3JYHCKXK", "KDXQ7AA2", "NJ7MPYWC", "GWQ9DYMF", "DM2CZWGJ", "GVHQWH5H", "WE6TAMSK", "KCFJPR9N", "4C48VR7F", "SP2J685S", "ACE7NM2C", "LEMXES7T", "AVEDQQ3V", "UDESHXN3", "3AEZM4Z2", "WUWFC4JC", "L8BUXGHD");
$start_x = 0.25;
$start_y = 0.5625;
$x_size = 1.75;
$y_size = 0.66;
$row_sep = 0.3125;
$cells_per_row = 15;
$cells_per_col = 4;
$cells_per_page = 60;
$cell = 0;
$page = 0;
for ($cell = 0; $cell < count($codes); ++$cell) {
    $newpage = intdiv($cell, $cells_per_page);
    if ($newpage > $page) {
        $pdf->AddPage();
        $page = $newpage;
    }
    $page_cell = $cell - $page * $cells_per_page;
    $row = $page_cell % 15;
    $col = intdiv($page_cell, 15);
    // Draw the party id
    $pdf->SetFont("ufonts.com_century-gothic", "", 8);
    $pdf->setXY($col * ($x_size + $row_sep), $start_y + $row * $y_size);
    $pdf->cell(0.25, 0.66, $cell + 1, 0, 0, "C", false);
    // Draw the code
    $pdf->SetFont("ufonts.com_century-gothic", "", 16);
    $pdf->setXY($start_x + $col * ($x_size + $row_sep), $start_y + $row * $y_size);
    $pdf->cell($x_size, $y_size, $codes[$cell], 0, 0, "C", false);
}
$pdf->Output();
$pdf = new FPDF('P');
$pdf->AddPage();
$pdf->Image('../../public_html/imagenes/logoclaro.png', 40, 60, 120);
$pdf->SetTitle("Notificación al denunciante", true);
/*--------------------------------------- HEADER ----------------------------------------------*/
$pdf->Image('../../public_html/imagenes/logoivss.png', 20, 7, 13);
$pdf->SetFont('Arial', '', 6);
$pdf->Text(40, 10, utf8_decode('REPÚBLICA BOLIVARIANA DE VENEZUELA'));
$pdf->Text(40, 13, utf8_decode('MINISTERIO DEL PODER POPULAR PARA EL TRABAJO Y SEGURIDAD SOCIAL'));
$pdf->Text(40, 16, utf8_decode('INSTITUTO VENEZOLANO DE LOS SEGUROS SOCIALES'));
$pdf->Text(40, 19, utf8_decode('DIRECCIÓN GENERAL DE FISCALIZACIÓN'));
/*--------------------------------------- HEADER ----------------------------------------------*/
/*---------------------------------------------------------------------------------------------*/
/*-------------------------------- TITULO DEL DOCUMENTO ---------------------------------------*/
$pdf->SetFont('Arial', 'B', 10);
$pdf->setXY(20, 38);
$pdf->SetRightMargin(25.0);
$pdf->MultiCell(0, 4, utf8_decode('PROVIDENCIA ADMINISTRATIVA'), 0, 'C');
/*-------------------------------- TITULO DEL DOCUMENTO ---------------------------------------*/
/*---------------------------------------------------------------------------------------------*/
/*-------------------------------- NUMERO DEL DOCUMENTO ---------------------------------------*/
$pdf->SetFont('Arial', 'B', 10);
$pdf->setXY(20, 30);
$pdf->MultiCell(0, 0, utf8_decode('N° DGF-DFROR-AIP-2015-00XXXX'));
/*-------------------------------- NUMERO DEL DOCUMENTO ---------------------------------------*/
/*---------------------------------------------------------------------------------------------*/
/*-------------------------------- CUERPO DEL DOCUMENTO----------------------------------------*/
$pdf->setXY(20, 50);
$pdf->SetFont('Arial', '', '8');
$pdf->MultiCell(0, 4, utf8_decode('Quien suscribe, Jesús Eduardo Tovar Jiménez, venezolano, mayor de edad, civilmente hábil, de este domicilio y titular de la cédula de identidad número V-1.740.259, procediendo en mi condición de Director General de Fiscalización, carácter que consta en Resolución suscrita por el Presidente del IVSS, signada DGRHAP-DAPDRC/10 Número 002093, de fecha 03 de Mayo de 2010 y en uso de las facultades y atribuciones delegadas mediante Providencia Administrativa número 010, de fecha 09 de Agosto de 2010, publicada en la Gaceta Oficial de la República Bolivariana de Venezuela Número 39.551, de fecha 12 de Noviembre del año 2010; por medio del presente acto, designo y autorizo a los Servidores Públicos, ciudadanos:  Ana María Higuera Arévalo, V-15.022.121; Carmen Luisa Bravo Muñoz, V- 14.394.714; Cecilio Enrique Zerpa López, V-13.574.202; Domingo José Ramirez Reyes, V-13.836.194; Eduardo José Morillo Alcalá,  V-18.129.838; Jesús Antonio Vasquez; V-15.586.467; Johana De La Trinidad Malavé, V-10.810.104; Karla Heleydenys María Origûen Gerdel, V-17.389.422; Luis Miguel Marquez Blanco, V-19.754.270; María Isabel Villa Salas,    V-14.287.554; Marialejandra Rodríguez Sosa, V-14.755.807; Marlene De La Cruz Márquez Gil, V-11.555.032; Patricia Del Valle Morales Quereigua, V-15.549.481; Pedro Alexander Alarcón Velasquez, V-16.381.443; Rafael Antonio Gintili Anderson, V-17.705.281, Sandra Milena Celis Soto, V-12.878.449; Sergio Esteban Inojosa Alcalá, V-6.499.959; Ronald Rafael Mora Briceño, V-14.680.782 y Yamileth Aixa Escalona, V-13.533.413; para que de conformidad a lo dispuesto en los artículos 182, 183, 184, 185 y 186 del Código Orgánico Tributario, verifiquen el oportuno cumplimiento de las Obligaciones establecidas en la Ley del Seguro Social, por parte de la sociedad mercantil XXXXXXXXXXXXXXXXXXXXXX inscrita en el IVSS bajo el número patronal XXXXXXXXXXXX,  entre ellas: Haberse inscrito oportunamente en el Instituto Venezolano de los Seguros Sociales, haber informado si fuere el caso sobre la cesación de actividades, cambios de razón social, traspaso del dominio a cualquier título, y en general, otras circunstancias relativas a las actividades de la empresa, establecimiento, explotación o faena; de igual modo verificar, si el citado empleador, cumplió con la obligación de inscribir a sus trabajadores dentro de los tres (3) días hábiles siguientes al de su ingreso al trabajo, para los trabajadores activos en el período comprendido desde el mes de Febrero 2015 hasta Abril 2015 así como el deber de notificar al Instituto el despido o retiro de los trabajadores dentro de los tres (3) días hábiles siguientes a aquel en el que se produzca tal hecho,  para el período comprendido desde el mes de Febrero 2015 hasta Abril 2015.'));
$pdf->setXY(20, 145);
示例#13
0
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if ($from == NULL || $to == NULL) {
    $starting = "SUMMARY OF TRANSACTIONS ON: " . date("F j, Y, g:i a");
} else {
    $starting = "SUMMARY OF TRANSACTIONS AS FROM " . $from . " TO " . $to . "";
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//$pdf->Ln();
//$pdf->Cell(50, 10);
$pdf->SetFont('times', 'B', 12);
$pdf->SetTextColor(204, 102, 0);
$pdf->Cell(50, 10, '' . $starting);
// Add date report ran
$pdf->SetFont('HELVETICA', 'B', 10);
$date = date("F j, Y");
$pdf->Cell(40, 30, 'Report date: ' . $date . '     											REPORT BY: ' . $USER . '');
$pdf->SetDrawColor(0, 0, 0);
//black
//table header
$pdf->SetFillColor(102, 51, 0);
$pdf->SetTextColor(252, 252, 252);
$pdf->setFont("Arial", "B", "9");
$pdf->setXY(20, 40);
$pdf->Cell(40, 10, "FUND:", 1, 0, "L", 1);
// header fields
$pdf->Cell(50, 10, "TRANSACTION TYPE:", 1, 0, "L", 1);
$pdf->Cell(40, 10, "AMOUNT:", 1, 0, "L", 1);
$y = 50;
$x = 20;
$pdf->setXY($x, $y);
$pdf->setFont("times", "", "8");
示例#14
0
$Educacional = array(
    "lee_escribe" => $educacionalTabla["lee_escribe"],
    "mas_nivel_educacional" => utf8_decode($educacionalTabla["mas_nivel_educacional"]),
    "titulo_alcanzado" => utf8_decode($educacionalTabla["Carrera"]["descripcion"]),
    "titulo_posgrado" => utf8_decode($educacionalTabla["titulo_posgrado"]),
    "profesion" => utf8_decode($educacionalTabla["profesion"]),
    "ocupacion" => utf8_decode($educacionalTabla["ocupacion"]),
    "cambios" => utf8_decode($educacionalTabla["cambios"])
);


$pdf = new FPDF();
$pdf->SetMargins(0, 0);
$pdf->AddPage('P', 'Legal');
$pdf->SetFont('Arial', '', 10);
$pdf->setXY(30, 12);
$pdf->Write(10, $Ente["dni"]);

$pdf->setXY(105, 12);
$pdf->Write(10, $Ente["apellido"]);
$pdf->setXY(17, 19);
$pdf->Write(10, $fecha_nacimiento[2]);
$pdf->setXY(45, 19);
$pdf->Write(10, $Ente["sexo"]);
$pdf->setXY(78, 19);
$pdf->Write(10, $Ente["nombre"]);
$pdf->setXY(18, 39);
$pdf->Write(10, $Ente["fecha_nacimiento"]["dia"]);
$pdf->setXY(27, 39);
$pdf->Write(10, $Ente["fecha_nacimiento"]["mes"]);
$pdf->setXY(35, 39);
示例#15
0
define('FPDF_FONTPATH', 'font/');
require 'fpdf.php';
$pdf = new FPDF();
// เพิ่มฟอนต์ภาษาไทยเข้ามา ตัวธรรมดา กำหนด ชื่อ เป็น angsana
$pdf->AddFont('angsana', '', 'angsa.php');
// เพิ่มฟอนต์ภาษาไทยเข้ามา ตัวหนา  กำหนด ชื่อ เป็น angsana
$pdf->AddFont('angsana', 'B', 'angsab.php');
// เพิ่มฟอนต์ภาษาไทยเข้ามา ตัวหนา  กำหนด ชื่อ เป็น angsana
$pdf->AddFont('angsana', 'I', 'angsai.php');
// เพิ่มฟอนต์ภาษาไทยเข้ามา ตัวหนา  กำหนด ชื่อ เป็น angsana
$pdf->AddFont('angsana', 'BI', 'angsaz.php');
//สร้างหน้าเอกสาร
$pdf->AddPage();
// กำหนดฟอนต์ที่จะใช้  อังสนา ตัวธรรมดา ขนาด 12
$pdf->SetFont('angsana', '', 12);
// พิมพ์ข้อความลงเอกสาร
$pdf->setXY(10, 10);
$pdf->MultiCell(0, 0, iconv('UTF-8', 'cp874', 'อังสนา ตัวธรรมดา ขนาด 12'));
/*$pdf->SetFont('angsana','B',16);
$pdf->setXY( 10, 20  );
$pdf->MultiCell( 0  , 0 , iconv( 'UTF-8','cp874' , 'อังสนา ตัวหนา ขนาด 16' )  );
*/
/*$pdf->SetFont('angsana','I',24);
$pdf->setXY( 10, 30  );
$pdf->MultiCell( 0  , 0 , iconv( 'UTF-8','cp874' , 'อังสนา ตัวเอียง ขนาด 24' )  );
*/
/*$pdf->SetFont('angsana','BI',32);
$pdf->setXY( 10, 40  );
$pdf->MultiCell( 0  , 0 , iconv( 'UTF-8','cp874' , 'อังสนา ตัวหนาเอียง ขนาด 32' )  );
*/
$pdf->Output();
$id_estado = $_SESSION['USUARIO']['estado'];
$estado = dameEstadoById($id_estado);
$direccion = $estado[0]['NOMBRE_ESTADO'];
$pdf = new FPDF('P');
$pdf->AddPage();
$pdf->Image('../../public_html/imagenes/logoclaro.png', 40, 60, 120);
$pdf->SetTitle("Notificación al denunciante", true);
$pdf->Image('../../public_html/imagenes/logoivss.png', 20, 7, 13);
$pdf->SetFont('Arial', '', 6);
$pdf->Text(40, 10, utf8_decode('REPÚBLICA BOLIVARIANA DE VENEZUELA'));
$pdf->Text(40, 13, utf8_decode('MINISTERIO DEL PODER POPULAR PARA EL PROCESO SOCIAL DE TRABAJO'));
$pdf->Text(40, 16, utf8_decode('INSTITUTO VENEZOLANO DE LOS SEGUROS SOCIALES'));
$pdf->Text(40, 19, utf8_decode('DIRECCIÓN GENERAL DE FISCALIZACIÓN'));
$pdf->SetFont('Arial', 'B', 10);
#$pdf->Text(20,38,utf8_decode('NOTIFICACIÓN DE CIERRE DE DENUNCIAS, QUEJAS Y/O RECLAMOS PRESENTADA POR AL EMPLEADOR(A) ANTE EL IVSS'));
$pdf->setXY(20, 38);
$pdf->SetRightMargin(25.0);
$pdf->MultiCell(0, 4, utf8_decode('NOTIFICACIÓN DE CIERRE DE QUEJAS Y/O RECLAMOS PRESENTADA POR EL EMPLEADOR(A) ANTE EL IVSS'));
$pdf->SetXY(95, 22);
$pdf->SetFillColor(35, 65, 129);
$pdf->SetFont('Arial', '', 6);
$pdf->setTextColor(255, 255, 255);
$pdf->Cell(25, 4, utf8_decode('LUGAR'), 1, 0, 'C', true);
$pdf->Cell(25, 4, utf8_decode('FECHA'), 1, 0, 'C', true);
$pdf->Cell(40, 4, utf8_decode('N° DE QUEJAS Y/O RECLAMOS'), 1, 0, 'C', true);
$pdf->Ln();
$pdf->SetXY(95, 26);
$pdf->setTextColor(0, 0, 0);
$pdf->Cell(25, 6, $direccion, 1, 0, 'C', FALSE);
$pdf->Cell(25, 6, $fecha_denuncia, 1, 0, 'C', FALSE);
$pdf->Cell(40, 6, $id_denuncia, 1, 0, 'C', FALSE);
$statement->Cell(160, 06, 'Account NO: ' . $accno, 'R');
$statement->Ln();
$statement->Cell(10, 06, $town, 'L');
$statement->Cell(160);
$statement->Cell(160, 06, 'Statement Date: ' . date("D,d-M-Y", time()), 'R');
$statement->Ln();
$statement->Cell(10, 06, 'Telephone. No: ' . $row_mem[2], 'L');
$statement->Cell(160);
$statement->Cell(160, 06, 'NAV Date: ' . $navs[0], 'R');
$statement->Ln();
$statement->Cell(10, 06, 'Email Address: ' . $row_mem[4], 'L');
$statement->Ln();
$statement->Cell(200, 5, "********************************************************************************************************************************************");
/* * **********************Show the member transations******************************************************************* */
$statement->Ln();
$statement->SetFont('Arial', 'B', 9);
$statement->Cell(200, 10, "            DETAILS.                                                        PURCHASES.                                    SALES.                                                          BALANCE.");
$statement->SetFillColor(102, 51, 0);
$statement->SetTextColor(252, 252, 252);
$statement->setFont("Arial", "B", "9");
$statement->setXY(10, 100);
$statement->Cell(15, 10, "R NO:", 1, 0, "L", 1);
// header fields
$statement->Cell(20, 10, "T DATE:", 1, 0, "L", 1);
$statement->Cell(25, 10, "UNITS:", 1, 0, "L", 1);
$statement->Cell(20, 10, "PRICE", 1, 0, "L", 1);
$statement->Cell(35, 10, "COST:", 1, 0, "L", 1);
$statement->Cell(25, 10, "UNITS:", 1, 0, "L", 1);
$statement->Cell(25, 10, "PRICE", 1, 0, "L", 1);
$statement->Cell(25, 10, "COST:", 1, 0, "L", 1);
$statement->Cell(30, 10, "UNITS:", 1, 0, "L", 1);
$pdf->AddFont('angsana', 'I', 'angsai.php');
// เพิ่มฟอนต์ภาษาไทยเข้ามา ตัวหนา  กำหนด ชื่อ เป็น angsana
$pdf->AddFont('angsana', 'BI', 'angsaz.php');
//สร้างหน้าเอกสาร
$pdf->AddPage();
// กำหนดฟอนต์ที่จะใช้  อังสนา ตัวธรรมดา ขนาด 12
//$pdf->SetFont('angsana','',12);
// พิมพ์ข้อความลงเอกสาร
//$pdf->setXY( 10, 10  );
//$pdf->MultiCell( 0  , 0 , iconv( 'UTF-8','cp874' , 'อังสนา ตัวธรรมดา ขนาด 12' ) );
/*$pdf->SetFont('angsana','B',16);
$pdf->setXY( 10, 20  );
$pdf->MultiCell( 0  , 0 , iconv( 'UTF-8','cp874' , 'อังสนา ตัวหนา ขนาด 16' )  );
*/
/*$pdf->SetFont('angsana','I',24);
$pdf->setXY( 10, 30  );
$pdf->MultiCell( 0  , 0 , iconv( 'UTF-8','cp874' , 'อังสนา ตัวเอียง ขนาด 24' )  );
*/
/*$pdf->SetFont('angsana','BI',32);
$pdf->setXY( 10, 40  );
$pdf->MultiCell( 0  , 0 , iconv( 'UTF-8','cp874' , 'อังสนา ตัวหนาเอียง ขนาด 32' )  );
*/
##-------------report appendix
// กำหนดฟอนต์ที่จะใช้  อังสนา ตัวธรรมดา ขนาด 12
$pdf->SetFont('angsana', '', 12);
// พิมพ์ข้อความลงเอกสาร
//$pdf->setXY( 90, 10  );
//$pdf->MultiCell( 0  , 0 , iconv( 'UTF-8','cp874' , 'แสดงรายละเอียดของ appendix 1' ) );
$pdf->setXY(10, 20);
$pdf->MultiCell(0, 0, iconv('UTF-8', 'cp874', 'HN : HS1533'));
$pdf->Output();
$pdf->Line(112.2, 299.3, 189.8, 299.3);
$pdf->setDrawColor('0', '0', '0');
/***********************************************************************/
/*
$pdf->setTextColor(255,255,255);
$pdf->Rect(20,240,80,7,'FD');
$pdf->Rect(110,240,80,7,'FD');
$pdf->Rect(20,247,80,7,'D');
$pdf->Text(45,244,utf8_decode('POR EL EMPLEADOR:'));
$pdf->Text(135,244,utf8_decode('POR EL TESTIGO:'));
*/
/***********************************************************************/
/******************************Pie*************************/
$pdf->setDrawColor('0', '0', '0');
$pdf->setTextColor('0', '0', '0');
$pdf->SetFont('Arial', 'B', 7);
$pdf->Line(18, 322, 193, 322);
$pdf->setXY(20, 324);
$pdf->MultiCell(0, 0, utf8_decode('DIRECCIÓN GENERAL DE FISCALIZACIÓN'), 0, 'C');
$pdf->SetFont('Arial', '', 7);
$pdf->setXY(20, 329);
$pdf->MultiCell(0, 0, utf8_decode('Dirección: Av. Urdaneta Esquina de Veroes con Boulevard Panteón, Edificio Lecuna, al lado del Banco de Venezuela,'), 0, 'C');
$pdf->setXY(20, 331.8);
$pdf->MultiCell(0, 0, utf8_decode('Parroquia Altagracia, Municipio Libertador, Distrito Capital-Venezuela. Código Postal 1010.'), 0, 'C');
$pdf->setXY(20, 335);
$pdf->MultiCell(0, 0, utf8_decode('Teléfonos: 0212- 8635567- 8635716-8635429-8635161 (TELEFAX)'), 0, 'C');
/******************************Pie*************************/
$pdf->Output('Multa por incumplimiento de obligaciones.pdf', 'I');
?>

示例#20
0
 public function print_detail($id = '')
 {
     $servis = $this->general_mdl->get_from_field('servis', 'id', $id)->row();
     $servis_tipe = $this->general_mdl->get_from_field('servis_tipe', 'kode', $servis->tipe)->row();
     $kendaraan = $this->general_mdl->get_from_field('kendaraan', 'kode', $servis->kendaraan)->row();
     $kendaraan_tipe = $this->general_mdl->get_from_field('kendaraan_tipe', 'kode', $kendaraan->tipe)->row();
     require_once "./assets/lib/fpdf/fpdf.php";
     $pdf = new FPDF();
     $pdf->AliasNbPages();
     $pdf->AddPage('P', 'A4');
     $pdf->Image('./assets/img/logo.jpg', 12, 10, 25, 0);
     $pdf->SetFont('Arial', 'B', 10);
     $pdf->setX(35);
     $pdf->Cell(0, 5, 'PEMERINTAH DAERAH KABUPATEN CIANJUR', 0, 0, 'C');
     $pdf->Ln(5);
     $pdf->setX(35);
     $pdf->Cell(0, 5, 'DINAS KEBERSIHAN DAN PERTAMANAN', 0, 0, 'C');
     $pdf->Ln(7);
     $pdf->setX(40);
     $pdf->SetFont('Arial', 'B', 8);
     $pdf->Cell(20, 5, 'NOMOR', 1, 0, 'C');
     $pdf->Cell(75, 5, $servis->nomor, 1, 0, 'C');
     $pdf->Ln(7);
     $pdf->setX(40);
     $pdf->SetFont('Arial', 'B', 12);
     $pdf->Cell(95, 10, 'KARTU SEHAT KENDARAAN', 1, 0, 'C');
     $pdf->Ln(12);
     $pdf->SetFont('Arial', '', 8);
     $pdf->Cell(30, 5, 'NO. MESIN', 0, 0, 'L');
     $pdf->Cell(95, 5, ': ' . $kendaraan->nomes, 0, 0, 'L');
     $pdf->Ln(5);
     $pdf->Cell(30, 5, 'TYPE SERVIS', 0, 0, 'L');
     $pdf->Cell(95, 5, ': ' . $servis_tipe->nama, 0, 0, 'L');
     $pdf->Ln(5);
     $pdf->Cell(30, 5, 'TAHUN ANGGARAN', 0, 0, 'L');
     $pdf->Cell(95, 5, ': ' . date_format(date_create($servis->tanggal), 'Y'), 0, 0, 'L');
     $pdf->setXY(140, 22);
     $pdf->Cell(30, 5, 'NO KENDARAAN', 1, 0, 'L');
     $pdf->Cell(0, 5, $kendaraan->nopol, 1, 0, 'C');
     $pdf->setXY(140, 27);
     $pdf->Cell(30, 5, 'TIPE KENDARAAN', 1, 0, 'L');
     $pdf->Cell(0, 5, $kendaraan_tipe->nama, 1, 0, 'C');
     $pdf->setXY(140, 41);
     $pdf->Cell(30, 5, 'TANGGAL', 0, 0, 'L');
     $pdf->Cell(0, 5, ': ' . date_format(date_create($servis->tanggal), 'd'), 0, 0, 'L');
     $pdf->setXY(140, 46);
     $pdf->Cell(30, 5, 'BULAN', 0, 0, 'L');
     $pdf->Cell(0, 5, ': ' . date_format(date_create($servis->tanggal), 'M'), 0, 0, 'L');
     $pdf->setXY(140, 51);
     $pdf->Cell(30, 5, 'KILOMETER', 0, 0, 'L');
     $pdf->Cell(0, 5, ': ' . $servis->kilometer, 0, 0, 'L');
     $pdf->Ln(10);
     $pdf->SetFont('Arial', 'B', 8);
     $pdf->Cell(70, 5, 'KOMPONEN DASAR MESIN', 1, 0, 'C');
     $pdf->Cell(30, 5, 'JENIS PERLAKUAN', 1, 0, 'C');
     $pdf->Cell(30, 5, 'SATUAN', 1, 0, 'C');
     $pdf->Cell(30, 5, 'HARGA SATUAN', 1, 0, 'C');
     $pdf->Cell(0, 5, 'TOTAL HARGA', 1, 0, 'C');
     $pdf->Ln(5);
     $pdf->SetFont('Arial', '', 8);
     $result = $this->general_mdl->get_from_field('servis_detail', 'servis', $servis->nomor)->result();
     $total = 0;
     foreach ($result as $r) {
         $komponen = $this->general_mdl->get_from_field('komponen', 'kode', $r->komponen)->row();
         $komponen_satuan = $this->general_mdl->get_from_field('komponen_satuan', 'kode', $komponen->satuan)->row();
         $aksi = $this->general_mdl->get_from_field('servis_aksi', 'kode', $r->aksi)->row();
         $pdf->Cell(70, 5, $komponen->nama . ' ' . ($r->komponen_lain != '' ? ':' . $r->komponen_lain : ''), 1, 0, 'L');
         $pdf->Cell(30, 5, $aksi->nama, 1, 0, 'C');
         $pdf->Cell(30, 5, number_format($r->satuan) . ' ' . $komponen_satuan->nama, 1, 0, 'R');
         $pdf->Cell(30, 5, number_format($r->harga), 1, 0, 'R');
         $pdf->Cell(0, 5, number_format($r->satuan * $r->harga), 1, 0, 'R');
         $pdf->Ln(5);
         $total += $r->satuan * $r->harga;
     }
     $pdf->SetFont('Arial', 'B', 8);
     $pdf->Cell(160, 5, 'Total', 1, 0, 'L');
     $pdf->Cell(0, 5, number_format($total), 1, 0, 'R');
     $pdf->Ln(10);
     $pdf->Cell(80, 5, '', 0, 0, 'C');
     $pdf->Cell(0, 5, 'Mengetahui,', 0, 0, 'C');
     $pdf->Ln(5);
     $pdf->Cell(80, 5, 'Penanggung Jawab Bengkel', 0, 0, 'C');
     $pdf->Cell(0, 5, 'Mandor Armada', 0, 0, 'C');
     $pdf->Ln(5);
     $pdf->Cell(80, 5, 'Dinas Kebersihan dan Pertamanan', 0, 0, 'C');
     $pdf->Cell(0, 5, 'Dinas Kebersihan dan Pertamanan', 0, 0, 'C');
     $pdf->Ln(5);
     $pdf->Cell(80, 5, 'Kabupaten Cianjur', 0, 0, 'C');
     $pdf->Cell(0, 5, 'Kabupaten Cianjur', 0, 0, 'C');
     $pdf->Ln(20);
     $pdf->SetFont('Arial', 'BU', 8);
     $pdf->Cell(80, 5, 'Rusdi Hermawan', 0, 0, 'C');
     $pdf->Cell(0, 5, 'Deden Suparman, SIP', 0, 0, 'C');
     $pdf->Ln(5);
     $pdf->SetFont('Arial', 'B', 8);
     $pdf->Cell(80, 5, 'NIP. 19610912 200701 1 002', 0, 0, 'C');
     $pdf->Cell(0, 5, 'NIP. 19710316 200901 1 003', 0, 0, 'C');
     $pdf->Output();
 }
示例#21
0
    $pdf->text(10, 50 + $i * 3, $i);
    $inoj += $seksagxo[i][$i];
    $viroj += $seksagxo[v][$i];
}
$pdf->SetFontSize(12);
$pdf->text(31, 240, $inoj);
$pdf->text(41, 240, $viroj);
function kalkulu_partoprenantojn($speco, $valoro)
{
    // TODO: Esploru, cxu la GROUP BY vere necesas.
    $row = mysql_fetch_array(sql_faru(datumbazdemando(array($speco, "count(*)" => "c"), array("partoprenoj" => "p"), array("{$speco} = '{$valoro}'", "alvenstato = 'a'"), "renkontigxoID", array("group" => "{$speco}"))), MYSQL_BOTH);
    return $row["c"];
}
//nombro de vegetaranoj:
//// "Select vegetare, count(*) as c from partoprenoj as p where vegetare='J'  and alvenstato='a' and renkontigxoID='".$_SESSION["renkontigxo"]->datoj[ID]."' group by vegetare"
$pdf->setXY(110, 40);
$pdf->write(9, 'vegetaranoj: ' . kalkulu_partoprenantojn("vegetare", "J"));
//  $row=mysql_fetch_array(sql_faru("Select partoprentipo, count(*) as c from partoprenoj as p where partoprentipo='p'  and  alvenstato='a' and renkontigxoID='".$_SESSION["renkontigxo"]->datoj[ID]."' group by partoprentipo"),MYSQL_NUM);
$pdf->setXY(110, 45);
$pdf->write(9, 'partpartoprenantoj:' . kalkulu_partoprenantojn("partoprentipo", "p"));
//  $row=mysql_fetch_array(sql_faru("Select komencanto, count(*) as c from partoprenoj as p where komencanto='J'  and  alvenstato='a' and renkontigxoID='".$_SESSION["renkontigxo"]->datoj[ID]."' group by komencanto"),MYSQL_NUM);
$pdf->setXY(110, 50);
$pdf->write(9, 'komencantoj:' . kalkulu_partoprenantojn("komencanto", "J"));
// //  $row=mysql_fetch_array(sql_faru("Select invitletero, count(*) as c from partoprenoj as p where invitletero='J' and renkontigxoID='".$_SESSION["renkontigxo"]->datoj[ID]."' group by invitletero"),MYSQL_NUM);
//   $pdf->setXY(110,55);
//   $pdf->write(9,'invitleteroj:'. kalkulu_partoprenantojn("invitletero", "J"));
// TODO: Kial GROUP BY ?
//  $row=mysql_fetch_array(sql_faru("Select invitilosendata, count(*) as c from partoprenoj as p where invitilosendata<>'0000-00-00' and  alvenstato='a' and renkontigxoID='".$_SESSION["renkontigxo"]->datoj[ID]."' group by renkontigxoID"),MYSQL_NUM);
$row = mysql_fetch_array(sql_faru(datumbazdemando(array("invitilosendata", "count(*)" => "c"), array("partoprenoj" => "p"), array("invitilosendata <> '0000-00-00'", "alvenstato = 'a'"), "renkontigxoID", array("group" => "renkontigxoID"))), MYSQL_BOTH);
$pdf->setXY(110, 60);
$pdf->write(9, '(elsendata:' . $row["c"] . ')');
 /**
  * Render a single-line text field to the PDF
  *
  * @since 1.0
  * @param FPDF $fpdf fpdf library object
  * @param string $field_name the field name
  * @param mixed $value string or int value to display
  * @param int $show_border a debugging/helper option to display a border
  *        around the position for this field
  * @param string $align optional text alignment.  Defaults to 'L' for left-justified, but can also be 'R' for right-justified or 'C' for center-justified
  */
 public function text_field($fpdf, $field_name, $value, $show_border, $align = 'L')
 {
     if ($this->get_field_position($field_name) && $value) {
         $font = $this->get_field_font($field_name);
         // get the field position
         list($x, $y, $w, $h) = array_map(array($this, 'convert_pixels_to_points'), array_values($this->get_field_position($field_name)));
         // font color
         $font['color'] = $this->hex2rgb($font['color']);
         $fpdf->SetTextColor($font['color'][0], $font['color'][1], $font['color'][2]);
         // set the field text styling
         $font_path = "/" . strtolower($font['family'] . $font['style'] . ".php");
         $fpdf->AddFont($font['family'], $font['style'], $font_path);
         $fpdf->SetFont($font['family'], $font['style'], $font['size']);
         // show a border for debugging purposes
         if ($show_border) {
             $fpdf->setXY($x, $y);
             $fpdf->Cell($w, $h, '', 1);
         }
         // align the text to the bottom edge of the cell by translating as needed
         $y = $font['size'] > $h ? $y - ($font['size'] - $h) / 2 : $y + ($h - $font['size']) / 2;
         // handle right/center justification, it's left-justified by default so nothing to do in that case
         if ('R' == $align) {
             $x = max(0, $x + ($w - $fpdf->GetStringWidth($value)));
         } elseif ('C' == $align) {
             $x = max(0, $x + ($w - $fpdf->GetStringWidth($value)) / 2);
         }
         $fpdf->setXY($x, $y);
         // and write out the value
         $fpdf->Cell($w, $h, utf8_decode($value));
         // can try iconv('UTF-8', 'windows-1252', $value); if this doesn't work correctly for accents
     }
 }
     $current_y = 10;
     $width = 64;
     $rowline_count = 0;
     $address = "";
     $i = 0;
     $label_count = 1;
 }
 $address = "";
 if ($rowline_count < 3) {
 } else {
     $rowline_count = 0;
     $current_x = 10;
     $current_y += $height;
 }
 $rowline_count++;
 $pdf->setXY($current_x, $current_y);
 $current_x += $width;
 $sql = "select * from {$tablebpartner} a, {$tablecountry} b \r\n\twhere a.bpartner_id = {$bpartner_id} \r\n\tand a.country_id = b.country_id ";
 $query = $xoopsDB->query($sql);
 $data = array();
 //get data detail
 if ($row = $xoopsDB->fetchArray($query)) {
     $bpartner_name = $row["bpartner_name"];
     $bpartner_street1 = $row["bpartner_street1"];
     $bpartner_street2 = $row["bpartner_street2"];
     $bpartner_street3 = $row["bpartner_street3"];
     $bpartner_postcode = $row["bpartner_postcode"];
     $bpartner_city = $row["bpartner_city"];
     $bpartner_state = $row["bpartner_state"];
     $country_name = $row["country_name"];
     $contact = "Tel No : " . $row["bpartner_tel_1"] . " HP No : " . $row["bpartner_hp_no1"];
示例#24
0
//mysql_select_db("ciisa",$con);
include "../config/funciones_generales.php";
require 'pdf/fpdf.php';
include 'CNumeroaLetra.php';
include "../config/variables.php";
@mysql_connect(DB_HOST, DB_USER, DB_PASS);
mysql_select_db(DB_NAME);
$factura = $_GET['id'];
$fac = new FPDF();
//$fac->AliasNbPages();
$fac->AddPage();
$fac->SetFont('Arial', '', 8);
//$fac->Image('PrintFormatos20100715210214.jpg',1,1 , 200);
$fac->Image('../images/' . CONFIG("EMP_LOGO") . '', 10, 10, 35, 20);
$fac->Image('../images/shcp.jpg', 165, 10, 35, 20);
$fac->setXY(50, 10);
//$aux=str_replace("\r\n", "<br>", CONFIG("EMP_DATOS_FISCALES"));
//$fac->Cell(100,0, $aux);
/*
$fac->SetFont('Arial','',6);
$fac->setXY(50,13);
$fac->Cell(100,0,'RFC: CII910918NSA');
$fac->setXY(50,16);
$fac->Cell(100,0,'Matriz: Monterrey, Nuevo León, Vancouver 152,');
$fac->setXY(50,19);
$fac->Cell(100,0,'Col. Vista Hermosa, C.P. 64620, Tel. +52 (81) 1257 8000');
$fac->setXY(50,22);
$fac->Cell(100,0,'Sucursal Saltillo, Coah. Blvd. Venustiano Carranza 3985, ');
$fac->setXY(50,25);
$fac->Cell(100,0,'Col. Villa Olimpica, C.P. 25230, Tel. +52 (844) 439 0084/0085');
$fac->setXY(50,28);
 /**
  * Render an image field to the PDF
  *
  * @access public
  * @since 1.0.0
  * @param FPDF $fpdf fpdf library object
  * @param string $field_name the field name
  * @param mixed $value string or int value to display
  * @param int $show_border a debugging/helper option to display a border
  *        around the position for this field
  */
 public function image_field($fpdf, $value, $show_border, $position)
 {
     if ($value) {
         // get the field position
         list($x, $y, $w, $h) = $position;
         $fpdf->setXY($x, $y);
         // and write out the value
         $fpdf->Image(esc_url(utf8_decode($value)), $x, $y, $w, $h);
     }
     // End If Statement
 }
示例#26
0
<?php

require_once 'vendor/autoload.php';
$addresses = getAddressFromCSV($argv[1]);
$pdf = new FPDF('L', 'mm', array(148, 100));
foreach ($addresses as $address) {
    $pdf->AddPage();
    $pdf->SetFont('Arial', "", 8);
    $pdf->setXY(30, 3);
    $pdf->Cell(45, 10, "The Andrews Family");
    $pdf->setXY(30, 6);
    $pdf->Cell(45, 10, "Sakaine 5-7-29");
    $pdf->setXY(30, 9);
    $pdf->Cell(45, 10, "Kashiwa-shi Chiba-ken Japan");
    $pdf->setXY(30, 12);
    $pdf->Cell(45, 10, "277-0053");
    $startPosition = 45;
    $pdf->SetFont('Arial', "", 12);
    $pdf->setXY(30, $startPosition);
    $pdf->Cell(45, 10, trim($address[0]));
    $pdf->SetFont('Arial', "", 10);
    if (isset($address[6]) && $address[6] != "") {
        $pdf->setXY(30, $startPosition += 5);
        $pdf->Cell(45, 10, trim($address[6]));
    }
    $pdf->setXY(30, $startPosition += 5);
    $pdf->Cell(45, 10, trim($address[1]));
    $pdf->setXY(30, $startPosition += 5);
    $pdf->Cell(45, 10, trim($address[2]) . ', ' . trim($address[3]) . ' ' . trim($address[4]));
    $pdf->setXY(30, $startPosition += 5);
    $pdf->Cell(45, 10, trim($address[5]));
$pdf->AddPage('', '', '', '');
$pdf->Image('../../public_html/imagenes/logoclaro.png', 40, 100, 130);
$pdf->SetTitle("Notificación al denunciante", true);
/*--------------------------------------- HEADER ----------------------------------------------*/
$pdf->Image('../../public_html/imagenes/logoivss.png', 20, 7, 13);
$pdf->SetFont('Arial', '', 8);
$pdf->Text(40, 10, utf8_decode('REPÚBLICA BOLIVARIANA DE VENEZUELA'));
$pdf->Text(40, 13, utf8_decode('MINISTERIO DEL PODER POPULAR PARA EL TRABAJO Y SEGURIDAD SOCIAL'));
$pdf->Text(40, 16, utf8_decode('INSTITUTO VENEZOLANO DE LOS SEGUROS SOCIALES'));
$pdf->Text(40, 19, utf8_decode('DIRECCIÓN GENERAL DE FISCALIZACIÓN'));
/*--------------------------------------- HEADER ----------------------------------------------*/
/*---------------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------------*/
/*-------------------------------- NUMERO DEL DOCUMENTO ---------------------------------------*/
$pdf->SetFont('Arial', 'B', 12);
$pdf->setXY(20, 30);
$pdf->MultiCell(0, 0, utf8_decode('N° DGF-DFROR-AIP-2015-00XXXX'));
/*-------------------------------- NUMERO DEL DOCUMENTO ---------------------------------------*/
/*---------------------------------------------------------------------------------------------*/
/*-------------------------------- TITULO DEL DOCUMENTO ---------------------------------------*/
$pdf->SetFont('Arial', 'B', 10);
$pdf->setXY(20, 38);
$pdf->SetRightMargin(25.0);
$pdf->MultiCell(0, 4, utf8_decode('ACTA DE RECEPCIÓN DE DOCUMENTOS'), 0, 'C');
/*-------------------------------- TITULO DEL DOCUMENTO ---------------------------------------*/
/*---------------------------------------------------------------------------------------------*/
/*-------------------------------- CUERPO DEL DOCUMENTO----------------------------------------*/
$pdf->setXY(20, 50);
$pdf->SetFont('Arial', '', '8');
$pdf->MultiCell(0, 6, utf8_decode('En atención a la solicitud realizada a la sociedad mercantil ­­­­_____________________,  identificada con el Registro de Información Fiscal (RIF) número ___________________ e inscrita en el IVSS, bajo el número patronal __________________, mediante el Acta de Requerimiento de Documentos, identificada con el N° DGF-DFROR-ARD-2015-00XXXX , de fecha _____ de ___________de 2015, por medio de la presente, se deja constancia de cuál fue la documentación consignada por el aludido empleador, para llevar a cabo el procedimiento de verificación iniciado a través del Acta de Inicio de Procedimiento, signada con la nomenclatura N° DGF-DFROR-AIP-2015-00XXXX, de fecha ____ de __________de 2015,  a saber:'));
/*----------------- CUADRO DE DOCUMENTOS ------------------------*/