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


PHP FPDF::cell方法代码示例

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


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

示例1: pdf

 function pdf()
 {
     $this->load->library('cfpdf');
     $pdf = new FPDF('P', 'mm', 'A4');
     $pdf->AddPage();
     $pdf->SetFont('Arial', 'B', 'L');
     $pdf->Cell(10, 7, 'No', 1, 0);
     $pdf->cell(30, 7, 'Tanggal', 1, 0);
     $pdf->cell(30, 7, 'Operator', 1, 0);
     $pdf->cell(38, 7, 'Total', 1, 1);
     // tampilkan dari database
     $pdf->SetFont('Arial', 'B', 'L');
     $data = $this->model_transaksi->laporan_default();
     $no = 1;
     foreach ($data->result() as $d) {
         $total = 0;
     }
     $pdf->SetFont('Arial', 'B', 'L');
     $pdf->Cell(10, 7, $no, 1, 0);
     $pdf->cell(30, 7, $d->tanggal_transaksi, 1, 0);
     $pdf->cell(30, 7, $d->nama_lengkap, 1, 0);
     $pdf->cell(38, 7, '', 1, 1);
     // end
     $pdf->cell(67, 7, 'total', 1, 0, 'L');
     $pdf->cell(38, 7, '', 1, 0);
     $pdf->Output();
 }
开发者ID:azisdzelani,项目名称:point-of-sales,代码行数:27,代码来源:transaksi.php

示例2: array

$pdf->AddPage();
$codes = array("3ZRCT5L5", "V9K4NFKP", "F4RUH3CX", "PE99XUGV", "7RAA842U", "TSVULCL7", "W8J9TQ34", "49Z6SJD8", "ULLK3EC7", "2DXRNWWQ", "PFXB3X33", "2BSGC6VH", "K7APZR9J", "TBBY545M", "GXXR2UDP", "EP242HFK", "B5BPXTW7", "HAB7G93W", "R7PE4BJR", "FJ8KKCBD", "ACZDZP3Z", "EKH2FNJD", "7MZLG2CH", "6ERVQJUA", "PPSFDAJV", "RGABLEJW", "JJ65C52Q", "3B6FKAUB", "VQSZTZZ8", "3ZHFCKE9", "V9KYR97J", "25PTMJJZ", "6H4C9Z3Z", "D62C6UTT", "UVB4G8W6", "2Q37LUAA", "BLLB96WG", "URY895AA", "P6TNEMLJ", "QAPC92JF", "F5XBA9Z7", "Q3PPWR56", "4XSWBBY7", "DXFTMAXV", "3JYHCKXK", "KDXQ7AA2", "NJ7MPYWC", "GWQ9DYMF", "DM2CZWGJ", "GVHQWH5H", "WE6TAMSK", "KCFJPR9N", "4C48VR7F", "SP2J685S", "ACE7NM2C", "LEMXES7T", "AVEDQQ3V", "UDESHXN3", "3AEZM4Z2", "WUWFC4JC", "L8BUXGHD");
$start_x = 0.25;
$start_y = 0.5625;
$x_size = 1.75;
$y_size = 0.66;
$row_sep = 0.3125;
$cells_per_row = 15;
$cells_per_col = 4;
$cells_per_page = 60;
$cell = 0;
$page = 0;
for ($cell = 0; $cell < count($codes); ++$cell) {
    $newpage = intdiv($cell, $cells_per_page);
    if ($newpage > $page) {
        $pdf->AddPage();
        $page = $newpage;
    }
    $page_cell = $cell - $page * $cells_per_page;
    $row = $page_cell % 15;
    $col = intdiv($page_cell, 15);
    // Draw the party id
    $pdf->SetFont("ufonts.com_century-gothic", "", 8);
    $pdf->setXY($col * ($x_size + $row_sep), $start_y + $row * $y_size);
    $pdf->cell(0.25, 0.66, $cell + 1, 0, 0, "C", false);
    // Draw the code
    $pdf->SetFont("ufonts.com_century-gothic", "", 16);
    $pdf->setXY($start_x + $col * ($x_size + $row_sep), $start_y + $row * $y_size);
    $pdf->cell($x_size, $y_size, $codes[$cell], 0, 0, "C", false);
}
$pdf->Output();
开发者ID:ragnerrok,项目名称:agnervsbamberger,代码行数:31,代码来源:generate_code_labels.php

示例3: FPDF

<?php

require 'fpdf/fpdf.php';
$pdf = new FPDF('P', 'cm', 'A4');
//Titres des colonnes
$header = array('Nom', 'Prenom', 'Adresse e-mail', 'Téléphone', 'Fax', 'Status cotisation');
$pdf->SetFont('Arial', 'B', 14);
$pdf->AddPage();
$pdf->SetFillColor(96, 96, 96);
$pdf->SetTextColor(255, 255, 255);
mysql_connect('localhost', 'root', 'monpass') or die("ERROR DATABASE CONNECTION");
mysql_select_db('compfundation') or die("DATA SELECTION ERRROR");
$query = "select * from intervenants";
$resultat = mysql_query($query);
$pdf->SetXY(3, 3);
for ($i = 0; $i < sizeof($header); $i++) {
    $pdf->cell(5, 1, $header[$i], 1, 0, 'C', 1);
}
$pdf->SetFillColor(0xdd, 0xdd, 0xdd);
$pdf->SetTextColor(0, 0, 0);
$pdf->SetFont('Arial', '', 10);
$pdf->SetXY(3, $pdf->GetY() + 1);
$fond = 0;
while ($row = mysql_fetch_array($resultat)) {
    $pdf->cell(5, 0.7, $row['int_nom'], 1, 0, 'C', $fond);
    $pdf->cell(5, 0.7, $row['int_prenom'], 1, 0, 'C', $fond);
    $pdf->cell(5, 0.7, $row['int_email'], 1, 0, 'C', $fond);
    $pdf->SetXY(3, $pdf->GetY() + 0.7);
    $fond = !$fond;
}
$pdf->output();
开发者ID:GotExx,项目名称:compfundation,代码行数:31,代码来源:pdfexport.php

示例4: NestedTree

 #CASE generating the pdf of items to rennew
 case "generate_renewal_pdf":
     require_once "NestedTree.class.php";
     $tree = new NestedTree($pre . 'nested_tree', 'id', 'parent_id', 'title');
     //Prepare the PDF file
     include '../includes/libraries/fpdf/pdf.fonctions.php';
     $pdf = new FPDF();
     $pdf->AliasNbPages();
     $pdf->AddPage();
     $pdf->SetFont('Arial', 'B', 16);
     $pdf->Cell(0, 10, $txt['renewal_needed_pdf_title'], 0, 1, 'C', false);
     $pdf->SetFont('Arial', 'I', 12);
     $pdf->Cell(0, 10, $txt['pdf_del_date'] . date($_SESSION['settings']['date_format'] . " " . $_SESSION['settings']['time_format'], mktime(date("H"), date("i"), date("s"), date("m"), date("d"), date("Y"))), 0, 1, 'C', false);
     $pdf->SetFont('Arial', 'B', 10);
     $pdf->SetFillColor(192, 192, 192);
     $pdf->cell(70, 6, $txt['label'], 1, 0, "C", 1);
     $pdf->cell(25, 6, $txt['creation_date'], 1, 0, "C", 1);
     $pdf->cell(25, 6, $txt['expiration_date'], 1, 0, "C", 1);
     $pdf->cell(45, 6, $txt['group'], 1, 0, "C", 1);
     $pdf->cell(25, 6, $txt['author'], 1, 1, "C", 1);
     $pdf->SetFont('Arial', '', 9);
     foreach (explode('@|@', addslashes($_POST['text'])) as $line) {
         $elem = explode('@;@', $line);
         if (!empty($elem[0])) {
             $pdf->cell(70, 6, $elem[0], 1, 0, "L");
             $pdf->cell(25, 6, $elem[1], 1, 0, "C");
             $pdf->cell(25, 6, $elem[2], 1, 0, "C");
             $pdf->cell(45, 6, $elem[3], 1, 0, "C");
             $pdf->cell(25, 6, $elem[4], 1, 1, "C");
         }
     }
开发者ID:omusico,项目名称:isle-web-framework,代码行数:31,代码来源:views.queries.php

示例5: db

$db = new db();
$db->_DEBUG = 1;
$pdf = new FPDF("L", 'mm', "A4");
$pdf->open();
$pdf->AddPage();
$fonte = 'times';
$pdf->SetLeftMargin(5);
$pdf->SetAutoPageBreak("on", 2);
$pdf->SetFont($fonte, "", 12);
$pdf->sety(15);
$pdf->SetFont($fonte, "b", 12);
$pdf->setx(5);
$pdf->ln();
$pdf->SetFont($fonte, "", 14);
$pdf->setx(5);
$pdf->cell(50, 5, "Controle de Entregas", 0, 1);
$pdf->line(5, $pdf->GetY(), 290, $pdf->GetY());
$pdf->ln(10);
$pdf->setfont($fonte, "B", "14");
$pdf->cell(0, 5, $_GET["dtvenda"], 0, 1, "C");
$pdf->setfillcolor(235);
$pdf->SetFont($fonte, "b", 10);
$total = $db->entregas["total"];
$sql = " SELECT fun_nome,count(*) as total\n         FROM   comandas inner join comandaentrega \n                on cet_comid = com_id\n                inner join funcionarios on fun_id = cet_funid\n         WHERE com_dtcomanda = '" . strformat($_GET["dtvenda"], "dten") . "' group by fun_nome order by fun_nome";
$rs = $db->executa($sql);
$pdf->cell(140, 5, "Funcionário", "B", 0, "C", 1);
$pdf->cell(45, 5, "Qtde", "B", 1, "C", 1);
$pdf->SetFont($fonte, "", 10);
while ($ln = $db->fetch_array($rs)) {
    if ($pdf->getY() >= $pdf->h - 15) {
        $pdf->addpage();
开发者ID:tavo1981,项目名称:phpbar,代码行数:31,代码来源:del_rctrlentregas002.php

示例6:

$row = 6;
while ($data = mysql_fetch_array($sql)) {
    $rak = mysql_query("select*from rak where id='{$data['rak']}'");
    $kar = mysql_fetch_array($rak);
    if ($ya > 250) {
        $pdf->addPage();
        $ya = 6;
        $pdf->text(10, 280, 'Perpustakaan Online SMK Negeri 10 Jakarta');
    }
    $pdf->setXY(10, $ya);
    $pdf->setFont('arial', '', 9);
    if ($no % 2 == 0) {
        $pdf->setFillColor(183, 255, 255);
    } else {
        if ($no % 2 == 1) {
            $pdf->setFillColor(183, 255, 127);
        }
    }
    $pdf->cell(10, 6, $no, 1, 0, 'C', 1);
    $pdf->cell(20, 6, $data[id], 1, 0, 'C', 1);
    $pdf->cell(80, 6, $data[Judul], 1, 0, 'L', 1);
    $pdf->cell(60, 6, $kar[nama], 1, 0, 'L', 1);
    $pdf->cell(20, 6, $data[Jumlah], 1, 0, 'C', 1);
    $ya = $ya + $row;
    $no++;
    $i++;
    if ($no < 3) {
        $pdf->text(10, 280, 'Perpustakaan Online SMK Negeri 10 Jakarta');
    }
}
$pdf->Output();
开发者ID:ariefsetya,项目名称:dynamiclinklibrary,代码行数:31,代码来源:laporanbuku.php

示例7: db

$db = new db();
$pdf = new FPDF("L", 'mm', "A4");
$pdf->open();
$pdf->AddPage();
$fonte = 'times';
$pdf->SetLeftMargin(5);
$pdf->SetAutoPageBreak("on", 2);
$pdf->SetFont($fonte, "", 12);
$pdf->sety(15);
$pdf->SetFont($fonte, "b", 12);
$pdf->setx(5);
$pdf->ln();
$pdf->Text(230, 10, "Emissão: " . date("d/m/Y"));
$pdf->SetFont($fonte, "", 14);
$pdf->setx(5);
$pdf->cell(50, 5, "Lista de clintes Duplos", 0, 1);
$pdf->line(5, $pdf->GetY(), 290, $pdf->GetY());
$pdf->ln(10);
$pdf->setfillcolor(235);
$pdf->SetFont($fonte, "b", 10);
$pdf->cell(170, 5, "Cliente", 1, 0, "C", 1);
$pdf->cell(45, 5, "Fone", 1, 1, "C", 1);
$sql = "SELECT distinct cli_nome, \n               cli_foneprinc\n        from   clientes\n        group  by cli_nome,cli_foneprinc having count(*) > 1";
$rs = $db->executa($sql);
$pdf->SetFont($fonte, "", 10);
while ($ln = $db->fetch_array($rs)) {
    if ($pdf->getY() >= $pdf->h - 15) {
        $pdf->addpage();
        $pdf->SetFont($fonte, "b", 10);
        $pdf->cell(170, 5, "Cliente", 1, 0, "C", 1);
        $pdf->cell(45, 5, "Fone", 1, 1, "C", 1);
开发者ID:tavo1981,项目名称:phpbar,代码行数:31,代码来源:cli_rlistaduplos.php

示例8: array

$rezulto = sql_faru(datumbazdemando(array("p.ID", "pn.ID"), array("partoprenantoj" => "p", "partoprenoj" => "pn"), array("alvenstato = 'a'", "partoprentipo = 't'"), "renkontigxoID"));
while ($row = mysql_fetch_array($rezulto, MYSQL_NUM)) {
    $gesamt += 1;
    $partoprenanto = new Partoprenanto($row[0]);
    $seksagxo[$partoprenanto->datoj[sekso]][$partoprenanto->datoj[agxo]] += 1;
    $partopreno = new Partopreno($row[1]);
    $ko = new Kotizo($partopreno, $partoprenanto, $_SESSION["renkontigxo"]);
    $kotizo += $ko->kotizo;
    $pagantoj[$ko->agxkategorio][$ko->aligxkategorio][$ko->landakategorio][$partopreno->datoj[domotipo]] += 1;
    //echo $ko->agxkategorio." / ".$ko->aligxkategorio." / ".$ko->landakategorio." / ".$partopreno->datoj[domotipo]." <BR>";
    //echo "Ko: ".$ko->kotizo;
}
//echo "entute: $gesamt<br>";
$pdf->setY(30);
$pdf->text(20, 65, "entute: {$gesamt}");
$pdf->cell(20, 4, "domo", 1, 0, C);
$pdf->cell(21, 4, "<1.10.", 1, 0, C);
//bei Bedarf aus der DB holen
$pdf->cell(21, 4, "<1.12.", 1, 0, C);
$pdf->cell(21, 4, ">=1.12.", 1, 1, C);
for ($i = 2; $i >= 0; $i--) {
    $pdf->cell(20, 4, $i, 1, 0, C);
    for ($j = 2; $j >= 0; $j--) {
        for ($k = A; $k <= C; $k++) {
            $pdf->cell(7, 4, $pagantoj[$i][$j][$k][J], 1, 0, C);
        }
    }
    $pdf->ln();
    //echo "<BR> ";
}
//  echo "MEM:<BR>";
开发者ID:BackupTheBerlios,项目名称:aligilo-svn,代码行数:31,代码来源:demandoj.php

示例9: FPDF

<?php

require "fpdf/fpdf.php";
$pdf = new FPDF();
$pdf->AddPage();
$pdf->SetFont("Arial", "B", "20");
$pdf->cell(0, 10, "hello,world");
$pdf->Output();
开发者ID:ethender,项目名称:CurrentlyWorkingProject,代码行数:8,代码来源:pdfCreate2.php

示例10: foreach

$factions = get_project_factions($project_id);
$firstPage = true;
foreach ($characters as $faction_num => $faction_characters) {
    if ($factions[$faction_num]['deleted']) {
        continue;
    }
    foreach ($faction_characters as $character_num => $faction_character) {
        if ($faction_character['deleted']) {
            continue;
        }
        if (!$firstPage) {
            $pdf->AddPage();
        }
        $firstPage = false;
        $character_data = get_character_data($project_id, $faction_character['character_id']);
        $pdf->cell(45, 10, 'Character: ' . $faction_character['character_name'], 0, 0, 'L');
        $pdf->cell(45, 10, 'Player: ' . $faction_character['player_name'], 0, 0, 'L');
        $pdf->cell(45, 10, 'Faction: ' . $factions[$faction_num]['faction_name'], 0, 0, 'L');
        $pdf->cell(45, 10, 'Priority: ' . $faction_character['priority_label'], 0, 1, 'L');
        $pdf->multicell(90, 4, 'Bio: ' . $faction_character['character_bio'], 0, 2);
        $pdf->Ln();
        $inner_characters = $characters;
        foreach ($inner_characters as $inner_faction_num => $inner_faction_characters) {
            if ($factions[$inner_faction_num]['deleted']) {
                continue;
            }
            $pdf->cell(45, 4, $factions[$inner_faction_num]['faction_name'], 0, 1);
            foreach ($inner_faction_characters as $inner_character_num => $inner_faction_character) {
                if ($inner_faction_character['deleted']) {
                    continue;
                }
开发者ID:skinnerdev,项目名称:ballin-batman,代码行数:31,代码来源:print.php

示例11: db

<?php

define('FPDF_FONTPATH', 'fpdf151/font/');
require 'fpdf151/fpdf.php';
include "libs/classes.class";
include "libs/funcoes.php";
$db = new db();
$sql = str_replace("#\$", "'", $str_sql);
$rs = $db->executa($sql);
echo $sql;
$pdf = new FPDF('L', 'mm', 'A4');
$pdf->Open();
$pdf->AddPage();
$Letra = 'Times';
$pdf->setfont($Letra, 'b', 12);
//cabeçalho
$pdf->Image('libs/imagens/logocab.jpg', 10, 10, 30, 30);
$pdf->Image('libs/imagens/Brasao.png', 180, 10, 20, 28);
$pdf->sety(15);
$pdf->cell(0, 5, "SECRETARIA MUNICIPAL DE EDUCAÇÃO E DESPORTO", 0, 1, "C");
$pdf->setxy(50, 30);
$pdf->setfont($Letra, 'b', 10);
//Nome da Escola
$pdf->cell(15, 5, "Relatório das instituições", 0, 1, "L");
$pdf->setxy(10, 50);
$pdf->SetFillColor(204);
for ($i = 0; $i < pg_num_fields($rs); $i++) {
    $pdf->cell(50, 5, ucfirst(pg_field_name($rs, $i)), 1, 0, 'C');
}
//$pdf->output();
开发者ID:tavo1981,项目名称:phpbar,代码行数:30,代码来源:fc_rel.php

示例12: makepdf

    public function makepdf()
    {
        global $user;
        // Get required files.
        require_once 'others/fpdf/fpdf.php';
        // Set some document variables
        $author = "eduCloud";
        $x = 35;
        $text = <<<EOT
Hello
EOT;
        // Create fpdf object
        $pdf = new FPDF('P', 'pt', 'Letter');
        // Set base font to start
        $pdf->SetFont('Arial', 'B', 16);
        // Add a new page to the document
        $pdf->addPage();
        $pdf->setLeftMargin($x);
        //page border
        $pdf->Line(35, 30, 35, 750);
        $pdf->Line(35, 30, 575, 30);
        $pdf->Line(575, 30, 575, 750);
        $pdf->Line(575, 750, 35, 750);
        //end of page border
        // Set the x,y coordinates of the cursor
        $pdf->SetXY($x + 20, 40);
        // Write 'Simple PDF' with a line height of 1 at the current position
        $pdf->Write(25, 'Employee Details');
        $pdf->Image($_SERVER['DOCUMENT_ROOT'] . '/cloud/images/school_logo.jpg', 500, 35, 50, 50, 'JPG');
        // Reset the font
        // Reset font, color, and coordinates
        $pdf->SetFont('Arial', '', 12);
        $pdf->SetTextColor(0, 0, 0);
        $pdf->SetLeftMargin($x + 50);
        $pdf->setXY($x + 50, 90);
        global $objPDO;
        require_once $_SERVER['DOCUMENT_ROOT'] . '/cloud/model/teacher_class.php';
        $record = new Teacher($objPDO);
        if ($user->checkAdmin()) {
            $eid = $_GET['uid'];
        } else {
            $student = new Student($objPDO, $user->getuserId());
            $eid = $student->getID();
        }
        $record->loadByUserId($eid);
        // Write out a long text blurb.
        //$array=$record->getAsArray();
        //$x=0;
        /* TEMPLATE 1 DESIGN*/
        $pdf->SetFont('Arial', '', 8);
        $pdf->setFillColor(255, 255, 255);
        $pdf->cell(200, 20, 'Employee Id (reference) : ' . $record->getTeacherId(), 0, 1, 'L', true);
        $pdf->SetFont('Arial', '', 12);
        $pdf->setFillColor(50, 50, 50);
        $pdf->setTextColor(255, 255, 255);
        $pdf->cell(450, 20, 'Employee Details', 0, 1, 'C', true);
        $pdf->setTextColor(0, 0, 0);
        $pdf->setFillColor(221, 221, 221);
        $pdf->cell(200, 20, 'Employee Name', 0, 0, 'C', true);
        $pdf->cell(250, 20, $record->getName(), 0, 1, 'C', true);
        $pdf->setFillColor(255, 255, 255);
        $pdf->cell(200, 20, 'Qualification', 0, 0, 'C', true);
        $pdf->cell(250, 20, $record->getQualification(), 0, 1, 'C', true);
        require_once $_SERVER['DOCUMENT_ROOT'] . '/cloud/model/subject_class.php';
        $subject_id = new Subject($objPDO);
        $subject_id->setID($record->getSubjectId());
        $pdf->setFillColor(221, 221, 221);
        $pdf->cell(200, 20, 'Subject', 0, 0, 'C', true);
        $pdf->cell(250, 20, $subject_id->getName(), 0, 1, 'C', true);
        $pdf->setFillColor(255, 255, 255);
        $pdf->cell(200, 20, 'Date Of Birth', 0, 0, 'C', true);
        $pdf->cell(250, 20, $record->getDateOfBirth(), 0, 1, 'C', true);
        $pdf->setFillColor(221, 221, 221);
        $pdf->cell(200, 20, 'Gender', 0, 0, 'C', true);
        $pdf->cell(250, 20, ucfirst($record->getGender()), 0, 1, 'C', true);
        $pdf->setFillColor(255, 255, 255);
        $pdf->cell(200, 20, 'Blood Group', 0, 0, 'C', true);
        $pdf->cell(250, 20, $record->getBloodGroup(), 0, 1, 'C', true);
        $pdf->setFillColor(255, 255, 255);
        $pdf->cell(200, 20, '', 0, 0, 'C', true);
        $pdf->cell(250, 20, '', 0, 1, 'C', true);
        $pdf->setFillColor(50, 50, 50);
        $pdf->setTextColor(255, 255, 255);
        $pdf->cell(450, 20, 'Contact Details', 0, 1, 'C', true);
        $pdf->setTextColor(0, 0, 0);
        $pdf->setFillColor(221, 221, 221);
        $pdf->cell(200, 20, 'Correspondence Address', 0, 0, 'C', true);
        $pdf->cell(250, 20, $record->getCorrespondenceAddressLine1(), 0, 1, 'C', true);
        $pdf->cell(200, 20, '', 0, 0, 'C', true);
        $pdf->cell(250, 20, $record->getCorrespondenceAddressLine2(), 0, 1, 'C', true);
        $pdf->setFillColor(255, 255, 255);
        $pdf->cell(200, 20, 'City', 0, 0, 'C', true);
        $pdf->cell(250, 20, $record->getCorrespondenceCity(), 0, 1, 'C', true);
        $pdf->setFillColor(221, 221, 221);
        $pdf->cell(200, 20, 'State', 0, 0, 'C', true);
        $pdf->cell(250, 20, $record->getCorrespondenceState(), 0, 1, 'C', true);
        $pdf->setFillColor(255, 255, 255);
        $pdf->cell(200, 20, 'Pincode', 0, 0, 'C', true);
        $pdf->cell(250, 20, $record->getCorrespondencePincode(), 0, 1, 'C', true);
        $pdf->setFillColor(221, 221, 221);
//.........这里部分代码省略.........
开发者ID:srinivasans,项目名称:educloud,代码行数:101,代码来源:teacherController.php

示例13: array

    //En-tête
    $w = array(50, 25, 25, 80);
    $atelier = array('Date', 'Heure', 'Durée', 'Sujet');
    for ($i = 0; $i < 4; $i++) {
        $courrier->Cell($w[$i], 7, $atelier[$i], 0, 0, 'C', 1);
    }
    $courrier->Ln();
    //Restauration des couleurs et de la police
    $courrier->SetFillColor(219, 239, 204);
    $courrier->SetTextColor(0, 0, 0, 0);
    $courrier->SetFont('SourceSansPro-Regular', '', 10);
    //Données
    $fill = false;
    $courrier->SetAutoPageBreak(1, 30);
    while ($row = mysqli_fetch_array($rowatelier)) {
        $courrier->cell(50, 7, getDayfr($row['date_atelier']), 0, 0, 'C', $fill);
        $courrier->cell(25, 7, $row['heure_atelier'], 0, 0, 'C', $fill);
        $courrier->cell(25, 7, $row['duree_atelier'] . ' min', 0, 0, 'C', $fill);
        $courrier->cell(80, 7, $row['label_atelier'], 0, 1, 'C', $fill);
        //getSujet($row['id_sujet']);
        $fill = !$fill;
    }
    $courrier->Ln(6);
} else {
    $courrier->Write(5, "Vous n'êtes inscrit à aucun atelier actuellement.");
}
//****Liste d'attente aux ateliers
if ($nbattente > 0) {
    $courrier->MultiCell(0, 5, utf8_decode('Vous êtes inscrit(e) en attente pour les ateliers suivants'), 0, 'J', false);
    $courrier->SetFillColor(230, 230, 230);
    $courrier->SetTextColor(46, 46, 46);
开发者ID:ctariel,项目名称:CyberGestionnaireLGB,代码行数:31,代码来源:lettre_atelier.php

示例14:

	
		include("membrete_recibos.php");
		
		$nombre = $ren_emp["nombre"];
		$dia = $row_dia['dia'];
		$ur = $ren_emp["ur"];
		$idarea = $ren_emp["idarea"];
		$rfc = $ren_emp["rfc"];
		$fechaingr = $ren_emp["fechaingr"];
		$nafiliacion = $ren_emp["nafiliacion"];
		$curp = $ren_emp["curp"];
		$jornada = $ren_emp["jornada"];
		$salariofv = $ren_emp["salariofv"];
	
	
		$pdf->cell(15,5,"Nombre: ", 0, 0, 'L');
		$pdf->cell(85,5,$nombre, 0, 0, 'L');
		$pdf->cell(25,5,"D�as del per�odo: ", 0, 0, 'L');
		$pdf->cell(75,5,$dia, 0, 0, 'L');
		$pdf->Ln(5);
		$pdf->cell(15,5,"UR: ", 0, 0, 'L');
		$pdf->cell(85,5,$ur, 0, 0, 'L');
		$pdf->cell(25,5,"Per�odo del: ", 0, 0, 'L');
		$pdf->cell(75,5,$_POST["fdesde"], 0, 0, 'L');
		$pdf->Ln(5);
		$pdf->cell(15,5,"R.F.C.:", 0, 0, 'L');
		$pdf->cell(85,5,$rfc, 0, 0, 'L');
		$pdf->cell(25,5,"Al: ", 0, 0, 'L');
		$pdf->cell(75,5,$_POST["fhasta"], 0, 0, 'L');
		$pdf->Ln(5);
		$pdf->cell(15,5,"Ingreso: ", 0, 0, 'L');
开发者ID:acronoxine,项目名称:movimientosSFA_V1,代码行数:30,代码来源:pdfrecibos.php

示例15: FPDF

 function genCarpentras2()
 {
     global $options;
     # paramètres
     $mg = 3;
     // Marge de gauche =>  initial 17
     $mh = 13;
     // Marge du haut =>  initial 9
     $md = 0;
     // Marge de droite
     $mb = 11;
     // Marge du bas
     $largeur_etiquette = 70;
     // largeur_etiquette =>  initial 60
     $espace_etiquettes = 0;
     // =>  initial 7
     $nb_ligne_etiquettes = 11;
     $nb_etiquette_ligne = 3;
     $hauteur_etiquette = 25;
     // Préparation du document PDF.
     $pdf = new FPDF('P', 'mm', 'A4');
     $pdf->Open();
     $pdf->SetLeftMargin($mg);
     $pdf->SetTopMargin($mh);
     $pdf->SetAutoPageBreak(1, 0);
     $pdf->AddPage();
     // Gestion des fonts
     $pdf->AddFont('code39', '', 'IDAutomation_Code_39.php');
     $pdf->SetFont('times', '', 12);
     // Préparation des informations.
     $nom = strtoupper($this->patient->getNom());
     $prenom = strtoupper($this->patient->getPrenom());
     $date = new clDate($this->patient->getDateNaissance());
     $dateN = $date->getDate("d/m/Y");
     if ($this->patient->getSexe() == "F") {
         $sexe = "F";
         $e = "e";
     } elseif ($this->patient->getSexe() == "M") {
         $sexe = "M";
         $e = "";
     } else {
         $sexe = "Ind.";
         $e = "";
     }
     $date->setDate($this->patient->getDateAdmission());
     $led = $date->getDate("d/m/Y");
     $ipp = $this->patient->getILP();
     $nsej = $this->patient->getNSej();
     $uf = $this->patient->getUF();
     for ($i = 0; $i < $nb_ligne_etiquettes; $i++) {
         for ($j = 0; $j < $nb_etiquette_ligne; $j++) {
             $l = $j * $largeur_etiquette + $mg;
             $h = $i * $hauteur_etiquette + $mh;
             $le = $largeur_etiquette - $mg;
             $pdf->setY($h);
             $pdf->setX($l);
             $pdf->setFont('times', '', 9);
             $pdf->Cell($le, 4, "Dossier : ", 0, 0, L);
             $pdf->setY($h);
             $pdf->setX($l + 17);
             $pdf->setFont('times', 'b', 9);
             $pdf->cell($le - 10, 4, $nsej, 0, 0, L);
             //$pdf->setFont('times', '', 9 ) ;
             $pdf->setY($h);
             $pdf->setX($l);
             $pdf->cell($le - 10, 4, "U", 0, 0, R);
             $pdf->setY($h + 4);
             $pdf->setX($l);
             $pdf->setFont('times', '', 9);
             $pdf->cell($le, 4, $nom . " " . $prenom, 0, 0, L);
             $pdf->setY($h + 9);
             $pdf->setX($l);
             $pdf->cell($le, 4, "Né{$e} le : {$dateN}", 0, 0, L);
             $pdf->setY($h + 9);
             $pdf->setX($l);
             $pdf->cell($le - 10, 4, "Sexe : {$sexe}", 0, 0, R);
             $pdf->setY($h + 13);
             $pdf->setX($l);
             $pdf->cell($le, 4, "Le : {$led}", 0, 0, L);
             $pdf->setY($h + 13);
             $pdf->setX($l);
             $pdf->cell($le - 10, 4, "UF : {$uf}", 0, 0, R);
             $pdf->setY($h + 17);
             $pdf->setX($l);
             $pdf->cell($le - 10, 4, "NIP : {$ipp}", 0, 0, L);
         }
     }
     $pdf->Output();
 }
开发者ID:jeromecc,项目名称:tuv2,代码行数:89,代码来源:clEtiquettes.php


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