function Cetak()
{
    // *** Init PDF
    $pdf = new PDF();
    $pdf->SetTitle("Rekap Pembayaran Mahasiswa Per Bulan");
    $pdf->AddPage('L', 'Legal');
    $lbr = 190;
    BuatIsinya($_SESSION['TahunID'], $_SESSION['ProdiID'], $pdf);
    $pdf->Output();
}
Esempio n. 2
0
function Cetak()
{
    // *** Init PDF
    $pdf = new PDF();
    $pdf->SetTitle("Pembayaran Mahasiswa Per Periode");
    $pdf->AddPage();
    $lbr = 190;
    BuatIsinya($_SESSION['TahunID'], $_SESSION['ProdiID'], $pdf);
    $pdf->Output();
}
function Cetak()
{
    // *** Init PDF
    $pdf = new PDF();
    $pdf->SetTitle("Penjualan Formulir");
    $pdf->AddPage();
    $lbr = 190;
    BuatJudulLaporan($_SESSION['_PMBPeriodID'], $pdf);
    BuatIsinya($_SESSION['_PMBPeriodID'], $pdf);
    $pdf->Output();
}
Esempio n. 4
0
function Cetak()
{
    $TahunID = sqling($_REQUEST['TahunID']);
    $ProdiID = sqling($_REQUEST['ProdiID']);
    $BIPOTNamaID = $_REQUEST['BIPOTNamaID'];
    // *** Init PDF
    $pdf = new PDF();
    $pdf->SetTitle("Laporan Pembayaran Per Akun");
    BuatIsinya($TahunID, $ProdiID, $BIPOTNamaID, $pdf);
    $pdf->Output();
}
Esempio n. 5
0
 /**
  * PDF Setup - WT_Report_PDF
  */
 function setup()
 {
     parent::setup();
     // Setup the PDF class with custom size pages because WT supports more page sizes. If WT sends an unknown size name then the default would be A4
     $this->pdf = new PDF($this->orientation, parent::unit, array($this->pagew, $this->pageh), self::unicode, "UTF-8", self::diskcache);
     // Setup the PDF margins
     $this->pdf->setMargins($this->leftmargin, $this->topmargin, $this->rightmargin);
     $this->pdf->SetHeaderMargin($this->headermargin);
     $this->pdf->SetFooterMargin($this->footermargin);
     //Set auto page breaks
     $this->pdf->SetAutoPageBreak(true, $this->bottommargin);
     // Set font subsetting
     $this->pdf->setFontSubsetting(self::subsetting);
     // Setup PDF compression
     $this->pdf->SetCompression(self::compression);
     // Setup RTL support
     $this->pdf->setRTL($this->rtl);
     // Set the document information
     // Only admin should see the version number
     $appversion = WT_WEBTREES;
     if (Auth::isAdmin()) {
         $appversion .= " " . WT_VERSION;
     }
     $this->pdf->SetCreator($appversion . " (" . parent::wt_url . ")");
     // Not implemented yet - WT_Report_Base::setup()
     $this->pdf->SetAuthor($this->rauthor);
     $this->pdf->SetTitle($this->title);
     $this->pdf->SetSubject($this->rsubject);
     $this->pdf->SetKeywords($this->rkeywords);
     $this->pdf->setReport($this);
     if ($this->showGenText) {
         // The default style name for Generated by.... is 'genby'
         $element = new CellPDF(0, 10, 0, "C", "", "genby", 1, ".", ".", 0, 0, "", "", true);
         $element->addText($this->generatedby);
         $element->setUrl(parent::wt_url);
         $this->pdf->addFooter($element);
     }
 }
// Email  : setio.dewo@gmail.com
// Start  : 13 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 "../header_pdf.php";
// *** Parameters ***
$gel = $_REQUEST['gel'];
$gels = GetFields('pmbperiod', "KodeID='" . KodeID . "' and PMBPeriodID", $gel, "*");
$lbr = 190;
// *** Cetak ***
$pdf = new PDF('P', 'mm', 'A4');
$pdf->SetTitle("Rekapitulasi Jumlah Pendaftar Per Periode");
$pdf->AddPage('P');
BuatHeaderLap($gel, $gels, $pdf);
TampilkanIsinya($gel, $gels, $pdf);
$pdf->Output();
// *** Functions ***
function BuatHeaderLap($gel, $gels, $p)
{
    global $lbr;
    $t = 6;
    $p->SetFont('Helvetica', 'B', 14);
    $p->Cell($lbr, $t, "Rekapitulasi Jumlah Pendaftar Per Periode", 0, 1, 'C');
    $p->SetFont('Helvetica', 'B', 12);
    $p->Cell($lbr, $t, "Sampai Dengan Periode {$gel}", 0, 1, 'C');
    $p->Ln(4);
}
    {
        $usuarioNome = $_GET["UsuarioNome"];
        //Posiciona a 1.5 cm do final
        $this->SetY(-15);
        //Arial italico 8
        $this->SetFont('Arial', 'I', 7);
        $this->Line(10, 281, 200, 281);
        $this->Cell(0, 3, 'Emitido por: ' . $usuarioNome);
    }
}
//Instancia a classe gerador de pdf
$pdf = new PDF();
//Define os atributos de propriedade do arquivo PDF
$pdf->SetCreator('*****@*****.**');
$pdf->SetAuthor($usuarioNome . " - " . $empresaNome);
$pdf->SetTitle('Detalhamento do cliente');
$pdf->SetSubject('Relatório gerado automaticamente pelo sistema');
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->SetY(25);
$pdf->SetFont('Arial', 'B', 10);
$pdf->SetFillColor(178, 178, 178);
$pdf->Cell(0, 6, 'Detalhamento do Cliente', 1, 0, 'C', 1);
//Nova Linha
$pdf->ln();
$pdf->SetFont('Arial', 'B', 9);
$pdf->Cell(0, 6, 'Tipo Cliente:', 1, 0, 'L');
$pdf->SetFont('Arial', 'I', 9);
$pdf->SetX(39);
$pdf->Cell(0, 6, $conta_descricao, 0, 0, 'L');
$pdf->SetX(57);
global $Tipo;
$pdf = new PDF();
$pdf->AliasNbPages();
$pdf->SetMargins(4, 4, 4);
//~ ri esegue la stessa query della ricerca
$campi = $_SESSION['qpdf']['campi'];
$ord = $_SESSION['qpdf']['ord'];
$Risultati = GetRows("view_piano_conti", $campi, $ord, $db);
if (isset($_GET['tipo']) && $_GET['tipo'] != "") {
    $Tipo = $_GET['tipo'];
    switch ($_GET['tipo']) {
        case "movimenti":
            $Titolo = "Stampa Movimenti";
            $pdf->AddPage('L');
            // L = landscape
            $pdf->SetTitle($Titolo);
            $pdf->SetSubject($Titolo);
            break;
        case "mastrini":
            $Titolo = "Stampa Mastrini";
            $pdf->AddPage();
            $pdf->SetTitle($Titolo);
            $pdf->SetSubject($Titolo);
            break;
    }
}
/*
 * 22/08/2009 01:04:49 CEST Claudio Giordano
 *
 * AddPage([string orientation ,[ mixed format]])
 * Cell(float w [, float h [, string txt [, mixed border [, int ln [, string align [
include '../include/ManipulaDatas.php';
//Recupera os valores para filtragem
$edtPedidoId = $_GET["PedidoId"];
//Busca os dados do pedido
$sql_pedido = mysql_query("SELECT \n                          ped.id, \n                          ped.data, \n                          ped.hora, \n                          ped.data_venda,\n                          ped.formando_id, \n                          ped.usuario_cadastro_id, \n                          ped.observacoes,\n                          eve.id AS evento_id, \n                          eve.nome AS evento_nome, \n                          formando.nome AS formando_nome, \n                          CONCAT(usu.nome, ' ', usu.sobrenome) AS usuario_nome \n                          FROM fotovideo_pedido ped \n                          LEFT OUTER JOIN eventos_formando formando ON formando.id = ped.formando_id \n                          LEFT OUTER JOIN eventos eve ON eve.id = formando.evento_id \n                          LEFT OUTER JOIN usuarios usu ON usu.usuario_id = ped.usuario_cadastro_id\n                          WHERE ped.id = {$edtPedidoId}");
//Monta o array com os dados
$dados_pedido = mysql_fetch_array($sql_pedido);
class PDF extends FPDF
{
}
//Instancia a classe gerador de pdf
$pdf = new PDF();
//Define os atributos de propriedade do arquivo PDF
$pdf->SetCreator('work | eventos');
$pdf->SetAuthor($usuarioNome . " - " . $empresaNome);
$pdf->SetTitle('Emissão do Pedido');
$pdf->SetSubject('Relatório gerado automaticamente pelo sistema');
$pdf->AliasNbPages();
$pdf->AddPage();
//Recupera o nome da empresa
$empresaNome = 'Consoli Eventos Ltda';
$edtPedidoId = $_GET["PedidoId"];
//Imprime o logotipo da empresa
$pdf->Image('../image/logo_consoli2.jpg', 10, 10, 34);
//Ajusta a fonte
$pdf->SetFont('Arial', 'B', 15);
$pdf->Cell(0, 6, $empresaNome, 0, 0, 'R');
$pdf->SetFont('Arial', '', 9);
$pdf->Ln();
$pdf->Cell(0, 4, 'Rua São Bento, 289 - Bairro Progresso - Rio do Sul - SC - CEP: 89160-000', 0, 0, 'R');
$pdf->Ln();
Esempio n. 10
0
    }
    function ChapterBody($file)
    {
        //Read text file
        $f = fopen($file, 'r');
        $txt = fread($f, filesize($file));
        fclose($f);
        //Times 12
        $this->SetFont('Times', '', 12);
        //Output justified text
        $this->MultiCell(0, 5, $txt);
        //Line break
        $this->Ln();
        //Mention in italics
        $this->SetFont('', 'I');
        $this->Cell(0, 5, '(end of excerpt)');
    }
    function PrintChapter($num, $title, $file)
    {
        $this->AddPage();
        $this->ChapterTitle($num, $title);
        $this->ChapterBody($file);
    }
}
$pdf = new PDF();
$title = '20000 Leagues Under the Seas';
$pdf->SetTitle($title);
$pdf->SetAuthor('Jules Verne');
$pdf->PrintChapter(1, 'A RUNAWAY REEF', '20k_c1.txt');
$pdf->PrintChapter(2, 'THE PROS AND CONS', '20k_c2.txt');
$pdf->Output();
Esempio n. 11
0
        $this->Ln(10);
    }
}
include '../db/conn.inc.php';
$dbh = new PDO($conn, $user, $pass, array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8"));
$stmtMeucci = $dbh->prepare("SELECT * FROM datimeucci");
$stmtMeucci->execute();
$rsmeucci = $stmtMeucci->fetch(PDO::FETCH_ASSOC);
$sql = "SELECT azienda.*,stage.*,tirocinante.*,persTutor.PAZ_Titolo AS ta_Titolo,persTutor.PAZ_Nome AS ta_Nome,persTutor.PAZ_Telefono AS ta_Telefono, persTutor.PAZ_Cellulare AS ta_Cellulare, persTutor.PAZ_Email AS ta_Email, persLegal.*,tutor.* FROM stage INNER JOIN azienda ON ( azienda.AZ_ID = stage.AZ_ID_Azienda ) INNER JOIN tirocinante ON ( stage.TIR_ID_Tirocinante = tirocinante.TIR_ID ) INNER JOIN tutor ON ( tutor.TUT_ID = stage.TUT_ID_Tutor ) LEFT JOIN personale AS persTutor ON ( persTutor.PAZ_ID = stage.PAZ_ID_Tutor ) LEFT JOIN personale AS persLegal ON ( azienda.AZ_ID = persLegal.AZ_ID_Azienda AND persLegal.PAZ_RapprLegale =1 ) WHERE STA_ID=:id";
$stmt = $dbh->prepare($sql);
$stmt->bindValue(':id', $_GET['id']);
$stmt->execute();
if ($stmt->rowCount() > 0) {
    $row = $stmt->fetch(PDO::FETCH_ASSOC);
    $pdf = new PDF();
    $pdf->SetTitle("Progetto formativo e di orientamento");
    $pdf->AddFont('abac', '', 'abac.php');
    $pdf->AddFont('abalc', '', 'ABALC.php');
    $pdf->SetFillColor(255, 230, 255);
    $pdf->AliasNbPages();
    $pdf->AddPage();
    $pdf->SetLeftMargin(18);
    $pdf->SetRightMargin(18);
    $pdf->SetFont('abac', '', 14);
    $pdf->Cell(0, 10, 'PROGETTO FORMATIVO e di ORIENTAMENTO', 0, 0, 'C');
    $pdf->Ln(10);
    $pdf->SetFont('abalc', '', 11);
    $pdf->Cell(40, 6, 'Tirocinante ', 1, 0, 'R', 1);
    $pdf->Cell(135, 6, ' ' . utf8_decode($row['TIR_Nome']) . ' ' . utf8_decode($row['TIR_Cognome']) . ' - C.F.: ' . utf8_decode($row['TIR_CodiceFiscale']), 1, 1);
    $pdf->Cell(40, 6, 'Luogo e data di nascita ', 1, 0, 'R', 1);
    $pdf->Cell(135, 6, ' ' . utf8_decode($row['TIR_NatoA']) . ' (' . $row['TIR_NatoProv'] . ') il ' . strftime('%d/%m/%Y', strtotime($row['TIR_DataNascita'])), 1, 1);
Esempio n. 12
0
     $data[$key][] = $sessions[$key][7];
     $data[$key][] = str_replace(".", ",", $_GET['kwh'] / 100);
     $data[$key][] = str_replace(".", ",", $_GET['kwh'] / 100 * $sessions[$key][7]);
     $total = $total + $_GET['kwh'] / 100 * $sessions[$key][7];
     $key_next = $key;
 }
 for ($i = 0; $i < 8; $i++) {
     $data[$key_next + 1][$i] = "";
 }
 $data[$key_next + 2][0] = "Total :";
 for ($i = 1; $i < 7; $i++) {
     $data[$key_next + 2][$i] = "";
 }
 $data[$key_next + 2][7] = str_replace(".", ",", $total);
 //Page d'en-tête
 $pdf->SetTitle('CSSH - Facturation');
 $pdf->SetFont('Arial', '', 14);
 $pdf->AddPage();
 //Hypothèses de travail
 $pdf->SetFillColor(224, 235, 255);
 $pdf->SetFont('', 'BU', 16);
 $pdf->Cell(70);
 $pdf->Cell(50, 11, 'Période : du ' . $_GET['from'] . ' au ' . $_GET['to'], 0, 0, 'C');
 $pdf->Ln(14);
 $pdf->Cell(90);
 $pdf->SetFont('', 'B', 14);
 $pdf->Cell(5, 10, 'Coordonnées du club :', 0, 0, 'C');
 $pdf->Ln(10);
 $pdf->SetFont('Arial', '', 10);
 $pdf->Cell(60);
 $pdf->Cell(30, 5, 'Responsable : ', 0, 0, 'L', true);
Esempio n. 13
0
<?php

$name = $_POST['name'];
$characteristics = $_POST['characteristics'];
$image = $_POST['image'];
$clues = explode(',', $_POST['clues']);
require 'MultiCellBlt2.php';
//Create pdf
$pdf = new PDF();
$pdf->AddPage();
//set document properties
$pdf->SetAuthor('Anon');
$pdf->SetTitle($name);
// Set the page break to 'true' and the bottom margin height
$pdf->SetAutoPageBreak(1, 10);
//set font for the entire document
$pdf->SetFont('Helvetica', 'B', 20);
$pdf->SetTextColor(50, 60, 100);
//insert Collage logo
$pdf->Image('logo.png', 10, 10, 33, 0);
//display the title without a border around it
$pdf->SetXY(50, 15);
$pdf->SetDrawColor(50, 60, 100);
$pdf->Cell(100, 10, $name, 0, 0, 'C', 0);
// Insert a dynamic image from a URL
$pdf->Image($image, 11, 30, 0, 50);
//Set x and y position for the main text, reduce font size and write content
$pdf->SetXY(65, 30);
$pdf->SetLeftMargin(65);
$pdf->SetFontSize(10);
$pdf->Write(5, $characteristics);
Esempio n. 14
0
            $this->Cell(30, 6, "Party Address", 0, 0, 'L');
            $this->Cell(63, 6, $ret['party_address'], 'B', 1, 'L');
        }
        $this->Ln(5);
        //Ensure table header is output
        parent::Header();
    }
    function Footer()
    {
    }
}
$pdf = new PDF('P', 'mm', 'MA5');
$pdf->AliasNbPages();
$pdf->SetAuthor("*****@*****.**");
$pdf->SetSubject("Account Ledger");
$pdf->SetTitle("Account Ledger");
$pdf->SetCreator("Imran Zahid");
$prop = array('HeaderColor' => array(255, 255, 255), 'HeaderTextColor' => array(0, 0, 0), 'color1' => array(255, 255, 255), 'color2' => array(255, 255, 255), 'textcolor1' => array(0, 0, 0), 'textcolor2' => array(0, 0, 0), 'padding' => 2, 'font' => array('Arial', '', 8), 'thfont' => array('Arial', 'B', 10));
foreach ($ledger as $ret) {
    if ($ret == NULL) {
        continue;
    }
    $pdf->AddPage();
    $pdf->AddCol('invseq', '9%', 'Invoice #', 'L');
    $pdf->AddCol('voucher_date', '10%', 'Date', 'L');
    $pdf->AddCol('voucher_cheque', '9%', 'Cheque', 'L');
    //if ($ret['account_cate'] != '276') {
    $pdf->AddCol('voucher_remarks', '42%', 'Description', 'L');
    /*} else {
    		$pdf->AddCol('voucher_remarks', '43%', 'Description', 'L');
    		$pdf->AddCol('days',            '5%',  'Days',        'R');
Esempio n. 15
0
 function format($text)
 {
     include_once 'lib/Template.php';
     global $request;
     $tokens['page'] = $this->_page;
     $tokens['CONTENT'] = $this->_transform($text);
     $pagename = $this->_page->getName();
     // This is a XmlElement tree, which must be converted to PDF
     // We can make use of several pdf extensions. This one - fpdf
     // - is pure php and very easy, but looks quite ugly and has a
     // terrible interface, as terrible as most of the othes.
     // The closest to HTML is htmldoc which needs an external cgi
     // binary.
     // We use a custom HTML->PDF class converter from PHPWebthings
     // to be able to use templates for PDF.
     require_once 'lib/fpdf.php';
     require_once 'lib/pdf.php';
     $pdf = new PDF();
     $pdf->SetTitle($pagename);
     $pdf->SetAuthor($this->_page->get('author'));
     $pdf->SetCreator(WikiURL($pagename, false, 1));
     $pdf->AliasNbPages();
     $pdf->AddPage();
     //TODO: define fonts
     $pdf->SetFont('Times', '', 12);
     //$pdf->SetFont('Arial','B',16);
     // PDF pagelayout from a special template
     $template = new Template('pdf', $request, $tokens);
     $pdf->ConvertFromHTML($template);
     // specify filename, destination
     $pdf->Output($pagename . ".pdf", 'I');
     // I for stdin or D for download
     // Output([string name [, string dest]])
     return $pdf;
 }
Esempio n. 16
0
// Author : Emanuel Setio Dewo
// Email  : setio.dewo@gmail.com
// Start  : 13 November 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 ***
$ProdiID = GetSetVar('ProdiID');
// *** Main ***
$pdf = new PDF();
$pdf->SetTitle("Rekap Penasehat Akademik");
$pdf->AddPage();
Headernya($ProdiID, $pdf);
RekapPA($ProdiID, $pdf);
$pdf->Output();
// *** Functions ***
function Headernya($ProdiID, $p)
{
    $NamaProdi = GetaField('prodi', "ProdiID = '{$ProdiID}' and KodeID", KodeID, "Nama");
    $lbr = 180;
    $t = 6;
    $p->SetFont('Helvetica', 'B', 14);
    $p->Cell($lbr, $t, "Rekap Dosen Penasehat Akademik", 0, 1, 'C');
    $p->SetFont('Helvetica', 'B', 12);
    $p->Cell($lbr, $t, "Program Studi: {$NamaProdi}", 0, 1, 'C');
    $p->Ln(2);
Esempio n. 17
0
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');
$ProdiID = GetSetVar('ProdiID');
$ProgramID = GetSetVar('ProgramID');
$HariID = GetSetVar('HariID');
$JadwalID = $_REQUEST['JadwalID'] + 0;
$lbr = 190;
// Init
$pdf = new PDF('P', 'mm', 'A4');
$pdf->SetTitle("Laporan Kehadiran Kuliah Mhsw - {$TahunID}");
$pdf->SetAutoPageBreak(true, 5);
// *** Main ***
if ($JadwalID == 0) {
    $whr_prodi = empty($ProdiID) ? "" : "and ProdiID = '{$ProdiID}'";
    $whr_tahun = empty($TahunID) ? "" : "and TahunID = '{$TahunID}'";
    $s = "select JadwalID\r\n    from jadwal\r\n    where KodeID = '" . KodeID . "'\r\n      {$whr_prodi}\r\n\t  {$whr_tahun}\r\n    order by HariID, JamMulai, JamSelesai";
    $r = _query($s);
    while ($w = _fetch_array($r)) {
        CetakPresensiMhsw($w['JadwalID'], $pdf);
    }
} else {
    CetakPresensiMhsw($JadwalID, $pdf);
}
$pdf->Output();
// *** Functions ***
Esempio n. 18
0
        $usuarioNome = $_GET['UsuarioNome'];
        //Position at 1.5 cm from bottom
        $this->SetY(-15);
        //Arial italic 8
        $this->SetFont('Arial', 'I', 7);
        //Page number
        $this->Line(10, 281, 200, 281);
        $this->Cell(0, 3, 'Emitido por: ' . $usuarioNome);
    }
}
//Instancia a classe gerador de pdf
$pdf = new PDF();
//Define os atributos de propriedade do arquivo PDF
$pdf->SetCreator('work | eventos');
$pdf->SetAuthor($usuarioNome . ' - ' . $empresaNome);
$pdf->SetTitle('Relação de Retornos por Data');
$pdf->SetSubject('Relatório gerado automaticamente pelo sistema');
$pdf->AliasNbPages();
$pdf->AddPage('L');
//Verifica se existem registros
if ($registros > 0) {
    //Define o status zero para fazer a quebra
    if ($edtTipoConsulta == "0") {
        $status_atual = 1;
        $pdf->SetFont('Arial', 'B', 14);
        $pdf->Cell(0, 5, "Títulos Processados");
        $pdf->ln();
    } else {
        $status_atual = $edtTipoConsulta;
        switch ($status_atual) {
            case 1:
Esempio n. 19
0
         $this->SetY(-15);
         //Arial italic 8
         $this->SetFont('Arial', 'I', 8);
         //Page number
         //$this->Cell(0, 10, 'Page ' . $this->PageNo() . '/{nb}', 0, 0, 'C');
         $this->SetX($this->lMargin);
         $this->Cell(0, 10, 'Please consider the environment before printing this report', 0, 0, 'L');
         $this->SetX($this->lMargin);
         $this->Cell(0, 10, 'Report generated by nexexcel.com', 0, 0, 'R');
     }
 }
 $pdf = new PDF('P');
 $pdf->AliasNbPages();
 $pdf->SetAuthor("*****@*****.**");
 $pdf->SetSubject("MM Circular");
 $pdf->SetTitle("MM Circular");
 $pdf->SetCreator("Imran Zahid");
 $prop = array('HeaderColor' => array(0, 0, 0), 'HeaderTextColor' => array(255, 255, 255), 'color1' => array(217, 217, 217), 'color2' => array(255, 255, 255), 'textcolor1' => array(0, 0, 0), 'textcolor2' => array(0, 0, 0), 'padding' => 1, 'formatNumber' => TRUE, 'formatNumberDecimal' => 0, 'font' => array('Arial', '', 8), 'thfont' => array('Arial', 'B', 10));
 foreach ($data as $vid => $d) {
     $vehicle = $d['vehicle'];
     $pdf->AddPage();
     $pdf->AddCol('cno', '5%', '', 'L');
     if ($vendor == 'TIK') {
         $pdf->AddCol('description', '25%', '', 'L');
         $pdf->AddCol('fix_rate', '15%', '', 'R');
     } else {
         $pdf->AddCol('description', '40%', '', 'L');
     }
     $pdf->AddCol('model', '15%', '', 'L');
     $pdf->AddCol('oem', '15%', '', 'L');
     $pdf->AddCol('rate', '15%', '', 'R');
         $this->SetY(-15);
         //Arial italic 8
         $this->SetFont('Arial', 'I', 8);
         //Page number
         //$this->Cell(0, 10, 'Page ' . $this->PageNo() . '/{nb}', 0, 0, 'C');
         $this->SetX($this->lMargin);
         $this->Cell(0, 10, 'Please consider the environment before printing this report', 0, 0, 'L');
         $this->SetX($this->lMargin);
         $this->Cell(0, 10, 'Report generated by nexexcel.com', 0, 0, 'R');
     }
 }
 $pdf = new PDF('L');
 $pdf->AliasNbPages();
 $pdf->SetAuthor("*****@*****.**");
 $pdf->SetSubject("Sales Vendor Party");
 $pdf->SetTitle("Sales Vendor Party");
 $pdf->SetCreator("Imran Zahid");
 $prop = array('HeaderColor' => array(0, 0, 0), 'HeaderTextColor' => array(255, 255, 255), 'color1' => array(217, 217, 217), 'color2' => array(255, 255, 255), 'textcolor1' => array(0, 0, 0), 'textcolor2' => array(0, 0, 0), 'padding' => 2, 'formatNumber' => TRUE, 'font' => array('Arial', '', 10), 'thfont' => array('Arial', 'B', 12));
 $pdf->AddPage();
 $pdf->AddCol('seq', '8%', 'Inv No', 'L');
 $pdf->AddCol('cno', '5%', 'C-No', 'L');
 $pdf->AddCol('description', '47%', 'Item Description', 'L');
 $pdf->AddCol('sales_qty', '8%', 'Quantity', 'R');
 $pdf->AddCol('sales_rate', '8%', 'Rate', 'R');
 $pdf->AddCol('circular_rate', '8%', 'Circular', 'R');
 $pdf->AddCol('fix_rate', '8%', 'Fix Rate', 'R');
 $pdf->AddCol('diff', '8%', 'Difference', 'R');
 $pdf->Table($data, $prop);
 $prop['font'] = array('Arial', 'B', 12);
 $data = array($tdata);
 $pdf->AddCol('title', '92%', 'Title', 'C');
Esempio n. 21
0
        $this->SetY(-15);
        //Arial italic 8
        $this->SetFont('Arial', 'I', 7);
        //Page number
        $this->Line(10, 281, 200, 281);
        $this->Cell(0, 3, 'Emitido por: ' . $usuarioNome);
        //Logotipo
        $this->Image('../image/workcrm_powered.jpg', 175, 282, 24);
    }
}
//Instancia a classe gerador de pdf
$pdf = new PDF();
//Define os atributos de propriedade do arquivo PDF
$pdf->SetCreator('work | crm - www.workcrm.com.br');
$pdf->SetAuthor($usuarioNome . " - " . $empresaNome);
$pdf->SetTitle('Relação de Contas');
$pdf->SetSubject('Relatório gerado automaticamente pelo sistema');
$pdf->AliasNbPages();
//Cria a primeira página no modo landscape
$pdf->AddPage(L);
//Verifica se precisa imprimir o cabeçalho da quebra
if ($SemQuebra != 1) {
    //Imprime o cabeçalho da primeira quebra
    $pdf->ln();
    $pdf->SetFont('Arial', 'B', 10);
    $pdf->Cell(0, 5, $Agrupamento_nome . $Nome_quebra);
    $pdf->SetFont('Arial', '', 10);
}
//Salta a primeira linha
$pdf->ln();
//Monta as linhas com os dados da query
// Author : SIAKAD TEAM
// Email  : setio.dewo@gmail.com
// Start  : 17 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 "../header_pdf.php";
// *** Parameters ***
$TahunID = GetSetVar('TahunID');
$ProdiID = GetSetVar('ProdiID');
// *** Init PDF
$pdf = new PDF();
$pdf->SetTitle("Rekap Biaya Mahasiswa");
$lbr = 190;
BuatIsinya($TahunID, $ProdiID, $pdf);
$pdf->Output();
// *** Functions ***
function BuatIsinya($TahunID, $ProdiID, $p)
{
    $whr_prodi = $ProdiID == '' ? '' : "and h.ProdiID = '{$ProdiID}' ";
    $s = "select h.MhswID, m.Nama, h.ProdiID,\r\n      h.Biaya, h.Potongan, h.Tarik, h.Bayar,\r\n      format(h.Biaya, 0) as _Biaya,\r\n      format(h.Potongan, 0) as _Potongan,\r\n      format(h.Tarik, 0) as _Tarik,\r\n      format(h.Bayar, 0) as _Bayar,\r\n      (h.Biaya + h.Tarik - h.Potongan - h.Bayar) as TTL, \r\n      format((h.Biaya + h.Tarik - h.Potongan - h.Bayar), 0) as _TTL\r\n    from khs h\r\n      left outer join mhsw m on m.MhswID = h.MhswID and m.KodeID = '" . KodeID . "'\r\n    where h.TahunID = '{$TahunID}'\r\n      {$whr_prodi}\r\n    order by h.ProdiID, h.MhswID";
    $r = _query($s);
    $n = 0;
    $t = 5;
    $ttl = 0;
    $_prd = ';alskdjfa;lsdhguairgsofjhjg9e8rgjpsofjg';
    while ($w = _fetch_array($r)) {
        if ($_prd != $w['ProdiID']) {
Esempio n. 23
0
         $this->SetY(-15);
         //Arial italic 8
         $this->SetFont('Arial', 'I', 8);
         //Page number
         //$this->Cell(0, 10, 'Page ' . $this->PageNo() . '/{nb}', 0, 0, 'C');
         $this->SetX($this->lMargin);
         $this->Cell(0, 10, 'Please consider the environment before printing this report', 0, 0, 'L');
         $this->SetX($this->lMargin);
         $this->Cell(0, 10, 'Report generated by nexexcel.com', 0, 0, 'R');
     }
 }
 $pdf = new PDF('P', 'mm', 'A5');
 $pdf->AliasNbPages();
 $pdf->SetAuthor("*****@*****.**");
 $pdf->SetSubject("Purchase Return");
 $pdf->SetTitle("Purchase Return");
 $pdf->SetCreator("Imran Zahid");
 $prop = array('HeaderColor' => array(0, 0, 0), 'HeaderTextColor' => array(255, 255, 255), 'color1' => array(217, 217, 217), 'color2' => array(255, 255, 255), 'textcolor1' => array(0, 0, 0), 'textcolor2' => array(0, 0, 0), 'padding' => 2, 'font' => array('Arial', '', 8), 'thfont' => array('Arial', 'B', 8));
 $title = $_title;
 $pdf->AddPage();
 $where = "";
 if (strlen($_GET['invoice']) > 0) {
     $input = $_GET['invoice'];
     $rangeCharacters = "0123456789, -";
     $billnos = array();
     $ret = containsOnly($input, $rangeCharacters);
     if (containsOnly($input, $rangeCharacters)) {
         $ranges = explode(",", $input);
         for ($j = 0; $j < count($ranges); $j++) {
             $range = trim($ranges[$j]);
             if (strlen($range) < 1) {
Esempio n. 24
0
         $this->SetY(-15);
         //Arial italic 8
         $this->SetFont('Arial', 'I', 8);
         //Page number
         $this->Cell(0, 10, 'Page ' . $this->PageNo() . '/{nb}', 0, 0, 'C');
         $this->SetX($this->lMargin);
         $this->Cell(0, 10, 'Please consider the environment before printing this report', 0, 0, 'L');
         $this->SetX($this->lMargin);
         $this->Cell(0, 10, 'Report generated by nexexcel.com', 0, 0, 'R');
     }
 }
 $pdf = new PDF('P');
 $pdf->AliasNbPages();
 $pdf->SetAuthor("*****@*****.**");
 $pdf->SetSubject("Inventory Movement");
 $pdf->SetTitle("Inventory Movement");
 $pdf->SetCreator("Imran Zahid");
 $prop = array('HeaderColor' => array(0, 0, 0), 'HeaderTextColor' => array(255, 255, 255), 'color1' => array(217, 217, 217), 'color2' => array(255, 255, 255), 'textcolor1' => array(0, 0, 0), 'textcolor2' => array(0, 0, 0), 'padding' => 2, 'formatNumber' => TRUE, 'font' => array('Arial', '', 8), 'thfont' => array('Arial', 'B', 10));
 $title = $_title;
 $firstPage = true;
 $grandTotal = (double) 0;
 foreach ($data as $godown_name => $ndata) {
     $opening_balance = $ndata['opening_balance'];
     $rate = $ndata['rate'];
     if ($firstPage === true) {
         $pdf->AddPage();
         $firstPage = false;
     }
     $pdf->printTitle();
     $pdf->AddCol('sno', '5%', 'S#', 'C');
     $pdf->AddCol('event', '15%', 'Event', 'L');
include_once "../header_pdf.php";
include_once "../util.lib.php";
// *** Parameters ***
$TahunID = GetSetVar('TahunID');
$ProdiID = GetSetVar('ProdiID');
if (empty($TahunID)) {
    die(ErrorMsg("Error", "Tentukan tahun akademik-nya dulu.\r\n    <hr size=1 color=silver />\r\n    <input type=button name='Tutup' value='Tutup'\r\n      onClick='window.close()' />"));
}
if (empty($ProdiID)) {
    die(ErrorMsg("Error", "Tentukan Program Studi-nya dulu.\r\n    <hr size=1 color=silver />\r\n    <input type=button name='Tutup' value='Tutup'\r\n      onClick='window.close()' />"));
}
// *** Main
$prds = getaField('prodi', "KodeID = '" . KodeID . "' and ProdiID", $ProdiID, 'Nama');
$thn = NamaTahun($TahunID);
$pdf = new PDF('P', 'mm', 'A4');
$pdf->SetTitle("Jadwal Ujian Sidang Komprehensif Tahun {$thn}");
$pdf->AddPage();
$pdf->SetFont('Helvetica', 'B', 14);
$pdf->Cell($t, 9, "Jadwal Ujian Sidang Komprehensif - {$thn}", 0, 1, 'C');
$pdf->Cell($t, 9, "Program Studi {$prds}", 0, 1, 'C');
Isinya($pdf);
$pdf->Output();
// *** Functions ***
function Isinya($p)
{
    $lbr = 290;
    $t = 5;
    JudulKolomnya($p);
    $p->SetFont('Helvetica', '', 8);
    $s = "select k.*, m.MhswID,left(m.Nama, 28) as Mhsw,m.KelasID\r\n  \t\tfrom kompre k\r\n      left outer join mhsw m on m.MhswID = k.MhswID and m.KodeID = '" . KodeID . "'\r\n\twhere k.KodeID = '" . KodeID . "'\r\n      and k.TahunID = '{$_SESSION['TahunID']}'\r\n\t  and k.Lulus = 'N'\r\n\t  and k.NA = 'N'\r\n    Group by k.MhswID";
    $r = _query($s);
         $this->SetY(-15);
         //Arial italic 8
         $this->SetFont('Arial', 'I', 8);
         //Page number
         //$this->Cell(0, 10, 'Page ' . $this->PageNo() . '/{nb}', 0, 0, 'C');
         $this->SetX($this->lMargin);
         $this->Cell(0, 10, 'Please consider the environment before printing this report', 0, 0, 'L');
         $this->SetX($this->lMargin);
         $this->Cell(0, 10, 'Report generated by nexexcel.com', 0, 0, 'R');
     }
 }
 $pdf = new PDF('L');
 $pdf->AliasNbPages();
 $pdf->SetAuthor("*****@*****.**");
 $pdf->SetSubject("Sales Comparision");
 $pdf->SetTitle("Sales Comparision");
 $pdf->SetCreator("Imran Zahid");
 foreach ($regionals as $city => $regional) {
     $prop = array('HeaderColor' => array(0, 0, 0), 'HeaderTextColor' => array(255, 255, 255), 'color1' => array(217, 217, 217), 'color2' => array(255, 255, 255), 'textcolor1' => array(0, 0, 0), 'textcolor2' => array(0, 0, 0), 'padding' => 1, 'formatNumber' => TRUE, 'font' => array('Arial', '', 8), 'thfont' => array('Arial', 'B', 10));
     $ndata = $regional['data'];
     $totals = $regional['totals'];
     $pdf->AddPage();
     $pdf->AddCol('vendor', '16%', 'Vendor', 'L');
     foreach ($months as $month) {
         $pdf->AddCol($month, '7%', $month, 'R');
     }
     $pdf->Table($ndata, $prop);
     $prop['font'] = array('Arial', 'B', 10);
     $ndata = array();
     $ndata[] = $totals;
     $pdf->AddCol('vendor', '16%', 'Vendor', 'L');
Esempio n. 27
0
     }
     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 PDF('L', $unit = 'mm', $format = 'A4');
 $pdf->AliasNbPages();
 $pdf->SetAuthor("*****@*****.**");
 $pdf->SetSubject("Daily Sales");
 $pdf->SetTitle("Daily Sales");
 $pdf->SetCreator("Imran Zahid");
 $prop = array('color1' => array(255, 255, 255), 'color2' => array(255, 255, 255), 'color3' => array(128, 128, 128), 'padding' => 2, 'font' => array('Arial', '', 10), 'thfont' => array('Arial', 'B', 10));
 $pdf->AddPage();
 $pdf->AddCol('party_name', "20%", 'Party', 'L');
 $pdf->AddCol('vendor', "20%", 'Vendor', 'L');
 $pdf->AddCol('cat_name', "20%", 'Category', 'L');
 $pdf->AddCol('description', "20%", 'Item', 'L');
 $pdf->AddCol("cs", "10%", 'CS', 'R');
 $pdf->AddCol("pc", "10%", 'PC', 'R');
 $pdf->Table($data, $prop);
 $_cMargin = $pdf->cMargin;
 $pdf->cMargin = $prop['padding'];
 $pdf->SetFont('Arial', 'B', 10);
 $pdf->Cell(221.59806666667, 6, "Total", 1, 0, 'C');
 $pdf->Cell(27.69975833333, 6, $totals['cs'], 1, 0, 'R');
<?php

require_once 'declaracao_matricula.inc.php';
require_once '../../../lib/fpdf16/fpdf.php';
class PDF extends FPDF
{
}
$pdf = new PDF();
$pdf->AddPage();
$pdf->SetMargins(20, 20, 20);
$pdf->SetTitle('Declaração de matrícula');
$pdf->SetFont('Times', 'B', 14);
//$pdf->Write(5,'DECLARAÇÃO');
$pdf->Ln(70);
$pdf->Cell(0, 5, 'DECLARAÇÃO', 0, 1, 'C', 0, 0, 0);
$pdf->Ln(15);
$pdf->SetFont('Times', '', 13);
$pdf->MultiCell(0, 5, $corpo, 0, 'J');
$pdf->Ln(10);
$pdf->Cell(0, 5, $data_declaracao, 0, 1, 'J', 0, 0, 0);
$pdf->Ln(15);
$pdf->Cell(44);
$pdf->Cell(70, 5, $carimbo_nome, 0, 1, 'C', 0, 0, 0);
$pdf->SetFont('Times', '', 10);
$pdf->Cell(44);
$pdf->MultiCell(70, 5, $carimbo_dados, 0, 'C');
//$pdf->SetFont('Times','',12);
$pdf->Ln(15);
$pdf->SetFont('Times', '', 9);
$pdf->MultiCell(0, 5, $decretos, 0, 'J');
$pdf->Ln(2);
        $usuarioNome = $_GET["UsuarioNome"];
        //Position at 1.5 cm from bottom
        $this->SetY(-15);
        //Arial italic 8
        $this->SetFont('Arial', 'I', 7);
        //Page number
        $this->Line(10, 281, 200, 281);
        $this->Cell(0, 3, 'Emitido por: ' . $usuarioNome);
    }
}
//Instancia a classe gerador de pdf
$pdf = new PDF();
//Define os atributos de propriedade do arquivo PDF
$pdf->SetCreator('work | eventos');
$pdf->SetAuthor($usuarioNome . " - " . $empresaNome);
$pdf->SetTitle('Relação de Momentos de Repertório');
$pdf->SetSubject('Relatório gerado automaticamente pelo sistema');
$pdf->AliasNbPages();
$pdf->AddPage();
//Títulos das colunas
$pdf->SetFont('Arial', 'B', 10);
//Define a cor RGB do fundo da celula
$pdf->SetFillColor(178, 178, 178);
//Faz a célula ser preenchida. Isso é feito setando 1 após a expressao de alinhamento
$pdf->Cell(0, 6, 'Descrição do Momento de Repertório', 1, 0, 'L', 1);
$pdf->SetX(170);
$pdf->Cell(0, 6, 'Ativo');
//Monta as linhas com os dados da query
$pdf->SetFont('Arial', '', 10);
while ($dados = mysql_fetch_array($sql)) {
    switch ($dados[ativo]) {
// 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 "../header_pdf.php";
// *** Parameters ***
$TahunID = GetSetVar('TahunID');
$DosenID = GetSetVar('DosenID');
$dsn = GetFields('dosen', "Login='******' and KodeID", KodeID, "*");
// *** Main ***
$pdf = new PDF();
$pdf->SetTitle("Jadwal Dosen");
$pdf->AddPage();
// Buat header dulu
BuatHeader($TahunID, $dsn, $pdf);
// Tampilkan datanya
AmbilJadwal($TahunID, $dsn, $pdf);
$pdf->Output();
// *** Functions ***
function BuatHeader($TahunID, $dsn, $p)
{
    $lbr = 190;
    $t = 5;
    $p->SetFont('Helvetica', 'B', 14);
    $p->Cell($lbr, $t, "Jadwal Mengajar - {$TahunID}", 0, 1, 'C');
    $p->Cell($lbr, $t, "Dosen: {$dsn['Nama']}, {$dsn['Gelar']}", 0, 1, 'C');
    $p->Ln(2);