$pdf->SetFont("Arial", "B", 10); $pdf->SetXY(60, 52); $pdf->Cell($longitud, 2, "TOTAL A PAGAR"); $pdf->SetXY(113, 52); $pdf->Cell($longitud, 2, "\$ {$valortotal}"); $pdf->SetFont("Arial", "B", 5); $pdf->SetXY(158, 40); $pdf->Cell($longitud, 2, utf8_decode("-PAGUE ÚNICAMENTE EN EFECTIVO-")); $pdf->SetFont("Arial", "B", 6); $pdf->SetXY(67, 85); $pdf->Cell($longitud, 2, "-COPIA BANCO-"); $pdf->SetFont("Arial", "", 7); $pdf->SetXY(154, 85); $pdf->Cell($longitud, 2, "-Espacio para timbre o sello del Banco-"); //Imagenes $pdf->Image("codigos_barras/{$numatricula}.png", 11, 60, 132); $pdf->Image("Ilud.jpg", 16, 7, 18); $pdf->Image("escudo.gif", 188, 5, 18); $pdf->Image("codigos_barras/{$numatricula}.png", 11, 154, 132); $pdf->Image("Ilud.jpg", 16, 99, 18); $pdf->Image("escudo.gif", 188, 97, 18); $pdf->Image("Ilud.jpg", 16, 192, 18); $pdf->Image("escudo.gif", 188, 190, 18); //Segundo $pdf->RoundedRect(10, 95, 200, 87, 5); $cadena = "BANCO DE OCCIDENTE CUENTA 230864282"; $pdf->SetFont("Arial", "", 8); $coorx = $longitud - 3; $longitud = $pdf->GetStringWidth($cadena); $pdf->SetXY($coorx, 112); $pdf->Cell($longitud, 2, $cadena);
mkdir($contrat); } //************************// $pdf = new PDF_Invoice('P', 'mm', 'A4'); $pdf->AddPage(); /*$pdf->addSociete( "$nom_client", "$adresse_client\n" . "75000 PARIS\n". "R.C.S. PARIS B 000 000 007\n" . "Capital : 18000" );*/ $pdf->addSiege("Siege Social:", "12bis Av. Tarak Ibn Ziad.\n" . "El Menzah V\n" . "2037 Ariana - Tunisie", "TEL"); //$pdf->fact_dev( "Constrat ", "TEMPO" ); $pdf->cont_loc("CONTRAT DE LOCATION\n" . "DE\n" . "MATERIEL MEDICAL {$ref}"); $pdf->clausecontrattxt(">> Clauses du Contrat au Verso >>"); //$pdf->addDate( "$today"); $pdf->Image('img/Sigle.jpg', 27, 5, -680); $pdf->Image('img/LOGO.jpg', 10, 5, -680); //$pdf->addClient("CL01"); //$pdf->addPageNumber("1"); $pdf->addClientAdresse("Nom : {$nom_client} \nAdresse : {$adresse_client} \nTel : {$tel_client} \nGSM : {$gsm_client} \nCIN N : {$cin_client} - Tunis,le : {$date_cin}"); $pdf->addbenificiaire("M/Mme : {$nom_ben}\nAdresse : {$adresse_ben}\nTel : {$tel_ben}\nCIN N : {$cin_ben}"); $pdf->totalettctva($total_htva, $total_tva, $total_ttc, $total_caution); //$accompte=300; $pdf->Accompte($accompte); $pdf->transport($transport); $let = strtoupper(int2str($total_ttc)); $pdf->contratenttelettre("{$let}"); $cols = array("Ord." => 11, "DESIGNATION" => 70, "Periode" => 20, "Qte" => 9, "P.U. HT" => 25, "MT H.T." => 27, "Caution/Unite" => 28); $pdf->addCols2($cols); $cols = array("Ord." => "L", "DESIGNATION" => "L", "Periode" => "C", "Qte" => "C", "P.U. HT" => "R", "MT H.T." => "R", "Caution/Unite" => "C"); $y = 109;
<?php // (c) Xavier Nicolay // Exemple de gnration de devis/facture PDF require 'CNumeroaLetra.php'; require 'invoice.php'; require "../ConectarSolo.php"; $l = Conectarse("webpmm"); $pdf = new PDF_Invoice('P', 'mm', 'A4'); $pdf->AddPage(); $pdf->Image('logo.jpg', 10, 8, 33); /*$pdf->addSociete( "Paqueteria y Mensajeria en Movimiento", "Ofna. Matriz Fco. Serrano No 2316-306 Tel:(669) 985 48 11\n" . "C.P.:82000 Col. Centro, Mazatlan, Sinaloa\n". "R.F.C. PMM-900725-698\n" . "Contribuyente del Regimen de Transparencia");*/ //$pdf->fact_dev("Certificado", "01234567890123456789" ); //$pdf->temporaire( "Devis temporaire" ); /*$pdf->addDate(date('d/m/Y')); $pdf->addClient("CL01"); $pdf->addPageNumber("1");*/ //$pdf->addClientAdresse("Este Documento es una impresin de un Comprobante Fiscal Digital"); /*$pdf->addReglement("Paqueteria y Mensajeria en Movimiento S.A. de C.V."); $pdf->addReglement1("Ofna. Matriz Fco. Serrano No 2316-306"); $pdf->addReglement2("Tel:(669) 985 48 11 C.P.:82000"); $pdf->addReglement3("Col. Centro, Mazatlan, Sinaloa"); $pdf->addReglement4("R.F.C. PMM-900725-698");*/ $s = "SELECT UCASE(eti_nombre1) eti_nombre1, UCASE(eti_nombre2) eti_nombre2, UCASE(eti_direccion) eti_direccion, \nUCASE(eti_colonia) eti_colonia, UCASE(eti_ciudad) eti_ciudad, UCASE(eti_rfc) eti_rfc\nFROM configuradorgeneral"; $r = mysql_query($s, $l) or die($s); $f = mysql_fetch_object($r); $pdf->addReglement("Razón Social: " . strtoupper($f->eti_nombre1));
<?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) {
<?php require '../inc/pdf/invoice.php'; if (!$_SESSION['logged']) { die; } $id = $_GET['id']; $res = mysql_query("select * from invoices where id='" . $_GET['id'] . "'") or die(mysql_error()); $info = mysql_fetch_array($res); $pdf = new PDF_Invoice('P', 'mm', 'letter'); $pdf->AddPage(); $pdf->Image('../style/images/logo.png', 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) { $p = $cfg['lang_unpaid']; } elseif ($r['total'] > $info['total']) { $p = $cfg['lang_paid'];
} //************************// $pdf = new PDF_Invoice('P', 'mm', 'A4'); $pdf->AddPage(); /*$pdf->addSociete( "MedicA Shop", "MonAdresse\n" . "75000 PARIS\n". "R.C.S. PARIS B 000 000 007\n" . "Capital : 18000" );*/ $pdf->addreflit("REF. DU LIT : " . "MM2- L" . $reflit . " - S", "REF. MOTEUR PRINCIPAL : " . "MM2- L" . $refmoteurpr . " - MP", "REF. MOTEUR R-B : " . "MM2- L" . $refmoteurpr . " - MA", "REF. TELECOMMANDE : " . "MM2- L" . $reftelecommande . " - MC"); //$pdf->fact_dev( "Constrat ", "TEMPO" ); $pdf->fact_dev("CONTRAT LIT DE LOCATION"); $pdf->temporaire("Technique"); $pdf->addDate("{$today}"); $pdf->addEtat("{$etatlitdesc}"); $pdf->Image('img/Sigle.jpg', 10, 10, -360); //$pdf->addClient("CL01"); //$pdf->addPageNumber("1"); //$pdf->addClientAdresse("Ste\nM. XXXX\n3�me �tage\n33, rue d'ailleurs\n75000 PARIS"); //$pdf->addReglement("Ch�que � r�ception de facture"); //$pdf->addEcheance("03/12/2003"); //$pdf->addNumTVA("FR888777666"); //$pdf->addReference("Devis ... du ...."); $cols = array("ETATS" => 67, "OBSERVATIONS" => 142); $pdf->addCols($cols); $cols = array("ETATS" => "L", "OBSERVATIONS" => "C"); $pdf->addLineFormat($cols); $pdf->addLineFormat($cols); $y = 109; $line = array("ETATS" => "ETAT DE LA BASE DU LIT", "OBSERVATIONS" => "{$etatbase}"); $size = $pdf->addLine($y, $line);