本文整理汇总了PHP中FPDF::SetY方法的典型用法代码示例。如果您正苦于以下问题:PHP FPDF::SetY方法的具体用法?PHP FPDF::SetY怎么用?PHP FPDF::SetY使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FPDF
的用法示例。
在下文中一共展示了FPDF::SetY方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: save
//.........这里部分代码省略.........
$borders .= 'T';
$pdf->SetDrawColor(
hexdec(substr($style->getBorders()->getTop()->getColor()->getRGB(), 0, 2)),
hexdec(substr($style->getBorders()->getTop()->getColor()->getRGB(), 2, 2)),
hexdec(substr($style->getBorders()->getTop()->getColor()->getRGB(), 4, 2))
);
}
if ($style->getBorders()->getBottom()->getBorderStyle() != PHPExcel_Style_Border::BORDER_NONE) {
$borders .= 'B';
$pdf->SetDrawColor(
hexdec(substr($style->getBorders()->getBottom()->getColor()->getRGB(), 0, 2)),
hexdec(substr($style->getBorders()->getBottom()->getColor()->getRGB(), 2, 2)),
hexdec(substr($style->getBorders()->getBottom()->getColor()->getRGB(), 4, 2))
);
}
if ($borders == '') {
$borders = 0;
}
if ($sheet->getShowGridlines()) {
$borders = 'LTRB';
}
// Image?
$iterator = $sheet->getDrawingCollection()->getIterator();
while ($iterator->valid()) {
if ($iterator->current()->getCoordinates() == PHPExcel_Cell::stringFromColumnIndex($column) . ($row + 1)) {
try {
$pdf->Image(
$iterator->current()->getPath(),
$pdf->GetX(),
$pdf->GetY(),
$iterator->current()->getWidth(),
$iterator->current()->getHeight(),
'',
$this->_tempDir
);
} catch (Exception $ex) { }
}
$iterator->next();
}
// Print cell
$pdf->MultiCell(
$cellWidth,
$cellHeight,
$cellData,
$borders,
$alignment,
($style->getFill()->getFillType() == PHPExcel_Style_Fill::FILL_NONE ? 0 : 1)
);
// Coordinates
$endX = $pdf->GetX();
$endY = $pdf->GetY();
// Revert to original Y location
if ($endY > $startY) {
$pdf->SetY($startY);
if ($lineHeight < $lineHeight + ($endY - $startY)) {
$lineHeight = $lineHeight + ($endY - $startY);
}
}
$pdf->SetX($startX + $singleCellWidth);
// Hyperlink?
if ($sheet->getCellByColumnAndRow($column, $row)->hasHyperlink()) {
if (!$sheet->getCellByColumnAndRow($column, $row)->getHyperlink()->isInternal()) {
$pdf->Link(
$startX,
$startY,
$endX - $startX,
$endY - $startY,
$sheet->getCellByColumnAndRow($column, $row)->getHyperlink()->getUrl()
);
}
}
}
// Garbage collect!
$sheet->garbageCollect();
// Next line...
$pdf->Ln($lineHeight);
}
}
// Document info
$pdf->SetTitle($this->_phpExcel->getProperties()->getTitle());
$pdf->SetAuthor($this->_phpExcel->getProperties()->getCreator());
$pdf->SetSubject($this->_phpExcel->getProperties()->getSubject());
$pdf->SetKeywords($this->_phpExcel->getProperties()->getKeywords());
$pdf->SetCreator($this->_phpExcel->getProperties()->getCreator());
// Write to file
fwrite($fileHandle, $pdf->output($pFilename, 'S'));
// Close file
fclose($fileHandle);
}
示例2: genpdf
function genpdf($typefacture, $datefacture, $nofacture, $montant, $civilite, $client, $contact, $chrono, $today)
{
$pdf = new FPDF("P", "mm", "A4");
$pdf->AddPage();
$pdf->SetMargins(20, 20);
$pdf->AddFont("Arialb", "", "arialb.php");
//$pdf->AddFont("Courier","","arialb.php");
/////////////////////////////////////en tete////////////////////////////////////////
//logo
$pdf->SetXY(18, 24);
$X = $pdf->GetX();
$Y = $pdf->GetY();
$pdf->Image("img/logo.jpg", $X, $Y, 23, 19, "jpg");
//Commune de Faa"a
$pdf->SetXY(42, 22);
$X = $pdf->GetX();
$Y = $pdf->GetY();
$pdf->SetFont("Arialb", "", 13);
$pdf->Cell(55, 10, utf8_decode("COMMUNE DE FAA'A"));
$pdf->SetXY($X + 1, $Y + 8);
$pdf->SetFont("Arial", "", 12);
$pdf->Cell(55, 5, utf8_decode("N° {$chrono}/DAF/FTR-Régie-hp"), 1, 1, "C");
//$X=$pdf->GetX();
$Y = $pdf->GetY();
$pdf->SetXY($X, $Y);
$pdf->SetFont("Arial", "", 9);
$pdf->Cell(55, 5, utf8_decode("Affaire suivie par : Hinatini Parker"), 0, 1);
$Y = $pdf->GetY();
$pdf->SetXY($X, $Y);
$pdf->SetFont("Arial", "", 9);
$pdf->Cell(55, 3, utf8_decode("Téléphone : 800 960 poste 421"), 0, 0);
///////////////////////////////////fin en tete/////////////////////////////////////
///////////////////////////////////colonne droite/////////////////////////////////
//Date
$pdf->SetXY($X + 100, $Y);
$pdf->SetFont("Arial", "", 10);
$pdf->Cell(55, 3, "Faa'a le " . $today, 0);
///////////////////////////////////fin colonne droite////////////////////////////
/////////////////////////////////info exp/dest //////////////////////////////////////
//Le Maire
$pdf->SetY(60);
$pdf->SetFont("times", "", 18);
$pdf->Cell(0, 10, "Le Maire", 0, 1, "C");
//Destinataire
$pdf->SetY(70);
$pdf->SetFont("Arial", "", 10);
$pdf->Multicell(0, 5, utf8_decode("à\n{$client}\n{$contact}"), 0, "C");
$currentY = $pdf->GetY();
$pdf->SetY($currentY + 10);
$pdf->SetFont("Arialb", "U", 10);
$pdf->Cell(20, 5, utf8_decode("Objet :"), 0, 0, "L");
$pdf->SetFont("Arialb", "", 10);
$pdf->Cell(0, 5, utf8_decode("Relance des factures impayées"), 0, 1, "L");
$pdf->SetFont("Arial", "U", 10);
$pdf->Cell(20, 5, utf8_decode("N/Réf :"), 0, 0, "L");
$pdf->SetFont("Arial", "", 10);
$pdf->Cell(0, 5, utf8_decode("Facture {$typefacture} N° {$nofacture} du {$datefacture}"), 0, 1, "L");
$Y = $pdf->GetY();
$pdf->SetY($Y + 20);
$text = "{$civilite},\n\nJe vous informe que, sauf erreur de ma part, vous présentez un impayé " . "envers la Commune de FAA'A d'un montant de {$montant} FCP au titre de la (des) {$typefacture}.\n\n" . "Aussi, je vous demande de bien vouloir vous rapprocher de la Régie municipale pour vous acquitter de la somme due.\n\n" . "A défaut de réponse de votre part dans un délai de 45 jours à compter de la date du présent courrier," . "votre dossier sera transmis en contentieux à la Trésorerie des Iles du Vent, des Australes et des Archipels pour commandement de payer.\n\n" . "La Régie reste à votre disposition au 800.960 poste 421 pour toute entente préalable avant poursuite.\n\n" . "Je vous prie d'agréer, {$civilite}, l'expression de mes salutations distinguées";
$pdf->Multicell(0, 5, utf8_decode($text), 0, "L");
$pdf->Image("img/marianne.jpg", 150, 220, 31, 31, "jpg");
////////////////////////////////information////////////////////////////////////
$pdf->Line(20, 273, 190, 273);
$pdf->SetXY(20, 273);
$pdf->SetFont("Arial", "", 7);
$pdf->Cell(0, 3, utf8_decode("PK 4 côté mer - BP 60 002 - 98702 Faa’a Centre - Tahiti / Tél. : (689) 800 960 - Télécopie : (689) 834 890 - E-mail : mairiefaaa@mail.pf\n"), 0, 0, "C");
////////////////////////////////fin information////////////////////////////////////
$pdf->Output();
}
示例3: printBody
$status = $clearance_model->getOverallSignatoryClearanceStatus($stud_id, $value, $current_sysemID);
if ($status == "No Requirements") {
$status = "Cleared";
}
$listOfSignatories["status"][$key] = $status;
}
//var_dump($listOfSignatories);
$fpdf = new FPDF('P', 'mm', 'Legal');
$fpdf->SetDisplayMode('fullpage', 'continuous');
$fpdf->SetTitle("SOCS Clearance - Export Copy");
$fpdf->SetCreator("USEP SOCS");
$fpdf->SetAuthor("University of Southeastern Philippines");
$fpdf->SetSubject("Electronic Clearance (export copy)");
$fpdf->SetMargins(15, 15, 15);
$fpdf->AddPage();
$fpdf->SetY('15');
$fpdf->Image('logo.jpg', 13, $fpdf->GetY() - 5, 25);
printBody();
$fpdf->Cell(0, 0, "Registrar's Copy", 0, 1, 'R', false);
$fpdf->Ln(4);
$fpdf->Cell(0, 0, "", 1, 1, 'L', true);
$fpdf->Ln(4);
$fpdf->Cell(0, 0, "Adviser's Copy", 0, 1, 'R', false);
$fpdf->SetY($fpdf->GetY() + 10);
$fpdf->Image('logo.jpg', 13, $fpdf->GetY() - 5, 25);
printBody();
function printBody()
{
global $fpdf, $stud_id, $stud_gender, $stud_name, $stud_year, $stud_course, $stud_dept, $current_sem, $current_sy, $listOfSignatories, $signatory_model;
$fontsize = 10;
$single_spacing = 4;
示例4: die
$pdf->Cell(40, 5, '', 1, 0, 'C');
$pdf->Cell(40, 5, '', 1, 1, 'C');
$pdf->SetFont('Arial', 'B', 10);
$pdf->Cell(70, 5, 'Others', 1, 0, 'L');
$pdf->SetFont('Arial', '', 10);
$pdf->Cell(40, 5, '', 1, 0, 'C');
$pdf->Cell(40, 5, '', 1, 0, 'C');
$pdf->Cell(40, 5, '', 1, 0, 'C');
$pdf->Cell(40, 5, '', 1, 0, 'C');
$pdf->Cell(40, 5, '', 1, 1, 'C');
//new signatories table
$result = mysql_query("select gs_name, gs_pos, gs_office from global_sign where sign_id =1") or die(mysql_error());
$resulta = mysql_fetch_row($result);
//$Y_Table_Position = $Y_Table_Position + 20;
$pdf->Cell(270, 5, '', 0, 1, 'C');
$pdf->SetY(-18);
$pdf->SetX(5);
$pdf->SetFont('Arial', 'B', 10);
$pdf->Cell(142, 5, 'Recommend Approval:', 1, 0, 'L');
$pdf->Cell(142, 5, 'Approved:', 1, 1, 'L');
$pdf->Cell(270, 5, '', 0, 1, 'C');
$pdf->Cell(270, 5, '', 0, 1, 'C');
$pdf->SetX(5);
$pdf->SetFont('Arial', 'BU', 10);
$pdf->Cell(142, 5, '', 1, 0, 'C');
$pdf->Cell(142, 5, $resulta[0], 1, 1, 'C');
$pdf->SetFont('Arial', 'B', 10);
$pdf->SetX(5);
$pdf->Cell(142, 5, '', 1, 0, 'C');
$pdf->Cell(142, 5, $resulta[2], 1, 0, 'C');
$pdf->Output();
示例5: getSliders
}
}
$pdf->Output();
break;
case '5':
$sliders = getSliders();
$notes = getNotes();
$pdf = new FPDF('L');
$pdf->AddPage();
$pdf->SetFont('Helvetica', '', 8);
$gallery = getSliderGallery($sliders[1]->getIdSlider());
if ($gallery) {
$filename = generateRandomString();
file_put_contents("_temp/" . $filename . getExtension($gallery[0]->getTypeImage()), $gallery[0]->getSliderImage());
$pdf->Image("_temp/" . $filename . getExtension($gallery[0]->getTypeImage()), 25, 40);
}
$gallery = getSliderGallery($sliders[2]->getIdSlider());
if ($gallery) {
$filename = generateRandomString();
file_put_contents("_temp/" . $filename . getExtension($gallery[0]->getTypeImage()), $gallery[0]->getSliderImage());
$pdf->Image("_temp/" . $filename . getExtension($gallery[0]->getTypeImage()), 170, 40);
}
foreach ($notes as $note) {
if ($note->getNote() === "Cálculo del Precio de un Rubro") {
$pdf->SetY(170);
$pdf->MultiCell(0, 5, $note->getNoteText());
}
}
$pdf->Output();
break;
}
示例6: creation_rappels
function creation_rappels($liste_rappel2, $texte_rappel, $filename, $info_veto, $debut, $fin, $data_mot, $choix)
{
$liste_rappel = json_decode($liste_rappel2, true);
//$info_client = json_decode($info_client, true);
if (!file_exists($filename)) {
if (!mkdir($filename, 0755, true)) {
die('Echec lors de la création des répertoires...');
}
}
if ($choix == "A4") {
$pdf = new FPDF('P', 'mm', 'A4');
} elseif ($choix == "lettre") {
$pdf = new FPDF('L', 'mm', array(200, 90));
}
while (list($key_rappel, $value_rappel) = each($liste_rappel)) {
if ($choix == "lettre") {
$pdf->AddPage();
$pdf->SetFont('Times', '', 12);
$pdf->SetXY(15, 20);
$pdf->Cell(70, 0, requetemysql::gestion_string_maj($value_rappel['nom_a']), 0, 0, 'L');
$pdf->SetXY(120, 40);
$pdf->MultiCell(70, 7, requetemysql::gestion_string_maj($value_rappel['nom_p']) . ' ' . requetemysql::gestion_string_norm($value_rappel['prenom_p']) . "\n" . requetemysql::gestion_string_norm($value_rappel['adresse_p']) . "\n" . requetemysql::gestion_string_norm($value_rappel['code_p']) . ' ' . requetemysql::gestion_string_norm($value_rappel['ville_p']), 0, 'L');
$pdf->SetXY(25, 50);
$pdf->Cell(70, 0, requetemysql::gestion_string_maj($value_rappel['date_rappel']), 0, 0, 'L');
$pdf->SetXY(20, 68);
$pdf->Cell(75, 0, requetemysql::gestion_string_maj($info_veto[0]['nom']) . ' ' . requetemysql::gestion_string_norm($info_veto[0]['tel']), 0, 0, 'L');
} elseif ($choix == "A4") {
foreach ($texte_rappel as $key_texte => $value_texte) {
if (strtolower($value_texte['nom']) == strtolower($value_rappel['type'])) {
$pdf->AddPage();
$pdf->SetFont('Times', '', 12);
$pdf->MultiCell(85, 5, requetemysql::gestion_string_maj($info_veto[0]['nom']) . "\n" . requetemysql::gestion_string_norm($info_veto[0]['adresse']) . "\n" . requetemysql::gestion_string_norm($info_veto[0]['code']) . ' ' . requetemysql::gestion_string_norm($info_veto[0]['commune']) . "\n" . requetemysql::gestion_string_norm($info_veto[0]['tel']), 0, 'L');
$pdf->Ln(15);
$pdf->Cell(90);
$pdf->MultiCell(85, 5, requetemysql::gestion_string_maj($value_rappel['nom_p']) . ' ' . requetemysql::gestion_string_norm($value_rappel['prenom_p']) . "\n" . requetemysql::gestion_string_norm($value_rappel['adresse_p']) . "\n" . requetemysql::gestion_string_norm($value_rappel['code_p']) . ' ' . requetemysql::gestion_string_norm($value_rappel['ville_p']), 0, 'C');
$pdf->Ln(25);
$date2 = $ligne['date'] / 1000;
$mon_texte = $value_texte['texte'];
$donnee_mot = array(requetemysql::gestion_string_norm($value_rappel['espece']), requetemysql::gestion_string_maj($value_rappel['nom_a']), requetemysql::gestion_string_maj($value_rappel['date_rappel']), requetemysql::gestion_string_maj($info_veto[0]['nom']));
$str = str_replace($data_mot, $donnee_mot, $mon_texte);
$pdf->MultiCell(0, 5, utf8_decode($str), 0, 'J');
$pdf->Ln(25);
if ($value_rappel['commentaire'] != '') {
$pdf->Cell(50, 20, utf8_decode("Commentaire :"), 'LTB', 0, false);
$pdf->MultiCell(0, 20, requetemysql::gestion_string_maj($value_rappel['commentaire']), 'TRB', 'L', false);
$pdf->Ln(10);
}
$pdf->Cell(90);
$pdf->MultiCell(85, 5, "Dr " . $_SESSION['login'], 0, 'C');
$pdf->SetY(-40);
$pdf->Cell(0, 10, utf8_decode('Pensez à prendre rendez-vous au ' . requetemysql::gestion_string_norm($info_veto[0]['tel']) . '. N\'oubliez pas le livret de santé.'), 0, 0, 'C');
}
// fermeture if $value_texte
}
//fermeture seconde boucle
}
//fermeture if choix A4
}
// fermeture premiere boucle
$variable_lien = $filename . '/relance__' . $debut . '__' . $fin . '_' . uniqid() . '.pdf';
$pdf->Output($variable_lien, F);
return $variable_lien;
}
示例7: date
$cant = $can;
$can = $can / 100 * $por;
$can += $cant;
return $can;
}
$pdf->SetFont('Arial', '', 8);
//establece el nombre del paciente
$pdf->SetXY(30, 5);
$pdf->Cell(0, 0, $paciente, 0, 0, L);
$pdf->SetX(1);
//numero de paciente
$pdf->Cell(0, 0, $_GET['numeroE'], 0, 0, R);
//cambiar fecha
//$myrow1['fecha1']=cambia_a_normal($myrow1['fecha1']);
$fecha1 = date("d/m/Y");
$pdf->SetY(10);
$pdf->Cell(0, 0, $fecha1, 0, 0, R);
//Imprimo con salto de pagina
$pdf->Ln(15);
//salto de linea
$pdf->SetFont('Arial', '', 8);
$pdf->SetXY(30, 7);
$pdf->Ln(15);
//salto de linea
$sSQL = "SELECT *\r\nFROM\r\ncargosCuentaPaciente\r\nWHERE \r\nnumeroE ='" . $_GET['numeroE'] . "' and nCuenta='" . $_GET['nCuenta'] . "' and\r\nnumeroConfirmacion='" . $_GET['numeroConfirmacion'] . "'\r\n\r\n\r\n ";
$result = mysql_db_query($basedatos, $sSQL);
while ($myrow = mysql_fetch_array($result)) {
$codigoTT = $myrow['tipoTransaccion'];
$pdf->Ln(1);
//salto de linea
$cant = $myrow61['cant'];
示例8: AnexoDAO
} else {
$sub = str_replace("<custas>", '', $sub);
}
$pdf->AddPage();
$pdf->Image('../images/header.jpg', '0', '0', '19', '3,04', 'JPG');
$pdf->SetFont('times', 'B', 12);
$pdf->Cell(19.2, 2.5, 'NÃO EMITIMOS E NEM VENDEMOS CERTIDÕES E SIM PRAZOS E SOLUÇÕES', 0, 1, 'C');
require 'gera_imoveis_busca_' . $id_impresso . '.php';
$pdf->SetFont('times', '', 12);
$pdf->Write(0.5, $sub, '');
$pdf->Write(0.5, '
', '');
$pdf->SetFont('times', 'B', 10);
$pdf->Line(1, 25.5, 20, 25.5);
$pdf->SetY(25.5);
$pdf->Cell(0, 0.5, $responsavel_empresa, 0, 1, 'C');
$rodape = $responsavel_endereco . ',
' . $responsavel_cidade . '-' . $responsavel_estado . ' CEP: ' . $responsavel_cep;
$pdf->Cell(0, 0.5, $rodape, 0, 1, 'C');
$rodape = 'Tel/Fax: ' . $responsavel_tel . '/' . $responsavel_fax . '
E-mail:' . $responsavel_email;
$pdf->Cell(0, 0.5, $rodape, 0, 1, 'C');
$rodape = 'www.cartoriopostal.com.br';
$pdf->Cell(0, 0.5, $rodape, 0, 1, 'C');
if ($anexar == 'on' and ($id_servico == '11' or $id_servico == '169' or $id_servico == '170')) {
$pdf->Close();
//imprime a saida
$anexoDAO = new AnexoDAO();
$num_a = $anexoDAO->verifica('Declaração de Busca de Imóveis', $id_pedido_item);
示例9: substr
$code = $row['id'];
$name = substr($row['company'], 0, 20);
$real_price = $row['total'];
$show = $row['total'];
$c_code = $c_code . $code . "\n";
$c_name = $c_name . $name . "\n";
$c_price = $c_price . $show . "\n";
//Sum all the Prices (TOTAL)
$total = $total + $real_price;
}
mysql_close();
$total = $total;
//Create a new PDF file
$pdf = new FPDF();
$pdf->AddPage();
//Now show the 3 columns
$pdf->SetFont('Arial', '', 14);
$pdf->SetY(26);
$pdf->SetX(45);
$pdf->MultiCell(20, 6, $c_code, 1);
$pdf->SetY(26);
$pdf->SetX(65);
$pdf->MultiCell(100, 6, $c_name, 1);
$pdf->SetY(26);
$pdf->SetX(135);
$pdf->MultiCell(30, 6, $c_price, 1, 'R');
$pdf->SetX(135);
$pdf->MultiCell(30, 6, '$ ' . $total, 1, 'R');
$filename = "invoice.pdf";
$pdf->Output($filename, 'F');
echo '<a href="invoice.pdf">Download your Report</a>';
示例10: pdfcreateAction
public function pdfcreateAction()
{
require "lib/fpdf/fpdf.php";
//Page footer
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, 'Page ' . $this->PageNo() . '/{nb}', 0, 0, 'C');
}
$pdf = new FPDF();
$pdf->AliasNbPages();
$todate = date("D M j Y");
$time = date(" G:i:s T");
$storePhone = Mage::getStoreConfig('general/store_information/phone');
$store_email = Mage::getStoreConfig('trans_email/ident_support/email');
$freeSubTotal = Mage::getStoreConfig('carriers/freeshipping/free_shipping_subtotal');
$session = Mage::getSingleton('checkout/session')->getQuote()->getAllItems();
//print_r($session);die;
$img_path = Mage::getBaseUrl() . 'skin/frontend/default/zoffio/images/logo_print.gif';
$telephone = Mage::getBaseUrl() . 'skin/frontend/default/zoffio/images/telephone.png';
$mail = Mage::getBaseUrl() . 'skin/frontend/default/zoffio/images/mail.png';
$indianrupee = Mage::getBaseUrl() . 'skin/frontend/default/zoffio/images/rupee.png';
$indian_rupee_symbol = Mage::getBaseUrl() . 'skin/frontend/default/zoffio/images/total.png';
$indian_rupee = Mage::getBaseUrl() . 'skin/frontend/default/zoffio/images/savings.png';
$sub_total = Mage::getBaseUrl() . 'skin/frontend/default/zoffio/images/sub-total1.png';
$shipping = Mage::getBaseUrl() . 'skin/frontend/default/zoffio/images/shipping.png';
$discount_image = Mage::getBaseUrl() . 'skin/frontend/default/zoffio/images/discount.png';
$store_address = Mage::getStoreConfig('general/store_information/address');
$split_store_address = explode(',', $store_address);
$pdf->AddPage();
$linestyle = array('width' => 0.1, 'cap' => 'butt', 'join' => 'miter', 'dash' => '', 'phase' => 10, 'color' => array(255, 0, 0));
$pdf->Image($img_path, 10, 20, 31, 20, 'PNG', '', '', false, 300, '', false, false, 0, false, false, false);
$pdf->SetX(100);
$pdf->SetY(25);
$pdf->SetFont('arial', 'B', 13);
$pdf->Cell(180, 0, 'Quotation', 2, 2, 'C');
$pdf->Line(90, 27, 110, 27, $linestyle);
$pdf->SetX(100);
$pdf->SetY(25);
$pdf->SetFont('arial', 'B', 11);
$pdf->Cell(0, 0, $split_store_address[0], 0, 0, 'R');
$pdf->SetFont('arial', '', 9);
$pdf->Cell(0, 10, $split_store_address[1] . ',' . $split_store_address[2] . ',' . $split_store_address[3], 0, 0, 'R');
$pdf->Cell(0, 20, $split_store_address[4] . ',' . $split_store_address[5], 0, 0, 'R');
$pdf->Cell(0, 30, $split_store_address[6], 0, 0, 'R');
$pdf->Line(10, 49, 200, 49, $linestyle);
$pdf->SetX(20);
$pdf->SetY(38);
$pdf->SetFont('arial', 'B', 9);
$pdf->Cell(0, 30, 'VAT/TIN : ', 0, 0, 'L');
$pdf->SetX(25);
$pdf->SetFont('arial', '', 9);
$pdf->Cell(0, 30, ' 29471119182', 0, 0, 'L');
$pdf->SetX(85);
$pdf->SetFont('arial', 'B', 9);
$pdf->Cell(0, 30, 'CST No: ', 0, 0, 'L');
$pdf->SetX(98);
$pdf->SetFont('arial', '', 9);
$pdf->Cell(0, 30, ' 29471119182', 0, 0, 'L');
$pdf->SetX(150);
$pdf->SetFont('arial', 'B', 9);
$pdf->Cell(0, 30, 'PAN No : ', 0, 0, 'L');
$pdf->SetX(164);
$pdf->SetFont('arial', '', 9);
$pdf->Cell(0, 30, ' AALCA1282E', 0, 0, 'L');
$pdf->Line(10, 57, 200, 57, $linestyle);
$pdf->Line(10, 72, 200, 72, $linestyle);
$pdf->SetFont('arial', '', 9);
$pdf->SetX(20);
$pdf->SetY(45);
$pdf->Cell(0, 35, 'QUOTATION DATE : ', 0, 0, 'L');
$pdf->SetX(125);
$pdf->Cell(0, 35, 'FOR ANY QUERIES : ', 0, 0, 'L');
$pdf->SetFont('arial', 'B', 9);
$pdf->SetX(20);
$pdf->SetY(50);
$pdf->Cell(0, 35, $todate . ', ' . $time, 0, 0, 'L');
$pdf->SetX(127);
$pdf->Image($telephone, 125, 66, 3, 3, 'PNG', '', '', false, 300, '', false, false, 0, false, false, false);
$pdf->Cell(0, 35, '+91-' . $storePhone, 0, 0, 'L');
$pdf->Image($mail, 155, 66, 3, 3, 'PNG', '', '', false, 300, '', false, false, 0, false, false, false);
$pdf->SetX(157);
$pdf->Cell(0, 35, ' : ' . $store_email, 0, 0, 'L');
$pdf->SetX(21);
$pdf->SetY(60);
$pdf->SetFont('arial', '', 9);
if (Mage::getSingleton('customer/session')->isLoggedIn()) {
$customer = Mage::getSingleton('customer/session')->getCustomer();
$firstname = $customer->getFirstname();
} else {
$firstname = 'Customer';
}
$pdf->SetFont('arial', '', 9);
$pdf->Cell(0, 30, 'Dear ' . $firstname . ',', 0, 0, 'L');
//$pdf->SetX(20);
$pdf->SetY(80);
//.........这里部分代码省略.........
示例11: FPDF
while ($rowInfo = mysql_fetch_array($resultInfo)) {
$AgencyName = $rowInfo['content_agencyName'];
$AgencyAddress = $rowInfo['content_agencyAddress'];
$pdfAgencyName = $rowInfo['content_pdfagencyName'];
}
//while
$mysqli->query("INSERT INTO tbl_notification\n\t\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\t\tnotifId,\n\t\t\t\t\t\t\t\t\tclientId, \n\t\t\t\t\t\t\t\t\tnotifDesc, \n\t\t\t\t\t\t\t\t\tdateCreated,\n\t\t\t\t\t\t\t\t\tnotifStatus\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\tVALUES \n\t\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\t\t'',\n\t\t\t\t\t\t\t\t\t'{$_SESSION['ses_partnerClientID']}',\n\t\t\t\t\t\t\t\t\t'Partnership was successfully done.',\n\t\t\t\t\t\t\t\t\tnow(),\n\t\t\t\t\t\t\t\t\t'new'\n\t\t\t\t\t\t\t\t)");
$pdf = new FPDF('p', 'mm', array(215.9, 330.2));
$pdf->AddPage();
$pdf->AddFont('BarcodeFont', '', 'BarcodeFont.php');
$pdf->AddFont('Calibri', '', 'Calibri.php');
$pdf->AddFont('Calibri Bold', '', 'Calibri Bold.php');
$pdf->SetAutoPageBreak(true, 5);
$pdf->SetFont('Calibri', '', 11);
$pdf->SetTextColor(141, 141, 141);
$pdf->SetY(5);
$pdf->SetX(150);
$pdf->Cell(56, 6, 'Powered By: Getchs;', 0, 0, 'R', FALSE);
$pdf->SetFont('Calibri Bold', '', 11);
$pdf->SetTextColor(0, 0, 0);
$pdf->SetY(5);
$pdf->SetX(17);
$pdf->Cell(56, 6, $pdfAgencyName, 0, 0, 'L', FALSE);
$pdf->SetFont('Calibri', '', 23);
$pdf->SetY(19);
$pdf->SetX(80);
$pdf->Cell(56, 6, 'Partnership Agreement', 0, 0, 'C', FALSE);
$pdf->SetFont('Calibri', '', 11);
$pdf->SetY(23);
$pdf->SetX(23);
$pdf->Cell(16, 23, 'THIS PARTNERSHIP AGREEMENT is made this day of , , by and between the', 0, 1, 'L', FALSE);
开发者ID:gencalda,项目名称:Recruitment-Employee-Performance-Monitoring-System,代码行数:31,代码来源:pdfPartnershipAgreement.php
示例12: while
$pdf->SetFont("Times", "B", 8);
$pdf->Cell(10, 5, "No", "TB", 0, 'C');
$pdf->Cell(120, 5, "Item", "TB", 0, 'L');
//$pdf->Cell(40,5,"Payment Method","TB",0,'C');
$pdf->Cell(0, 5, "Amount ({$currency_code})", "TB", 1, 'R');
$query2 = $xoopsDB->query($sql);
$pdf->SetFont("Times", "", 9);
$i = 0;
$m = 0;
//$maxy=0;
$maxy = 70;
while ($row = $xoopsDB->fetchArray($query2)) {
$i++;
$m++;
//$chequeno=$row['chequeno'];
$pdf->SetY($maxy + 2);
$subject = $row['subject'];
$amt = $row['amt'];
$account_type = $row['account_type'];
$linedesc = $row['linedesc'];
if ($account_type == 4) {
$paymentmethodtext = "Cheque :";
} else {
$paymentmethodtext = "Cash";
}
if ($m > 13) {
$m = 1;
$pdf->AddPage($pdf->CurOrientation);
}
$pdf->SetX($xmargin);
$pdf->Cell(10, 4, $i, 0, 0, 'C');
示例13: explode
$pdf->Open();
// disable oto page break
$pdf->SetAutoPageBreak(false);
$pdf->AddPage();
$y_axis_initial = 5;
$y_axis1 = 5;
$data = mysql_query("SELECT * from tblmhs where nim='{$_GET['id']}'");
$i = 0;
$max = 25;
$row_height = 5;
$row = mysql_fetch_array($data);
$tgl_lahir = explode("-", $row['tanggal']);
$pdf->SetDrawColor(50, 0, 0, 0);
$pdf->SetFillColor(300, 0);
$pdf->SetFont('Arial', 'B', 10);
$pdf->SetY($y_axis1);
//$pdf->SetX(25);
$pdf->Rect(9.75, 4.0, 90, 62, 'D');
$pdf->Line(9.65, 17.5, 99.5, 17.5);
$pdf->Rect(105, 4.0, 90, 62, 'D');
$pdf->Cell(89, 6, 'KARTU TANDA MASUK GEDUNG', 0, 0, 'C', 1);
$pdf->Cell(6.5);
$pdf->Cell(89, 6, 'PERHATIAN', 0, 0, 'C', 0);
$pdf->Ln();
$pdf->Cell(89, 6, 'TELKOMSEL', 0, 0, 'C', 1);
$pdf->Cell(6.5);
$pdf->Cell(89, 6, ' ', 0, 0, 'C', 0);
//$pdf->Line(100, 4, 100, 83);
$pdf->Ln();
$pdf->Ln();
$pdf->SetFont('Arial', '', 10);
示例14: FPDF
function __construct($products, $order, $filename, $save = false)
{
App::import('vendor', 'fpdf/fpdf');
$orientation = 'P';
$unit = 'pt';
$format = 'A4';
$margin = 40;
$pdf = new FPDF($orientation, $unit, $format);
App::import('Helper', 'Time');
$timeHelper = new TimeHelper();
setlocale(LC_MONETARY, 'th_TH');
$pdf->AddPage();
$pdf->SetTopMargin($margin);
$pdf->SetLeftMargin($margin);
$pdf->SetRightMargin($margin);
$pdf->SetAutoPageBreak(true, $margin);
$pdf->SetY($pdf->GetY() + 60);
$pdf->SetFont('Arial', 'B', 10);
$pdf->SetTextColor(0);
$pdf->SetFillColor(255);
$pdf->SetLineWidth(1);
$pdf->Cell(50, 25, "Order ID: ", 'LT', 0, 'L');
$pdf->SetFont('Arial', '');
$pdf->Cell(50, 25, $order['Order']['id'], 'T', 0, 'L');
$pdf->SetFont('Arial', 'B');
$pdf->Cell(100, 25, 'Customer Name: ', 'T', 0, 'L');
$pdf->SetFont('Arial', '');
$pdf->Cell(316, 25, $order['User']['name'], 'TR', 1, 'L');
$pdf->SetFont('Arial', 'B');
$pdf->Cell(100, 25, "Delivery Date: ", 'LT', 0, 'L');
$pdf->SetFont('Arial', '');
$pdf->Cell(416, 25, $timeHelper->format($format = 'd-m-Y', $order['Delivery']['date']), 'TR', 1, 'L');
$pdf->SetFont('Arial', 'B', '10');
$current_y = $pdf->GetY();
$current_x = $pdf->GetX();
$cell_width = 30;
$pdf->MultiCell($cell_width, 25, "No.\n ", 'LTR', 'C');
$pdf->SetXY($current_x + $cell_width, $current_y);
$pdf->Cell(250, 25, "Description", 'LTR', 0, 'C');
$current_y = $pdf->GetY();
$current_x = $pdf->GetX();
$cell_width = 48;
$pdf->MultiCell($cell_width, 25, "Number Ordered", 'LTR', 'C');
$pdf->SetXY($current_x + $cell_width, $current_y);
$current_y = $pdf->GetY();
$current_x = $pdf->GetX();
$cell_width = 48;
$pdf->MultiCell($cell_width, 25, "Number Supplied", 'LTR', 'C');
$pdf->SetXY($current_x + $cell_width, $current_y);
$current_y = $pdf->GetY();
$current_x = $pdf->GetX();
$cell_width = 70;
$pdf->MultiCell($cell_width, 25, "Amount per Unit", 'LTR', 'C');
$pdf->SetXY($current_x + $cell_width, $current_y);
$current_y = $pdf->GetY();
$current_x = $pdf->GetX();
$cell_width = 70;
$pdf->MultiCell($cell_width, 25, "Amount\n ", 'LTR', 'C');
$pdf->SetY($pdf->GetY() - 25);
$pdf->SetFont('Arial', '');
$pdf->SetFillColor(238);
$pdf->SetLineWidth(0.2);
$pdf->SetY($pdf->GetY() + 25);
$num = 1;
$number_ordered = 0;
$number_supplied = 0;
foreach ($products as $product) {
$pdf->Cell(30, 20, $num++, 1, 0, 'L');
$pdf->Cell(250, 20, $product['Product']['short_description'], 1, 0, 'L');
$pdf->Cell(48, 20, $product['LineItem']['quantity'], 1, 0, 'R');
$number_ordered += $product['LineItem']['quantity'];
$pdf->Cell(48, 20, $product['LineItem']['quantity_supplied'], 1, 0, 'R');
$number_supplied += $product['LineItem']['quantity_supplied'];
$pdf->Cell(70, 20, money_format("%i", $product['Product']['selling_price']), 1, 0, 'R');
$pdf->Cell(70, 20, money_format("%i", $product['LineItem']['total_price_supplied']), 1, 1, 'R');
}
$pdf->SetX($pdf->GetX() + 30);
$pdf->SetFont('Arial', 'B');
$pdf->Cell(250, 20, "TOTALS", 1);
$pdf->SetFont('Arial', '');
$pdf->Cell(48, 20, $number_ordered, 1, 0, 'R');
$pdf->Cell(48, 20, $number_supplied, 1, 0, 'R');
$pdf->Cell(70, 20, "N.A.", 1, 0, 'R');
$pdf->Cell(70, 20, money_format("%i", $order['Order']['total_supplied']), 1, 1, 'R');
$pdf->SetY($pdf->GetY() + 25);
$pdf->SetFont('Arial', 'B');
$pdf->Cell(80, 20, "Amount Paid: ");
$pdf->SetFont('Arial', '');
$pdf->Cell(80, 20, money_format("%i", $order['Order']['total']), 0, 1);
$pdf->SetFont('Arial', 'B');
$pdf->Cell(80, 20, "Actual Amount: ");
$pdf->SetFont('Arial', '');
$pdf->Cell(80, 20, money_format("%i", $order['Order']['total_supplied']), 0, 1);
$pdf->SetFont('Arial', 'B');
$pdf->Cell(80, 20, "Rebate Amount: ");
$pdf->SetFont('Arial', '');
$pdf->Cell(80, 20, money_format("%i", $order['Order']['total'] - $order['Order']['total_supplied']), 0, 1);
if ($save) {
$pdf->Output($filename, 'F');
} else {
//.........这里部分代码省略.........
示例15: die
$owner_id = $getd[0];
$business_id = $getd[1];
$stat = $getd[2];
$linebus = mysql_query("select * from tempbusnature where owner_id={$owner_id} and\r\n\t\t\tbusiness_id={$business_id} and active=1") or die(mysql_error());
$number_of_rows = mysql_numrows($linebus);
$i = 1;
//$pdf->SetY($Y_Table_Position);
while ($busline = mysql_fetch_row($linebus)) {
$pdf->SetX(5);
$pdf->Cell(120, 5, $busline[2], 1, 0, 'L');
$pdf->SetX(125);
$pdf->Cell(40, 5, $busline[3], 1, 0, 'R');
$pdf->SetX(165);
$pdf->Cell(40, 5, $busline[4], 1, 0, 'R');
$i++;
$pdf->SetY($pdf->GetY() + 5);
}
$pdf->Cell(200, 5, '', 0, 2, 'C');
$pdf->SetX(5);
$pdf->SetFont('Arial', 'B', 10);
$pdf->Cell(120, 5, 'TAXES AND FEES:', 1, 0, 'L');
$pdf->Cell(40, 5, 'PERIOD COVERED:', 1, 0, 'C');
$pdf->Cell(40, 5, 'AMOUNT:', 1, 1, 'C');
$gettax = mysql_query("select a.compval, b.tfodesc, c.payment_part, c.ts\r\n\t\t\t\t\t from tempassess a, ebpls_buss_tfo b, ebpls_transaction_payment_or_details c\r\n\t\t\t\t\t where a.tfoid = b.tfoid and a.owner_id = {$owner_id} and a.business_id={$business_id}\r\n\t\t\t\t\t and a.owner_id=c.trans_id and a.business_id=c.payment_id and a.transaction=c.transaction\r\n\t\t\t\t\t and a.active=1");
$i = 1;
//$pdf->SetY($Y_Table_Position);
while ($busline = mysql_fetch_row($gettax)) {
$periodico = $busline[2];
//dito ka maglagay ng code kung gagawin mong descriptive un payment mode, ok!?!?!?!
if ($paymentmode == 'annual') {
$paymentmode = 'One Year';