当前位置: 首页>>代码示例>>PHP>>正文


PHP FPDF::SetFillColor方法代码示例

本文整理汇总了PHP中FPDF::SetFillColor方法的典型用法代码示例。如果您正苦于以下问题:PHP FPDF::SetFillColor方法的具体用法?PHP FPDF::SetFillColor怎么用?PHP FPDF::SetFillColor使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在FPDF的用法示例。


在下文中一共展示了FPDF::SetFillColor方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: post_id_upc_terms_handler

 public function post_id_upc_terms_handler()
 {
     $this->id = preg_split('/[^\\d]/', $this->id, 0, PREG_SPLIT_NO_EMPTY);
     $pdf = new FPDF('P', 'mm', 'Letter');
     $pdf->SetMargins(6.35, 6.35, 6.35);
     // quarter-inch margins
     $pdf->SetAutoPageBreak(false);
     $pdf->AddFont('Gill', '', 'GillSansMTPro-Medium.php');
     $pdf->AddFont('Gill', 'B', 'GillSansMTPro-Heavy.php');
     $margins = $pdf->GetMargins();
     $margins['top'] = 0.0;
     $check_left_x = $margins['left'] > 3.175 ? $margins['right'] : 3.175 - $margins['left'];
     $real_check_top_y = 183.675 - $margins['top'];
     $check_right_x = 203.2 - $margins['left'];
     $real_check_bottom_y = 255.112 - $margins['top'];
     $line_height = 5;
     $envelope_window_tab = 15;
     $right_col1 = 130;
     $right_col2 = 170;
     $my_address = array('610 E 4th St', 'Duluth, MN 55805', 'Tel: 218.728.0884', 'www.wholefoods.coop');
     $check_date = date('F j, Y');
     $dbc = $this->connection;
     $dbc->setDefaultDB($this->config->get('OP_DB'));
     $signage = new COREPOS\Fannie\API\item\FannieSignage(array());
     foreach ($this->id as $card_no) {
         $pdf->AddPage();
         $account = \COREPOS\Fannie\API\member\MemberREST::get($card_no);
         $primary = array();
         foreach ($account['customers'] as $c) {
             if ($c['accountHolder']) {
                 $primary = $c;
                 break;
             }
         }
         $check_number = rand(100000, 999995);
         for ($i = 0; $i < 3; $i++) {
             $pdf->SetFont('Gill', '', 10);
             $check_top_y = $real_check_top_y - $i * 90;
             $check_bottom_y = $real_check_bottom_y - $i * 90;
             $pdf->SetXY($check_left_x, $check_top_y);
             $pdf->Ln($line_height * 4.25);
             foreach ($my_address as $line) {
                 $pdf->SetX($check_left_x + $envelope_window_tab + 20);
                 if ($line == 'www.wholefoods.coop') {
                     $pdf->SetFont('Gill', 'B', 9);
                 }
                 $pdf->Cell(0, $line_height, $line, 0, 1);
             }
             $pdf->SetFont('Gill', 'B', 10);
             $pdf->SetXY($check_left_x + $right_col1, $check_top_y);
             $pdf->Cell(30, $line_height, 'Check Number:', 0, 0, 'R');
             $pdf->SetFont('Gill', '', 10);
             $pdf->SetTextColor(0xff, 0x58, 0);
             $pdf->SetX($check_left_x + $right_col2);
             $pdf->Cell(30, $line_height, $check_number, 0, 0, 'R');
             $pdf->SetFont('Gill', 'B', 10);
             $pdf->SetTextColor(0, 0, 0);
             $pdf->SetXY($check_left_x + $right_col1, $check_top_y + 1.5 * $line_height);
             $pdf->Cell(30, $line_height, 'Date:', 0, 0, 'R');
             $pdf->SetFont('Gill', '', 10);
             $pdf->SetTextColor(0xff, 0x58, 0);
             $pdf->SetX($check_left_x + $right_col2);
             $pdf->Cell(30, $line_height, $check_date, 0, 0, 'R');
             $pdf->SetXY($check_left_x + $right_col1, $check_top_y + 3 * $line_height);
             $pdf->SetFont('Gill', 'B', 10);
             $pdf->SetTextColor(0, 0, 0);
             $pdf->Cell(30, $line_height, 'Amount:', 0, 0, 'R');
             $pdf->SetXY($check_left_x + $right_col1 + 30, $check_top_y + 3 * $line_height);
             $pdf->SetFont('Gill', '', 10);
             $pdf->SetTextColor(0xff, 0x58, 0);
             $pdf->MultiCell(40, $line_height, str_repeat(' ', 2) . $this->terms, 0, 'R');
             $pdf->SetTextColor(0, 0, 0);
             $their_address = array($primary['firstName'] . ' ' . $primary['lastName']);
             $their_address[] = $account['addressFirstLine'];
             if ($account['addressSecondLine']) {
                 $their_address[] = $account['addressSecondLine'];
             }
             $their_address[] = $account['city'] . ', ' . $account['state'] . ' ' . $account['zip'];
             $pdf->SetXY($check_left_x + $envelope_window_tab, $check_top_y + 11 * $line_height);
             $pdf->SetFont('Gill', 'B', 10);
             foreach ($their_address as $line) {
                 $pdf->SetX($check_left_x + $envelope_window_tab);
                 $pdf->Cell(0, $line_height, $line, 0, 1);
             }
             $pdf->SetFont('Gill', '', 10);
             $pdf->SetXY($check_left_x, $check_bottom_y + $line_height - 1);
             $pdf->SetTextColor(0, 0, 0);
             $pdf->SetFont('Gill', 'B', 10);
             $pdf->Cell(0, $line_height, 'Redeemable only at Whole Foods Co-op', 0, 0, 'C');
             $pdf->SetFont('Gill', '', 10);
             $pdf->SetXY($check_left_x + 145, $check_top_y + 6 * $line_height + 1);
             $pdf->SetFont('Gill', '', 8);
             $pdf->MultiCell(50, $line_height - 2, 'Limit one per day. Cannot be applied to previous purchases. No cash value.');
             $pdf->SetFont('Gill', '', 10);
             $pdf->SetFillColor(0xcc, 0xcc, 0xcc);
             $pdf->Rect($check_left_x + 84, $check_top_y + 28, 39, 15, 'F');
             $pdf->SetFillColor(0, 0, 0);
             $signage->drawBarcode(ltrim($this->upc, '0'), $pdf, $check_left_x + 87, $check_top_y + 30, array('height' => 11, 'fontsize' => 0));
             $pdf->Image('logo.rgb.noalpha.png', $check_left_x + $envelope_window_tab, $check_top_y + 20, 20);
             $pdf->SetFont('Gill', 'B', '31');
//.........这里部分代码省略.........
开发者ID:phpsmith,项目名称:IS4C,代码行数:101,代码来源:CheckCouponMailing.php

示例2: generarFolleto

 public function generarFolleto()
 {
     $concursos = $this->concursoMapper->findConcurso("pinchosOurense");
     $establecimientos = $this->establecimientoMapper->findAllValidados();
     $pinchos = $this->pincho->all();
     $pdf = new FPDF();
     $pdf->AddPage();
     $pdf->SetFont('Arial', 'B', 30);
     $pdf->SetTextColor(85, 53, 20);
     $pos_y = 10;
     $pdf->Cell(0, 24, $concursos->getNombre(), 0, 0, "L");
     $pdf->Ln();
     $pdf->SetFont('Arial', '', 16);
     $pdf->SetTextColor(0, 0, 0);
     $pdf->MultiCell(0, 6, $concursos->getDescripcionConcurso(), 0, "L");
     $pdf->SetTextColor(85, 53, 20);
     $pdf->SetFont('Arial', 'B', 13);
     $pdf->Cell(0, 24, "Establecimientos participantes", 0, 0, "L");
     foreach ($establecimientos as $establecimiento) {
         $pdf->Ln();
         $pdf->SetFont('Arial', 'B', 13);
         $pdf->SetTextColor(85, 53, 20);
         $pdf->SetFillColor(182, 145, 107);
         $pdf->Cell(0, 10, utf8_decode($establecimiento->getNombre()), 1, 0, "C", "false");
         $pdf->Ln();
         $pdf->SetFont('Arial', 'I', 13);
         $pdf->SetTextColor(0, 0, 0);
         $pdf->Cell(0, 10, utf8_decode($establecimiento->getDescripcion()), 0, 0, "L");
         $pdf->Ln();
         $pdf->Cell(0, 10, utf8_decode($establecimiento->getLocalizacion()), 0, 0, "L");
         $pdf->Ln();
         $pdf->Cell(0, 10, utf8_decode("Pincho:"), 0, 0, "L");
         foreach ($pinchos as $pincho) {
             if ($pincho->getEstablecimiento() == $establecimiento->getId()) {
                 $pdf->Ln();
                 $pdf->Cell(5);
                 $pdf->Cell(0, 10, utf8_decode($pincho->getNombre()), 0, 0, "L");
                 $pdf->Ln();
                 $pdf->Cell(5);
                 $pdf->Cell(0, 10, utf8_decode($pincho->getDescripcion()), 0, 0, "L");
                 $pdf->Ln();
                 $pdf->Cell(5);
                 if ($pincho->isCeliaco()) {
                     $pdf->Cell(0, 10, utf8_decode("Apto para celiaco"), 0, 0, "L");
                 } else {
                     $pdf->Cell(0, 10, utf8_decode("No apto para celiaco"), 0, 0, "L");
                 }
             }
         }
         $pdf->Ln(5);
     }
     $pdf->Output("folleto.pdf", "D");
 }
开发者ID:xrlopez,项目名称:ABP,代码行数:53,代码来源:ConcursoController.php

示例3: SetFillColor

 function SetFillColor($r, $g = -1, $b = -1)
 {
     if (is_string($r)) {
         $this->HTML2RGB($r, $r, $g, $b);
     }
     parent::SetFillColor($r, $g, $b);
 }
开发者ID:rohmad-st,项目名称:fpdf,代码行数:7,代码来源:htmlcolor.php

示例4: execute

 public function execute()
 {
     $pdf = new FPDF();
     $pdf->AddPage();
     $pdf->SetFont("helvetica", "B", 16);
     $pdf->Cell(0, 10, "Hello world!", 0, 1);
     $pdf->Ln();
     $pdf->SetFont("helvetica", "", 12);
     $pdf->SetFillColor(192, 192, 192);
     $pdf->Cell(40, 10, "Back", 1, 0, "C", 1);
     $pdf->Link(10, 30, 40, 10, "/demos");
     $pdf->Output();
     $this->output->disable();
 }
开发者ID:shannara,项目名称:banshee,代码行数:14,代码来源:pdf.php

示例5: initialize_pdf

 /**
  * Sets up a new PDF object with the necessary settings
  *
  * @return  FPDF            A new PDF object
  */
 protected function initialize_pdf()
 {
     global $CFG;
     require_once $CFG->libdir . '/fpdf/fpdf.php';
     $newpdf = new FPDF('L', 'in', 'letter');
     $newpdf->setMargins(self::marginx, self::marginy);
     $newpdf->SetFont('Arial', '', 9);
     $newpdf->AddPage();
     $newpdf->SetFont('Arial', '', 16);
     $newpdf->MultiCell(0, 0.2, $this->report->title, 0, 'C');
     $newpdf->Ln(0.2);
     $newpdf->SetFont('Arial', '', 8);
     $newpdf->SetFillColor(225, 225, 225);
     return $newpdf;
 }
开发者ID:remotelearner,项目名称:elis.reporting,代码行数:20,代码来源:php_report_export_pdf.class.php

示例6:

            $pdf->Cell(25, 4, " ", 1, 1, 'C', $fill);
            $banco = $banco + $abono;
        }
    } else {
        $pdf->Cell(1, 4, '', 0, 0, 'C', $fill);
        $pdf->Cell(25, 4, '', 1, 0, 'C', $fill);
        $pdf->Cell(25, 4, '', 1, 0, 'C', $fill);
        $pdf->Cell(1, 4, '', 0, 0, 'C', $fill);
        $pdf->Cell(25, 4, "(-) \$ " . $cantidad2, 1, 1, 'C', $fill);
        $salidas = $salidas + $cantidad;
    }
}
$pdf->ln();
$fill = 0;
$pdf->Cell(116, 4, " TOTAL: ", 1, 0, 'R', $fill);
$pdf->SetFillColor(210);
$fill = 1;
$pdf->Cell(1, 4, '', 0, 0, 'C', 0);
$pdf->Cell(25, 4, "\$ " . number_format($entradas, 0, ',', '.'), 1, 0, 'C', $fill);
$pdf->Cell(25, 4, "\$ " . number_format($banco, 0, ',', '.'), 1, 0, 'C', $fill);
$pdf->Cell(1, 4, '', 0, 0, 'C', 0);
$pdf->Cell(25, 4, "(-) \$ " . number_format($salidas, 0, ',', '.'), 1, 1, 'C', $fill);
$pdf->ln(10);
$pdf->Cell(20, 2, "_________________", 0, 0);
$pdf->Cell(140, 2, " ", 0, 0);
$pdf->Cell(25, 2, "__________________", 0, 1);
$pdf->Cell(20, 4, "FIRMA RECEPCIÓN", 0, 0);
$pdf->Cell(140, 2, " ", 0, 0);
$pdf->Cell(20, 4, "FIRMA ENCARGADO", 0, 1);
$pdf->ln(3);
$pdf->Cell(90, 4, "Documento Generado a las " . $horapago . " Hrs", 0, 1);
开发者ID:ranmadxs,项目名称:dorcl,代码行数:31,代码来源:libro_diario.php

示例7: die

if ($conn->connect_error) {
    die("Connection failed: " . $conn->connect_error);
}
//Create new pdf file
$pdf = new FPDF();
//Open file
//$pdf->Open();
//Disable automatic page break
$pdf->SetAutoPageBreak(false);
//Add first page
$pdf->AddPage();
//set initial y axis position per page
$y_axis_initial = 25;
$y_axis = 31;
//print column titles for the actual page
$pdf->SetFillColor(232, 232, 232);
$pdf->SetFont('TIMES', 'B', 12);
$pdf->SetY($y_axis_initial);
$pdf->SetX(25);
$pdf->Cell(50, 6, 'Intitule', 1, 0, 'L', 1);
$pdf->Cell(30, 6, 'Quantite', 1, 0, 'C', 1);
$pdf->Cell(80, 6, 'Description', 1, 0, 'R', 1);
if (!isset($row_height)) {
    $row_height = 0;
}
$y_axis = $y_axis + $row_height;
//Select the Products you want to show in your PDF file
$mail = $_SESSION['Email'];
if ($mail == "") {
    $mail = "blangot@u-psud.fr";
}
开发者ID:Elegost,项目名称:WEB-GestionFourniture,代码行数:31,代码来源:CreatePDF.php

示例8: array

    $row['gender'] = $gender[$row['gender']];
    array_push($data, $row);
}
//setting judul laporan dan header tabel
$judul = "LAPORAN DATA MAHASISWA";
$header = array(array("label" => "No. Pegawai", "length" => 30, "align" => "L"), array("label" => "Nama", "length" => 50, "align" => "L"), array("label" => "Email", "length" => 40, "align" => "L"), array("label" => "Telepon", "length" => 30, "align" => "L"), array("label" => "Jenis Kelamin", "length" => 30, "align" => "L"));
//sertakan library FPDF dan bentuk objek
require_once "fpdf/fpdf.php";
$pdf = new FPDF();
$pdf->AddPage();
//tampilkan judul laporan
$pdf->SetFont('Arial', 'B', '16');
$pdf->Cell(0, 20, $judul, '0', 1, 'C');
//buat header tabel
$pdf->SetFont('Arial', '', '10');
$pdf->SetFillColor(11, 11, 11);
$pdf->SetTextColor(255);
$pdf->SetDrawColor(11, 11, 11);
foreach ($header as $kolom) {
    $pdf->Cell($kolom['length'], 5, $kolom['label'], 1, '0', $kolom['align'], true);
}
$pdf->Ln();
//tampilkan data tabelnya
$pdf->SetFillColor(224, 235, 255);
$pdf->SetTextColor(0);
$pdf->SetFont('');
$fill = false;
foreach ($data as $baris) {
    $i = 0;
    foreach ($baris as $cell) {
        $pdf->Cell($header[$i]['length'], 5, $cell, 1, '0', $kolom['align'], $fill);
开发者ID:nyxstudio,项目名称:php1,代码行数:31,代码来源:report.php

示例9:

#
 
#
#tampilkan judul laporan
#
$pdf->SetFont('Arial','B','16');
#
$pdf->Cell(0,20, $judul, '0', 1, 'C');
#
 
#
#buat header tabel
#
$pdf->SetFont('Arial','','10');
#
$pdf->SetFillColor(65,65,65);
#
$pdf->SetTextColor(255);
#
$pdf->SetDrawColor(128,0,0);
#
$pdf->Cell(10, 5, 'NO', 1, '0', 'C', true); 
#
foreach ($header as $kolom) {
#
$pdf->Cell($kolom['length'], 5, $kolom['label'], 1, '0', $kolom['align'], true);
#
}
#
$pdf->Ln();
#
开发者ID:reekoheek,项目名称:srmis,代码行数:31,代码来源:lap_ms_barang_kadaluarsa_pdf.php

示例10: foreach

$pdf->Cell(0, 5, 'RUMAH SAKIT BERSALIN "BUAH DELIMA" ', 0, 1, 'C');
$pdf->Cell(0, 5, 'IKATAN BIDAN INDONESIA KABUPATEN SIDOARJO ', 0, 1, 'C');
$pdf->SetFont('Arial', '', '10');
$pdf->Cell(0, 5, 'Jl. Sunandar Priyo Sudarmo No.154 Telp. (031) 8056911', 0, 1, 'C');
$pdf->Cell(0, 5, 'Sidoarjo - Jawa Timur - Indonesia', 0, 1, 'C');
$pdf->Image('../_pwi/_assets_cetak_pdf/rsbbd_01.jpg', 58, 12, 25, 25);
// tampil garis line
$pdf->Line(45, 38, 250, 38);
$pdf->Line(45, 39, 250, 39);
$pdf->Ln();
$pdf->Cell(0, 5, '', 0, 1, 'C');
$pdf->Cell(0, 5, 'Laporan Ganti Jadwal Pegawai Tetap, Bulan ' . $bln . ' Tahun ' . $tahun, 0, 1, 'C');
$pdf->Ln();
$pdf->Cell(0, 5, 'Gedung Rawat Inap Dan UGD', 0, 1, 'C');
$pdf->Ln();
$pdf->SetFillColor(224, 235, 255);
$pdf->SetTextColor(0);
$pdf->Cell(1, 7, '', '', 0, 'L');
#buat header tabel
foreach ($tabel_anggota as $kolom) {
    $pdf->Cell($kolom['length'], 7, $kolom['label'], 1, '0', $kolom['align'], true);
}
#tampilkan data tabel
$pdf->Ln();
$pdf->Cell(1, 7, '', '', 0, 'L');
$fill = false;
foreach ($data_tabel as $baris) {
    $i = 0;
    $no = 0;
    foreach ($baris as $cell) {
        $pdf->Cell($tabel_anggota[$i]['length'], 7, $cell, 1, '0', $kolom['align']);
开发者ID:sumar,项目名称:Application-Web-RS,代码行数:31,代码来源:_rppt-gj.php

示例11: CetakHeadernya

// Author : SIAKAD TEAM
// Email  : setio.dewo@gmail.com
// Start  : 20 Oktober 2008
session_start();
include_once "../dwo.lib.php";
include_once "../db.mysql.php";
include_once "../connectdb.php";
include_once "../parameter.php";
include_once "../cekparam.php";
include_once "../fpdf.php";
// *** Parameters ***
$MKPaketID = GetSetVar('MKPaketID');
$pdf = new FPDF();
$pdf->SetTitle("Matakuliah Paket");
$pdf->AddPage();
$pdf->SetFillColor(200, 200, 200);
$pdf->SetFont('Helvetica', 'B', 14);
CetakHeadernya($MKPaketID, $pdf);
CetakMatakuliahnya($MKPaketID, $pdf);
$pdf->Output();
// *** Functions ***
function CetakHeadernya($MKPaketID, $p)
{
    $lbr = 190;
    $t = 6;
    if (empty($MKPaketID)) {
        $_pid = "(SEMUA)";
    } else {
        $_pid = GetaField('mkpaket', "MKPaketID='{$MKPaketID}' and KodeID", KodeID, 'Nama');
    }
    HeaderLogo("Daftar Mata Kuliah Paket: {$_pid}", $p, 'P');
开发者ID:anggadjava,项目名称:mitra_siakad,代码行数:31,代码来源:matakuliah.cetakpaket.php

示例12:

     $pdf->AddPage();
     //Menambahkan Gambar
     $pdf->Image('logo.png', 5, 11, -275);
     $pdf->SetFont('Arial', 'B', 13);
     $pdf->Cell(80);
     $pdf->Cell(30, 10, '', 0, 0, 'C');
     $pdf->Ln();
     $pdf->Cell(80);
     $pdf->Cell(30, 10, 'LAPORAN DENDA', 0, 0, 'C');
     $pdf->Ln();
 }
 //Fields Name position
 $Y_Fields_Name_position = 30;
 //First create each Field Name
 //Gray color filling each Field Name box
 $pdf->SetFillColor(204, 153, 0);
 //Bold Font for Field Name
 $pdf->SetFont('Arial', 'B', 8);
 $pdf->SetY($Y_Fields_Name_position);
 $pdf->SetX(5);
 //1  -->5 sebelah kiri
 $pdf->Cell(21, 8, 'ID Anggota', 1, 0, 'C', 1);
 $pdf->SetX(26);
 //2     40  //geser lebar
 $pdf->Cell(45, 8, 'Judul', 1, 0, 'C', 1);
 //geser judul
 $pdf->SetX(69);
 //3
 $pdf->Cell(30, 8, 'Tanggal Pinjam', 1, 0, 'C', 1);
 $pdf->SetX(98);
 //4
开发者ID:edisetiawan,项目名称:revisi_ta,代码行数:31,代码来源:denda.php

示例13: strlen

$pdf->AddPage();
$pdf->SetFont('Arial', '', 9);
$pdf->SetDrawColor(0, 0, 0);
$pdf->Ln();
$pdf->Ln();
// Fondo
$pdf->Image("../images/fondo.gif", 0, 30, 297, 180);
// Logo
$pdf->Image("../qualidad/doc-" . $_SESSION['base'] . "/logo-certificado.jpg", 10, 12, 60, 30);
//  2/1 proporcional
// Salto de línea
$pdf->Ln(25);
$altura = 10;
$fill = false;
$espacioBlancoIzda = 70;
$pdf->SetFillColor(255, 255, 255);
$pdf->SetDrawColor(200, 200, 200);
$pdf->SetLineWidth(0.1);
$pdf->SetFont('Arial', 'B', 18);
$pdf->Cell(280, 50, 'CERTIFICADO DE ASISTENCIA', 0, 1, 'C');
$pdf->Ln(1);
$pdf->SetFont('Arial', '', 18);
$pdf->Cell($espacioBlancoIzda, $altura, '', 0, 0, 'L');
$pdf->Cell(0, $altura, 'Qualidad Consulting de Sistemas, S.L., CERTIFICA', 0, 0, 'L');
$pdf->Ln();
$pdf->Cell($espacioBlancoIzda, $altura, '', 0, 0, 'L', $fill);
$pdf->Cell(15, $altura, 'que ', 0, 0, 'L', $fill);
$pdf->SetFont('Arial', 'I', 18);
$width = strlen($empleado) * 4;
$pdf->Cell($width, $altura, 'D. ' . utf8_decode($empleado), 0, 0, 'L', $fill);
$pdf->SetFont('Arial', '', 18);
开发者ID:QualidadInformatica,项目名称:qualidad1,代码行数:31,代码来源:certificado.php

示例14: FPDF

include 'Models/class.Denuncia.php';
include 'Models/class.DenunciaDAO.php';
include '../mod_ciudadanos/Models/class_fisc_ciudadano.php';
include '../mod_ciudadanos/Models/class_fisc_ciudadanoDAO.php';
$pdf = new FPDF('P');
$pdf->AddPage();
$pdf->Image('../../public_html/imagenes/logoclaro.png', 40, 50, 120);
$pdf->SetTitle("Notificación al denunciante", true);
$pdf->Image('../../public_html/imagenes/logoivss.png', 20, 7, 13);
$pdf->SetFont('Arial', '', 6);
$pdf->Text(40, 10, utf8_decode('REPÚBLICA BOLIVARIANA DE VENEZUELA'));
$pdf->Text(40, 13, utf8_decode('MINISTERIO DEL PODER POPULAR PARA EL TRABAJO Y SEGURIDAD SOCIAL'));
$pdf->Text(40, 16, utf8_decode('INSTITUTO VENEZOLANO DE LOS SEGUROS SOCIALES'));
$pdf->Text(40, 19, utf8_decode('DIRECCIÓN GENERAL DE FISCALIZACIÓN'));
$pdf->SetXY(20, 26);
$pdf->SetFillColor(35, 65, 129);
$pdf->SetFont('Arial', 'B', 8);
$pdf->setTextColor(255, 255, 255);
$pdf->Cell(50, 6, utf8_decode('N° DE QUEJAS Y/O RECLAMOS'), 1, 0, 'C', TRUE);
$pdf->SetXY(20, 32);
$pdf->Cell(50, 6, '', 1, 0, 'C', FALSE);
$pdf->setTextColor(0, 0, 0);
$pdf->SetFont('Arial', 'B', 8);
$pdf->Text(60, 50, utf8_decode('COMPROBANTE DE RECEPCIÓN DE QUEJA Y/O RECLAMO'));
$pdf->SetXY(20, 52);
$pdf->SetFont('Arial', 'B', 8);
$pdf->setTextColor(255, 255, 255);
$pdf->Cell(50, 6, utf8_decode('FECHA DE PRESENTACIÓN'), 1, 0, 'C', TRUE);
$pdf->Cell(35, 6, '', 1, 0, 'C', FALSE);
$pdf->Cell(50, 6, utf8_decode('HORA DE PRESENTACIÓN'), 1, 0, 'C', TRUE);
$pdf->Cell(35, 6, '', 1, 0, 'C', FALSE);
开发者ID:vanckruz,项目名称:draftReports,代码行数:31,代码来源:comprobante_recepcion_queja.php

示例15: foreach

 /** Get the list of categories for this class **/
 /** NOW LOOP OVER THE ARRAY OF STUDENTS **/
 /** THE FOLLOWING SHOULD BE REPEATED FOR EACH STUDENT **/
 if (count($reports)) {
     foreach ($reports as $id => $report) {
         $teacherName = $report['classInfo']['first_name'] . " " . $report['classInfo']['last_name'];
         $rcv = 0;
         /** used for row shading **/
         $pdf->AddPage('P');
         $pdf->SetMargins($lm, $tm);
         //$pdf->SetTitle($className."_".$termName."_".$sname."_ProgressReport.pdf");
         /** START BUILDING THE PAGE **/
         /** First the heading **/
         $y_coord = $tm;
         $x_coord = $lm;
         $pdf->SetFillColor(255, 255, 255);
         /** Page Title **/
         $pdf->SetTextColor(51, 102, 102);
         $pdf->SetFont('Times', 'B', $titlefs);
         $pdf->SetXY($x_coord, $y_coord);
         $title = $pdf->Cell($headingw, $titleh, 'Questar III Student Progress Report', 0, 1, 'C', 0);
         $y_coord += $titleh;
         $pdf->SetTextColor(0, 0, 0);
         $pdf->SetFont('Times', 'B', $colheadingfs);
         $pdf->SetXY($x_coord, $y_coord);
         $pdf->Cell($headingw, 0.4, $report['studentName'], 0, 2, 'L', 0);
         $pdf->Cell($headingw, 0.4, $report['classInfo']['course_name'] . ' ~ ' . $teacherName, 0, 2, 'L', 0);
         $pdf->Cell($headingw, 0.4, "School Year " . $schoolYear . " ~ " . $report['classInfo']['term_name'], 0, 2, 'L', 0);
         $pdf->Cell($headingw, 0.4, "Printed on " . $currentDate, 0, 2, 'L', 0);
         /** SUMMARY SECTION **/
         $y_coord = $tm + $titleh;
开发者ID:knichel,项目名称:AIT,代码行数:31,代码来源:printview_progressreport.php


注:本文中的FPDF::SetFillColor方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。