Esempio n. 1
0
 $pdf->Open();
 $pdf->AddPage();
 $pdf->setY(10);
 $pdf->setX(100);
 $pdf->Cell(60, 8, "Este reporte de ventas corresponde a las siguentes fechas: ", 0, 1);
 $pdf->setX(120);
 $pdf->Cell(60, 8, "del " . $fecha . "al " . $fechaFinal, 0, 0);
 $pdf->SetMargins(20, 20, 20);
 $pdf->Ln(10);
 //    $pdf->SetFont('Arial','',12);
 //    $pdf->Cell(0,6,'Clave: '.$fila['idViajero'],0,1);
 // $pdf->Cell(0,6,'Nombre: '.$fila['Nombre'].' '.$fila['Direccion'].' '.$fila['Telefono'],0,1);
 // $pdf->Cell(0,6,'Sexo: '.$fila['Correo'],0,1);
 // $pdf->Cell(0,6,'Domicilio: '.$fila['Correo'],0,1);
 // $pdf->Ln(10);
 $pdf->SetWidths(array(15, 55, 60, 40, 35, 35, 18));
 $pdf->SetFont('Arial', 'B', 10);
 $pdf->SetFillColor(85, 107, 47);
 $pdf->SetTextColor(255);
 $pdf->SetY(20);
 $pdf->setX(5);
 for ($i = 0; $i < 1; $i++) {
     $pdf->Row(array('Folio', 'Cliente', 'Vendedor', 'Fecha de Compra', 'Importe', 'Neto', 'Tipo'));
 }
 // $strConsulta  = "SELECT * FROM venta WHERE (`EstatusP`= 'Cerrado') AND (`FechaCompra` BETWEEN '$fecha' AND '$fechaFinal')";
 $strConsulta = "SELECT \n\t\tFolioPago as Folio,\n\t\tCantPago as Importe,\n\t\tFechaExpedicion as Fecha,\n\t\t`usuarios`.`nombre` as Vendedor,\n\t\t`cliente`.`nombre` as Cliente,\n\t\t`pagov`.`Tipo`,\n\t\tNeto\n\n\t\tFROM pagov\n\t\tLEFT JOIN venta ON (`pagov`.`FolioVenta` = `Venta`.`FolioVta`) \n\t\tLEFT JOIN usuarios ON (`venta`.`IdUsuario` = `usuarios`.`idUsuario`) \n\t\tleft join cliente on (`venta`.`idViajero`=`cliente`.`idViajero`)\n\t\tORDER BY FechaCompra DESC";
 $historial = mysql_query($strConsulta);
 $numfilas = mysql_num_rows($historial);
 for ($i = 0; $i < $numfilas; $i++) {
     $fila = mysql_fetch_array($historial);
     $pdf->SetFont('Arial', '', 10);
Esempio n. 2
0
        $this->Line(1, 77, 210, 77);
        $this->Ln(20);
    }
    function Footer()
    {
        $this->SetY(-15);
        $this->SetFont('Arial', 'I', 8);
        $this->Cell(0, 10, 'Pag. ' . $this->PageNo() . '/{nb}', 0, 0, 'C');
    }
}
$pdf = new PDF('P', 'mm', 'a4');
$pdf->AddPage();
$pdf->SetMargins(0, 0, 0, 0);
$pdf->AliasNbPages();
$pdf->AddFont('Amble-Regular');
$pdf->SetWidths(array(130, 100));
$pdf->SetFont('Amble-Regular', '', 10);
$tarifa0 = 0;
$tarifa12 = 0;
$iva = 0;
$descuento = 0;
$total = 0;
$sql = "select nombres_completos,direccion,telefono1,telefono2,fecha_actual,identificacion,correo,fecha_actual,fecha_cancelacion,numero_serie,forma_pago,tarifa0,tarifa12,iva,descuento,total from cliente,factura_venta where cliente.id_cliente = factura_venta.id_cliente and id_factura_venta = '{$_GET['id']}'";
$sql = sql($conexion, $sql);
while ($row = pg_fetch_row($sql)) {
    $pdf->SetX(5);
    $pdf->Cell(90, 5, maxCaracter("CLIENTE: " . utf8_decode($row[0]), 44), 0, 1, 'L', 0);
    $pdf->SetFont('Amble-Regular', '', 14);
    $pdf->Text(98, 85, "NRO FACTURA:            " . $row[9], 0, 'C', 0);
    $pdf->Text(98, 85, "NRO FACTURA:            " . $row[9], 0, 'C', 0);
    $pdf->SetFont('Amble-Regular', '', 10);
Esempio n. 3
0
    }
}
$id = $_GET['id'];
$p = $_GET['p'];
$f = $_GET['f'];
$m = $_GET['m'];
$o = $_GET['o'];
$pdf = new PDF('L', 'mm', 'Letter');
$pdf->Open();
$pdf->AddPage();
$pdf->SetMargins(20, 20, 20);
$pdf->SetFont('Arial', '', 8);
$pdf->SetTextColor(220, 50, 50);
$pdf->cell(222, -10, 'Receta No [' . $id . ' ]', 0, 0, 'C');
$pdf->Ln(1);
$pdf->SetWidths(array(150, 90));
$pdf->SetFont('Arial', '', 10);
$pdf->SetFillColor(255, 255, 255);
$pdf->SetTextColor(2);
$pdf->Row(array('Paciente : _' . $p, 'Fecha : _' . $f), 0);
$pdf->Ln(5);
$pdf->SetTextColor(0);
$pdf->Cell(0, 3, 'Medicamento: ', 0, 1);
$pdf->Write(6, "____________________________________________________________________________________________________________________");
$pdf->Ln(8);
$miarreglo = $m;
$renglon = explode('<br />', $miarreglo);
$i = 0;
while ($i <= 10) {
    $pdf->Write(7, $renglon[$i]);
    // porción1
 	print_r($r2);
 	echo "<br><br>";
 */
 $name = $r1['studentbio_fname'] . " " . $r1['studentbio_lname'];
 // echo "name=$name";
 $school = $r2['school_names_desc'];
 $q5 = @mysql_query("select * from studentcontact where studentcontact_id = {$r1['studentbio_id']}");
 $r5 = @mysql_fetch_array($q5);
 $address1 = $r5['studentcontact_address1'];
 $address2 = $r5['studentcontact_address2'];
 $city = $r5['studentcontact_city'];
 $zip = $r5['studentcontact_zip'];
 $pdf = new PDF('L');
 $w = array(35, 35, 35, 35, 35, 35);
 $pdf->Open();
 $pdf->SetWidths($w);
 $pdf->SetMargins(50, 30);
 $pdf->AddPage();
 $pdf->SetFillColor(255, 255, 255);
 $pdf->SetXY(195, 35);
 $pdf->SetFont('Times', 'IB', 16);
 $pdf->Write(1, $school);
 $pdf->SetFont('Times', '', 14);
 $pdf->Ln();
 $pdf->SetXY(30, 50);
 $pdf->Write(1, $name);
 $pdf->Ln();
 $pdf->SetXY(30, 55);
 $pdf->Write(1, $address1);
 $pdf->Ln();
 if (!empty($address2)) {
Esempio n. 5
0
            } else {
                if ($risk == "High") {
                    $pdf->SetFillColor(255, 219, 219);
                } else {
                    if ($risk == "Medium") {
                        $pdf->SetFillColor(255, 242, 131);
                    } else {
                        if ($risk == "Low") {
                            $pdf->SetFillColor(255, 255, 192);
                        } else {
                            $pdf->SetFillColor(255, 255, 227);
                        }
                    }
                }
            }
            $pdf->SetWidths(array($vwidth_array[0] + $vwidth_array[1]));
            $info = trim($info);
            $info = preg_replace("/^\\s*/", "", $info);
            $info = preg_replace("/\n{2,}/", "\n", $info);
            $info = preg_replace("/^/m", "\t\t\t\t\t", $info);
            if (!is_null($links_to_vulns[$hostIP_ctx][$r2n[$risk]])) {
                $link = $links_to_vulns[$hostIP_ctx][$r2n[$risk]];
                unset($links_to_vulns[$hostIP_ctx][$r2n[$risk]]);
            } else {
                $link = null;
            }
            $pdf->Row(array(_($risk) . ":\n\n" . $info), $link);
        }
    }
    $pdf->Ln();
}
Esempio n. 6
0
 if (!is_null($orden['fechamuf'])) {
     $fechamuestreo .= ' y ' . date('d', strtotime($orden['fechamuf']));
 }
 $pdf->Cell(82.5, 5, utf8_decode('FECHA DE MUESTREO: ' . $fechamuestreo), 0, 0, 'C');
 $fechaanalisis = $orden['fechani'];
 if (!is_null($orden['fechanf'])) {
     $fechaanalisis .= ' al ' . date('d', strtotime($orden['fechanf']));
 }
 $pdf->Cell(0, 5, utf8_decode('LAPSO DE ANALISIS: ' . $fechaanalisis), 0, 1, 'C');
 $pdf->Cell(0, 5, utf8_decode('FECHA DE INFORME: ' . $orden['fechainforme']), 0, 1, 'C');
 $pdf->Ln(10);
 if ($gya) {
     $pdf->Cell(100, 5, utf8_decode('Parámetro: ' . $gya[0]['parametro']), 0, 0);
     $pdf->Cell(0, 5, utf8_decode('Método: ' . $gya[0]['metodo']), 0, 1, 'R');
     $pdf->SetFillColor(200);
     $pdf->SetWidths(array(20, 45, 40, 45, 15));
     $pdf->SetAligns(array('C'));
     $pdf->SetFonts(array('B'));
     $pdf->SetFontSizes(array(9));
     $pdf->Row(array('No. Mtra.', utf8_decode('Identificación'), 'Unidad', 'Resultado', 'M.C.'));
     $pdf->SetFillColor(255);
     $pdf->SetFonts(array(''));
     $pdf->SetAligns(array('C', 'L', 'C', 'C', 'C'));
     foreach ($gya as $key => $value) {
         $pdf->Row(array($value['muestranum'], utf8_decode($value['identificacion']), $value['unidades'], utf8_decode($value['resultado']), $value['LC']));
     }
     $pdf->Ln(10);
 }
 if ($coliformes) {
     $pdf->Cell(100, 5, utf8_decode('Parámetro: ' . $coliformes[0]['parametro']), 0, 0);
     $pdf->Cell(0, 5, utf8_decode('Método: ' . $coliformes[0]['metodo']), 0, 1, 'R');
			$y2  = $y1+5;
			$this->SetXY( $r1 , $y1 );
			$this->Cell($length,4, $ref);
		}
	}
	
	$pdf = new PDF('L','mm','A4');
	$pdf->AliasNbPages();	
	$titulos = array('GUIA','DESTINATARIO','DIRECCION','RECIBE','PAGADO','COBRAR','CREDITO');
	$medidas = array(23,90,80,25,20,20,20);
	
	//Carga de datos
	$pdf->SetFont('Arial','B',10);	
	$pdf->AddPage();	

	$pdf->SetWidths($medidas);
	$pdf->SetFont('Arial','B',6);	
	$pdf->Titulos($titulos,$medidas);
	$pdf->SetFont('Arial','B',6);
	for($i=0;$i<count($data);$i++){
		$pdf->Row($data[$i]);
	}
	
	$pdf->addLeyenda("TOTAL GUIAS A REPARTIR: ".$total."",170,10);
	$pdf->addLeyenda("RECIBI:_______________________________",175,10);
	$pdf->addLeyenda("CHOFERES: ".$fr->conductor1."",180,10);
	$pdf->addLeyenda("UNIDAD: ".$fr->unidad."",185,10);
	$pdf->addLeyenda("GUIAS DEVUELTAS:_____",180,150);
	$pdf->addLeyenda("ENCARGADO DE ALMACEN:_______________________________",185,150);
	$pdf->addLeyenda2("TOTAL:",160,226);
	$pdf->addLeyenda2("$".number_format($tpagado,2,'.',','),160,236);
Esempio n. 8
0
$pdf->AddPage();
$pdf->SetMargins(20, 20, 20);
$pdf->Ln(10);
$pdf->SetFont('Arial', '', 12);
$pdf->Cell(0, 6, 'Nombre: ' . $fila['nombre'], 0, 1);
$pdf->Cell(0, 6, 'Dni: ' . $fila['dni'], 0, 1);
$pdf->Cell(0, 6, 'Direccion: ' . $fila['direccion'], 0, 1);
$pdf->Cell(0, 6, 'Mascota: ' . $fila['mascota'], 0, 1);
$pdf->Cell(0, 6, 'Edad: ' . $fila['edad'], 0, 1);
$pdf->Cell(0, 6, 'Sexo: ' . $fila['sexo'], 0, 1);
$pdf->Cell(0, 6, 'Color: ' . $fila['color'], 0, 1);
$pdf->Cell(0, 6, 'Usuario: ' . $fila['usuario'], 0, 1);
$pdf->Cell(0, 6, 'Password: '******'password'], 0, 1);
$pdf->Cell(0, 6, 'Correo: ' . $fila['correo'], 0, 1);
$pdf->Ln(10);
$pdf->SetWidths(array(65, 60, 55, 50, 20));
$pdf->SetFont('Arial', 'B', 10);
$pdf->SetFillColor(85, 107, 47);
$pdf->SetTextColor(255);
/*for($i=0;$i<1;$i++)
			{
				$pdf->Row(array('FECHA', 'MEDICO', 'CONSULTORIO', 'DIAGNOSTICO'));
			}
	
	$historial = $con->conectar();	
	$strConsulta = "SELECT consultas_medicas.fecha_consulta, consultas_medicas.consultorio, consultas_medicas.diagnostico, medicos.nombre_medico 
	FROM consultas_medicas 
	Inner Join pacientes ON consultas_medicas.id_paciente = pacientes.id_paciente 
	Inner Join medicos ON consultas_medicas.id_medico = medicos.id_medico
	WHERE pacientes.id_paciente = '$paciente'";
	
        		$this->TituloCabecera(35,"Armazon",8);
        		$this->TituloCabecera(25,"Tipo Cristal",8);
        		$this->TituloCabecera(35,"Armazon",8);*/
        $this->TituloCabecera(15, "Monto Bs", 8);
        $this->TituloCabecera(15, "ACta Bs", 8);
        $this->TituloCabecera(15, "ACta \$us", 8);
        $this->TituloCabecera(20, "Saldo a Cobrar", 8);
        $this->TituloCabecera(20, "F Entrega", 8);
        $this->TituloCabecera(20, "F Ent. Real", 8);
        $this->TituloCabecera(20, "Hora Entrega", 8);
        $this->TituloCabecera(35, "Observación", 8);
    }
}
$pdf = new PDF("L", "mm", "letter");
$pdf->AddPage();
$pdf->SetWidths(array(15, 20, 40, 15, 15, 15, 20, 20, 20, 20, 35, 30));
$pdf->Fuente("", 9);
$pdf->SetAligns(array("R", "R", "", "R", "R", "R", "R", "R", "R", "R"));
$TTotalBs = 0;
foreach ($opt as $o) {
    $pac = $paciente->MostrarRegistro($o['CodPaciente']);
    $pac = array_shift($pac);
    $prod1 = $producto->MostrarRegistro($o['CodProducto1']);
    $prod1 = array_shift($prod1);
    $prod2 = $producto->MostrarRegistro($o['CodProducto2']);
    $prod2 = array_shift($prod2);
    $prod3 = $producto->MostrarRegistro($o['CodProducto3']);
    $prod3 = array_shift($prod3);
    $prod4 = $producto->MostrarRegistro($o['CodProducto4']);
    $prod4 = array_shift($prod4);
    $prodtipo = $productotipo->MostrarRegistro($o['CodProductoTipo']);
        /*$this->TituloCabecera(25,"Tipo Cristal",8);
        		$this->TituloCabecera(35,"Armazon",8);
        		$this->TituloCabecera(25,"Tipo Cristal",8);
        		$this->TituloCabecera(35,"Armazon",8);*/
        $this->TituloCabecera(15, "Monto Bs", 8);
        $this->TituloCabecera(15, "ACta Bs", 8);
        $this->TituloCabecera(15, "ACta \$us", 8);
        $this->TituloCabecera(20, "Saldo a Cobrar", 8);
        $this->TituloCabecera(20, "F Entrega", 8);
        $this->TituloCabecera(35, "Observación", 8);
        $this->TituloCabecera(35, "Usuario", 8);
    }
}
$pdf = new PDF("L", "mm", "letter");
$pdf->AddPage();
$pdf->SetWidths(array(10, 15, 20, 15, 40, 15, 15, 15, 20, 20, 35, 35));
$pdf->Fuente("", 9);
$pdf->SetAligns(array("R", "C", "", "R", "L", "R", "R", "R", "R", "R"));
$TTotalBs = 0;
$contadorUsuario = 0;
foreach ($opt as $o) {
    if ($contadorUsuario != $idusuario) {
        $i = 0;
        $contadorUsuario = $idusuario;
    }
    $i++;
    $idusuario = $o['CodUsuarioEmitido'];
    $datosUsuario = $usuario->mostrarDatos($idusuario);
    $datosUsuario = array_shift($datosUsuario);
    $pac = $paciente->MostrarRegistro($o['CodPaciente']);
    $pac = array_shift($pac);
Esempio n. 11
0
 $pdf->Open();
 $pdf->AddPage();
 $pdf->setY(10);
 $pdf->setX(100);
 $pdf->Cell(60, 8, "Este reporte de ventas corresponde a las siguentes fechas: ", 0, 1);
 $pdf->setX(120);
 $pdf->Cell(60, 8, "del " . $fecha . "al " . $fechaFinal, 0, 0);
 $pdf->SetMargins(20, 20, 20);
 $pdf->Ln(10);
 //    $pdf->SetFont('Arial','',12);
 //    $pdf->Cell(0,6,'Clave: '.$fila['idViajero'],0,1);
 // $pdf->Cell(0,6,'Nombre: '.$fila['Nombre'].' '.$fila['Direccion'].' '.$fila['Telefono'],0,1);
 // $pdf->Cell(0,6,'Sexo: '.$fila['Correo'],0,1);
 // $pdf->Cell(0,6,'Domicilio: '.$fila['Correo'],0,1);
 // $pdf->Ln(10);
 $pdf->SetWidths(array(15, 60, 55, 50, 60));
 $pdf->SetFont('Arial', 'B', 10);
 $pdf->SetFillColor(85, 107, 47);
 $pdf->SetTextColor(255);
 for ($i = 0; $i < 1; $i++) {
     $pdf->Row(array('Folio', 'Cliente', 'Importe de la Venta', 'Fecha de Compra', 'Vendedor'));
 }
 // $strConsulta  = "SELECT * FROM venta WHERE (`EstatusP`= 'Cerrado') AND (`FechaCompra` BETWEEN '$fecha' AND '$fechaFinal')";
 $strConsulta = "SELECT FolioGrupo as Folio, CostoTotal as Importe,FechaCompra as Fecha,`usuarios`.`nombre` as Vendedor,`cliente`.`nombre` as Cliente FROM ventagrupo LEFT JOIN usuarios ON (`ventagrupo`.`idUsuario` = `usuarios`.`idUsuario`) left join cliente on (`ventagrupo`.`idViajero`=`cliente`.`idViajero`)\n\t\twhere EstatusP = 'Cerrado' AND (`FechaCompra` BETWEEN '{$fecha}' AND '{$fechaFinal}')";
 $historial = mysql_query($strConsulta);
 $numfilas = mysql_num_rows($historial);
 for ($i = 0; $i < $numfilas; $i++) {
     $fila = mysql_fetch_array($historial);
     $pdf->SetFont('Arial', '', 10);
     if ($i % 2 == 1) {
         $pdf->SetFillColor(153, 255, 153);
 $pdf->SetY(45);
 $pdf->SetLeftMargin(120);
 $pdf->ImprovedTable('', $temp['key']);
 $pdf->SetLeftMargin(15);
 // top right area eof
 // invoice number
 $pdf->Ln(10);
 $pdf->SetFont('Arial', 'B', 10);
 $pdf->Cell(0, 0, utf8_decode($this->pi_getLL('admin_invoice_number') . ': ' . $invoice['invoice_id']), 0, 1, 'L');
 $pdf->Ln(5);
 // invoice number eof
 // data table
 $temp = array();
 switch ($this->LLkey) {
     case "de":
         $pdf->SetWidths(array(10, 37, 68, 17, 26, 22));
         break;
     case "nl":
         $pdf->SetWidths(array(12, 31, 77, 12, 26, 22));
         break;
     case "en":
         $pdf->SetWidths(array(10, 35, 75, 12, 26, 22));
         break;
     case "fr":
         $pdf->SetWidths(array(10, 44, 61, 17, 26, 22));
         break;
     case "es":
         $pdf->SetWidths(array(16, 39, 60, 17, 26, 22));
         break;
     default:
         $pdf->SetWidths(array(12, 36, 67, 17, 26, 22));
<?php

ob_end_clean();
require 'lib/fpdf/PDF.php';
$pdf = new PDF('P', 'mm', 'Letter');
$family = 'Helvetica';
$pdf->Open();
$pdf->SetMargins(20, 20, 20);
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->SetWidths(array(180));
$pdf->SetFont($family, 'B', 9);
$pdf->SetFillColor(1, 137, 105);
$pdf->SetTextColor(255);
// carga de datos del formulario de admision
$form = new MembershipAppForm($db);
$list = $form->getPDFListMembershipAppForm($_GET['id']);
$form_admision = $list[0];
// carga de datos de escolaridad
$sch = new Schooling($db);
$list_sch = $sch->getPDFListSchooling($_GET['id']);
$escolaridad = $list_sch[0];
// carga de datos de los padres del estudiante
$aparents = new ApplicationParents($db);
$list_padre = $aparents->getPDFListApplicationParents($_GET['id'], 25);
//PADRE
$list_madre = $aparents->getPDFListApplicationParents($_GET['id'], 26);
//MADRE
$datos_padre = $list_padre[0];
$datos_madre = $list_madre[0];
// carga de datos de los Hermanos
Esempio n. 14
0
        $this->Ln();
        $this->TituloCabecera(10, "N", 8);
        $this->TituloCabecera(20, "FechaIngreso", 8);
        $this->TituloCabecera(40, "Cliente", 8);
        if ($ReporteCompleto == 1) {
            $this->TituloCabecera(20, "Total Optica", 8);
            $this->TituloCabecera(20, "Desc. Optica", 8);
        }
        $this->TituloCabecera(20, "Total", 8);
        $this->TituloCabecera(20, "Porcentaje", 8);
        //$this->TituloCabecera(20,"Total",8);
    }
}
$pdf = new PDF("P", "mm", "letter");
$pdf->AddPage();
$pdf->SetWidths(array(10, 20, 40, 20, 20, 20, 20, 20));
$pdf->Fuente("", 9);
$pdf->SetAligns(array("R", "R", "", "R", "R", "R", "R", "R", "R", "R", "L", "L", "L"));
$TTotalBs = 0;
foreach ($opt as $o) {
    $i++;
    $pac = $paciente->MostrarRegistro($o['CodPaciente']);
    $pac = array_shift($pac);
    $TotalBs = number_format($o['TotalBs'], 2, ".", "");
    $DescuentoOptica = number_format($TotalBs * (30 / 100), 2, ".", "");
    $TotalBsConOptica = number_format($TotalBs - $DescuentoOptica, 2, ".", "");
    $DescuentoMedico = number_format($TotalBsConOptica * ($Porcentaje / 100), 2, ".", "");
    $TotalMedico = number_format($TotalBsConOptica - $DescuentoMedico, 2, ".", "");
    $TTotalBs += $TotalBs;
    $TDescuentoOptica += $DescuentoOptica;
    $TTotalBsConOptica += $TotalBsConOptica;
Esempio n. 15
0
    ///DIRECCION (X,Y)
    $pdf->Text(25, 94, utf8_decode('' . strtoupper($fila[11])), 0, 'C', 0);
    ///TELEFONO(X,Y)
    $pdf->Text(115, 94, utf8_decode('' . strtoupper($fila[12])), 0, 'C', 0);
    ///CIUDAD(X,Y)
    $pdf->Text(180, 76, utf8_decode(strtoupper($fila[13])), 0, 'C', 0);
    ///FECHA EMISION (X,Y)
    $pdf->Text(180, 82, utf8_decode(strtoupper($fila[14])), 0, 'C', 0);
    ////FORMA PAGO (X,Y)
    $pdf->Text(183, 88, utf8_decode(strtoupper($fila[15])), 0, 'C', 0);
    ///FECHA VENCIMIENTO (X,Y)
    $pdf->Ln(32);
}
///////////////
$pdf->SetFont('Arial', '', 8);
$pdf->SetWidths(array(20, 130, 30, 30));
$pdf->SetFillColor(85, 107, 47);
$sql = pg_query("select detalle_factura_venta.cantidad,productos.articulo,detalle_factura_venta.precio_venta,detalle_factura_venta.total_venta from factura_venta,detalle_factura_venta,productos where factura_venta.id_factura_venta=detalle_factura_venta.id_factura_venta and detalle_factura_venta.cod_productos=productos.cod_productos and detalle_factura_venta.id_factura_venta='{$_GET['id']}'");
$numfilas = pg_num_rows($sql);
for ($i = 0; $i < $numfilas; $i++) {
    $fila = pg_fetch_row($sql);
    $pdf->SetFont('Arial', '', 8);
    $pdf->SetFillColor(255, 255, 255);
    $pdf->SetTextColor(0);
    $pdf->Row(array(utf8_decode($fila[0]), utf8_decode($fila[1]), utf8_decode($fila[2]), utf8_decode($fila[3])));
}
$temp = '';
$temp1 = '';
$t = 180;
$prod = 0;
$cont_prod = 0;
Esempio n. 16
0
    $pdf->Text(2, 8, utf8_decode('' . "CLIENTE:"), 0, 'C', 0);
    ////CLIENTE (X,Y)
    $pdf->Text(20, 8, utf8_decode('' . strtoupper($fila[8])), 0, 'C', 0);
    ////CLIENTE (X,Y)
    $pdf->Text(2, 13, utf8_decode('' . "DIR.:"), 0, 'C', 0);
    ////CLIENTE (X,Y)
    $pdf->Text(20, 13, utf8_decode('' . strtoupper($fila[18])), 0, 'C', 0);
    ////CLIENTE (X,Y)
    $pdf->Text(2, 18, utf8_decode('' . "FECHA.:"), 0, 'C', 0);
    ////CLIENTE (X,Y)
    $pdf->Text(20, 18, utf8_decode('' . strtoupper($fila[13])), 0, 'C', 0);
    ////CLIENTE (X,Y)
    $pdf->Ln(10);
}
$pdf->SetX(2);
$pdf->SetWidths(array(10, 33, 15, 15));
$sql = pg_query("select detalle_factura_venta.cantidad,productos.articulo,detalle_factura_venta.precio_venta,detalle_factura_venta.total_venta from factura_venta,detalle_factura_venta,productos where factura_venta.id_factura_venta=detalle_factura_venta.id_factura_venta and detalle_factura_venta.cod_productos=productos.cod_productos and detalle_factura_venta.id_factura_venta='{$_GET['id']}'");
$pdf->Row(array("Cant", utf8_decode("Descripción"), "Pre. Uni", "Pre. Tot"));
while ($fila = pg_fetch_row($sql)) {
    $pdf->SetX(2);
    $pdf->SetFont('Arial', '', 9);
    $descripcion = utf8_decode($fila[1]);
    if (strlen($descripcion) > 20) {
        $descripcion = substr($descripcion, 0, 15);
    }
    $pdf->SetX(2);
    $pdf->Row(array(utf8_decode($fila[0]), $descripcion, utf8_decode($fila[2]), utf8_decode($fila[3])));
}
$pdf->SetY(115);
$sql = pg_query("select tarifa0,tarifa12,iva_venta,descuento_venta,total_venta from factura_venta where id_factura_venta= '{$_GET['id']}'");
$sub0 = 0;
                $sep = -1;
                $j = $i;
                $l = 0;
                $nl++;
            } else {
                $i++;
            }
        }
        return $nl;
    }
}
$pdf = new PDF("P", "mm", "a5");
$pdf->AddPage();
$pdf->SetFont('Arial', '', 10);
//Table with 20 rows and 4 columns
$pdf->SetWidths(array(24, 90, 16, 40));
srand(microtime() * 1000000);
$subtotal = 0;
for ($i = 0; $i < count($_SESSION["basket"]); $i++) {
    $quantity = $_SESSION["basket"][$i]["quantity"];
    $price = $_SESSION["basket"][$i]["Item"]->Price;
    $pdf->Row(array($quantity . "x", $_SESSION["basket"][$i]["Item"]->Name . ": " . $_SESSION["basket"][$i]["Item"]->Description, $price * $quantity));
    $subtotal += $price * $quantity;
}
$pdf->SetFont('Arial', 'B', 12);
$pdf->MultiCell(130, 10, " Subtotal    " . iconv("UTF-8", "ISO-8859-1", "£") . $subtotal, 0, "R");
$pdf->SetFont('Arial', '', 10);
$pdf->line(10, $pdf->GetY(), 140, $pdf->GetY());
$pdf->MultiCell(130, 5, "Note: Please make sure my food is not spicy!", 0, "L");
$pdf->Ln();
$pdf->MultiCell(60, 5, "Customer Info:", 0, "L");
		
        $conn= new Conexion();
        $conn->abrirConexion();
		$conn->sql=$sql;
        $data=$conn->ejecutarSentencia(2);
		$fila_tabla=1;
				
		if ($data){
			for ($i= 0; $i < count($data); $i++){
				$pdf->SetFillColor(255,255,255);
                $pdf->SetTextColor(0);
                $pdf->SetFont('Arial','',5);
                $pdf->SetAligns(array('C', 'C','C', 'C', 'C', 'C','C', 'C', 'C', 'C', 'C', 'C', 'C', 'C','C','C','C','C'));
                $pdf->Row(array(utf8_decode(trim($data[$i]["dtmfecha_registro"])),utf8_decode(trim($data[$i]["estado"])), utf8_decode(trim($data[$i]["municipio"])), utf8_decode(trim($data[$i]["parroquia"])), $data[$i]["beneficiario"],utf8_decode(trim($data[$i]['strcedula'])),utf8_decode(trim($data[$i]["strtelefono"])),utf8_decode(trim($data[$i]['tipo']))));
			}
			$pdf->SetWidths(array(260));
			$pdf->SetAligns(array('R','R'));
			$pdf->SetFont('Arial','B',7);
			$pdf->Row(array('Total de Caficultores Registrados '.$i));
            $pdf->Output();
		}else{
            //echo "<script>alert('No existen registros para mostrar');window.close(this);</script>";
        }
        $conn->cerrarConexion();
		$pdf->Output();
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
Esempio n. 19
0
$pdf->SetFont('Arial', 'B', 7);
$pdf->Cell(0, 3, 'AIR-F-2', 0, 1, 'R');
$pdf->SetFont('Arial', '', 7);
$pdf->Cell(0, 3, utf8_decode('Página No. 7 de 10'), 0, 1, 'R');
$pdf->Cell(0, 3, utf8_decode("O.T. 916I - 2015"), 0, 1, 'R');
$pdf->Ln();
$pdf->SetTextColor(0);
$pdf->SetFont('Arial', 'B', 10);
$pdf->Cell(0, 5, utf8_decode('5. REFERENCIAS PARA LA EVALUACIÓN'), 0, 1, 'L');
$pdf->Ln();
$pdf->SetFont('Arial', '', 10);
$pdf->MultiCell(0, 5, utf8_decode("Con el propósito de evaluar los resultados de las mediciones practicadas a continuación se proporcionan los niveles mínimos de iluminación recomendados por la norma de referencia."), 0, 'J');
$pdf->Ln();
$pdf->SetFillColor(116, 144, 119);
$pdf->SetTextColor(255);
$pdf->SetWidths(array(70, 60, 35));
$pdf->SetFonts(array('B'));
$pdf->SetFontSizes(array(9));
$pdf->SetAligns(array('C', 'C', 'C'));
$pdf->Row(array(utf8_decode('TAREA VISUAL DEL PUESTO DE TRABAJO'), utf8_decode('AREA DE TRABAJO'), utf8_decode('NIVELES MÍNIMOS DE ILUMINACIÓN EN LUX')), true);
$valores = array(array('Tarea' => 'En exteriores: distinguir el área de tránsito, desplazarse caminando, vigilancia, movimiento de vehículo', 'Area' => 'Áreas generales, exteriores, patios y estacionamientos', 'Niveles' => '20'), array('Tarea' => 'En interiores distinguir el área de tránsito, desplazarse caminando, vigilancia, movimiento de vehículos', 'Area' => 'Áreas generales interiores: Almacenes de poco movimiento, pasillos, escaleras, estacionamientos cubiertos, labores en minas, iluminación de emergencia.', 'Niveles' => '50'), array('Tarea' => 'En interiores ', 'Area' => 'Áreas de circulación y pasillos; salas de espera; salas de descanso:;  cuartos de almacén;  plataformas; cuartos de calderas', 'Niveles' => '100'), array('Tarea' => 'Requerimiento visual simple: Inspección visual, recuento de piezas, trabajo en banco y máquina', 'Area' => 'Áreas de servicios al personal: Almacenaje rudo, recepción y despacho, casetas de vigilancia, cuartos de compresores y pailería', 'Niveles' => '200'), array('Tarea' => 'Distinción moderada de detalles: Ensamble simple, trabajo medio en banco y máquina, inspección simple, empaque y trabajo de oficina', 'Area' => 'Áreas de servicios al personal: Almacenaje rudo, recepción y despacho, casetas de vigilancia, cuartos de compresores y pailería', 'Niveles' => '300'), array('Tarea' => 'Distinción clara de detalles: maquinado y acabados delicados, ensamble inspección moderadamente difícil, captura y procesamiento de información, manejo de instrumentos y equipos de laboratorio', 'Area' => 'Talleres de precisión, salas de cómputo, áreas de dibujo, laboratorios', 'Niveles' => '500'), array('Tarea' => 'Distinción fina de detalles: Maquinado de precisión, ensamble e inspección de trabajos delicados, manejo de instrumentos y equipo de precisión, manejo de piezas pequeñas', 'Area' => 'Talleres de alta precisión: De pintura y acabado de superficies y laboratorios de control de calidad', 'Niveles' => '750'), array('Tarea' => 'Alta exactitud en la distinción de detalles: Ensamble, proceso e inspección de piezas pequeñas y complejas y acabado con pulidos finos', 'Area' => 'Áreas de proceso: Ensamble e inspección de piezas complejas y acabados con pulido fino', 'Niveles' => '1000'), array('Tarea' => 'Alto grado de especialización en la distinción de detalles ', 'Area' => 'Áreas de proceso de gran exactitud', 'Niveles' => '2000'));
$pdf->SetFonts(array(''));
$pdf->SetAligns(array('J', 'J', 'C'));
$pdf->SetFontSizes(array(8));
blanco($pdf);
foreach ($valores as $key => $value) {
    $pdf->noEnterRow(array(utf8_decode($value['Tarea']), utf8_decode($value['Area']), utf8_decode($value['Niveles'])));
}
$pdf->SetFont('Arial', '', 8);
$pdf->Cell(0, 5, utf8_decode('Tomado de la tabla 1 de la NOM-025-STPS-2008.'), 0, 1, 'L');
$pdf->Ln();
Esempio n. 20
0
        break;
    case 'Listo Entrega':
        $where = "Estado='Listo Entrega' and";
        break;
    case 'Entregado':
        $where = "Estado='Entregado' and";
        break;
}
$Nombres = $Nombres != "" ? "%{$Nombres}%" : "%";
$Carnet = $Carnet != "" ? "%{$Carnet}%" : "%";
$FechaInicio = $FechaInicio != "" ? "{$FechaInicio}" : "";
$FechaFin = $FechaFin != "" ? "{$FechaFin}" : "";
$where .= " Nombres LIKE '{$Nombres}' and Carnet LIKE '{$Carnet}' and FechaRegistro BETWEEN '{$FechaInicio}' and '{$FechaFin}' ";
$ven = $venta->mostrar($where, "HoraRegistro", 1);
$Nivel = $_SESSION['Nivel'];
$pdf->SetWidths(array(5, 20, 20, 25, 25, 30, 30, 20, 15, 20, 20, 15));
$pdf->Fuente("", 9);
$pdf->SetAligns(array("R", "L", "L", "", "", "", "", "L", "R", "R", "R", "C"));
if (count($ven) == 0) {
    $pdf->CuadroCuerpo(190, "Sin Ordenes");
} else {
    $total = 0;
    $PrecioTamano = 0;
    $PrecioSabores = 0;
    $PrecioExtras = 0;
    $PrecioEnvase = 0;
    $PrecioBebidas = 0;
    foreach ($ven as $v) {
        $i++;
        switch ($v['Estado']) {
            case 'Pedido':
Esempio n. 21
0
//$fila = mysql_fetch_array($historial);
$pdf->SetFont('Arial', '', 8);
$pdf->SetTextColor(220, 50, 50);
$pdf->cell(222, -10, 'Recibo No [' . $id . ' ]', 0, 0, 'C');
$pdf->Ln(1);
$pdf->SetFont('Arial', '', 10);
//$pdf->SetWidths(array(150, 90));
//$pdf->SetFillColor(255,255,255);
$pdf->SetTextColor(2);
//$pdf->Row(array('Comprador:'.$p , 'Fecha: '.$f), 0);
$pdf->Cell(0, 6, 'Atendio: ', 0, 1);
$pdf->Cell(0, 6, 'Fecha: ', 0, 1);
$pdf->Cell(0, 6, 'Comprador: ', 0, 1);
$pdf->Ln(2);
$pdf->SetFont('Arial', '', 10);
$pdf->SetWidths(array(100, 20, 30, 30));
$pdf->SetFillColor(255, 255, 255);
$pdf->SetTextColor(2);
$pdf->Row(array('Descripcion', ' Cantidad', 'Precio Unit', 'Precio'), 0);
$pdf->Row(array('', ' ', ' ', ''), 0);
$pdf->Row(array('', ' ', ' Total_', ''), 0);
//$miarreglo = $m;
//error con los
//$miarreglo = explode (' ',$miarreglo);
//$pdf->Cell(0,50, $m,1,1);
//$pdf->Ln(5);
//$pdf->Cell(0,6, 'Observaciones: ',0,1);
//$pdf->Cell(0,50, $o,1,1);
//$pdf->Cell(0,6, $miarreglo[1],0,1);
//$pdf->Cell(0,6, $miarreglo[2],0,1);
$pdf->Output();
Esempio n. 22
0
         $this->SetFont('Arial', 'B', 8);
         $this->Cell(100, 10, 'Angytours Rooming List ', 0, 0, 'L');
     }
 }
 $pdf = new PDF("L");
 $pdf->Open();
 $pdf->AddPage();
 $pdf->setY(10);
 $pdf->setX(100);
 $pdf->Cell(60, 8, "Rooming List Correspondiente a: ", 0, 1);
 $pdf->setX(120);
 $pdf->Cell(60, 8, "Grupo " . utf8_decode($NombreGrupo) . " al " . utf8_decode($nombreHotel) . " del " . $FechaIn . " al " . $FechaOut, 0, 0);
 $pdf->SetMargins(20, 20, 20);
 $pdf->Ln(10);
 $pdf->setX(8);
 $pdf->SetWidths(array(8, 80, 15, 20, 20, 15, 75, 50));
 $pdf->SetFont('Arial', 'B', 8);
 $pdf->SetFillColor(85, 107, 47);
 $pdf->SetTextColor(255);
 for ($i = 0; $i < 1; $i++) {
     $pdf->Row(array('Hab', 'Pasajeros', 'TipoHab', 'Entrada', 'Salida', 'Adultos', 'Menores', 'Observaciones'));
 }
 $strConsulta = "SELECT \n\tNumeroHab as Hab,\n\t NombreTitular as Pasajeros,\n\t  NombreA as NombreA,\n\t   Menores as Menores,\n\t    Observaciones as Observaciones,\n\t     TipoHab as TipoHab,\n\t     EdadesMenores as Edades,\n\t    \tcantAdultos as Adultos,\n\t    \t`ventagrupo`.`FechaIn` as Entrada,\n\t    \t`ventagrupo`.`FechaOut` as Salida\n\t       FROM cuponesgrupo LEFT JOIN ventagrupo ON `cuponesgrupo`.`FolioGrupoC` = `ventagrupo`.`FolioGrupo`\n\t\twhere FolioGrupoC = '{$FolioGrupo}'";
 $historial = mysql_query($strConsulta) or die(mysql_error());
 $numfilas = mysql_num_rows($historial);
 for ($i = 0; $i < $numfilas; $i++) {
     $fila = mysql_fetch_array($historial);
     $pdf->SetFont('Arial', '', 8);
     $pdf->setX(8);
     if ($i % 2 == 1) {
         $pdf->SetFillColor(153, 255, 153);
Esempio n. 23
0
        $this->TituloCabecera(20, "FechaIngreso", 8);
        $this->TituloCabecera(30, "Cliente", 8);
        $this->TituloCabecera(25, "Tipo Cristal", 8);
        $this->TituloCabecera(25, "Armazon", 8);
        $this->TituloCabecera(25, "Tipo Cristal", 8);
        $this->TituloCabecera(25, "Armazon", 8);
        $this->TituloCabecera(15, "Monto Bs", 8);
        $this->TituloCabecera(15, "ACta Bs", 8);
        $this->TituloCabecera(15, "ACta \$us", 8);
        $this->TituloCabecera(15, "SaldoCobrar", 7);
        $this->TituloCabecera(30, "Observación", 8);
    }
}
$pdf = new PDF("L", "mm", "letter");
$pdf->AddPage();
$pdf->SetWidths(array(15, 20, 30, 25, 25, 25, 25, 15, 15, 15, 15, 30));
$pdf->Fuente("", 9);
$pdf->SetAligns(array("R", "R", "", "", "", "", "", "R", "R", "R", "R", "L", "R"));
$TTotalBs = 0;
foreach ($opt as $o) {
    $pac = $paciente->MostrarRegistro($o['CodPaciente']);
    $pac = array_shift($pac);
    $prod1 = $producto->MostrarRegistro($o['CodProducto1']);
    $prod1 = array_shift($prod1);
    $prod2 = $producto->MostrarRegistro($o['CodProducto2']);
    $prod2 = array_shift($prod2);
    $prod3 = $producto->MostrarRegistro($o['CodProducto3']);
    $prod3 = array_shift($prod3);
    $prod4 = $producto->MostrarRegistro($o['CodProducto4']);
    $prod4 = array_shift($prod4);
    $prodtipo = $productotipo->MostrarRegistro($o['CodProductoTipo']);
Esempio n. 24
0
 public function imprimirgastostransporte($id)
 {
     if (isset($id) && is_numeric($id)) {
         $Gastos = $this->informes_model->TraeGastosTransporte($id);
         if (!is_null($Gastos)) {
             if ($Gastos->num_rows() == 0) {
                 redirect(site_url(), 'refresh');
             }
         } else {
             redirect(site_url(), 'refresh');
         }
     } else {
         redirect(site_url(), 'refresh');
     }
     $pdf = new PDF();
     $pdf->AddPage();
     $Detalle = $this->informes_model->TraeRegistro($id, 'GT');
     $pdf->Image(base_url('public/images/logo.jpg'), 10, 15, 70, 15);
     $pdf->SetFont('Arial', 'B', 10);
     #ENCABEZADO
     $pdf->Text(180, 45, 'DO-69-F');
     $pdf->Text(70, 48, 'FORMATO REPORTE GASTOS DE TRANSPORTE');
     $pdf->Text(75, 55, 'FUNDACIÓN UNIVERSITARIA MARÍA CANO');
     $pdf->Text(78, 60, 'PROGRAMA DE INGENIERÍA DE SISTEMAS');
     $pdf->SetFont('Arial', '', 10);
     $pdf->Text(10, 65, 'Período: ' . (date('m', strtotime($Detalle->FECHA_REGISTRO)) > 6 ? 2 : 1) . ' Semestre ' . date('Y', strtotime($Detalle->FECHA_REGISTRO)));
     $pdf->Text(10, 75, 'Páguese a nombre de: ' . $this->session->userdata('NOMBRE_USUARIO') . '   C.C ' . number_format($this->session->userdata('DOCUMENTO'), 0, ',', ','));
     #Headers
     $pdf->SetFont('Arial', 'B', 9);
     $pdf->SetXY(5, 82);
     $pdf->Cell(25, 10, 'FECHA', 1, 0, 'C');
     $pdf->SetXY(30, 82);
     $pdf->Cell(50, 10, 'LUGAR', 1, 0, 'C');
     $pdf->SetXY(80, 82);
     $pdf->Cell(40, 10, 'ACTIVIDAD', 1, 0, 'C');
     $pdf->SetXY(120, 82);
     $pdf->MultiCell(34, 5, 'NÚMERO DE DESPLAZAMIENTOS', 1, 'C');
     $pdf->SetXY(154, 82);
     $pdf->MultiCell(25, 5, 'VALOR UNITARIO', 1, 'C');
     $pdf->SetXY(179, 82);
     $pdf->MultiCell(27, 10, 'VALOR TOTAL', 1, 'C');
     $pdf->SetFont('Arial', '', 9);
     $pdf->SetWidths([25, 50, 40, 34, 25, 27]);
     $pdf->SetAligns(['C', 'C', 'C', 'C', 'C']);
     $Total = 0;
     foreach ($Gastos->result() as $gasto) {
         $pdf->SetX(5);
         $pdf->Row([Fecha($gasto->FECHA_GASTO), utf8_encode($gasto->LUGAR), utf8_encode($gasto->ACTIVIDAD), $gasto->NUMERO_DESPLAZAMIENTOS, number_format($gasto->VALOR_UNITARIO, 0, '', ','), number_format($gasto->VALOR_TOTAL, 0, '', ',')]);
         $Total += $gasto->VALOR_TOTAL;
     }
     $pdf->SetFont('Arial', 'B', 9);
     $pdf->SetX(5);
     $pdf->Row(['', '', '', '', 'Total', number_format($Total, 0, '', ',')]);
     #Footer
     $pdf->Text(25, $pdf->GetY() + 20, 'Firma Coordinador de Práctica');
     $pdf->Line(10, $pdf->GetY() + 15, 90, $pdf->GetY() + 15);
     $pdf->Text(140, $pdf->GetY() + 20, 'CENTRO DE PRÁCTICAS');
     $pdf->Output();
     $pdf->Cell($pdf->PageNo());
 }
Esempio n. 25
0
 $pdf->Cell(195, 5, utf8_decode('USUARIO: ') . $user, 0, FALSE, 'C');
 $pdf->Ln(3);
 $pdf->Cell(195, 6, utf8_decode('CRITERIOS DE BUSQUEDA'), 0, FALSE, 'C');
 $pdf->Ln(3);
 $pdf->Cell(195, 7, utf8_decode('MONTO DEL PROYECTO: ') . $montodato, 0, FALSE, 'C');
 $pdf->Ln(3);
 $pdf->Cell(195, 8, utf8_decode('UBICACION DEL PROYECTO: ') . $departamento, 0, FALSE, 'C');
 $pdf->Ln(4);
 $pdf->Cell(195, 8, utf8_decode('DATOS TOMADOS DE LOS ') . $anios . utf8_decode(' ULTIMOS AÑOS DE EXPERIENCIA'), 0, FALSE, 'C');
 $pdf->Ln(4);
 $pdf->Cell(195, 8, utf8_decode('RELACION EXPERIENCIA GENERAL : ESPECIFICA (') . $dato11 . ':' . $dato12 . ')', 0, FALSE, 'C');
 $style = array('width' => 1, 'cap' => 'butt', 'join' => 'miter', 'dash' => '10, 20, 5, 10', 'phase' => 30, 'color' => array(255, 0, 0));
 $pdf->Ln(3);
 $pdf->Line(15, 60, 195, 60, $style);
 $pdf->Ln(10);
 $pdf->SetWidths(array(10, 120));
 $pdf->SetAligns(array('L', 'L'));
 //$pdf->Row(array());
 $pdf->SetFont('helvetica', '', 8);
 $stmt = $dbh->prepare($sql);
 $stmt->execute();
 $data = array();
 $cont = 0;
 $header = array('ENTIDAD', 'NIT', 'MATRICULA', 'TELEFONO', 'CORREO', 'MONTO_GEN', 'MONTO_ESP', 'TIEMPO_GEN', 'TIEMPO_ESP');
 while ($rs = $stmt->fetch(PDO::FETCH_ASSOC)) {
     //$data[] = array($rs[nombre_proponente],$rs[nit],$rs[matricula],$rs[celular],$rs[mail],$rs[montog],$rs[montoesp],$rs[tiempomeses]);
     $entidad = $rs['nombre_proponente'];
     $nit = $rs['nit'];
     $matricula = $rs['matricula'];
     $telefono = $rs['celular'];
     $correo = $rs['mail'];
Esempio n. 26
0
 private function imprimirregistronotas()
 {
     $Notas = $this->seguimientos_model->TraeCalificaciones();
     $this->load->library('fpdf/pdf');
     $pdf = new PDF();
     $pdf->AddPage();
     $pdf->Image(base_url('public/images/logo.jpg'), 10, 15, 60, 15);
     $pdf->SetFont('Arial', 'B', 10);
     #ENCABEZADO
     //$pdf->SetXY(10,35);
     $pdf->Text(180, 35, 'D0-68-F');
     $pdf->Text(85, 40, 'FORMATO REGISTRO DE NOTAS');
     $pdf->Text(80, 50, 'FUNDACIÓN UNIVERSITARIA MARÍA CANO');
     $pdf->Text(83, 55, 'PROGRAMA: ' . Ucspecial(strtoupper($this->input->post('PROGRAMA'))));
     $pdf->Text(10, 66, 'MOMENTO EVALUATIVO: PRIMER Y SEGUNDO MOMENTO');
     $pdf->Text(150, 66, 'FECHA: ' . FechaFormal(date('Y-m-d'), false));
     $pdf->Text(10, 73, 'ASESOR: ' . Ucspecial($this->session->userdata('NOMBRE_USUARIO')));
     $pdf->SetFont('Arial', 'B', 9);
     #Headers
     $pdf->SetXY(5, 82);
     $pdf->Cell(50, 8, 'NOMBRES Y APELLIDOS', 1, 0, 'C');
     $pdf->SetXY(55, 82);
     $pdf->Cell(30, 8, 'CÓDIGO', 1, 0, 'C');
     $pdf->SetXY(85, 82);
     $pdf->Cell(30, 8, 'NIVEL PRÁCTICA', 1, 0, 'C');
     $pdf->SetXY(115, 82);
     $pdf->Cell(45, 8, 'AGENCIA PRÁCTICA', 1, 0, 'C');
     $pdf->SetXY(160, 82);
     $pdf->Cell(15, 8, 'NOTA 1', 1, 0, 'C');
     $pdf->SetXY(175, 82);
     $pdf->Cell(15, 8, 'NOTA 2', 1, 0, 'C');
     $pdf->SetXY(190, 82);
     $pdf->Cell(15, 8, 'DEF', 1, 0, 'C');
     $pdf->SetWidths([50, 30, 30, 45, 15, 15, 15]);
     $pdf->SetAligns(['C', 'C', 'C', 'C', 'C', 'C', 'C']);
     $pdf->SetFont('Arial', '', 9);
     $pdf->SetXY(5, 90);
     foreach ($Notas as $nota) {
         $pdf->SetX(5);
         $pdf->Row([utf8_encode($nota['NOMBRE_PRACTICANTE']), $nota['CODIGO'], utf8_encode($nota['MODALIDAD']), utf8_encode($nota['NOMBRE_AGENCIA']), $nota['NOTA1'], $nota['NOTA2'], number_format(($nota['NOTA1'] + $nota['NOTA2']) / 2, 1)]);
     }
     $pdf->SetFont('Arial', 'B', 9);
     #Footer
     $pdf->Text(12, $pdf->GetY() + 20, 'FIRMA DOCENTE:');
     $pdf->Line(132, $pdf->GetY() + 20, 42, $pdf->GetY() + 20);
     $pdf->Text(135, $pdf->GetY() + 20, 'CENTRO DE PRÁCTICAS');
     $pdf->SetFont('Arial', 'B', 10);
     $pdf->Output();
     $pdf->Cell($pdf->PageNo());
 }