本文整理汇总了PHP中PDF::SetXY方法的典型用法代码示例。如果您正苦于以下问题:PHP PDF::SetXY方法的具体用法?PHP PDF::SetXY怎么用?PHP PDF::SetXY使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PDF
的用法示例。
在下文中一共展示了PDF::SetXY方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: pdf_writeLinkedObjects
/**
* Show linked objects for PDF generation
*
* @param PDF $pdf Object PDF
* @param object $object Object
* @param Translate $outputlangs Object lang
* @param int $posx X
* @param int $posy Y
* @param float $w Width of cells. If 0, they extend up to the right margin of the page.
* @param float $h Cell minimum height. The cell extends automatically if needed.
* @param int $align Align
* @param string $default_font_size Font size
* @return float The Y PDF position
*/
function pdf_writeLinkedObjects(&$pdf, $object, $outputlangs, $posx, $posy, $w, $h, $align, $default_font_size)
{
$linkedobjects = pdf_getLinkedObjects($object, $outputlangs);
if (!empty($linkedobjects)) {
foreach ($linkedobjects as $linkedobject) {
$posy += 3;
$pdf->SetXY($posx, $posy);
$pdf->SetFont('', '', $default_font_size - 2);
$pdf->MultiCell($w, $h, $linkedobject["ref_title"] . ' : ' . $linkedobject["ref_value"], '', $align);
if (!empty($linkedobject["date_title"]) && !empty($linkedobject["date_value"])) {
$posy += 3;
$pdf->SetXY($posx, $posy);
$pdf->MultiCell($w, $h, $linkedobject["date_title"] . ' : ' . $linkedobject["date_value"], '', $align);
}
}
}
return $pdf->getY();
}
示例2:
/**
* 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
* @param Translate $outputlangs Langs object
* @param int $hidetop Hide top bar of array
* @param int $hidebottom Hide bottom bar of array
* @return void
*/
function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs, $hidetop = 0, $hidebottom = 0)
{
global $conf, $mysoc;
$default_font_size = pdf_getPDFFontSize($outputlangs);
$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 + 6, $this->page_largeur - $this->marge_droite, $tab_top + 6);
$pdf->SetTextColor(0, 0, 0);
$pdf->SetFont('', '', $default_font_size);
$pdf->SetXY($this->posxref, $tab_top + 1);
$pdf->MultiCell($this->posxlabel - $this->posxref, 3, $outputlangs->transnoentities("Tasks"), '', 'L');
$pdf->SetXY($this->posxlabel, $tab_top + 1);
$pdf->MultiCell($this->posxworkload - $this->posxlabel, 3, $outputlangs->transnoentities("Description"), 0, 'L');
$pdf->SetXY($this->posxworkload, $tab_top + 1);
$pdf->MultiCell($this->posxprogress - $this->posxworkload, 3, $outputlangs->transnoentities("PlannedWorkloadShort"), 0, 'R');
$pdf->SetXY($this->posxprogress, $tab_top + 1);
$pdf->MultiCell($this->posxdatestart - $this->posxprogress, 3, '%', 0, 'R');
$pdf->SetXY($this->posxdatestart, $tab_top + 1);
$pdf->MultiCell($this->posxdateend - $this->posxdatestart, 3, '', 0, 'C');
$pdf->SetXY($this->posxdateend, $tab_top + 1);
$pdf->MultiCell($this->page_largeur - $this->marge_droite - $this->posxdatestart, 3, '', 0, 'C');
}
示例3: PDF
// 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)) {
$pdf->SetXY(30, 60);
$pdf->Write(1, $address2);
}
$pdf->Ln();
示例4: PDF
$rep02OMB = $rep02["OMB"];
$rep02DRT = $rep02["DRT"];
$rep02Funcao = $rep02["Funcao"];
$rep02Endereco = $rep02["Endereco"];
$rep02Telefones = $rep02["Telefones"];
$rep02Email = $rep02["Email"];
$rep02INSS = $rep02["INSS"];
// GERANDO O PDF:
$pdf = new PDF('P', 'mm', 'A4');
//CRIA UM NOVO ARQUIVO PDF NO TAMANHO A4
$pdf->AliasNbPages();
$pdf->AddPage();
$x = 20;
$l = 10;
//DEFINE A ALTURA DA LINHA
$pdf->SetXY($x, 20);
// SetXY - DEFINE O X (largura) E O Y (altura) NA PÁGINA
$pdf->SetX($x);
$pdf->SetFont('Arial', 'B', 12);
$pdf->Cell(180, 5, utf8_decode('DECLARAÇÃO'), 0, 1, 'C');
$pdf->Ln();
$pdf->Ln();
$pdf->Ln();
$pdf->SetX($x);
$pdf->SetFont('Arial', 'B', 10);
$pdf->Cell(25, $l, utf8_decode('Razão Social:'), 0, 0, 'L');
$pdf->SetFont('Arial', '', 10);
$pdf->MultiCell(155, $l, utf8_decode($pjRazaoSocial));
$pdf->SetX($x);
$pdf->SetFont('Arial', 'B', 10);
$pdf->Cell(13, $l, utf8_decode('CNPJ:'), 0, 0, 'L');
示例5: addSticker
/**
* Output a sticker on page at position _COUNTX, _COUNTY (_COUNTX and _COUNTY start from 0)
*
* @param PDF $pdf PDF reference
* @param Translate $outputlangs Output langs
* @param array $param Associative array containing label content and optional parameters
* @return void
*/
function addSticker(&$pdf, $outputlangs, $param)
{
global $mysoc, $conf;
$textleft = $param['textleft'];
$header = $param['textheader'];
$footer = $param['textfooter'];
$textright = $param['textright'];
$code = $param['code'];
$encoding = $param['encoding'];
$is2d = $param['is2d'];
// We are in a new page, then we must add a page
if ($this->_COUNTX == 0 && $this->_COUNTY == 0 and !$this->_First == 1) {
$pdf->AddPage();
}
$this->_First = 0;
$_PosX = $this->_Margin_Left + $this->_COUNTX * ($this->_Width + $this->_X_Space);
$_PosY = $this->_Margin_Top + $this->_COUNTY * ($this->_Height + $this->_Y_Space);
// Define logo
$logo = $conf->mycompany->dir_output . '/logos/' . $mysoc->logo;
if (!is_readable($logo)) {
$logo = '';
if (!empty($mysoc->logo_small) && is_readable($conf->mycompany->dir_output . '/logos/thumbs/' . $mysoc->logo_small)) {
$logo = $conf->mycompany->dir_output . '/logos/thumbs/' . $mysoc->logo_small;
} elseif (!empty($mysoc->logo) && is_readable($conf->mycompany->dir_output . '/logos/' . $mysoc->logo)) {
$logo = $conf->mycompany->dir_output . '/logos/' . $mysoc->logo;
}
}
$xleft = 2;
$ytop = 2;
// Top
if ($header != '') {
$pdf->SetXY($_PosX + $xleft, $_PosY + 1);
// Only 1 mm and not ytop for top text
$pdf->Cell($this->_Width - 2 * $xleft, $this->_Line_Height, $outputlangs->convToOutputCharset($header), 0, 1, 'C');
}
$ytop += empty($header) ? 0 : 1 + $this->_Line_Height;
// Define widthtouse and heighttouse
$pageMargins = $pdf->getMargins();
$maxwidthtouse = round($this->_Width - 2 * $xleft);
$maxheighttouse = round($this->_Height - 2 * $ytop);
$maxheighttouse -= empty($footer) ? 0 : 1 + $this->_Line_Height;
$defaultratio = $maxwidthtouse / $maxheighttouse;
$widthtouse = $maxwidthtouse;
$heighttouse = $maxheighttouse;
$logoHeight = $heighttouse;
$logoWidth = $heighttouse;
//var_dump($this->_Width.'x'.$this->_Height.' with border and scale '.$imgscale.' => max '.$maxwidthtouse.'x'.$maxheighttouse.' => We use '.$widthtouse.'x'.$heighttouse);exit;
// Center
if ($textright == '') {
// Output left area
if ($textleft == '%LOGO%' && $logo) {
$pdf->Image($logo, $_PosX + $xleft, $_PosY + $ytop, 0, $logoHeight);
} else {
if ($code && !empty($encoding)) {
$this->writeBarcode($pdf, $code, $encoding, $is2d, $_PosX + $xleft, $_PosY + $ytop, $widthtouse, $heighttouse);
} else {
$pdf->SetXY($_PosX + $xleft, $_PosY + $ytop);
$pdf->MultiCell($this->_Width, $this->_Line_Height, $outputlangs->convToOutputCharset($textleft), 0, 'L');
}
}
} else {
if ($textleft != '' && $textright != '') {
if (($textleft == '%LOGO%' || $textleft == '%PHOTO%' || $textleft == '%BARCODE%') && !strstr($textright, '%')) {
if ($textleft == '%LOGO%' && $logo) {
$pdf->Image($logo, $_PosX + $xleft, $_PosY + $ytop, $widthtouse / 2, 0);
} else {
if ($code && !empty($encoding)) {
$this->writeBarcode($pdf, $code, $encoding, $is2d, $_PosX + $xleft, $_PosY + $ytop, $widthtouse / 2, $heighttouse);
}
}
$pdf->SetXY($_PosX + $widthtouse / 2, $_PosY + $ytop);
$pdf->MultiCell($widthtouse / 2, $this->_Line_Height, $outputlangs->convToOutputCharset($textright), 0, 'R');
} else {
if (($textright == '%LOGO%' || $textright == '%PHOTO%' || $textright == '%BARCODE%') && !strstr($textleft, '%')) {
if ($textright == '%LOGO%' && $logo) {
$pdf->Image($logo, $_PosX + $widthtouse / 2, $_PosY + $ytop, $widthtouse / 2, 0);
} else {
if ($code && !empty($encoding)) {
$this->writeBarcode($pdf, $code, $encoding, $is2d, $_PosX + $widthtouse / 2, $_PosY + $ytop, $widthtouse / 2, $heighttouse);
}
}
$pdf->SetXY($_PosX + $xleft, $_PosY + $ytop);
$pdf->MultiCell($widthtouse / 2, $this->_Line_Height, $outputlangs->convToOutputCharset($textleft), 0, 'L');
} else {
if ($textleft == '%LOGO%') {
if ($logo) {
$pdf->Image($logo, $_PosX + $xleft, $_PosY + $ytop, 0, $logoHeight);
}
if ($code && !empty($encoding)) {
$this->writeBarcode($pdf, $code, $encoding, $is2d, $_PosX + $xleft + $logoWidth + 1, $_PosY + $ytop, $widthtouse - $logoWidth - 1, $heighttouse);
} else {
$pdf->SetXY($_PosX + $xleft + $logoWidth + 1, $_PosY + $ytop);
//.........这里部分代码省略.........
示例6: array
$pdf->Cell($w1[5], $ln, $arrField_2[$i], 'LR', 1, 'L');
}
$pdf->Line($margin, $pdf->GetY(), $margin + $w1[0] + $w1[1] + $w1[2] + $w1[3] + $w1[4] + $w1[5], $pdf->GetY());
$pdf->Ln() * 2;
$pdf->SetFont($font, 'B', $size);
$pdf->SetX($margin + $w[0]);
$pdf->Cell($w[1], $ln, 'B. TARGET DAN REALISASI', '', 1, 'L');
$w2 = array(7, 35, 12, 12, 12, 10, 12, 12, 12);
$pdf->SetFont($font, 'B', $size - 4);
$pdf->SetX($margin);
$pdf->Cell($w2[0], $ln * 3, 'NO.', $border, 0, 'C');
$pdf->SetX($margin + $w2[0]);
$pdf->Cell($w2[1], $ln * 3, 'III. KEGIATAN TUGAS JABATAN', $border, 0, 'L');
$pdf->SetFont($font, 'B', $size - 4);
$y = $pdf->GetY();
$pdf->SetXY($margin + $w2[0] + $w2[1], $y);
$pdf->Cell($w2[2], $ln * 2, 'ANGKA', $noborder, 0, 'C');
$pdf->SetXY($margin + $w2[0] + $w2[1], $y + 6);
$pdf->Cell($w2[2], $ln, 'KREDIT', $noborder, 0, 'C');
$pdf->SetXY($margin + $w2[0] + $w2[1], $y);
$pdf->Cell($w2[2], $ln * 3, '', $border, 0, 'C');
$pdf->SetFont($font, 'B', $size - 3);
$pdf->SetX($margin + $w2[0] + $w2[1] + $w2[2]);
$pdf->Cell($w2[3] + $w2[4] + $w2[5] + $w2[6], $ln, 'TARGET', $border, 0, 'C');
$pdf->SetFont($font, 'B', $size - 4);
$y = $pdf->GetY();
$pdf->SetXY($margin + $w2[0] + $w2[1] + $w2[2] + $w2[3] + $w2[4] + $w2[5] + $w2[6], $y);
$pdf->Cell($w2[2], $ln * 2, 'ANGKA', $noborder, 0, 'C');
$pdf->SetXY($margin + $w2[0] + $w2[1] + $w2[2] + $w2[3] + $w2[4] + $w2[5] + $w2[6], $y + 6);
$pdf->Cell($w2[2], $ln, 'KREDIT', $noborder, 0, 'C');
$pdf->SetXY($margin + $w2[0] + $w2[1] + $w2[2] + $w2[3] + $w2[4] + $w2[5] + $w2[6], $y);
示例7:
/**
* Show footer of page. Need this->emetteur object
*
* @param PDF $pdf PDF
* @param Object $object Object to show
* @param Translate $outputlangs Object lang for output
* @param int $hidefreetext 1=Hide free text
* @return void
*/
function _pagefoot(&$pdf, $object, $outputlangs, $hidefreetext = 0)
{
$default_font_size = pdf_getPDFFontSize($outputlangs);
$pdf->SetFont('', '', $default_font_size - 2);
$pdf->SetY(-23);
$pdf->MultiCell(100, 3, $outputlangs->transnoentities("GoodStatusDeclaration"), 0, 'L');
$pdf->SetY(-13);
$pdf->MultiCell(100, 3, $outputlangs->transnoentities("ToAndDate"), 0, 'C');
$pdf->SetXY(120, -23);
$pdf->MultiCell(100, 3, $outputlangs->transnoentities("NameAndSignature"), 0, 'C');
// Show page nb only on iso languages (so default Helvetica font)
//if (pdf_getPDFFont($outputlangs) == 'Helvetica')
//{
// $pdf->SetXY(-10,-10);
// $pdf->MultiCell(11, 2, $pdf->PageNo().'/'.$pdf->getAliasNbPages(), 0, 'R', 0);
//}
}
示例8: date
$pdf->Cell(6, $margin, $i, 0, 0);
$pdf->Cell(30, $margin, $outbox->no_surat, 0, 0);
$pdf->Cell(15, $margin, date("d-m-Y", strtotime($outbox->tgl_masuk)), 0, 0);
$pdf->Cell(15, $margin, date("d-m-Y", strtotime($outbox->tgl_surat)), 0, 0);
$current_x1 = $pdf->GetX();
$current_y1 = $pdf->GetY();
$pdf->Cell(90);
$current_x2 = $pdf->GetX();
$current_y2 = $pdf->GetY();
$pdf->Cell(50);
$current_x3 = $pdf->GetX();
$current_y3 = $pdf->GetY();
$pdf->Cell(35);
$pdf->Cell(30, $margin, $outbox->nama_jenis, 0, 0);
$pdf->Cell(0, $margin, $outbox->first_name, 0, 0);
$pdf->SetXY($current_x3, $current_y3);
$pdf->MultiCell(35, $margin, $outbox->ptt, 0, 'L');
$y3 = $pdf->getY();
$pdf->SetXY($current_x2, $current_y2);
$pdf->MultiCell(50, $margin, $outbox->tujuan, 0, 'L');
$y2 = $pdf->getY();
$pdf->SetXY($current_x1, $current_y1);
$pdf->MultiCell(90, $margin, $outbox->perihal, 0, 'L');
$y1 = $pdf->getY();
$pdf->setY(max($y1, $y2, $y3));
$pdf->CreateLine($pdf->GetY());
if ($outbox == end($data_outbox)) {
$pdf->CountJenis($i);
}
}
}
示例9: baking
// Total Produksi
$pdf->SetFont($font, 'B', $size - 1);
$pdf->Cell(32, $height, 'JUMLAH KARTU', 1, 0, 'L');
$pdf->SetFont($font, '', $size);
$pdf->Cell(32, $height, $data->t_prod_card . ' / ' . $data->t_prod_card_cnt, 1, 0, 'C');
// Jumlah Kartu
$pdf->Ln($height);
$pdf->SetFont($font, 'B', $size - 1);
$pdf->Cell(96, $height, 'JENIS SCREW / UKURAN / PLATING', 1, 0, 'C');
$pdf->Cell(32, $height, 'No. SPECIAL', 1, 0, 'C');
$pdf->Ln($height);
$pdf->SetFont($font, 'B', $size + 6);
// Size Font Item Name
//$pdf->Cell(96,$height*2,$data->m_item_name,1,0,'C'); // Item Name
$pdf->MultiCell(96, $height, $data->m_item_name, 0, 'C');
$pdf->SetXY(96 + 10, $height * 8 - 2);
$pdf->Cell(32, $height * 2, baking($data->m_item_baking), 1, 0, 'C');
// BAKING
$pdf->Ln($height * 2);
$pdf->SetFont($font, 'B', $size - 1);
$pdf->Cell(25, $height, 'No. COIL', 1, 0, 'L');
$pdf->Cell(39, $height, '', 1, 0, 'C');
$pdf->SetFont($font, '', $size * 0.75);
$pdf->Cell(32, $height * 2, $data->t_prod_id, 1, 0, 'C');
//ID Kartu
$qrcode = new QRcode($data->t_prod_id, 'H');
// error level : L, M, Q, H
$qrcode->displayFPDF($pdf, 115, 68, 14);
$pdf->Cell(32, $height * 2, '', 1, 0, 'C');
//bARCODE
$pdf->Ln($height);
示例10:
$pdf->SetCreator('ZVS');
$pdf->AliasNbPages();
$pdf->AddPage(P);
$pdf->ln(5);
$y = $pdf->GetY();
// Address
$pdf->SetFont($fonttype, 'B', 10);
$pdf->Write(5, $request->GetVar('hotel_name', 'session'));
$pdf->ln(4);
$pdf->SetFont($fonttype, '', 10);
$pdf->Write(5, $request->GetVar('hotel_street', 'session'));
$pdf->ln(4);
$pdf->SetFont($fonttype, '', 10);
$pdf->Write(5, $request->GetVar('hotel_zip', 'session') . " " . $request->GetVar('hotel_city', 'session'));
// Headline
$pdf->SetXY(120, $y);
$pdf->SetFont($fonttype, 'B', 12);
$pdf->Write(5, "Meldeschein für Beherbergungsstätten");
$pdf->SetXY(120, $y + 5);
$pdf->SetFont($fonttype, '', 6);
$pdf->Write(3, "Rechtsgrundlage für die Erhebung der nachfolgend aufgeführten Daten sind");
$pdf->SetXY(120, $y + 8);
$pdf->Write(3, "§§23 und 24 des Meldegesetzes vom 11. April 1983 (GBI. S. 117)");
$pdf->SetFont($fonttype, 'B', 10);
$pdf->SetXY(10, 60);
$pdf->Write(5, "Tag der Ankunft");
$pdf->SetY(65);
$pdf->Write(5, "Tag der voraussichtlichen Abreise");
$pdf->SetY(70);
$pdf->Write(5, "Familienname");
$pdf->SetY(75);
示例11: PDF
$retencoesIRRF = $pedido["retencoesIRRF"];
//PessoaFisica
$Nome = $pessoa["Nome"];
$RG = $pessoa["RG"];
$CPF = $pessoa["CPF"];
$CCM = $pessoa["CCM"];
$setor = $pedido["Setor"];
// GERANDO O PDF:
$pdf = new PDF('P', 'mm', 'A4');
//CRIA UM NOVO ARQUIVO PDF NO TAMANHO A4
$pdf->AliasNbPages();
$pdf->AddPage();
$x = 20;
$l = 6;
//DEFINE A ALTURA DA LINHA
$pdf->SetXY($x, 45);
// SetXY - DEFINE O X (largura) E O Y (altura) NA PÁGINA
$pdf->SetX($x);
$pdf->SetFont('Arial', 'B', 14);
$pdf->Cell(180, 5, utf8_decode("RECIBO DE ENTREGA DE NOTA DE LIQUIDAÇÃO"), 0, 1, 'C');
$pdf->Ln();
$pdf->Ln();
$pdf->Ln();
$pdf->SetX($x);
$pdf->SetFont('Arial', '', 11);
$pdf->MultiCell(180, $l, utf8_decode("Recebi nesta data, da Secretaria Municipal de Cultura, cópias dos seguintes documentos, conforme consta no processo nº: " . $NumeroProcesso . ""));
$pdf->Ln();
$pdf->SetX($x);
$pdf->SetFont('Arial', '', 11);
$pdf->Cell(10, 5, utf8_decode("( )"), 0, 0, 'C');
$pdf->MultiCell(170, $l, utf8_decode("Extrato de Liquidação e Pagamento nº: " . $extratoLiquidacao));
示例12: pdf
$checkbox = ($affichage_checkbox) ? '<td class="nu"><input type="checkbox" name="id_item[]" value="'.$item_id.'" /></td>' : '' ;
$releve_HTML_table_body .= '<td class="nu"> </td>'.affich_score_html($valeur1,$tableau_tri_mode,'%').affich_score_html($valeur2,$tableau_tri_mode,'%').$checkbox.'</tr>'."\r\n";
}
}
$releve_HTML_table_body = '<tbody>'.$releve_HTML_table_body.'</tbody>'."\r\n";
// dernière ligne (doublée)
$memo_y = $releve_PDF->GetY()+2;
$releve_PDF->SetY( $memo_y );
$releve_PDF->choisir_couleur_fond('gris_moyen');
$releve_PDF->Cell($releve_PDF->intitule_largeur , $releve_PDF->cases_hauteur , pdf('moy. scores '.$info_ponderation_courte.' [*]') , 1 , 2 , 'C' , true , '');
$releve_PDF->Cell($releve_PDF->intitule_largeur , $releve_PDF->cases_hauteur , pdf('% validations [**]') , 1 , 0 , 'C' , true , '');
$releve_HTML_table_foot1 = '<tr><th>moy. scores '.$info_ponderation_courte.' [*]</th>';
$releve_HTML_table_foot2 = '<tr><th>% validations [**]</th>';
$checkbox = ($affichage_checkbox) ? '<tr><th class="nu"> </th>' : '' ;
$memo_x = $releve_PDF->GetX();
$releve_PDF->SetXY($memo_x,$memo_y);
if($tableau_tri_objet=='eleve')
{
foreach($tab_liste_item as $item_id) // Pour chaque item...
{
$valeur1 = $tab_moyenne_scores_item[$item_id];
$valeur2 = $tab_pourcentage_acquis_item[$item_id];
$releve_PDF->bilan_periode_synthese_pourcentages($valeur1,$valeur2,TRUE,FALSE);
$releve_HTML_table_foot1 .= affich_score_html($valeur1,'score','%');
$releve_HTML_table_foot2 .= affich_score_html($valeur2,'score','%');
$checkbox .= ($affichage_checkbox) ? '<td class="nu"><input type="checkbox" name="id_item[]" value="'.$item_id.'" /></td>' : '' ;
}
}
else
{
foreach($tab_eleve as $tab) // Pour chaque élève...
示例13: array
$order['prefix_code'] = '';
}
if ($order_counter % $pdf->label_per_page == 0) {
$pdf->AddPage();
}
$order_counter++;
$xpos_starter = ($labelxpos - 1) * $pdf->label_width + $labelxpad;
$ypos_starter = ($labelypos - 1) * $pdf->label_height + $labelypad;
$logo_xpos = $xpos_starter + 52;
$logo_ypos = $ypos_starter;
$pdf->Image(FPDF_IMGPATH . 'jng-logo.png', $logo_xpos, $logo_ypos, 43, 5.33);
//WxH 64.5 x 8
$xpos = $xpos_starter;
$ypos = $ypos_starter - 2;
//NUMBERING
$pdf->SetXY($xpos, $ypos);
$pdf->setFont('Arial', 'B', '18');
$pdf->Cell(10, 10, $order_counter);
//SP FLAG
if ($order['prefix_code'] != '') {
$pdf->SetXY($xpos + 76, $ypos + 5);
$pdf->setFont('Arial', '', '10');
$pdf->Cell(20, 10, $order['prefix_code'], '0', '0', 'R');
}
//ORDER DETAIL
$pdf->setFont('Arial', '', '12');
$lineheight = 5;
$ypos = $ypos_starter + 10;
$pdf->SetXY($xpos, $ypos);
$labels = array();
$labels[] = 'Kunde';
示例14: PDF
$rep02DRT = $rep02["DRT"];
$rep02Funcao = $rep02["Funcao"];
$rep02Endereco = $rep02["Endereco"];
$rep02Telefones = $rep02["Telefones"];
$rep02Email = $rep02["Email"];
$rep02INSS = $rep02["INSS"];
// GERANDO O PDF:
$pdf = new PDF('P', 'mm', 'A4');
//CRIA UM NOVO ARQUIVO PDF NO TAMANHO A4
$pdf->AliasNbPages();
$pdf->AddPage();
$x = 20;
$l = 7;
//DEFINE A ALTURA DA LINHA
//Executante
$pdf->SetXY($x, 40);
// SetXY - DEFINE O X (largura) E O Y (altura) NA PÁGINA
$pdf->SetX($x);
$pdf->SetFont('Arial', '', 10);
$pdf->Cell(10, 5, '(A)', 0, 0, 'L');
$pdf->SetFont('Arial', 'B', 12);
$pdf->Cell(170, 5, 'CONTRATADO', 0, 1, 'C');
$pdf->SetX($x);
$pdf->SetFont('Arial', 'I', 10);
$pdf->Cell(10, 10, utf8_decode('(Quando se tratar de grupo, o líder do grupo)'), 0, 0, 'L');
$pdf->Ln();
$pdf->SetX($x);
$pdf->SetFont('Arial', 'B', 10);
$pdf->Cell(12, $l, 'Nome:', 0, 0, 'L');
$pdf->SetFont('Arial', '', 10);
$pdf->MultiCell(168, $l, utf8_decode($exNome));
示例15:
$pdf->Cell(50, 7, utf8_decode('Zonificación:'), 0, 0, 'L');
$pdf->Cell(0, 7, $zonificacion, 1, 1, 'C');
$pdf->Ln(2);
$pdf->SetFont('Arial', '', 12);
$pdf->Cell(50, 7, utf8_decode('Zona de Riesgo Delictivo:'), 0, 0, 'L');
$pdf->Cell(0, 7, $deszonrie, 1, 1, 'C');
$pdf->Ln(2);
$pdf->SetFont('Arial', '', 12);
$pdf->Cell(50, 7, utf8_decode('Conclusiones:'), 0, 0, 'L');
$pdf->Cell(0, 7, $descon, 1, 1, 'C');
$pdf->Ln(2);
$pdf->SetFont('Arial', '', 12);
$pdf->Cell(50, 7, utf8_decode('Observaciones:'), 0, 0, 'L');
$pdf->MultiCell(0, 5, $obscon, 1, 'C');
$pdf->AddPage();
$pdf->SetXY(20, 25);
$pdf->SetFont('Arial', 'BU', 14);
$pdf->SetTextColor(70, 125, 25);
$pdf->Cell(0, 10, 'CHECK FOTOGRAFICO DE LA VIVIENDA Y ALREDEDORES', 0, 1, 'C');
$pdf->SetTextColor(0, 0, 0);
$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(5);