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


PHP FPDF::SetTitle方法代码示例

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


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

示例1: CetakLaporan

function CetakLaporan($prevtahun, $tahun, $nexttahun, $urutan, $gel)
{
    include_once "../fpdf.php";
    require_once "../phplot.php";
    $lbr = 190;
    $arrStatusAplikan = array();
    $s = "select * from statusaplikan where KodeID='" . KodeID . "' order by Urutan ASC";
    $r = _query($s);
    while ($w = _fetch_array($r)) {
        $arrStatusAplikan[] = $w['StatusAplikanID'];
    }
    $arrGelombang = array();
    getArrayGelombang($arrGelombang, $tahun);
    // Buat Graph dan dimasukkan ke file dulu
    $piepath = '../tmp/data_fakta_pmb_pie_graph.png';
    $barpath = '../tmp/data_fakta_pmb_bar_graph.png';
    BuatPieGraph($piepath, $prevtahun, $tahun, $urutan, $gel);
    BuatBarGraph($barpath, $prevtahun, $tahun, $arrStatusAplikan, $urutan, $gel);
    // *** Cetak ***
    $pdf = new FPDF('L', 'mm', 'A4');
    $pdf->SetAutoPageBreak(true, 5);
    $pdf->SetTitle("DATA & FAKTA PMB TAHUN AJARAN {$tahun}/{$nexttahun} GELOMBANG " . UbahKeRomawiLimit99($urutan));
    $pdf->AddPage('L');
    BuatHeaderLap($prevtahun, $tahun, $pdf);
    TampilkanIsinya($prevtahun, $tahun, $arrStatusAplikan, $arrGelombang, $pdf);
    TampilkanGraph($piepath, 30, 75, 96, 64, $pdf);
    TampilkanGraph($barpath, 185, 75, 96, 64, $pdf);
    TampilkanSumberInformasi(60, 145, $prevtahun, $tahun, $urutan, $gel, $pdf);
    TampilkanRatioPresenter(185, 145, $arrStatusAplikan, $tahun, $urutan, $gel, $pdf);
    $pdf->Output();
}
开发者ID:anggadjava,项目名称:sisfor,代码行数:31,代码来源:pmblap.faktapmb.php

示例2: CetakLaporan

function CetakLaporan($prevtahun, $tahun, $gel)
{
    include_once "../fpdf.php";
    $lbr = 190;
    $pdf = new FPDF('P', 'mm', 'A4');
    $pdf->SetTitle("Ratio Presenter PMB - {$prevtahun}/{$tahun}");
    $pdf->AddPage('P');
    $arrStatusAplikan = array();
    $s = "select * from statusaplikan where KodeID='" . KodeID . "' order by Urutan ASC";
    $r = _query($s);
    while ($w = _fetch_array($r)) {
        $arrStatusAplikan[] = $w['StatusAplikanID'];
    }
    // Buat Table 1
    BuatHeaderLap($prevtahun, $tahun, 0, $pdf);
    $arrPresenterID = array();
    GetArrayPresenterSortByRatio($arrPresenterID, $tahun);
    TampilkanIsinya($prevtahun, $tahun, $arrStatusAplikan, $arrPresenterID, 0, $pdf);
    $pdf->Ln(10);
    BuatHeaderLap($prevtahun, $tahun, 1, $pdf);
    $arrPresenterID = array();
    GetArrayPresenterSortByReg($arrPresenterID, $tahun);
    $arrStat = TampilkanIsinya($prevtahun, $tahun, $arrStatusAplikan, $arrPresenterID, 1, $pdf);
    $pdf->Ln(10);
    TampilkanStatistik($arrStat, $tahun, $pdf);
    $pdf->Output();
}
开发者ID:anggadjava,项目名称:mitra_siakad,代码行数:27,代码来源:pmblap.ratiopresenter.php

示例3: generarPdf

function generarPdf($num)
{
    $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('hola'));
    //$nombre = "Prob".date('m-d-Y').".pdf";
    $pdf->Output("Prob{$num}.pdf", 'F');
}
开发者ID:vanckruz,项目名称:draftReports,代码行数:12,代码来源:listado_fichas.php

示例4: CetakLaporan

function CetakLaporan($prevtahun, $tahun, $gel)
{
    include_once "../fpdf.php";
    $lbr = 190;
    $pdf = new FPDF('L', 'mm', 'A4');
    $pdf->SetTitle("Ratio Presenter PMB - {$prevtahun}/{$tahun}");
    $pdf->AddPage('L');
    $arrGelombang = array();
    getArrayGelombang($arrGelombang, $tahun);
    $arrPejabatID = array();
    GetArrayPejabat($arrPejabatID, $tahun);
    // Buat Table 1
    BuatHeaderLap($prevtahun, $tahun, $pdf);
    TampilkanIsinya($prevtahun, $tahun, $arrGelombang, $arrPejabatID, $pdf);
    $pdf->Output();
}
开发者ID:anggadjava,项目名称:mitra_siakad,代码行数:16,代码来源:pmblap.rekappanitia.php

示例5: CetakLaporan

function CetakLaporan($prevtahun, $tahun, $nexttahun, $urutan, $gel)
{
    include_once "../fpdf.php";
    require_once "../phplot.php";
    $lbr = 190;
    // Buat Graph dan dimasukkan ke file dulu
    $piepath = '../tmp/data_fakta_pmb_pie_graph.png';
    BuatPieGraph($piepath, $prevtahun, $tahun, $urutan, $gel);
    // *** Cetak ***
    $pdf = new FPDF('P', 'mm', 'A4');
    $pdf->SetTitle("LAPORAN SUMBER INFORMASI PMB TAHUN AJARAN {$tahun}/{$nexttahun} GELOMBANG " . UbahKeRomawiLimit99($urutan));
    $pdf->AddPage('P');
    BuatHeaderLap($prevtahun, $tahun, $pdf);
    TampilkanGraph($piepath, 20, 30, 144, 96, $pdf);
    TampilkanSumberInformasi(30, 150, $prevtahun, $tahun, $urutan, $gel, $pdf);
    $pdf->Output();
}
开发者ID:anggadjava,项目名称:mitra_siakad,代码行数:17,代码来源:pmblap.sumberinfo.php

示例6: UsersTrafficPeriodPDF

function UsersTrafficPeriodPDF()
{
    //require('chart.php');
    require 'lib/fpdf.php';
    global $SAMSConf;
    global $DATE;
    $DB = new SAMSDB();
    $sdate = $DATE->sdate();
    $edate = $DATE->edate();
    $bdate = $DATE->BeginDate();
    $eddate = $DATE->EndDate();
    $size = "";
    if (isset($_GET["size"])) {
        $size = $_GET["size"];
    }
    require "reportsclass.php";
    $dateselect = new DATESELECT($DATE->sdate(), $DATE->edate());
    $lang = "./lang/lang.{$SAMSConf->LANG}";
    require $lang;
    define('FPDF_FONTPATH', 'lib/font/');
    require 'lib/fpdf.php';
    $pdfFile = new FPDF();
    $pdfFile->Open();
    $pdfFile->AddFont('Nimbus', '', 'Nimbus.php');
    $pdfFile->SetAuthor("SQUID Account Management System");
    $pdfFile->SetCreator("Created by SAMS2");
    $pdfFile->SetTitle("SAMS2 users statistic");
    //      UsersTrafficPeriodPDF();
    $pdfFile->AddPage();
    $pdfFile->SetFont('Nimbus', '', 15);
    //$pdfFile->SetFont('SUSESerif-Roman','',16);
    $pdfFile->SetXY(50, 15);
    echo " {$usersbuttom_2_traffic_UsersTrafficPeriod_1}<BR>{$usersbuttom_2_traffic_UsersTrafficPeriod_2}<br>";
    $pdfFile->Write(0, " {$usersbuttom_2_traffic_UsersTrafficPeriod_1}<BR>{$usersbuttom_2_traffic_UsersTrafficPeriod_2}");
    $pdfFile->Output();
}
开发者ID:ruNovel,项目名称:sams2,代码行数:36,代码来源:usersbuttom_2_traffic.php

示例7: FPDF

$stmt->execute();
//$sql="INSERT INTO `tempinc` SELECT * FROM `NC` WHERE PAR='$par'";
//$stmt=$cnx->prepare($sql);
//$stmt->execute();
//$stmt=$cnx->prepare($sql);
//$stmt->execute();
//$sql="SELECT * FROM INC FOR PAR='$par'";
//$stmt=$cnx->prepare($sql);
//$stmt->execute();
//$res = $stmt->fetch(PDO::FETCH_OBJ);
require 'fpdf.php';
//create a FPDF object
$pdf = new FPDF();
//set document properties
$pdf->SetAuthor('CORCIOVA ENACHI');
$pdf->SetTitle('FISA PARTIDEI');
//set font for the entire document
$pdf->SetFont('Helvetica', 'B', 10);
//$pdf->SetTextColor(50,60,100);
//set up a page
$pdf->AddPage('P');
//$pdf->SetDisplayMode(real,'default');
//display the title with a border around it
//$pdf->SetXY(50,20);
//$pdf->SetDrawColor(50,60,100);
$pdf->Write(7, 'CASA DE AJUTOR RECIPROC A PENSIONARILOR DIN FOCSANI SI JUDETUL VRANCEA');
//$pdf->Ln(2);
$pdf->SetFont('Helvetica', 'B', 12);
$pdf->SetXY(10, 15);
//$pdf->Ln(3);
$s = " ";
开发者ID:sipsenachi,项目名称:rep,代码行数:31,代码来源:fp.php

示例8: BuatHeadernya

// Author : Emanuel Setio Dewo
// Email  : setio.dewo@gmail.com
// Start  : 23 September 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 "../header_pdf.php";
// *** Parameters ***
$TahunID = GetSetVar('TahunID');
// *** Init PDF
$pdf = new FPDF('L', 'mm', 'A5');
$pdf->SetTitle("Daftar Wisudawan - {$TahunID}");
$pdf->AddPage('P');
$lbr = 70;
//BuatHeadernya($pdf);
BuatIsinya($pdf);
$pdf->Output();
// *** Functions ***
function BuatHeadernya($p)
{
    global $lbr;
    $gel = GetFields('wisuda', "KodeID='" . KodeID . "' and TahunID", $_SESSION['TahunID'], "*, date_format(TglWisuda, '%d-%m-%Y') as _TglWisuda");
    $t = 6;
    $p->SetFont('Helvetica', 'B', 14);
    $p->Cell($lbr, $t, "Daftar Wisudawan " . $gel['Nama'], 0, 1, 'C');
    $p->SetFont('Helvetica', '', 12);
    $p->Cell($lbr, $t, "Tanggal Wisuda: " . $gel['_TglWisuda'], 0, 1, 'C');
开发者ID:anggadjava,项目名称:sisfor,代码行数:30,代码来源:wisuda.album.php

示例9: GetSetVar

// Start  : 22 Agustus 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 ***
$_jdwlProdi = GetSetVar('_jdwlProdi');
$_jdwlProg = GetSetVar('_jdwlProg');
$_jdwlTahun = GetSetVar('_jdwlTahun');
$id = GetSetVar('id');
// Init
$pdf = new FPDF('P', 'mm', 'A4');
$pdf->SetTitle("Daftar Nomer Kursi UAS - {$TahunID}");
$pdf->SetAutoPageBreak(true, 4);
// *** Main ***
if ($id == 0) {
    // Maka cetak semua
    $whr_prog = empty($_jdwlProg) ? "" : "and ProgramID = '{$_jdwlProg}'";
    $s = "select JadwalID\r\n    from jadwal\r\n    where KodeID = '" . KodeID . "'\r\n\t  and TahunID = '{$_jdwlTahun}'\r\n      and ProdiID = '{$_jdwlProdi}'\r\n\t  {$whr_prog}\r\n    order by HariID, JamMulai";
    $r = _query($s);
    while ($w = _fetch_array($r)) {
        CetakKursi($w['JadwalID'], $pdf);
    }
} else {
    CetakKursi($id, $pdf);
}
$pdf->Output();
// *** Functions ***
开发者ID:anggadjava,项目名称:sisfor,代码行数:31,代码来源:jadwal.kursiuas.php

示例10: Isinya

// Start  : 04 Juni 2009
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 ***
$prodi = $_REQUEST['prodi'];
$program = $_REQUEST['program'];
$srcmhswkey = $_REQUEST['srcmhswkey'];
$srcmhswval = $_REQUEST['srcmhswval'];
// *** Main
$pdf = new FPDF('P');
$pdf->SetTitle("Data Detail Mahasiswa");
$pdf->SetAutoPageBreak(true, 5);
$pdf->SetFillColor(200, 200, 200);
$pdf->AddPage('P');
HeaderLogo("Data Detail Mahasiswa", $pdf, 'P');
Isinya($prodi, $program, $srcmhswkey, $srcmhswval, $pdf);
$pdf->Output();
// *** Functions ***
function Isinya($prodi, $program, $srcmhswkey, $srcmhswval, $p)
{
    $lbr = 190;
    $t = 6;
    // BuatHeader
    $p->SetFont('Helvetica', 'B', 10);
    $p->Cell(10, $t, 'No.', 1, 0, 'R');
    $p->Cell(23, $t, 'NIM', 1, 0, 'L');
开发者ID:anggadjava,项目名称:sisfor,代码行数:31,代码来源:mhsw.cetak.php

示例11: get_receipt

 public function get_receipt($transaction_id)
 {
     $this->load->library('fpdf');
     $transaction_details = $this->get_transaction($transaction_id);
     $this->load->model('User_model');
     $this->User_model->initialize($transaction_details['user_id']);
     $user_details = $this->User_model->get('*');
     //lookup profile
     $profile_details = $this->get_profile($transaction_details['profile_id'], 'billingperiod, amount, taxamt');
     //lookup subscription
     $subscription_details = $this->get_subscription_by_transaction($transaction_id);
     $pdf = new FPDF('P', 'mm', 'Letter');
     $pdf->AddPage();
     $pdf->SetAuthor('ESCTT Inc.');
     $pdf->SetTitle('Invoice');
     $pdf->Image('http://v1.riskmp.com/assets/images/logo.png', 10, 10, 35, 19, '', 'http://v1.riskmp.com/');
     $pdf->SetXY(50, 10);
     $pdf->SetFont('Arial', 'B', 40);
     $pdf->Cell(100, 20, 'Receipt');
     $address_x = $pdf->GetX();
     $pdf->set_field_title_font($pdf);
     $pdf->Write(14, 'ESCTT Inc.');
     $pdf->Ln(5);
     $pdf->SetX($address_x);
     $pdf->Write(14, '131 Bloor Street West');
     $pdf->Ln(5);
     $pdf->SetX($address_x);
     $pdf->Write(14, 'Suite 200/318');
     $pdf->Ln(5);
     $pdf->SetX($address_x);
     $pdf->Write(14, 'Toronto, ON M5S 1R8');
     $pdf->Ln(5);
     $pdf->SetX($address_x);
     $pdf->Write(14, 'Business # ' . BUSINESS_NUMBER);
     $pdf->SetXY(10, 40);
     $pdf->set_field_title_font($pdf);
     $pdf->Write(10, 'Client: ');
     $pdf->set_field_value_font($pdf);
     $pdf->Write(10, $user_details['first_name'] . " " . $user_details['last_name']);
     $pdf->set_field_title_font($pdf);
     $pdf->SetX(140);
     $pdf->Write(10, 'Generated on: ');
     $pdf->set_field_value_font($pdf);
     $pdf->Write(10, date("Y-m-d"));
     $pdf->Ln(16);
     $pdf->SetFont('Arial', 'B', 18);
     $pdf->Write(6, 'Transaction Details');
     $pdf->Ln(6);
     $pdf->set_field_title_font($pdf);
     $pdf->Write(14, 'Transaction ID: ');
     $pdf->set_field_value_font($pdf);
     $pdf->Write(14, $transaction_id);
     $pdf->Ln(7);
     $pdf->set_field_title_font($pdf);
     $pdf->Write(14, 'Order Time: ');
     $pdf->set_field_value_font($pdf);
     $pdf->Write(14, $transaction_details['order_time']);
     $pdf->Ln(7);
     $pdf->set_field_title_font($pdf);
     $pdf->Write(14, 'Payment Method: ');
     $pdf->set_field_value_font($pdf);
     $pdf->Write(14, 'Credit Card');
     $pdf->Ln(16);
     $pdf->SetFont('Arial', 'B', 18);
     $pdf->Write(6, 'Purchase Details');
     $pdf->Ln(4);
     //set table header and body fonts
     $thfont = array('family' => 'Arial', 'style' => 'B', 'size' => 11);
     $tbfont = array('family' => 'Arial', 'style' => '', 'size' => 11);
     $pdf->Ln(4);
     $twidth = array(150, 50);
     //column widths
     $theader = array('Item', 'Amount');
     //column titles
     $tdata = array(array('RiskMP Membership @ 1 ' . $profile_details['billingperiod'], '$' . $profile_details['amount']), array('Tax', '$' . $profile_details['taxamt']), array('Grand Total', '$' . number_format(floatval($profile_details['amount']) + floatval($profile_details['taxamt']), 2, '.', '')));
     $pdf->create_table($theader, $tdata, $twidth, 'L', 'L', $thfont, $tbfont);
     //add table to pdf document
     $pdf->set_field_title_font($pdf);
     $pdf->Write(14, 'Subscription Start Date: ');
     $pdf->set_field_value_font($pdf);
     $pdf->Write(14, $subscription_details['date_of_redemption']);
     $pdf->Ln(7);
     $pdf->set_field_title_font($pdf);
     $pdf->Write(14, 'Subscription Expiry Date: ');
     $pdf->set_field_value_font($pdf);
     $pdf->Write(14, $subscription_details['expiry_date']);
     return $pdf;
 }
开发者ID:esctt,项目名称:riskmp_v1,代码行数:88,代码来源:billing_model.php

示例12: array

 $resp = array();
 $resp['imgSize'] = sizeof($data->{'urls'});
 $startTime = microtime(true);
 $img = array();
 foreach ($data->{'urls'} as $pic_url) {
     $img[] = DownImage(urldecode($pic_url), iconv('utf-8', 'gbk', $data->{'title'}));
     @fwrite($logfile, floor(100 * sizeof($img) / sizeof($data->{'urls'}) * 0.95) . "|" . Date("Y-m-d h:i:sa") . "\n");
     /*log-文件下载进度1-95*/
     @fflush($logfile);
     //break;//单页测试
 }
 /*生成PDF*/
 $imgType = array('1' => 'GIF', '2' => 'JPG', '3' => 'PNG');
 require 'fpdf.php';
 $pdf = new FPDF();
 $pdf->SetTitle($rawdata->{'title'}, true);
 for ($i = 0; $i < sizeof($img); $i++) {
     list($width, $height, $type, $attr) = getimagesize($img[$i]);
     $pdf->AddPage($width > $height ? 'L' : 'P', [$width, $height]);
     $pdf->Image($img[$i], 0, 0, $width, $height, $imgType[$type]);
     @fwrite($logfile, floor(100 * ($i + 1) / sizeof($img) * 0.03) + 95 . "|" . Date("Y-m-d h:i:sa") . "\n");
     /*log-文件合并95-98*/
     @fflush($logfile);
 }
 //unlink(($data->{'title'}).'.pdf');
 $pdf->Output(iconv('utf-8', 'gbk', $data->{'title'}) . '.pdf', 'F');
 $resp['file'] = $data->{'title'} . '.pdf';
 //Todo:删掉目录和目录下文件
 for ($i = 0; $i < sizeof($img); $i++) {
     @unlink($img[$i]);
     @fwrite($logfile, floor(100 * ($i + 1) / sizeof($img) * 0.02) + 98 . "|" . Date("Y-m-d h:i:sa") . "\n");
开发者ID:rhlin,项目名称:jnulib-auto-save-book,代码行数:31,代码来源:auto-save-book-v5.php

示例13: FPDF

<?php

session_start();
include '../librerias/fpdf/fpdf.php';
include '../../resources/orcl_conex.php';
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);
开发者ID:vanckruz,项目名称:draftReports,代码行数:31,代码来源:comprobante_recepcion_queja.php

示例14: die

}
if ($_SESSION['status'] == "admin") {
    $query = "SELECT * FROM `abiturients` WHERE `ab_id` = '" . $id . "'";
    $sql = mysql_query($query) or die(mysql_error());
    if (mysql_num_rows($sql) == 1) {
        $row = mysql_fetch_assoc($sql);
    }
}
$query = "SELECT * FROM `users` WHERE `executive` = '+' LIMIT 1";
$sql = mysql_query($query) or die(mysql_error());
$row1 = mysql_fetch_assoc($sql);
$executive = $row1["user_surname"] . " " . substr($row1["user_name"], 0, 1) . ". " . substr($row1["user_patronymic"], 0, 1) . ".";
$pdf = new FPDF();
//set document properties
$pdf->SetAuthor('Alexandr Slovinskiy');
$pdf->SetTitle('Exam Card');
//set font for the entire document
$pdf->AddFont('Times', '', 'times.php');
$pdf->SetFont('Times', '');
$pdf->SetTextColor(0, 0, 0);
//set up a page
$pdf->AddPage('P');
$pdf->SetDisplayMode(real, 'default');
//display the title with a border around it
//Set x and y position for the main text, reduce font size and write content
$pdf->Image('img/form_1_04_1.jpg', 5, 5, 205);
if ($row['study_type'] == "Денна") {
    $pdf->Line(58, 53.5, 65, 53.5);
}
if ($row['study_type'] == "Заочна") {
    $pdf->Line(67, 53.5, 76, 53.5);
开发者ID:AlexSlovinskiy,项目名称:magistr.zu.edu.ua,代码行数:31,代码来源:PatternExamsCard.php

示例15: FPDF

 $titlefs = 18;
 /** settings for the assignment rows **/
 $datew = $catw = $scorew = $weightw = $avgw = 1.0;
 $assignw = 2.5;
 /** settings for the heading **/
 $headingh = ($numCats + 1) * $sh + $colheadingh;
 $headingw = 5.0;
 $summarycatw = 1.5;
 /** width of the categories in heading **/
 $summaryavgw = 1.0;
 /** width of the averages in heading **/
 /** @ 72dpi, 11 X 8.5 is (792 X 612) **/
 /** with a margin of 36 pts or 1/2 inch **/
 $pdf = new FPDF('P', 'in', 'Letter');
 $pdf->open();
 $pdf->SetTitle($pageTitle);
 /** 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;
开发者ID:knichel,项目名称:AIT,代码行数:31,代码来源:printview_progressreport.php


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