function testpdf() { $this->load->library('fpdf'); $this->fpdf->FPDF('P', 'cm', 'A4'); $this->fpdf->AddPage(); //$this->fpdf->SetFont('Arial','',10); $this->fpdf->setFont('Arial', 'B', 9); $teks = "Ini hasil Laporan PDF menggunakan Library FPDF di CodeIgniter"; $this->fpdf->Cell(3, 0.5, $teks, 1, '0', 'L', true); // $this->fpdf->setFont('Arial','B',7); $this->fpdf->Text(8, 1.9, 'Jl.Zambrud I No.35 Sumur Batu - Jakarta Pusat'); $this->fpdf->Line(15.6, 2.1, 5, 2.1); $this->fpdf->Text(8, 1.9, 'Jl.Zambrud I No.35 Sumur Batu - Jakarta Pusat'); //$this->fpdf->Ln(); $this->fpdf->Output(); $this->load->library('pdf'); $pdf = new PDF(); $pdf->SetMargins(1, 1); $pdf->AddPage(); $pdf->SetFont('Arial', 'B', 14); $pdf->Cell(0, 0.5, 'Hellol Ci', 0, 1, 'C'); $pdf->Output(); /* $this->load->library('fpdf'); $this->fpdf->FPDF('P','cm','A4'); $this->fpdf->Ln(); $this->fpdf->setFont('Arial','B',9); $this->fpdf->Text(7.5,1,"DAFTAR PENJUALAN BULAN "); $this->fpdf->setFont('Arial','B',9); $this->fpdf->Text(8.3,1.5,'KOMUNITAS MUSISI INDONESIA'); $this->fpdf->setFont('Arial','B',7); $this->fpdf->Text(8,1.9,'Jl.Zambrud I No.35 Sumur Batu - Jakarta Pusat'); $this->fpdf->Line(15.6,2.1,5,2.1); $this->fpdf->ln(1.6); $this->fpdf->ln(0.3); $this->fpdf->Output(); */ }
public function index() { $pdf = new PDF(); $pdf->AliasNbPages(); $pdf->AddPage(); $pdf->SetFont('Times', '', 12); for ($i = 1; $i <= 40; $i++) { $pdf->Cell(0, 10, 'Printing line number ' . $i, 0, 1); } $pdf->Output(); }
function index() { // Instanciation of inherited class $pdf = new PDF(); $pdf->AliasNbPages(); $pdf->AddPage(); $pdf->SetFont('Times', '', 12); for ($i = 1; $i <= 40; $i++) { $pdf->Cell(0, 10, 'Printing line number ' . $i, 0, 1); } $pdf->Output(); }
function __construct($datos) { $pdf = new PDF(); // [ Establesco Todos los datos que conendra la Factura ] $pdf->set_data($datos); $pdf->FPDF('P', 'mm', 'Letter'); // Esta funcion la uso cuando voy a imprimir al final el numero de la paguina $pdf->AliasNbPages(); $pdf->AddPage(); $pdf->SetFont('Arial', '', 12); //$pdf->SetTextColor(20,20,250); COLOR AZUL $pdf->SetTextColor(0, 0, 0); $pdf->menbrete(); $pdf->detalle($datos['productos']); $pdf->Output(); }
function relatorioDisciplinasPorCurso($id) { $pdf = new PDF("P", "pt", "A4"); $pdf->AddPage(); $pdf->SetFont('Arial', 'B', 16); $polo = new Polo(); $polo->setId($id); $polo = $polo->getById(); $pdf->Cell(40, 10, $polo->getNome()); $cabeçalhoTabela = array('Disciplina', 'Nome Tutor', 'Sobrenome Tutor'); $curso = new Curso(); $cursos = $curso->read(); foreach ($cursos as $curso) { if ($curso->getPolo()->getId() != $id) { continue; } $pdf->setVendedor($curso->getNome() . " - " . $curso->getTipo()['descricao']); $pdf->AddPage(); $disciplinaDao = new DisciplinaDao(); $array = $disciplinaDao->listDisciplinasTutoresByCurso($curso); $pdf->BasicTable($cabeçalhoTabela, $array); } $pdf->Output(); }
//Page number $this->Line(10, 281, 200, 281); $this->Cell(0, 3, 'Emitido por: ' . $usuarioNome); } } //Instancia a classe gerador de pdf $pdf = new PDF(); //Define os atributos de propriedade do arquivo PDF $pdf->SetCreator('work | eventos'); $pdf->SetAuthor($usuarioNome . " - " . $empresaNome); $pdf->SetTitle('Relação de Momentos de Repertório'); $pdf->SetSubject('Relatório gerado automaticamente pelo sistema'); $pdf->AliasNbPages(); $pdf->AddPage(); //Títulos das colunas $pdf->SetFont('Arial', 'B', 10); //Define a cor RGB do fundo da celula $pdf->SetFillColor(178, 178, 178); //Faz a célula ser preenchida. Isso é feito setando 1 após a expressao de alinhamento $pdf->Cell(0, 6, 'Descrição do Momento de Repertório', 1, 0, 'L', 1); $pdf->SetX(170); $pdf->Cell(0, 6, 'Ativo'); //Monta as linhas com os dados da query $pdf->SetFont('Arial', '', 10); while ($dados = mysql_fetch_array($sql)) { switch ($dados[ativo]) { case 0: $ativo = "Inativo"; break; case 1: $ativo = "Ativo";
} elseif ($highest_tt == 5) { $protected = 1; } else { $antigen = 'TT' . $highest_tt; $q_diff = mysql_query("SELECT consult_id FROM m_consult_mc_vaccine WHERE patient_id='{$pxid}' AND vaccine_id='{$antigen}' AND (TO_DAYS('{$pxedc}')-TO_DAYS(actual_vaccine_date)) <= '{$tt_duration[$highest_tt]}'") or die("Cannot query: 2399"); if (mysql_num_rows($q_diff) != 0) { $protected = 1; } } $tt_stat = 'TT' . $highest_tt . '*'; $tt_stat .= $protected == 1 ? 'Active' : 'Not Active'; $tt_stat .= '*' . $date_tt; return $tt_stat; } function Footer() { //Position at 1.5 cm from bottom $this->SetY(-15); //Arial italic 8 $this->SetFont('Arial', 'I', 8); //Page number $this->Cell(0, 10, $this->PageNo() . '/{nb}', 0, 0, 'C'); } } $_SESSION[pahina] = $page == 1 ? 1 : 2; $pdf = new PDF('L', 'mm', 'Legal'); $pdf->AliasNbPages(); $pdf->SetFont('Arial', '', 10); $pdf->AddPage(); $_SESSION[pahina] == 1 ? $pdf->show_ccdev1() : $pdf->show_ccdev2(); $pdf->Output();
} else { $array = $Form->get_row($_GET['from_date'], $_GET['to_date'], $_GET['type_periode']); } } else { // yes with step //-- for ($e = $_GET['from_periode']; $e <= $_GET['to_periode']; $e += $_GET['p_step']) { $periode = getPeriodeName($cn, $e); if ($periode == null) { continue; } $array[] = $Form->get_row($e, $e, 'periode'); $periode_name[] = $periode; } } $pdf->SetFont('DejaVuCond', '', 8); // without step if ($step == 0) { if ($_GET['type_periode'] == 0) { $q = getPeriodeName($cn, $from_periode); if ($from_periode != $to_periode) { $periode = sprintf("Période %s à %s", $q, getPeriodeName($cn, $to_periode)); } else { $periode = sprintf("Période %s", $q); } } else { $periode = sprintf("Date %s jusque %s", $_GET['from_date'], $_GET['to_date']); } $pdf->Cell(0, 7, $periode, 'B'); $pdf->Ln(); for ($i = 0; $i < count($array); $i++) {
$this->Cell(8 / 100 * $width, $height, $_SESSION['lang']['tgltanam'] . " " . substr($_SESSION['lang']['afkirbibit'], 5), 1, 0, 'C', 1); $this->Cell(8 / 100 * $width, $height, $_SESSION['lang']['umur'], 1, 1, 'C', 1); } function Footer() { $this->SetY(-15); $this->SetFont('Arial', 'I', 8); $this->Cell(10, 10, 'Page ' . $this->PageNo(), 0, 0, 'C'); } } $pdf = new PDF('L', 'pt', 'A4'); $width = $pdf->w - $pdf->lMargin - $pdf->rMargin; $height = 12; $pdf->AddPage(); $pdf->SetFillColor(255, 255, 255); $pdf->SetFont('Arial', '', 7); $where = ""; if ($kdBatch != '') { $where = " and batch='" . $kdBatch . "'"; } $sData = "select distinct batch,kodeorg,sum(jumlah) as jumlah from " . $dbname . ".bibitan_mutasi where kodeorg like '%" . $kdUnit . "%' " . $where . " and post = 1 group by batch,kodeorg order by tanggal desc "; // exit("error".$sData); $qData = mysql_query($sData) or die(mysql_error()); while ($rData = mysql_fetch_assoc($qData)) { $data = ''; $sDatabatch = "select distinct tanggaltanam,supplerid,jenisbibit,tanggalproduksi from " . $dbname . ".bibitan_batch where batch='" . $rData['batch'] . "' "; $qDataBatch = mysql_query($sDatabatch) or die(mysql_error($sDatabatch)); $rDataBatch = mysql_fetch_assoc($qDataBatch); $thnData = substr($rDataBatch['tanggaltanam'], 0, 4); $starttime = strtotime($rDataBatch['tanggaltanam']); //time();// tanggal sekarang
// Logo $this->Image('logo_pb.png', 10, 8, 33); // Arial bold 15 $this->SetFont('Arial', 'B', 15); // Movernos a la derecha $this->Cell(80); // Título $this->Cell(30, 10, 'Title', 1, 0, 'C'); // Salto de línea $this->Ln(20); } // Pie de página function Footer() { // Posición: a 1,5 cm del final $this->SetY(-15); // Arial italic 8 $this->SetFont('Arial', 'I', 8); // Número de página $this->Cell(0, 10, 'Page ' . $this->PageNo() . '/{nb}', 0, 0, 'C'); } } // Creación del objeto de la clase heredada $pdf = new PDF(); $pdf->AliasNbPages(); $pdf->AddPage(); $pdf->SetFont('Times', '', 12); for ($i = 1; $i <= 40; $i++) { $pdf->Cell(0, 10, 'Imprimiendo línea número ' . $i, 0, 1); } $pdf->Output();
$this->Cell(40, 5, utf8_decode($_GET['fin']), 0, 1, 'C', 0); $this->Ln(5); } 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', '', 'Amble-Regular.php'); $pdf->SetFont('Amble-Regular', '', 10); $pdf->SetFont('Arial', 'B', 9); $pdf->SetX(5); $pdf->SetFont('Amble-Regular', '', 9); $total = 0; $sub = 0; $repetido = 0; $contador = 0; $consulta = pg_query("select id_cliente,identificacion,nombres_cli,telefono,direccion_cli from clientes"); while ($row = pg_fetch_row($consulta)) { $repetido = 0; $total = 0; $sql1 = pg_query("select id_factura_venta,num_factura,num_autorizacion,fecha_autorizacion,fecha_caducidad FROM factura_venta where id_cliente='{$row['0']}' and estado='Activo' and fecha_caducidad between '{$fecha}' and '{$_GET['fin']}'"); if (pg_num_rows($sql1)) { if ($repetido == 0) { $pdf->SetX(1);
/** * Affiche la grille des lignes de factures * * @param PDF $pdf Object PDF * @param int $tab_top Tab top * @param int $tab_height Tab height * @param int $nexY next y * @param Translate $outputlangs Output langs * @return void */ function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs) { global $conf; $default_font_size = pdf_getPDFFontSize($outputlangs); // Amount in (at tab_top - 1) $pdf->SetTextColor(0, 0, 0); $pdf->SetFont('', '', $default_font_size - 2); $titre = $outputlangs->transnoentities("AmountInCurrency", $outputlangs->transnoentitiesnoconv("Currency" . $conf->currency)); $pdf->SetXY($this->page_largeur - $this->marge_droite - ($pdf->GetStringWidth($titre) + 4), $tab_top - 4); $pdf->MultiCell($pdf->GetStringWidth($titre) + 3, 2, $titre); $pdf->SetDrawColor(128, 128, 128); // Rect prend une longueur en 3eme param $pdf->Rect($this->marge_gauche, $tab_top, $this->page_largeur - $this->marge_gauche - $this->marge_droite, $tab_height); // line prend une position y en 3eme param $pdf->line($this->marge_gauche, $tab_top + 5, $this->page_largeur - $this->marge_droite, $tab_top + 5); $pdf->SetFont('', '', 8); // Accountancy piece $pdf->SetXY($this->posxpiece - 1, $tab_top + 1); $pdf->MultiCell($this->posxdesc - $this->posxpiece - 1, 1, '', '', 'R'); // Comments $pdf->line($this->posxdesc - 1, $tab_top, $this->posxdesc - 1, $tab_top + $tab_height); $pdf->SetXY($this->posxdesc - 1, $tab_top + 1); $pdf->MultiCell($this->posxdate - $this->posxdesc - 1, 1, $outputlangs->transnoentities("Description"), '', 'L'); // Date $pdf->line($this->posxdate - 1, $tab_top, $this->posxdate - 1, $tab_top + $tab_height); $pdf->SetXY($this->posxdate - 1, $tab_top + 1); $pdf->MultiCell($this->posxtype - $this->posxdate - 1, 2, $outputlangs->transnoentities("Date"), '', 'C'); // Type $pdf->line($this->posxtype - 1, $tab_top, $this->posxtype - 1, $tab_top + $tab_height); $pdf->SetXY($this->posxtype - 1, $tab_top + 1); $pdf->MultiCell($this->posxprojet - $this->posxtype - 1, 2, $outputlangs->transnoentities("Type"), '', 'C'); // Project $pdf->line($this->posxprojet - 1, $tab_top, $this->posxprojet - 1, $tab_top + $tab_height); $pdf->SetXY($this->posxprojet - 1, $tab_top + 1); $pdf->MultiCell($this->posxtva - $this->posxprojet - 1, 2, $outputlangs->transnoentities("Project"), '', 'C'); // VAT if (empty($conf->global->MAIN_GENERATE_DOCUMENTS_WITHOUT_VAT)) { $pdf->line($this->posxtva - 1, $tab_top, $this->posxtva - 1, $tab_top + $tab_height); $pdf->SetXY($this->posxtva - 1, $tab_top + 1); $pdf->MultiCell($this->posxup - $this->posxtva - 1, 2, $outputlangs->transnoentities("VAT"), '', 'C'); } // Unit price $pdf->line($this->posxup - 1, $tab_top, $this->posxup - 1, $tab_top + $tab_height); $pdf->SetXY($this->posxup - 1, $tab_top + 1); $pdf->MultiCell($this->posxqty - $this->posxup - 1, 2, $outputlangs->transnoentities("PriceU"), '', 'C'); // Quantity $pdf->line($this->posxqty - 1, $tab_top, $this->posxqty - 1, $tab_top + $tab_height); $pdf->SetXY($this->posxqty - 1, $tab_top + 1); $pdf->MultiCell($this->postotalttc - $this->posxqty, 2, $outputlangs->transnoentities("Qty"), '', 'R'); // Total with all taxes $pdf->line($this->postotalttc, $tab_top, $this->postotalttc, $tab_top + $tab_height); $pdf->SetXY($this->postotalttc - 1, $tab_top + 1); $pdf->MultiCell($this->page_largeur - $this->marge_droite - $this->postotalttc, 2, $outputlangs->transnoentities("TotalTTC"), '', 'R'); $pdf->SetTextColor(0, 0, 0); }
} function PutLink($URL, $txt) { // Escribir un hiper-enlace $this->SetTextColor(0, 0, 255); $this->SetStyle('U', true); $this->Write(5, $txt, $URL); $this->SetStyle('U', false); $this->SetTextColor(0); } } $html = 'Ahora puede imprimir fácilmente texto mezclando diferentes estilos: <b>negrita</b>, <i>itálica</i>, <u>subrayado</u>, o ¡ <b><i><u>todos a la vez</u></i></b>!<br><br>También puede incluir enlaces en el texto, como <a href="http://www.fpdf.org">www.fpdf.org</a>, o en una imagen: pulse en el logotipo.'; $pdf = new PDF(); // Primera página $pdf->AddPage(); $pdf->SetFont('Arial', '', 20); $pdf->Write(5, 'Para saber qué hay de nuevo en este tutorial, pulse '); $pdf->SetFont('', 'U'); $link = $pdf->AddLink(); $pdf->Write(5, 'aquí', $link); $pdf->SetFont(''); // Segunda página $pdf->AddPage(); $pdf->SetLink($link); $pdf->Image('logo.png', 10, 12, 30, 0, '', 'http://www.fpdf.org'); $pdf->SetLeftMargin(45); $pdf->SetFontSize(14); $pdf->WriteHTML($html); $pdf->Output();
$szelle = 0; while (isset($plan[$pp]->datum) and $termine[$t]->datum == $plan[$pp]->datum and $termine[$t]->typ_id == $plan[$pp]->lid) { if ($content_detail !== "") { $termin_length += $zelle; $content_detail .= "\n"; } $content_detail .= utf8_decode($plan[$pp]->hname) . " - " . utf8_decode($plan[$pp]->gname); $pp++; } } $termin_length = $termin_length * 5; //echo '<br>Termin: '.$termine[$t]->typ.' GetY: '.$pdf->GetY().' Page: '.$page_length.' TerminL: '.$termin_length; if ($pdf->GetY() > $page_length - $termin_length or $tt == 0) { $tt = 0; $pdf->AddPage(); $pdf->SetFont('Times', '', $date_font); $pdf->Cell(10, 3, ' ', 0, 0); $pdf->Cell(175, 3, utf8_decode(JText::_('WRITTEN')) . ' ' . utf8_decode(JText::_('ON_DAY')) . ' ' . utf8_decode(JHTML::_('date', $now, JText::_('DATE_FORMAT_CLM_PDF'))), 0, 1, 'R'); $pdf->SetFont('Times', '', $head_font); $pdf->Cell(10, 10, ' ', 0, 0); $pdf->Cell(150, 10, utf8_decode(JText::_('TERMINE_HEAD')), 0, 1, 'L'); } $pdf->SetFont('Times', '', $font); $pdf->SetTextColor(0); $pdf->SetFillColor(255); // Monatsberechnungen if ($t1 == 1 or $datum_arr[$t][1] > $datum_arr[$t - 1][1] or $datum_arr[$t][0] > $datum_arr[$t - 1][0]) { // Jahresberechnungen if ($t1 == 1 or $datum_arr[$t][0] > $datum_arr[$t - 1][0]) { $tt++; $pdf->SetTextColor(255);
$this->Cell(8 / 100 * $width, $height, $_SESSION['lang']['jmlhTandan'], 1, 0, 'C', 1); $this->Cell(8 / 100 * $width, $height, $_SESSION['lang']['tahuntanam'], 1, 1, 'C', 1); } function Footer() { $this->SetY(-15); $this->SetFont('Arial', 'I', 8); $this->Cell(10, 10, 'Page ' . $this->PageNo(), 0, 0, 'C'); } } $pdf = new PDF('P', 'pt', 'A4'); $width = $pdf->w - $pdf->lMargin - $pdf->rMargin; $height = 9; $pdf->AddPage(); $pdf->SetFillColor(255, 255, 255); $pdf->SetFont('Arial', '', 5); if ($pilTamp == 1) { exit("Error: Not privided for PDF"); } if ($tipeIntex != '') { if ($tipeIntex != 3) { $where .= " and intex='" . $tipeIntex . "'"; } } else { echo "warning: Choose FFB source"; exit; } if ($unit != "") { if ($tipeIntex == 0) { $where .= " and kodecustomer='" . $unit . "'"; } elseif ($tipeIntex != 0) {
$this->SetFont('Arial', 'I', 7); $this->Line(10, 281, 200, 281); $this->Cell(0, 3, 'Emitido por: ' . $usuarioNome); } } //Instancia a classe gerador de pdf $pdf = new PDF(); //Define os atributos de propriedade do arquivo PDF $pdf->SetCreator('*****@*****.**'); $pdf->SetAuthor($usuarioNome . " - " . $empresaNome); $pdf->SetTitle('Detalhamento do cliente'); $pdf->SetSubject('Relatório gerado automaticamente pelo sistema'); $pdf->AliasNbPages(); $pdf->AddPage(); $pdf->SetY(25); $pdf->SetFont('Arial', 'B', 10); $pdf->SetFillColor(178, 178, 178); $pdf->Cell(0, 6, 'Detalhamento do Cliente', 1, 0, 'C', 1); //Nova Linha $pdf->ln(); $pdf->SetFont('Arial', 'B', 9); $pdf->Cell(0, 6, 'Tipo Cliente:', 1, 0, 'L'); $pdf->SetFont('Arial', 'I', 9); $pdf->SetX(39); $pdf->Cell(0, 6, $conta_descricao, 0, 0, 'L'); $pdf->SetX(57); $pdf->SetFont('Arial', 'B', 9); $pdf->Cell(0, 6, 'Nome/Razão Social:', 1, 0, 'L'); $pdf->SetFont('Arial', 'I', 9); $pdf->SetX(88); $pdf->Cell(0, 6, $dados_conta['nome'], 0, 0, 'L');
$str = ' Extension uniquement'; } if ($SecUser->admin == 1) { $str = ' Super Admin'; $admin = 1; } //----------------------------------------------------- // Print result $pdf = new PDF($cn); $pdf->setDossierInfo(dossier::name() . ' Sécurité'); $pdf->AliasNbPages(); $pdf->AddPage(); $pdf->SetAuthor('NOALYSS'); $pdf->setTitle("Sécurité", true); $str_user = sprintf("( %d ) %s %s [ %s ] - %s", $SecUser->id, $SecUser->first_name, $SecUser->name, $SecUser->login, $str); $pdf->SetFont('DejaVu', 'B', 9); $pdf->Cell(0, 7, $str_user, 'B', 0, 'C'); $pdf->Ln(); if ($SecUser->active == 0) { $pdf->SetTextColor(255, 0, 34); $pdf->Cell(0, 7, 'Bloqué', 0, 0, 'R'); $pdf->Ln(); } if ($SecUser->admin == 1) { $pdf->SetTextColor(0, 0, 0); $pdf->setFillColor(239, 251, 255); $pdf->Cell(40, 7, 'Administrateur', 1, 1, 'R'); $pdf->Ln(); } $pdf->SetTextColor(0, 0, 0); //-----------------------------------------------------
$xx2 = $xx2 - ($liga[0]->stamm + 12); if ($xx2 > 0) { $yy0 = $yy1 - 4 * $xx2; } else { $yy0 = $yy1; } $xx = 0; if ($x == 0) { $xx = 1; } elseif ($pdf->GetY() > $yy0) { $xx = 1; } if ($xx == 1) { //if (($x == 0)||($x == 4)||($x == 8)) { $pdf->AddPage(); $pdf->SetFont('Times', '', 7); $pdf->Cell(10, 3, ' ', 0, 0); $pdf->Cell(175, 3, utf8_decode(JText::_('WRITTEN')) . ' ' . utf8_decode(JText::_('ON_DAY')) . ' ' . utf8_decode(JHTML::_('date', $now, JText::_('%d. %B %Y , %H %M'))), 0, 1, 'R'); $pdf->SetFont('Times', '', 14); $pdf->Cell(10, 15, ' ', 0, 0); $pdf->Cell(80, 15, utf8_decode($liga[0]->name) . " " . utf8_decode($saison[0]->name), 0, 1, 'L'); $pdf->SetFont('Times', '', $font); $pdf->Cell(10, $zelle, JText::_('MELDELISTE_NR'), 0, 0, 'C'); $pdf->Cell(60, $zelle, JText::_('TEAM') . "/" . JText::_('CLUB_LOCATION'), 0, 0, 'L'); $pdf->Cell(10, $zelle, JText::_('MELDELISTE_REGULAR'), 0, 0, 'C'); $pdf->Cell($breite1, $zelle, JText::_('MELDELISTE_NAME'), 0, 0, 'L'); $pdf->Cell(10, $zelle, JText::_('DWZ'), 0, 0, 'R'); $pdf->Cell(10, $zelle, '', 0, 0, 'R'); $pdf->Cell(10, $zelle, JText::_('MELDELISTE_SUBSTITUTE'), 0, 0, 'C'); $pdf->Cell($breite1, $zelle, JText::_('MELDELISTE_NAME'), 0, 0, 'L'); $pdf->Cell(10, $zelle, JText::_('DWZ'), 0, 1, 'R');
foreach ($data as $row) { $this->Cell($w[0], 6, $row[0], 'LR', 0, 'C', $fill); $this->Cell($w[1], 6, iconv('UTF-8', 'ISO-8859-1', $row[1]), 'LR', 0, 'C', $fill); $this->Cell($w[2], 6, iconv('UTF-8', 'ISO-8859-1', $row[2]), 'LR', 0, 'C', $fill); $this->Cell($w[3], 6, $row[3], 'LR', 0, 'C', $fill); $this->Cell($w[4], 6, iconv('UTF-8', 'ISO-8859-1', $row[4]), 'LR', 0, 'C', $fill); $this->Ln(); $fill = !$fill; } //Closure line $this->Cell(array_sum($w), 0, '', 'T'); } } $header = array('id', 'Nome', 'Email', 'Contacto', iconv('UTF-8', 'ISO-8859-1', 'Comentário')); $gl = new Guestlist(); $guests = $gl->ListGuests(' 1 ORDER BY NAME ASC'); $data = array(); $i = 0; foreach ($guests as $guest) { $data[$i][0] = $guest['id']; $data[$i][1] = $guest['name']; $data[$i][2] = $guest['email']; $data[$i][3] = $guest['phone']; $data[$i][4] = $guest['comment']; $i++; } $pdf = new PDF(); $pdf->SetFont('Arial', '', 8); $pdf->AddPage(); $pdf->ImprovedTable($header, $data); $pdf->Output();
//we need this one for PDF export include_once dirname(__FILE__) . "/classes/tcpdf/extensiontcpdf.php"; // TEMP function for debugging function try_debug($line) { global $debug; if ($debug > 0) { return '<!-- printablesurvey.php: ' . $line . ' -->'; } } $surveyid = $_GET['sid']; //echo '<pre>'.print_r($_SESSION,true).'</pre>'; // PRESENT SURVEY DATAENTRY SCREEN if (isset($_POST['printableexport'])) { $pdf = new PDF($pdforientation, 'mm', 'A4'); $pdf->SetFont($pdfdefaultfont, '', $pdffontsize); $pdf->AddPage(); } // Set the language of the survey, either from GET parameter of session var if (isset($_GET['lang'])) { $_GET['lang'] = preg_replace("/[^a-zA-Z0-9-]/", "", $_GET['lang']); if ($_GET['lang']) { $surveyprintlang = $_GET['lang']; } } else { $surveyprintlang = GetbaseLanguageFromSurveyid($surveyid); } // Setting the selected language for printout $clang = new limesurvey_lang($surveyprintlang); $desquery = "SELECT * FROM " . db_table_name('surveys') . " inner join " . db_table_name('surveys_languagesettings') . " on (surveyls_survey_id=sid) WHERE sid={$surveyid} and surveyls_language=" . $connect->qstr($surveyprintlang); //Getting data for this survey
} // con filtro del departemento if ($depto != '-1' and $motivo == '-1' and ($fechai != "" and $fechaf != "")) { $query1 = " \nSelect empleado.No_Empleado, CONCAT(Primer_nombre, ' ', Segundo_nombre, ' ', Primer_apellido, ' ', Segundo_Apellido) as Nombre, departamento_laboral.nombre_departamento,motivos.descripcion, \nCOUNT(permisos.id_Permisos) as Solicitudes, SUM(permisos.dias_permiso) as Inasistencias from permisos\n inner join motivos on permisos.id_motivo=motivos.Motivo_ID \n inner join empleado on empleado.No_Empleado=permisos.No_Empleado \n inner join persona on persona.N_identidad=empleado.N_identidad \n inner join departamento_laboral on departamento_laboral.id_departamento_laboral = permisos.id_departamento \n where departamento_laboral.nombre_departamento='" . $depto . "'\n and date_format(permisos.fecha,'%d-%m-%Y') between date_format('" . $fechai . " ','%d-%m-%Y')and date_format('" . $fechaf . "','%d-%m-%Y')\t\n\tGROUP BY Primer_nombre, Segundo_nombre, Primer_apellido, Segundo_Apellido, departamento_laboral.nombre_departamento ORDER BY Primer_nombre asc"; } // con filtro del motivos y depattamento if ($depto != '-1' and $motivo != '-1' and ($fechai != "" and $fechaf != "")) { $query1 = " \nSelect empleado.No_Empleado, CONCAT(Primer_nombre, ' ', Segundo_nombre, ' ', Primer_apellido, ' ', Segundo_Apellido) as Nombre, departamento_laboral.nombre_departamento,motivos.descripcion, \nCOUNT(permisos.id_Permisos) as Solicitudes, SUM(permisos.dias_permiso) as Inasistencias from permisos\n inner join motivos on permisos.id_motivo=motivos.Motivo_ID \n inner join empleado on empleado.No_Empleado=permisos.No_Empleado \n inner join persona on persona.N_identidad=empleado.N_identidad \n inner join departamento_laboral on departamento_laboral.id_departamento_laboral = permisos.id_departamento \n where departamento_laboral.nombre_departamento='" . $depto . "' and motivos.descripcion='" . $motivo . "' and \n date_format(permisos.fecha,'%d-%m-%Y') between date_format('" . $fechai . " ','%d-%m-%Y')and date_format('" . $fechaf . "','%d-%m-%Y')\t\n\tGROUP BY Primer_nombre, Segundo_nombre, Primer_apellido, Segundo_Apellido, departamento_laboral.nombre_departamento,motivos.descripcion ORDER BY Primer_nombre asc"; } // por fechas if ($depto == '-1' and $motivo != '-1') { $query1 = " \nSelect empleado.No_Empleado, CONCAT(Primer_nombre, ' ', Segundo_nombre, ' ', Primer_apellido, ' ', Segundo_Apellido) as Nombre, departamento_laboral.nombre_departamento, motivos.descripcion, \nCOUNT(permisos.id_Permisos) as Solicitudes, SUM(permisos.dias_permiso) as Inasistencias from permisos\n inner join motivos on permisos.id_motivo=motivos.Motivo_ID \n inner join empleado on empleado.No_Empleado=permisos.No_Empleado \n inner join persona on persona.N_identidad=empleado.N_identidad \n inner join departamento_laboral on departamento_laboral.id_departamento_laboral = permisos.id_departamento \n where motivos.descripcion='" . $motivo . "' and \n date_format(permisos.fecha,'%d-%m-%Y') between date_format('" . $fechai . " ','%d-%m-%Y')and date_format('" . $fechaf . "','%d-%m-%Y')\t\n\tGROUP BY Primer_nombre, Segundo_nombre, Primer_apellido, Segundo_Apellido, departamento_laboral.nombre_departamento,motivos.descripcion ORDER BY Primer_nombre asc"; } $pdf = new PDF(); $pdf->AddPage("L", "Letter"); $pdf->SetFont('Arial', '', 18); $pdf->Image($maindir . 'assets/img/lucen-aspicio.png', 50, 15, 200, 200, 'PNG'); $pdf->Image($maindir . 'assets/img/logo_unah.png', 15, 5, 24, 36, 'PNG'); $pdf->Image($maindir . 'assets/img/logo-cienciasjuridicas.png', 230, 8, 35, 35, 'PNG'); $pdf->Cell(22, 10, '', 0); $pdf->SetFont('Arial', '', 18); $pdf->Cell(45, 10, '', 0); $pdf->Cell(70, 10, utf8_decode('Universidad Nacional Autónoma de Honduras'), 0); $pdf->Ln(10); $pdf->SetFont('Arial', 'U', 14); $pdf->Cell(60, 8, '', 0, 0, "C"); $pdf->Cell(130, 8, 'Reportes de Permisos Personales', 0, 0, "C"); $pdf->Ln(25); //$pdf->AddCol('N',25,'#Empleado','C'); $pdf->AddCol('Nombre', 70, 'Nombre Completo', 'C'); $pdf->AddCol('nombre_departamento', 40, 'Departamento', 'C');
} function Footer() { $this->SetY(-15); $this->SetFont('Arial', 'I', 8); $this->Cell(10, 10, 'Page ' . $this->PageNo() . " / {totalPages}", 0, 0, 'L'); } } //================================ $pdf = new PDF('L', 'pt', 'A4'); $pdf->AliasNbPages('{totalPages}'); $width = $pdf->w - $pdf->lMargin - $pdf->rMargin; $height = 15; $pdf->AddPage(); $pdf->SetFillColor(255, 255, 255); $pdf->SetFont('Arial', '', 9); $no = 1; // pdf array content ========================================================================= // $pdf->Cell($wkiri/100*$width,$height,$_SESSION['lang']['tbsdiolah'],1,0,'L',1); // $pdf->Cell($wlain/100*$width,$height,number_format($bireal_tbsdiolah,0),1,0,'R',1); // $pdf->Cell($wlain/100*$width,$height,number_format($bibudget_tbsdiolah,0),1,0,'R',1); // $pdf->Cell($wlain/100*$width,$height,number_format($biselisih_tbsdiolah,0),1,0,'R',1); // $pdf->Cell($wlain/100*$width,$height,number_format($sdbireal_tbsdiolah,0),1,0,'R',1); // $pdf->Cell($wlain/100*$width,$height,number_format($sdbibudget_tbsdiolah,0),1,0,'R',1); // $pdf->Cell($wlain/100*$width,$height,number_format($sdbiselisih_tbsdiolah,0),1,0,'R',1); // $pdf->Ln(); // $pdf->Cell($wkiri/100*$width,$height,$_SESSION['lang']['cpodihasilkan'],1,0,'L',1); // $pdf->Cell($wlain/100*$width,$height,number_format($bireal_cpo,0),1,0,'R',1); // $pdf->Cell($wlain/100*$width,$height,number_format($bibudget_cpo,0),1,0,'R',1); // $pdf->Cell($wlain/100*$width,$height,number_format($biselisih_cpo,0),1,0,'R',1); // $pdf->Cell($wlain/100*$width,$height,number_format($sdbireal_cpo,0),1,0,'R',1);
} // Instanciation of inherited class $header = array('Ord Date','Ord ID','Service','Pickup Company Name','Shipping Company Name','Ord Value'); $printtotal = 1005; $pdf = new PDF(); $pdf->SetAutoPageBreak(true, 28); $pdf->AliasNbPages(); $pdf->AddPage(); $pdf->SetFont('Times','',12); //$pdf->Write( 4,"To, \n$address1\n$address2\n$address3$ln$city - $pin."); //$address = getAddressBookPermanetn($_POST['cus_already_bill']); $noaddress = false; $stnoname = "Street name"; $prov = "Prov"; $postal = "600110"; $city = "chennai"; $total_due = 1000; $taxs = 500;
// *** Parameters *** $TahunID = GetSetVar('TahunID'); $ProdiID = GetSetVar('ProdiID'); if (empty($TahunID)) { die(ErrorMsg("Error", "Tentukan tahun akademik-nya dulu.\r\n <hr size=1 color=silver />\r\n <input type=button name='Tutup' value='Tutup'\r\n onClick='window.close()' />")); } if (empty($ProdiID)) { die(ErrorMsg("Error", "Tentukan Program Studi-nya dulu.\r\n <hr size=1 color=silver />\r\n <input type=button name='Tutup' value='Tutup'\r\n onClick='window.close()' />")); } // *** Main $prds = getaField('prodi', "KodeID = '" . KodeID . "' and ProdiID", $ProdiID, 'Nama'); $thn = NamaTahun($TahunID); $pdf = new PDF('P', 'mm', 'A4'); $pdf->SetTitle("Jadwal Ujian Sidang Komprehensif Tahun {$thn}"); $pdf->AddPage(); $pdf->SetFont('Helvetica', 'B', 14); $pdf->Cell($t, 9, "Jadwal Ujian Sidang Komprehensif - {$thn}", 0, 1, 'C'); $pdf->Cell($t, 9, "Program Studi {$prds}", 0, 1, 'C'); Isinya($pdf); $pdf->Output(); // *** Functions *** function Isinya($p) { $lbr = 290; $t = 5; JudulKolomnya($p); $p->SetFont('Helvetica', '', 8); $s = "select k.*, m.MhswID,left(m.Nama, 28) as Mhsw,m.KelasID\r\n \t\tfrom kompre k\r\n left outer join mhsw m on m.MhswID = k.MhswID and m.KodeID = '" . KodeID . "'\r\n\twhere k.KodeID = '" . KodeID . "'\r\n and k.TahunID = '{$_SESSION['TahunID']}'\r\n\t and k.Lulus = 'N'\r\n\t and k.NA = 'N'\r\n Group by k.MhswID"; $r = _query($s); $n = 0; $jum = _num_rows($r);
$getprov = @mysql_fetch_row($getprov); /*======================================================= frederick >>> change this; incorrect arrangement of variable >> SEE: function setLGUinfo (line # 22) $pdf->setLGUinfo($getlgu[0],$getprov[0],$resulta[2]); ===========================================================*/ $pdf->setLGUinfo($getprov[0], $getlgu[0], $resulta[2]); $pdf->setYears($dateprev, $datenext, $datenextnext); $pdf->AddPage(); $pdf->AliasNbPages(); $getnat = @mysql_query("select * from ebpls_buss_nature"); $Y_Label_position = 50; $Y_Table_Position = 55; //header $dateprinted = date('Y-m-d'); $pdf->SetFont('Arial', 'B', 6); $pdf->SetY($Y_Label_position); $pdf->SetX(5); $pdf->Cell(340, 5, $dateprinted, 0, 1, 'R'); $pdf->SetFont('Arial', 'B', 6); $pdf->SetY($Y_Label_position + 10); $pdf->SetX(5); $pdf->Cell(100, 10, 'LINE OF BUSINESS', 1, 0, 'C'); $pdf->SetX(105); $pdf->Cell(60, 5, $dateprev, 1, 0, 'C'); $pdf->SetX(165); $pdf->Cell(60, 5, $datenext, 1, 0, 'C'); $pdf->SetX(225); $pdf->Cell(60, 5, $datenextnext, 1, 0, 'C'); $pdf->SetY($Y_Label_position + 15); $pdf->SetX(5);
private function printHeader($format, $printFields, $startDate, $endDate) { if ($format == 'pdf' || $format == 'pdfl') { ob_end_clean(); $pdf = new PDF($format == 'pdf' ? 'P' : 'L', 'mm', 'A4', _CHARSET_ == 'UTF-8', _CHARSET_, false); $pdf->setTopMargin(20); $pdf->headerRight = $GLOBALS['locReportPage']; $pdf->printHeaderOnFirstPage = true; $pdf->AddPage(); $pdf->SetAutoPageBreak(TRUE, 15); $pdf->setY(10); $pdf->SetFont('Helvetica', 'B', 12); $pdf->Cell(100, 15, $GLOBALS['locInvoiceReport'], 0, 1, 'L'); if ($startDate || $endDate) { $pdf->SetFont('Helvetica', '', 8); $pdf->Cell(25, 15, $GLOBALS['locDateInterval'], 0, 0, 'L'); $pdf->Cell(50, 15, dateConvDBDate2Date($startDate) . ' - ' . dateConvDBDate2Date($endDate), 0, 1, 'L'); } $pdf->SetFont('Helvetica', 'B', 8); if (in_array('invoice_no', $printFields)) { $pdf->Cell(18, 4, $GLOBALS['locInvoiceNumber'], 0, 0, 'L'); } if (in_array('invoice_date', $printFields)) { $pdf->Cell(20, 4, $GLOBALS['locInvDate'], 0, 0, 'L'); } if (in_array('due_date', $printFields)) { $pdf->Cell(20, 4, $GLOBALS['locDueDate'], 0, 0, 'L'); } if (in_array('payment_date', $printFields)) { $pdf->Cell(20, 4, $GLOBALS['locPaymentDate'], 0, 0, 'L'); } if (in_array('company_name', $printFields)) { $pdf->Cell(45, 4, $GLOBALS['locPayer'], 0, 0, 'L'); } if (in_array('status', $printFields)) { $pdf->Cell(20, 4, $GLOBALS['locInvoiceState'], 0, 0, 'L'); } if (in_array('ref_number', $printFields)) { $pdf->Cell(25, 4, $GLOBALS['locReferenceNumber'], 0, 0, 'L'); } if (in_array('sums', $printFields)) { $pdf->Cell(25, 4, $GLOBALS['locVATLess'], 0, 0, 'R'); $pdf->Cell(25, 4, $GLOBALS['locVATPart'], 0, 0, 'R'); $pdf->Cell(25, 4, $GLOBALS['locWithVAT'], 0, 1, 'R'); } $this->pdf = $pdf; return; } ?> <div class="report"> <table> <tr> <?php if (in_array('invoice_no', $printFields)) { ?> <th class="label"> <?php echo $GLOBALS['locInvoiceNumber']; ?> </th> <?php } if (in_array('invoice_date', $printFields)) { ?> <th class="label"> <?php echo $GLOBALS['locInvDate']; ?> </th> <?php } if (in_array('due_date', $printFields)) { ?> <th class="label"> <?php echo $GLOBALS['locDueDate']; ?> </th> <?php } if (in_array('payment_date', $printFields)) { ?> <th class="label"> <?php echo $GLOBALS['locPaymentDate']; ?> </th> <?php } if (in_array('company_name', $printFields)) { ?> <th class="label"> <?php echo $GLOBALS['locPayer']; ?> </th> <?php } if (in_array('status', $printFields)) { ?> <th class="label"> <?php echo $GLOBALS['locInvoiceState']; ?> </th> <?php } if (in_array('ref_number', $printFields)) { ?> <th class="label"> <?php echo $GLOBALS['locReferenceNumber']; ?> </th> <?php } if (in_array('sums', $printFields)) { ?> <th class="label" style="text-align: right"> <?php echo $GLOBALS['locVATLess']; ?> </th> <th class="label" style="text-align: right"> <?php echo $GLOBALS['locVATPart']; ?> </th> <th class="label" style="text-align: right"> <?php echo $GLOBALS['locWithVAT']; ?> </th> <?php } ?> </tr> <?php }
$deszonrie = utf8_decode($row['deszonrie']); $descon = utf8_decode($row['descon']); $obscon = utf8_decode($row['obscon']); $fotos = explode(",", $row['fotos']); //Creación del objeto de la clase heredada //$pdf=new PDF(); //$pdf->AliasNbPages(); /* if (!isset($pdf)) { $pdf=new PDF(); $pdf->AliasNbPages(); } */ $pdf->AddPage(); $pdf->SetDisplayMode('fullpage'); $pdf->SetMargins(20, 20, 20); $pdf->SetFont('Arial', 'BU', 14); $pdf->SetTextColor(70, 125, 25); $pdf->Cell(0, 10, 'FICHA DE CHECK DOMICILIARIO', 0, 1, 'C'); $pdf->Ln(2); $pdf->SetTextColor(0, 0, 0); $pdf->SetFont('Arial', 'B', 12); $pdf->Cell(55, 7, 'NOMBRES Y APELLIDOS', 1, 0, 'L'); $pdf->SetFont('Arial', '', 12); $pdf->Cell(0, 7, $nombre, 1, 1, 'C'); $pdf->SetFont('Arial', 'B', 12); $pdf->Cell(55, 7, 'DIRECCION', 1, 0, 'L'); $pdf->SetFont('Arial', '', 12); $pdf->MultiCell(0, 7, $domicilio, 1, 'C'); //$pdf->Ln(2); //$pdf->Image('../files/images_dni/imagen1.png',40,null,0,130); $pdf->Ln(2);
<?php define('FPDF_FONTPATH', 'font/'); require_once 'mysql_table.php'; include "comunes.php"; include "../conectar.php"; $pdf = new PDF(); $pdf->Open(); $pdf->AddPage(); //Nombre del Listado $pdf->SetFillColor(255, 255, 255); $pdf->SetFont('Arial', 'B', 16); $pdf->SetY(40); $pdf->SetX(0); $pdf->MultiCell(290, 6, "Listado de Cobradores", 0, C, 0); $pdf->Ln(); //Restauracin de colores y fuentes $pdf->SetFillColor(224, 235, 255); $pdf->SetTextColor(0); $pdf->SetFont('Arial', 'B', 7); //Buscamos y listamos las familias $nombreentidad = $_POST["nombrecobrador"]; $codentidad = $_POST["codcobrador"]; $where = "1=1"; if ($codcobrador != "") { $where .= " AND codcobrador='{$codcobrador}'"; } if ($nombrecobrador != "") { $where .= " AND nombrecobrador like '%" . $nombrecobrador . "%'"; } $where2 .= " ORDER BY nombrecobrador ASC";
function Footer() { global $nopo; $this->SetY(-15); $this->SetFont('Arial', 'I', 8); $this->Cell(10, 10, 'Page ' . $this->PageNo(), 0, 0, 'C'); $this->SetFont('Arial', '', 6); //$this->SetY(27); $this->SetX(163); $this->Cell(30, 10, 'PRINT TIME : ' . date('d-m-Y H:i:s'), 0, 1, 'L'); } } $pdf = new PDF('P', 'mm', 'A4'); $pdf->AddPage(); // kepada yth $pdf->SetFont('Arial', 'B', 8); if ($_SESSION['language'] == 'EN') { $pdf->Cell(30, 4, "TO :", 0, 0, 'L'); } else { $pdf->Cell(30, 4, "KEPADA YTH :", 0, 0, 'L'); } $pdf->Ln(); $arte = ""; $pdf->Cell(35, 4, $_SESSION['lang']['nm_perusahaan'], 0, 0, 'L'); $pdf->Cell(40, 4, ": " . $nmSupplier . $arte, 0, 1, 'L'); if ($cp != '') { $pdf->Cell(35, 4, $_SESSION['lang']['cperson'], 0, 0, 'L'); $pdf->Cell(40, 4, ": " . $cp, 0, 1, 'L'); } $pdf->Cell(35, 4, $_SESSION['lang']['alamat'], 0, 0, 'L'); $pdf->Cell(40, 4, ": " . $almtSupplier, 0, 1, 'L');
/** * Show table for lines * * @param PDF $pdf Object PDF * @param string $tab_top Top position of table * @param string $tab_height Height of table (rectangle) * @param int $nexY Y (not used) * @param Translate $outputlangs Langs object * @param int $hidetop 1=Hide top bar of array and title, 0=Hide nothing, -1=Hide only title * @param int $hidebottom Hide bottom bar of array * @param string $currency Currency code * @return void */ function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs, $hidetop = 0, $hidebottom = 0, $currency = '') { global $conf; // Force to disable hidetop and hidebottom $hidebottom = 0; if ($hidetop) { $hidetop = -1; } $currency = !empty($currency) ? $currency : $conf->currency; $default_font_size = pdf_getPDFFontSize($outputlangs); // Amount in (at tab_top - 1) $pdf->SetTextColor(0, 0, 0); $pdf->SetFont('', '', $default_font_size - 2); if (empty($hidetop)) { $titre = $outputlangs->transnoentities("AmountInCurrency", $outputlangs->transnoentitiesnoconv("Currency" . $currency)); $pdf->SetXY($this->page_largeur - $this->marge_droite - ($pdf->GetStringWidth($titre) + 3), $tab_top - 4); $pdf->MultiCell($pdf->GetStringWidth($titre) + 3, 2, $titre); //$conf->global->MAIN_PDF_TITLE_BACKGROUND_COLOR='230,230,230'; if (!empty($conf->global->MAIN_PDF_TITLE_BACKGROUND_COLOR)) { $pdf->Rect($this->marge_gauche, $tab_top, $this->page_largeur - $this->marge_droite - $this->marge_gauche, 5, 'F', null, explode(',', $conf->global->MAIN_PDF_TITLE_BACKGROUND_COLOR)); } } $pdf->SetDrawColor(128, 128, 128); $pdf->SetFont('', '', $default_font_size - 1); // Output Rect $this->printRect($pdf, $this->marge_gauche, $tab_top, $this->page_largeur - $this->marge_gauche - $this->marge_droite, $tab_height, $hidetop, $hidebottom); // Rect prend une longueur en 3eme param et 4eme param if (empty($hidetop)) { $pdf->line($this->marge_gauche, $tab_top + 5, $this->page_largeur - $this->marge_droite, $tab_top + 5); // line prend une position y en 2eme param et 4eme param $pdf->SetXY($this->posxdesc - 1, $tab_top + 1); $pdf->MultiCell(108, 2, $outputlangs->transnoentities("Designation"), '', 'L'); } if (!empty($conf->global->MAIN_GENERATE_INVOICES_WITH_PICTURE)) { $pdf->line($this->posxpicture - 1, $tab_top, $this->posxpicture - 1, $tab_top + $tab_height); if (empty($hidetop)) { //$pdf->SetXY($this->posxpicture-1, $tab_top+1); //$pdf->MultiCell($this->posxtva-$this->posxpicture-1,2, $outputlangs->transnoentities("Photo"),'','C'); } } if (empty($conf->global->MAIN_GENERATE_DOCUMENTS_WITHOUT_VAT)) { $pdf->line($this->posxtva - 1, $tab_top, $this->posxtva - 1, $tab_top + $tab_height); if (empty($hidetop)) { $pdf->SetXY($this->posxtva - 3, $tab_top + 1); $pdf->MultiCell($this->posxup - $this->posxtva + 3, 2, $outputlangs->transnoentities("VAT"), '', 'C'); } } $pdf->line($this->posxup - 1, $tab_top, $this->posxup - 1, $tab_top + $tab_height); if (empty($hidetop)) { $pdf->SetXY($this->posxup - 1, $tab_top + 1); $pdf->MultiCell($this->posxqty - $this->posxup - 1, 2, $outputlangs->transnoentities("PriceUHT"), '', 'C'); } $pdf->line($this->posxqty - 1, $tab_top, $this->posxqty - 1, $tab_top + $tab_height); if (empty($hidetop)) { $pdf->SetXY($this->posxqty - 1, $tab_top + 1); if ($conf->global->PRODUCT_USE_UNITS) { $pdf->MultiCell($this->posxunit - $this->posxqty - 1, 2, $outputlangs->transnoentities("Qty"), '', 'C'); } else { $pdf->MultiCell($this->posxdiscount - $this->posxqty - 1, 2, $outputlangs->transnoentities("Qty"), '', 'C'); } } if ($conf->global->PRODUCT_USE_UNITS) { $pdf->line($this->posxunit - 1, $tab_top, $this->posxunit - 1, $tab_top + $tab_height); if (empty($hidetop)) { $pdf->SetXY($this->posxunit - 1, $tab_top + 1); $pdf->MultiCell($this->posxdiscount - $this->posxunit - 1, 2, $outputlangs->transnoentities("Unit"), '', 'C'); } } $pdf->line($this->posxdiscount - 1, $tab_top, $this->posxdiscount - 1, $tab_top + $tab_height); if (empty($hidetop)) { if ($this->atleastonediscount) { $pdf->SetXY($this->posxdiscount - 1, $tab_top + 1); $pdf->MultiCell($this->postotalht - $this->posxdiscount + 1, 2, $outputlangs->transnoentities("ReductionShort"), '', 'C'); } } if ($this->atleastonediscount) { $pdf->line($this->postotalht, $tab_top, $this->postotalht, $tab_top + $tab_height); } if (empty($hidetop)) { $pdf->SetXY($this->postotalht - 1, $tab_top + 1); $pdf->MultiCell(30, 2, $outputlangs->transnoentities("TotalHT"), '', 'C'); } }