Ejemplo n.º 1
0
        } else {
            if ($res[0]['skor'] <= 129 && $res[0]['skor'] >= 115) {
                $tingkat = 'Tinggi dalam kategori normal';
            } else {
                if ($res[0]['skor'] <= 139 && $res[0]['skor'] >= 130) {
                    $tingkat = 'Superior';
                } else {
                    $tingkat = 'Jenius';
                }
            }
        }
    }
}
if ($res[0]['id'] != $user) {
    echo '<script>document.location="index.php"</script>';
}
$pdf = new FPDF('L', 'cm', 'A4');
$pdf->Open();
$pdf->addPage();
$pdf->setAutoPageBreak(false);
$pdf->setFont('Times', '', 17);
$pdf->Image('sertifikatku.jpg', 0, 0, 29.7, 21);
$pdf->Text(20.5, 5.84, '' . $kategori . '');
$pdf->setFont('Times', 'B', 20);
$pdf->text(14.2, 12, '' . $res[0]['skor'] . '', 'C');
$pdf->Cell(0, 25.5, '' . $tingkat . '', 0, 0, 'C', 0, 0);
$pdf->setFont('Times', 'B', 36);
$pdf->Cell(-28, 15.4, '' . $nama . '', 0, 0, 'C', 0, 0);
$pdf->setFont('Times', 'B', 14);
$pdf->text(7.58, 2.818, '' . $tgl . '/' . $nomor . '', 'C');
$pdf->output();
$mora_multa = "";
$outros_acrecimos = "";
$valor_cobrado = "";
$sacado1 = $z01_nome;
$sacado2 = $z01_ender;
$sacado3 = $z01_munic;
$matri = array("1" => "janeiro", "2" => "Fevereiro", "3" => "Março", "4" => "Abril", "5" => "Maio", "6" => "Junho", "7" => "Julho", "8" => "Agosto", "9" => "Setembro", "10" => "Outubro", "11" => "Novembro", "12" => "Dezembro");
$mesx = $matri[$q20_mes];
$pdf = new FPDF();
$pdf->Open();
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->image('imagens/files/logo_boleto.png', 10, 2, 17);
$pdf->setfont('arial', 'B', 10);
$coluna = 30;
$pdf->text($coluna, 5, $nomeinst);
$pdf->setfont('arial', '', 8);
$pdf->text($coluna, 9, $ender);
$pdf->text($coluna, 12, $munic . ' - ' . $uf);
$pdf->text($coluna, 15, $telef);
$pdf->text($coluna, 18, $email);
$pdf->text($coluna, 21, $url);
$clquery->sql_query("cgm", "z01_nome", "", "z01_numcgm= {$q20_numcgm}");
$clquery->sql_record($clquery->sql);
db_fieldsmemory($clquery->result, 0);
$pdf->sety(25);
$pdf->setfont('arial', 'B', 10);
$pdf->multicell(0, 4, 'ISSQN COM RETENÇÃO NA FONTE', 0, "C", 0);
$pdf->ln(5);
$altura = 6;
$pdf->setfont('arial', 'B', 8);
Ejemplo n.º 3
0
<?php

include "../config/config.php";
include "../pdf/fpdf/fpdf.php";
//include "../barcode/barcode.php";
//include "../barcode/bars.php";
$pdf = new FPDF();
$pdf->Open();
$pdf->addPage();
$pdf->setAutoPageBreak(true);
$pdf->setFont('Arial', '', 12);
$pdf->text(10, 25, 'Tes User DB');
$pdf->Line(10, 31, 198, 31);
$yi = 50;
$ya = 44;
$pdf->setFont('Arial', '', 9);
$pdf->setFillColor(222, 222, 222);
$pdf->setXY(10, $ya);
$pdf->CELL(6, 6, 'ID', 1, 0, 'C', 1);
$pdf->CELL(40, 6, 'Username', 1, 0, 'C', 1);
$pdf->CELL(50, 6, 'Password', 1, 0, 'C', 1);
$ya = $yi + $row;
$sql = "SELECT id, password, username FROM user";
$result = $conn->query($sql);
$i = 1;
$no = 1;
$max = 31;
//$row = 6;
if ($result->num_rows > 0) {
    while ($row = $result->fetch_assoc()) {
        $pdf->setXY(10, $ya);
Ejemplo n.º 4
0
<?php

require 'fpdf.php';
include "link.php";
$pdf = new FPDF('P', 'mm', 'A4');
$pdf->addPage();
$pdf->setFont('Times', 'B', 30, 'C');
$pdf->text(10, 15, 'Dynamic Link Library');
$pdf->setFont('Helvetica', 'I', 20, 'C');
$pdf->text(10, 22.5, 'Perpustakaan Online SMK Negeri 10 Jakarta');
$pdf->setFont('Helvetica', '', 20, 'C');
$pdf->text(10, 32, 'Laporan Buku');
$pdf->text(10, 22.5, 'Perpustakaan Online SMK Negeri 10 Jakarta');
$pdf->setFont('Helvetica', '', 15, 'C');
$pdf->text(10, 39, 'Bulan ' . $_GET[bulan]);
$yi = 50;
$ya = 44;
$pdf->setFont('Arial', '', 9);
$pdf->setFillColor(183, 199, 93);
$pdf->setXY(10, $ya);
$pdf->CELL(10, 6, 'No', 1, 0, 'C', 1);
$pdf->CELL(20, 6, 'ID', 1, 0, 'C', 1);
$pdf->CELL(80, 6, 'Judul', 1, 0, 'C', 1);
$pdf->CELL(60, 6, 'Rak', 1, 0, 'C', 1);
$pdf->CELL(20, 6, 'Jumlah', 1, 0, 'C', 1);
$ya = $yi + $row;
$sql = mysql_query("select*from buku");
$i = 1;
$no = 1;
$max = 31;
$row = 6;
Ejemplo n.º 5
0
 */
require_once "iloj/iloj.php";
require_once 'iloj/fpdf/fpdf.php';
session_start();
malfermu_datumaro();
if (!rajtas("administri")) {
    ne_rajtas();
}
define('FPDF_FONTPATH', './font/');
$font = 'TEMPO';
$pdf = new FPDF();
$pdf->AddFont($font, '', $font . '.php');
$pdf->Open();
$pdf->AddPage();
$pdf->SetFont($font, '', 12);
$pdf->text(15, 17, eo("kelkajn statistikojn pri la " . $_SESSION["renkontigxo"]->datoj[nomo] . " en " . $_SESSION["renkontigxo"]->datoj[loko]));
$pdf->text(15, 23, "Dato:" . date('Y-m-d'));
/*  eoecho ("cxiu vegetarano: <BR>\n");
  $grr = $renkontigxo->datoj[de];
//FLOOR((TO_DAYS('$renkontigxo->datoj[de]') - TO_DAYS(naskigxdato))/365.25)
  $sql  = "Select personanomo,nomo ";
  $sql .= "from partoprenantoj as pa,partoprenoj as pp ";
  $sql .= "where  pa.id = pp.partoprenantoID and pp.vegetare = 'J' and alvenstato='a'";
  $sql .= "order by personanomo";

  sql_farukajmontru($sql);
*/
//echo "</TD></TR></TABLE>\n";
//la diverskategoria ABC statistiko
//$this->agxkategorio = $this->kalkulu_agx_kategorio($agxo,$renkontigxo);
//$this->landakategorio = eltrovu_landakategorio($partoprenanto->datoj[lando]);
Ejemplo n.º 6
0
$notify = $baris['18'];
$notifyadrress = $baris['19'];
$notifykota = $baris['20'];
$idtps = $baris['21'];
$idtpp = $baris['24'];
$nm_tpp = $baris['25'];
$idtypecode = $baris['26'];
$idmanifest = $baris['27'];
$kd_manifest = $baris['28'];
$idseksi = $baris['29'];
$nm_seksi = $baris['30'];
$nip = $baris['31'];
$plh = $baris['32'];
$jabatan = $baris['33'];
$pdf->SetFont('Arial', '', 9);
$pdf->text(250, 4, 'BCF 1.5');
$header1 = "Kementrian Keuangan Republik Indonesia\nDirektorat Jenderal Bea dan Cukai\nKantor Pelayanan Utama Tipe B Batam.";
$pdf->Line(10, 17, 83, 17);
$pdf->setX(10);
$pdf->MultiCell(70, 5, $header1, 1, 'C');
$pdf->Ln(3);
$header2 = "DAFTAR BARANG-BARANG IMPOR\nYANG DINYATAKAN SEBAGAI BARANG YANG\nTIDAK DIKUASAI";
$pdf->Line(10, 17, 83, 17);
$pdf->setX(100);
$pdf->MultiCell(100, 4, $header2, 0, 'C');
$pdf->Ln(5);
$pdf->cell(15, 5, 'Nomor :', 0, 0, 'L', 0);
$pdf->cell(11, 5, $bcf15no, 0, 0, 'L', 0);
$pdf->cell(20, 5, $kd_manifest, 0, 0, 'L', 0);
$pdf->Ln(5);
$pdf->cell(10, 20, 'No', 1, 0, 'C', 0);