$nombrecompletoestudiante = utf8_decode($estudiante->datosestudiante[Nombres] . " " . $estudiante->datosestudiante[Apellidos]);
$telefonoestudiante = $estudiante->datosestudiante[Telefono];
$programa = new Programa($estudiante->datosestudiante[Acu_nino]);
$nombreprograma = $programa->sel_nombre_programa($_POST[idprograma]);
$nivel = new Nivel();
$recibonombrenivel = $nivel->sel_nombre_nivel($nivelgrupo);
$grupo->sel_grupo($indicegrupo);
$reciboSede = $grupo->datosgrupo[Sede];
$recibohorario = $grupo->datosgrupo[dias] . " " . $grupo->datosgrupo[horas];
$pdf->SetDash(1, 1);
//5mm on, 5mm off
$pdf->Line(0, 92.5, 216, 93);
$pdf->Line(0, 185, 216, 185);
$pdf->SetDash();
$cadena = "BANCO DE OCCIDENTE CUENTA 230864282";
$pdf->SetFont("Arial", "", 8);
$coorx = $longitud + 12;
$longitud = $pdf->GetStringWidth($cadena);
$pdf->SetXY($coorx, 20);
$pdf->Cell($longitud, 2, $cadena);
$cadena = "-ILUD-";
$pdf->SetFont("Arial", "B", 10);
$coorx = $longitud;
$longitud = $pdf->GetStringWidth($cadena);
$pdf->SetXY($coorx, 6);
$pdf->Cell($longitud, 2, $cadena);
$cadena = "Instituto de lenguas de la";
$pdf->SetFont("Arial", "", 10);
$coorx = $longitud + 28;
$longitud = $pdf->GetStringWidth($cadena);
$pdf->SetXY($coorx, 10);
Esempio n. 2
0
<?php

require 'functions.php';
require 'pdf/invoice.php';
$ex = explode('-', decrypt($_GET['id']));
$id_invoice = $ex[0];
$res = mysql_query("select * from invoices where id='" . $id_invoice . "'") or die(mysql_error());
$info = mysql_fetch_array($res);
$pdf = new PDF_Invoice('P', 'mm', $cfg['size']);
$pdf->AddPage();
$pdf->AddFont('LucidaSansUnicode', '', 'lsansuni.php');
$pdf->SetFont('LucidaSansUnicode', '', 12);
if ($cfg['display_logo']) {
    $pdf->Image(str_replace('inc', '', dirname(__FILE__)) . $cfg['logo'], 75, 15, 50);
}
$pdf->addSociete($cfg['name'], $cfg['name'] . "\n" . $cfg['website'] . "\n" . $cfg['lang_bank'] . ": " . $cfg['bank_name'] . "\n" . $cfg['lang_bank_account'] . ": " . $cfg['bank_account'] . "\n" . $cfg['address']);
$pdf->fact_dev($cfg['name']);
if ($cfg['watermark']) {
    $pdf->temporaire($cfg['watermark']);
}
$pdf->addDate(date('d/m/Y', $info['date']));
$pdf->addClient("#" . $info['id']);
$pdf->addPageNumber("1");
$pdf->addClientAdresse($info['client_name'] . "\n" . $info['client_address'] . "\n" . $info['client_location']);
$pdf->addReglement($info['payment_method']);
$pdf->addEcheance(date('d/m/Y', $info['date']));
$rex = mysql_query("SELECT SUM(amount) as total FROM payments WHERE invoice='" . $info['id'] . "'") or die(mysql_error());
$r = mysql_fetch_array($rex);
if ($r['total'] < $info['total'] && $r['total'] > 0) {
    $p = $cfg['lang_partial'];
} elseif ($r['total'] == 0) {
Esempio n. 3
0
$pdf->addCadenaOriginal($f->cadenaoriginal);
$xml = split('"', $f->xml);
//echo $cosa[19];
$pdf->addSelloOriginal($xml[19]);
//$pdf->addSerie("15");
//$pdf->addEcheance("03/12/2003");
//$pdf->addNumTVA("FR888777666");
$pdf->addReference("");
# estaba IMPORTE 30
$cols = array("CANTIDAD" => 30, "CONCEPTO" => 110, "IMPORTE" => 50);
$pdf->addCols($cols);
$cols = array("CANTIDAD" => "C", "CONCEPTO" => "L", "IMPORTE" => "R");
$pdf->addLineFormat($cols);
$conceptos = split('Concepto', $f->xml);
$y = 95;
$pdf->SetFont("Arial", "B", 7);
$subtgeneral = 0;
for ($i = 2; $i < count($conceptos) - 1; $i++) {
    $arreline = split('"', $conceptos[$i]);
    $line = array("CANTIDAD" => $arreline[1], "CONCEPTO" => $arreline[3] != "" ? $arreline[3] : "GUIA", "IMPORTE" => number_format($arreline[7], 2, '.', ','), "" => "");
    // echo "$arreline[1] $arreline[3] $arreline[7]<br>";
    // echo "pdf -> addLine( $y, $line )<br>";
    $subtgeneral += $arreline[7];
    $size = $pdf->addLine($y, $line);
    $y += $size + 2;
}
$linetotales = split('Traslado', $f->xml);
//echo $linetotales[2];
$arrelinetotales = split('"', $linetotales[2]);
//echo "xxxxx".$arrelinetotales[1];
$subtotal = $subtgeneral;
Esempio n. 4
0
$pdf->addReglement9("Población: " . $f->p1 . ", " . $f->e1);
$pdf->addReglement10("RFC: " . $f->rfc);
// --------------------------------$pdf->addCadenaOriginal($f->cadenaoriginal);
$xml = split('"', $f->xml);
//echo $cosa[19];
//---------------------------------$pdf->addSelloOriginal($xml[19]);
//$pdf->addSerie("15");
//$pdf->addEcheance("03/12/2003");
//$pdf->addNumTVA("FR888777666");
$pdf->addReference("");
# estaba IMPORTE 30
$cols = array("CANTIDAD" => 30, "CONCEPTO" => 110, "IMPORTE" => 50);
$pdf->addCols($cols);
$cols = array("CANTIDAD" => "C", "CONCEPTO" => "L", "IMPORTE" => "R");
$pdf->addLineFormat($cols);
$pdf->SetFont("Arial", "", 7);
$conceptos = split('Concepto', $f->xml);
$y = 95;
$subtgeneral = 0;
$guias = "";
$cantidad = 0;
$elimporte = 0;
$filas = 0;
$cabeceraPuesta = false;
$paginas = 0;
if (count($conceptos) >= 17) {
    for ($i = 2; $i < count($conceptos) - 1; $i++) {
        $cabeceraPuesta = false;
        $arreline = split('"', $conceptos[$i]);
        if ($guias != "") {
            $guias .= ",";