本文整理汇总了PHP中PDF::Line方法的典型用法代码示例。如果您正苦于以下问题:PHP PDF::Line方法的具体用法?PHP PDF::Line怎么用?PHP PDF::Line使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PDF
的用法示例。
在下文中一共展示了PDF::Line方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: render
/**
* PDF line renderer
*
* @param PDF $pdf
*
* @return void
*/
function render($pdf)
{
if ($this->x1 == ".") {
$this->x1 = $pdf->GetX();
}
if ($this->y1 == ".") {
$this->y1 = $pdf->GetY();
}
if ($this->x2 == ".") {
$this->x2 = $pdf->getMaxLineWidth();
}
if ($this->y2 == ".") {
$this->y2 = $pdf->GetY();
}
if ($pdf->getRTL()) {
$pdf->Line($pdf->getPageWidth() - $this->x1, $this->y1, $pdf->getPageWidth() - $this->x2, $this->y2);
} else {
$pdf->Line($this->x1, $this->y1, $this->x2, $this->y2);
}
}
示例2:
$pdf->SetTextColor(0);
//$temp = str_replace(' ', ' ', PRINT_INVOICE_ORDERNR);
$pdf->Text(20, 95, PRINT_INVOICE_HEADING);
// Rechnungsdatum
$temp = str_replace(' ', ' ', PRINT_INVOICE_DATE);
$pdf->Text(165, 95, $temp . tep_date_short($order->info['date_purchased']));
// Fälligkeitsdatum
//$temp2 = str_replace(' ', ' ', ENTRY_INVOICE_DATE_ZAHLBAR);
//$pdf->Text(171,99,$temp2 . tep_date_short_add($order->info['date_purchased'], 'day' , ZAHLUNGSFAELLIGKEIT));
// Falzmarke
$pdf->SetY(105);
$pdf->SetX(20);
$x = 10;
$y = $pdf->GetY();
$pdf->SetLineWidth(0.25);
$pdf->Line($x, $y, $this->w - $this->rMargin, $y);
// Rechnungstext 1
$pdf->SetFont('Arial', '', 8);
$pdf->SetTextColor(0);
$pdf->SetY(100);
$pdf->Cell(15);
$text['edit_invoice_text'] = str_replace("<br>", '', $text['edit_invoice_text']);
$pdf->MultiCell(200, 4, $text['edit_invoice_text'], 0, 'L');
$pdf->SetFont('Arial', 'B', 8);
$pdf->SetTextColor(0);
// Auftragsnummer
$temp = str_replace(' ', ' ', ENTRY_INVOICE_AUFTRAG_ID);
$pdf->Text(20, 120, $temp . tep_db_input($oID));
// Kundenummer
$temp = str_replace(' ', ' ', ENTRY_INVOICE_COSTUMER_ID);
$pdf->Text(165, 120, $temp . $the_customers_id);
示例3: PDF
}
$nombre = "<b>Descripción del reporte</b>";
$img = "imagenes/log.jpg";
//Antes de pasar los datos al PDF, hay que pasar las variables por la función html_entity_decode para decodificar los caracteres especiales, los acentos y las ñ
// Siempre y cuando los datos extraídos de la BD sean UTF8 (no lo probe con otra codificación)
$nombre = html_entity_decode($nombre);
$descripcion = html_entity_decode($descripcion);
//Creamos una nueva instancia de la clase
$pdf = new PDF();
//Añádimos la primera página
$pdf->AddPage();
$pdf->Image('log.jpg', 8, 8, 30);
$pdf->Ln(12);
$pdf->SetFont('Helvetica', '', 20);
//$pdf->Ln(12);
$pdf->Line(10, 30, 200, 30);
$pdf->SetFontSize(17);
$pdf->SetTextColor(44, 62, 80);
$pdf->WriteHTML("Online Computer Shop");
$pdf->SetTextColor(0);
$pdf->SetLeftMargin(155);
$pdf->SetFontSize(14);
$pdf->Ln(-15);
$pdf->WriteHTML("<br><br><b>Fecha:</b> " . date("d/m/Y", time() - 25200));
$pdf->WriteHTML("<br><b>Hora:</b> " . date("H:i:s", time() - 25200) . "\n\n");
$pdf->SetLeftMargin(10);
$pdf->Ln(14);
// Otra parte importante, luego de pasar las variables por la función html_entity_decode, para que se vean bien los acentos y las ñ, hay que pasarlas por otra
// función que es utf8_decode
$pdf->SetFontSize(14);
$pdf->WriteHTML(utf8_decode($nombre));
示例4: convertirMonto
$pdf->Ln(4);
$pdf->Cell(0, 0, utf8_decode('- Judiciales:'), 0, 0, 'L', false);
//descuento por reposo
$pdf->text(80, 94, "Gs: ");
$pdf->text(90, 94, number_format($Judicial), 0, '', '.');
$pdf->Ln(4);
$pdf->Cell(0, 0, utf8_decode('- Otros Descuentos:'), 0, 0, 'L', false);
//descuentos Judiciales esto es otros descuentos
$pdf->text(80, 98, "Gs: ");
$pdf->text(90, 98, number_format($Odescuentos), 0, '', '.');
$pdf->Ln(4);
$pdf->Cell(0, 0, utf8_decode('- Total Descuentos:'), 0, 0, 'L', false);
//aqui si fijamos el descuento de judiciales..
$pdf->text(152, 102, 'Gs:');
$pdf->text(158, 102, number_format($IPS + $Ausencia + $Permiso + $ASO + $Reposo + $Judicial + $Odescuentos), 0, '', '.');
$pdf->Line(158, 103, 177, 103);
$pdf->Ln(4);
$pdf->Cell(0, 0, utf8_decode('Saldo a Cobrar:'), 0, 0, 'L', false);
//salario a cobrar
$pdf->Ln(4);
$pdf->Cell(0, 0, utf8_decode('Son:'), 0, 0, 'L', false);
$pdf->text(20, 110, convertirMonto((int) $Neto));
$pdf->text(152, 110, 'Gs:');
$pdf->text(158, 110, number_format($Neto), 0, '', '.');
$pdf->Line(158, 111, 177, 111);
$pdf->Line(158, 112, 177, 112);
//Table header
/*$pdf->Cell(20,10,'SIAPE',1,0,'L',1);
$pdf->Cell(50,10,'Nome',1,1,'L',1);*/
$pdf->Output();
$pdf->Close();
示例5:
$pdf->SetY(167);
$pdf->SetX(280);
$pdf->Cell(25, 5, '100', 0, 0, 'L');
$pdf->SetY(167);
$pdf->SetX(290);
$pdf->Cell(25, 5, '105', 0, 0, 'L');
$pdf->SetY(167);
$pdf->SetX(300);
$pdf->Cell(25, 5, '110', 0, 0, 'L');
$pdf->SetY(180);
$pdf->SetX(80);
$pdf->Cell(25, 5, '1:200,000', 0, 0, 'L');
if ($graphtax1 > 0) {
$pdf->SetLineWidth(2);
$pdf->SetDrawColor(255, 0, 0);
$pdf->Line(80, 70, 80 + $graphtax1, 70);
}
$pdf->SetY(67);
$pdf->SetX(80 + $graphtax1 + 3);
$pdf->Cell(25, 5, 'Year ' . $dateprev . ' (' . number_format($sumtax1[0], 2) . ')', 0, 0, 'L');
if ($graphtax2 > 0) {
$pdf->SetLineWidth(2);
$pdf->SetDrawColor(255, 100, 0);
$pdf->Line(80, 75, 80 + $graphtax2, 75);
}
$pdf->SetY(72);
$pdf->SetX(80 + $graphtax2 + 3);
$pdf->Cell(25, 5, 'Year ' . $datenext . ' (' . number_format($sumtax2[0], 2) . ')', 0, 0, 'L');
if ($graphfee1 > 0) {
$pdf->SetLineWidth(2);
$pdf->SetDrawColor(0, 255, 0);
示例6: while
$oList_sub = mysql_query("select * from m_iku_sub WHERE ta = '{$th}' and kdunitkerja = '480000' and no_iku = '{$row['no_iku']}' order by no_iku_sub");
while ($row_sub = mysql_fetch_array($oList_sub)) {
$iku_sub = $iku_sub . nmalfa($row_sub['no_iku_sub']) . '. ' . $row_sub['nm_iku_sub'] . "\n";
}
$arrIku = $pdf->SplitToArray($w1[2], $ln, trim($iku_sub));
} else {
$arrIku = $pdf->SplitToArray($w1[2], $ln, '[IKU ' . $row['no_iku'] . '] ' . trim($row['nm_iku']));
}
if ($max < count($arrSasaran)) {
$max = count($arrSasaran);
}
if ($max < count($arrIku)) {
$max = count($arrIku);
}
if ($kd_sasaran != $row['no_sasaran']) {
$pdf->Line($margin, $pdf->GetY(), $margin + $w1[0] + $w1[1] + $w1[2], $pdf->GetY());
}
if ($kd_sasaran == $row['no_sasaran']) {
$pdf->Line($margin + $w1[0] + $w1[1], $pdf->GetY(), $margin + $w1[0] + $w1[1] + $w1[2], $pdf->GetY());
}
$kd_sasaran = $row['no_sasaran'];
for ($i = 0; $i < $max; $i++) {
$pdf->SetX($margin + $w1[0]);
$pdf->Cell($w1[1], $ln, $arrSasaran[$i], 'LR', 0, 'L');
$pdf->SetX($margin + $w1[0] + $w1[1]);
$pdf->Cell($w1[2], $ln, $arrIku[$i], 'LR', 1, 'L');
}
}
$pdf->Line($margin, $pdf->GetY(), $margin + $w1[0] + $w1[1] + $w1[2], $pdf->GetY());
$pdf->SetDisplayMode('real');
$pdf->Output('doc.pdf', 'I');
示例7:
}
}
}
$pdf->Write(5, $identity . "Nummer: " . $bookdata[passport]);
$pdf->SetXY(100, 100);
$pdf->Write(5, $bookdata[agency] . ", " . $bookdata[issue_date]);
$pdf->SetXY(100, 105);
$pdf->Write(5, $bookdata[zip] . " " . $bookdata[city]);
$pdf->SetXY(100, 110);
$pdf->Write(5, $bookdata[street]);
$pdf->SetXY(100, 115);
$pdf->Write(5, $bookdata[country]);
$pdf->SetXY(100, 120);
$pdf->Write(5, $bookdata[children]);
// Table
$pdf->Line(10, 60, 190, 60);
$pdf->Line(10, 65, 190, 65);
$pdf->Line(10, 70, 190, 70);
$pdf->Line(10, 75, 190, 75);
$pdf->Line(10, 80, 190, 80);
$pdf->Line(10, 85, 190, 85);
$pdf->Line(10, 90, 190, 90);
$pdf->Line(10, 95, 190, 95);
$pdf->Line(10, 100, 190, 100);
$pdf->Line(10, 105, 190, 105);
$pdf->Line(10, 110, 190, 110);
$pdf->Line(10, 115, 190, 115);
$pdf->Line(10, 120, 190, 120);
$pdf->Line(10, 125, 190, 125);
$pdf->Line(100, 60, 100, 125);
// signs
示例8: home__memberlist_printview
function home__memberlist_printview()
{
global $base_url, $files_dir, $config;
// $content='<html><head><meta http-equiv="Content-Type" content="application/pdf; charset=utf-8" />';
// drupal_add_css(BOOTSTRAP.'/css/bootstrap.min.css');
// drupal_add_css(CHURCHDB.'/cdb_printview.css');
// $content=$content.drupal_get_header();
if (!user_access("view memberliste", "churchdb")) {
addErrorMessage(t("no.permission.for", t("list.of.members")));
return " ";
}
require_once ASSETS . '/fpdf17/fpdf.php';
$compact = true;
if (isset($_GET["compact"])) {
$compact = $_GET["compact"];
}
// Instanciation of inherited class
$pdf = new PDF('P', 'mm', 'A4');
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->SetFont('Arial', '', 9);
$res = home_getMemberList();
$pdf->SetLineWidth(0.4);
$pdf->SetDrawColor(200, 200, 200);
$fields = _home__memberlist_getSettingFields()->fields;
foreach ($res as $p) {
$pdf->Line(8, $pdf->GetY() - 1, 204, $pdf->GetY() - 1);
$pdf->Cell(10, 10, "", 0);
if ($p->imageurl == null || !file_exists("{$files_dir}/fotos/{$p->imageurl}")) {
$p->imageurl = "nobody.gif";
}
$pdf->Image("{$files_dir}/fotos/{$p->imageurl}", $pdf->GetX() - 10, $pdf->GetY() + 1, 9);
$pdf->Cell(2);
$pdf->Cell(13, 9, $p->anrede, 0, 0, 'L');
$pdf->Cell(48, 9, utf8_decode("{$p->name}, {$p->vorname}"), 0, 0, 'L');
$pdf->Cell(45, 9, utf8_decode("{$p->strasse}"), 0, 0, 'L');
// TODO: second occurence of code part - whats this for?
$birthday = "";
if ($p->geburtsdatum != null) {
if ($p->year < 7000) {
$birthday = "{$p->day}.{$p->month}.";
}
if ($p->year != 1004 && $fields["memberlist_birthday_full"]->getValue()) {
if ($p->year < 7000) {
$birthday = $birthday . $p->year;
} else {
$birthday = $birthday . $p->year - 7000;
}
}
}
$pdf->Cell(20, 9, $birthday, 0, 0, 'L');
if ($fields["memberlist_telefonprivat"]->getValue() && $p->telefonprivat != "") {
$pdf->Cell(30, 9, $p->telefonprivat, 0, 0, 'L');
} else {
if ($fields["memberlist_telefongeschaeftlich"]->getValue() && $p->telefongeschaeftlich != "") {
$pdf->Cell(30, 9, $p->telefongeschaeftlich, 0, 0, 'L');
} else {
if ($fields["memberlist_telefongeschaeftlich"]->getValue() && $p->fax != "") {
$pdf->Cell(30, 9, $p->fax . " (Fax)", 0, 0, 'L');
} else {
$pdf->Cell(30, 9, "", 0, 0, 'L');
}
}
}
if ($fields["memberlist_telefonhandy"]->getValue() && $p->telefonhandy != "") {
$pdf->Cell(30, 9, $p->telefonhandy, 0, 0, 'L');
}
// Zeilenumbruch
$pdf->Ln(5);
$pdf->Cell(73);
$pdf->Cell(48, 10, "{$p->plz} " . utf8_decode($p->ort), 0, 0, 'L');
$pdf->Cell(17);
if ($fields["memberlist_email"]->getValue() && $p->email != "") {
$pdf->SetFont('Arial', '', 8);
$pdf->Cell(30, 9, $p->email);
$pdf->SetFont('Arial', '', 9);
}
$pdf->Ln(12);
}
$pdf->Output(t("list.of.members") . '.pdf', 'I');
}
示例9: PDF
$dOrderJum = mysql_fetch_assoc($nOrderJum);
$pdf = new PDF('P', 'mm', 'A4');
$pdf->AddPage();
$pdf->Ln();
$path = 'images/logo.jpg';
$pdf->Image($path, 15, 3, 20);
$pdf->SetFont('Arial', 'B', 12);
$pdf->SetY(10);
$pdf->Cell(190, 5, 'Daftar Perbandingan Harga', 0, 1, 'C');
$pdf->Ln();
$pdf->SetFont('Arial', 'B', 8);
$pdf->Cell(190, 5, $nodph, 0, 0, 'C');
$pdf->SetX(180);
$pdf->Cell(1, 5, 'Date : ' . tanggalnormal($dOrder['tanggal']), 0, 1, 'L');
$pdf->Ln();
$pdf->Line(10, 30, 200, 30);
$pdf->SetFont('Arial', '', 7);
$pdf->Ln();
$pdf->Cell(15, 5, 'Nama PT.', 0, 0, 'L');
$pdf->Cell(10, 5, ':', 0, 0, 'C');
$pdf->Cell(80, 5, $nmOrg[$kdPt[$dOrder['nopp']]], 0, 0, 'L');
$pdf->Cell(15, 5, 'Dept', 0, 0, 'L');
$pdf->Cell(10, 5, ':', 0, 0, 'C');
$pdf->Cell(10, 5, $nmOrg[substr($dOrder['nopp'], 15, 4)], 0, 1, 'L');
$pdf->Cell(15, 5, 'No.PP.', 0, 0, 'L');
$pdf->Cell(10, 5, ':', 0, 0, 'C');
$pdf->Cell(80, 5, $dOrder['nopp'], 0, 0, 'L');
$pdf->Cell(15, 5, 'Qty', 0, 0, 'L');
$pdf->Cell(10, 5, ':', 0, 0, 'C');
$pdf->Cell(10, 5, $dOrderJum['jumlah'], 0, 1, 'L');
$pdf->Cell(15, 5, '', 0, 0, 'L');
示例10: count
$arrPaguDipa = $pdf->SplitToArray($w[2], $ln, number_format($row['jml_anggaran_dipa'], "0", ",", "."));
$arrPaguIni = $pdf->SplitToArray($w[3], $ln, number_format($row['jml_anggaran_indikatif'], "0", ",", "."));
if ($max < count($arrUraian)) {
$max = count($arrUraian);
}
for ($i = 0; $i < $max; $i++) {
$pdf->SetX($margin);
$pdf->Cell($w[0], $ln, $arrKode[$i], 'LR', 0, 'C');
$pdf->SetX($margin + $w[0]);
$pdf->Cell($w[1], $ln, $arrUraian[$i], 'LR', 0, 'L');
$pdf->SetX($margin + $w[0] + $w[1]);
$pdf->Cell($w[2], $ln, $arrPaguDipa[$i], 'LR', 0, 'R');
$pdf->SetX($margin + $w[0] + $w[1] + $w[2]);
$pdf->Cell($w[3], $ln, $arrPaguIni[$i], 'LR', 1, 'R');
}
$pdf->Line($margin, $pdf->GetY(), $margin + $w[0] + $w[1] + $w[2] + $w[3], $pdf->GetY());
switch ($xlevel) {
case '1':
$sql = "SELECT kddept,kdunit,kdprogram, SUM(jml_anggaran_renstra) as jml_anggaran_renstra, SUM(jml_anggaran_dipa) as jml_anggaran_dipa, SUM(jml_anggaran_indikatif) as jml_anggaran_indikatif FROM thbp_kak_kegiatan WHERE th = '{$th}' GROUP BY concat(kddept,kdunit,kdprogram) ORDER BY concat(kddept,kdunit,kdprogram)";
break;
case '5':
$sql = "SELECT kddept,kdunit,kdprogram, SUM(jml_anggaran_renstra) as jml_anggaran_renstra, SUM(jml_anggaran_dipa) as jml_anggaran_dipa, SUM(jml_anggaran_indikatif) as jml_anggaran_indikatif FROM thbp_kak_kegiatan WHERE kdunitkerja = '{$xkdunit}' and th = '{$th}' GROUP BY concat(kddept,kdunit,kdprogram) ORDER BY concat(kddept,kdunit,kdprogram)";
break;
case '6':
$sql = "SELECT kddept,kdunit,kdprogram, SUM(jml_anggaran_renstra) as jml_anggaran_renstra, SUM(jml_anggaran_dipa) as jml_anggaran_dipa, SUM(jml_anggaran_indikatif) as jml_anggaran_indikatif FROM thbp_kak_kegiatan WHERE left(kdunitkerja,3) = '{$kddeputi_i}' and th = '{$th}' GROUP BY concat(kddept,kdunit,kdprogram) ORDER BY concat(kddept,kdunit,kdprogram)";
break;
default:
$sql = "SELECT kddept,kdunit,kdprogram, SUM(jml_anggaran_renstra) as jml_anggaran_renstra, SUM(jml_anggaran_dipa) as jml_anggaran_dipa, SUM(jml_anggaran_indikatif) as jml_anggaran_indikatif FROM thbp_kak_kegiatan WHERE th = '{$th}' GROUP BY concat(kddept,kdunit,kdprogram) ORDER BY concat(kddept,kdunit,kdprogram)";
break;
}
$oProgram = mysql_query($sql);
示例11:
$pdf->SetY(285);
$pdf->Cell(150,12,'>>> --- SEGUE SU PAGINA SUCCESSIVA --- >>>',1,1,'C');
$pdf->AddPage();
}
}
$piede='il cliente';
$pdf->Cell(150,8,'TOTALE RISCOSSO',1,0,'R');
$pdf->Cell(40,8,gaz_format_number($importo),1,1,'R',1);
if ($pdf->GetY() <= 135)
{
$pdf->SetY(140);
$pdf->SetFont('helvetica','',8);
$pdf->MultiCell(190,4,'Copia per il cliente',0,'C',0);
$pdf->Ln(8);
$pdf->Line(0,145,210,145);
$pdf->Header();
}
else $pdf->AddPage();
$rs_rig = gaz_dbi_dyn_query("*", $gTables['rigbro'], "id_tes like '$testat'","id_tes desc");
$importo = 0;
while ($rigo = gaz_dbi_fetch_array($rs_rig)) {
if ($pdf->GetY() <= 280) {
$pdf->Cell(150,8,$rigo['descri'],1,0,'L');
$pdf->Cell(40,8,gaz_format_number($rigo['prelis']),1,1,'R');
$importo += $rigo['prelis'];
} else {
$pdf->SetY(285);
$pdf->Cell(190,12,'>>> --- SEGUE SU PAGINA SUCCESSIVA --- >>>',1,1,'C');
$pdf->AddPage();
}
示例12:
/**
* Fonction realisant une croix aux 4 coins des cartes
*
* @param PDF $pdf PDF
* @param int $x1 X1
* @param int $y1 Y1
* @param int $x2 X2
* @param int $y2 Y2
* @param int $epaisseur Epaisseur
* @param int $taille Size
* @return void
*/
function _Croix(&$pdf, $x1 = 0, $y1 = 0, $x2 = 210, $y2 = 297, $epaisseur = 1, $taille = 4)
{
$pdf->SetDrawColor(192, 192, 192);
$pdf->SetLineWidth($epaisseur);
$lg = $taille / 2;
// croix haut gauche
$pdf->Line($x1, $y1 - $lg, $x1, $y1 + $lg);
$pdf->Line($x1 - $lg, $y1, $x1 + $lg, $y1);
// croix bas gauche
$pdf->Line($x1, $y2 - $lg, $x1, $y2 + $lg);
$pdf->Line($x1 - $lg, $y2, $x1 + $lg, $y2);
// croix haut droit
$pdf->Line($x2, $y1 - $lg, $x2, $y1 + $lg);
$pdf->Line($x2 - $lg, $y1, $x2 + $lg, $y1);
// croix bas droit
$pdf->Line($x2, $y2 - $lg, $x2, $y2 + $lg);
$pdf->Line($x2 - $lg, $y2, $x2 + $lg, $y2);
$pdf->SetDrawColor(0, 0, 0);
}
示例13: VALUES
reset($auxcod);
foreach ($auxcod as $cod) {
if (!empty($cod)){
//Salva as informações da ficha de autorização no BD
$sqla = "INSERT INTO autorizacao_codigoconvenio (codautorizacao, codconvenio) VALUES ('$resultc[0]', '$cod');";
// Executa o comando SQL
mysql_query($sqla);
}
}
//Instanciação da classe herdada
$pdf=new PDF("L","mm","A4"); //P->Retrato, L->Paisagem; mm-> milímetros; A4-> padrão da folha
//$pdf = new MEM_IMAGE;
$pdf->AliasNbPages(); //Recebe o total de páginas
$pdf->AddPage(); //Coloca uma página em branco
$pdf->Line(148,0,148,210); //Adiciona a linha no centro da pagina
//BLOCO DO NOME GUIA DE PROCEDIMENTOS
//-----------------------------------------------------------------------------------------------
$pdf->SetFont('Arial','B',12);
$pdf->Cell(33);
$pdf->Cell(70,10,utf8_decode('Guia de Autorização'),0,0,'C');
$pdf->SetX(180);
$pdf->Cell(70,10,utf8_decode('Guia de Autorização'),0,0,'C');
//-----------------------------------------------------------------------------------------------
//BLOCO DA LINHA
//-----------------------------------------------------------------------------------------------
$pdf->SetFont('Arial','U',8);
$pdf->Ln(3);
$pdf->Cell(50,10,' ',0,0);
示例14: while
$pdf->Cell($breite, 4, '', 0, 1, 'C');
$ic++;
}
while ($count[$ic] and $einzel[$ie] and $count[$ic]->tln_nr > $einzel[$ie]->tln_nr) {
$pdf->Cell($breite1, 4, ' ', 0, 0);
$ztext = utf8_decode("Ergebnis übersprungen, da Spieler nicht in Aufstellung ");
$ztext .= ' Verein:' . $einzel[$ie]->zps . ' Mitglied:' . $einzel[$ie]->spieler;
$ztext .= ' Durchgang:' . $einzel[$ie]->dg . ' Runde:' . $einzel[$ie]->runde;
$ztext .= ' Brett:' . $einzel[$ie]->brett . ' Erg:' . $einzel[$ie]->punkte;
$pdf->Cell(50, 4, $ztext, 0, 1, 'L');
$ie++;
}
$x = $pdf->GetX();
$y = $pdf->GetY();
if ($o_nr == 0 or $mannschaft[$m]->sg_zps <= "0") {
$pdf->Line($x + $breite1, $y + 2, $x + 170, $y + 2);
} else {
$pdf->Line($x + $breite1, $y + 2, $x + 178, $y + 2);
}
$pdf->Cell(8, 4, '', 0, 1, 'C');
$pdf->Cell($breite1, 4, ' ', 0, 0);
$pdf->Cell(12, 4, JText::_('TEAM_TOTAL'), 0, 0, 'C');
if ($o_nr == 0 or $mannschaft[$m]->sg_zps <= "0") {
$pdf->Cell(40, 4, '', 0, 0);
} else {
$pdf->Cell(48, 4, '', 0, 0);
}
$pdf->Cell(10, 4, '', 0, 0, 'R');
$pktsumme = 0;
$spl = 0;
for ($c = 0; $c < $mannschaft[$m]->dg; $c++) {
示例15: constructPIContent
//.........这里部分代码省略.........
$slipinfo = 'Bonofactum';
}
$colpos = $margin + 1;
$pdf->OrderBarcode($o['type'], $oiid, $barcode_pos, $rowpos, $barcode_width);
$pdf->SetXY($margin, $rowpos);
$pdf->setFont('Arial', 'B', '12');
$pdf->Cell(100, $lineheight, 'Engraving Order Slip (' . $slipinfo . ')');
$rowpos += $lineheight + 5;
$rowpos_fixed = $rowpos;
if ($imgbig != '') {
$pdf->Image($imgbig, $colpos, $rowpos, $imgbig_width);
}
$pdf->Rect($colpos, $rowpos, $imgbig_width, $imgbig_width);
$colpos += $imgbig_width + 5;
$es_ilbl_width = 30;
$es_ilbl = array();
$es_info = array();
$es_ilbl[] = 'Order By';
$es_info[] = ': Bonofactum';
$es_ilbl[] = 'Order Date';
$es_info[] = ': ' . date('d. M Y');
$es_ilbl[] = 'Order Quantity';
$es_info[] = ': ' . $product_qty;
$pdf->setFont('Arial', 'B', $fontsize_med);
$pdf->SetXY($colpos, $rowpos);
$pdf->MultiCell($es_ilbl_width, $lineheight, implode("\n", $es_ilbl));
$pdf->SetXY($colpos + $es_ilbl_width, $rowpos);
$pdf->MultiCell($es_ilbl_width * 2, $lineheight, implode("\n", $es_info));
$rowpos += (count($es_ilbl) + 1) * $lineheight + 1;
$pdf->SetXY($colpos, $rowpos);
$pdf->Cell(100, $lineheight, 'Custom Text');
$rowpos += $lineheight + 1;
$pdf->SetDrawColor(128, 128, 128);
$pdf->Rect($colpos + 1, $rowpos, 132, 30);
$pdf->SetDrawColor(0, 0, 0);
if ($i['custom_text'] != '') {
$pdf->SetXY($colpos + 3, $rowpos + 3);
$pdf->setFont('Arial', 'B', '12');
$pdf->MultiCell(100, $lineheight, $i['custom_text']);
}
$rowpos = $rowpos_fixed + $imgbig_width + 5;
if ($i['custom_img'] != '') {
$leftpos = $margin + 1;
if ($imgcus != '') {
$pdf->Image($imgcus, $leftpos, $rowpos, $imgcus_width);
$pdf->Rect($leftpos, $rowpos, $imgcus_width, $imgcus_width);
}
$leftpos += $imgcus_width + 2;
$pdf->setXY($leftpos, $rowpos);
$pdf->setFont('Arial', 'B', $fontsize_med);
$pdf->Cell(100, $lineheight, 'Custom Image:');
$rowpos += $lineheight;
$pdf->setXY($leftpos, $rowpos);
$pdf->setFont('Arial', '', $fontsize_med);
$pdf->Cell(100, $lineheight, basename($i['custom_img']));
$rowpos += $lineheight + 1;
$pdf->setXY($leftpos, $rowpos);
$pdf->setFont('Arial', 'B', $fontsize_med);
$pdf->Cell(100, $lineheight, 'Graving Request:');
$rowpos += $lineheight;
$engraving_options_pos = $leftpos + $lineheight + 1;
$engraving_options = array();
$engraving_options[] = 'Full (gravir penuh)';
$engraving_options[] = 'Centered (gravir tengah, atas dan bawah kosong)';
$engraving_options[] = 'Bottom (gravir bawah penuh, atas kosong)';
$pdf->setXY($engraving_options_pos, $rowpos);
$pdf->setFont('Arial', '', $fontsize_med);
$pdf->MultiCell(100, $lineheight, implode("\n", $engraving_options));
$cb_sep = 0.5;
$cbsize = $lineheight - $cb_sep;
$leftpos += 1;
$pdf->SetDrawColor(128, 128, 128);
foreach ($engraving_options as $eo) {
$pdf->Rect($leftpos, $rowpos, $cbsize, $cbsize);
$rowpos += $lineheight;
}
$pdf->SetDrawColor(0, 0, 0);
}
}
$pdf->Line($margin, $midpage, 210 - $margin, $midpage);
}
if ($i['print_count'] == '0' || $i['print_count'] == '') {
$this->qty_total_first_printed++;
}
}
//end looping items
}
//end looping orders
if ($output == 'F') {
$filename = $this->filename != '' ? $this->filename : DIR_FS_MINIERP . DIR_WS_GATEWAY . "ready_orders/" . strtoupper($o['type']) . '/' . strtoupper($o['type']) . '-' . $oiid;
// $priority_rule_1 = in_array($o['jng_sp_id'], $sp_using_red_paper);
// $priority_rule_2 = $o['customer_is_vip'];
$priority_rule_1 = $o['priority'] == '1';
// if($priority_rule_1 || $priority_rule_2 || $priority_rule_3) $filename .= '-RED';
if ($priority_rule_1 && $this->filename == '') {
$filename .= '-RED';
}
$pdf->Output($filename . '.pdf', $output);
}
}