Exemplo n.º 1
0
$value = $_SESSION['value'];
$start_day = $_SESSION['start_day'];
$end_day = $_SESSION['end_day'];
$date_display = $_SESSION['date_display'];
$total_no = 0;
$array_list = array();
$days = array('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday');
$counter = -1;
$recordCount = 0;
$id = 0;
$pdf = new PDF_MC_Table();
$pdf->Open();
$pdf->AddPage('L');
//$pdf->Image($picture,20,5,20,20);
$pdf->SetFont("Arial", "B", "16");
$pdf->Cell(0, 10, "Broadcast System & Maintenance", 0, 1, "C");
$pdf->SetFont("Arial", "", "12");
$pdf->Cell(0, 10, "Technical Operation Division", 0, 1, "C");
$pdf->SetFont("Arial", "B", "14");
$pdf->SetXY(10, 35);
$pdf->SetTextColor(255, 255, 255);
$pdf->SetFillColor(64, 64, 64);
$pdf->Cell(0, 10, "Weekly Reports from " . $start_day . " to " . $end_day, 0, 1, "C", 1);
$pdf->SetTextColor(0, 0, 0);
$pdf->SetFont("Arial", "B", "12");
$pdf->SetXY(10, 50);
$pdf->Write(5, "Rep#");
$pdf->SetXY(30, 50);
$pdf->Write(5, "Date");
$pdf->SetXY(50, 50);
$pdf->Write(5, "Location");
Exemplo n.º 2
0
{
	$actividad="INGRESOS";
	$titulo_actividad="Origen";
}
else
{
	$actividad="SALIDAS";
	$titulo_actividad="Destino";	
}
*/
if ($_REQUEST['fecha'] != '' && $_REQUEST['fechaf'] != '') {
    $fecha = $_REQUEST['fecha'];
    $fechaf = $_REQUEST['fechaf'];
    $fechas = 'Comprobantes emitidos desde el ' . $fecha . ' al ' . $fechaf;
}
$pdf->Cell(295, 10, 'REPORTE DE COMPROBANTES EMITIDOS', 0, 0, 'C');
$pdf->Ln(10);
if ($fechas != '') {
    $pdf->Cell(295, 10, $fechas, 0, 0, 'C');
    $pdf->Ln(10);
}
$pdf->SetWidths(array(120, 20, 25, 15, 25, 25, 25, 15));
$pdf->Row(array('Cliente', 'Tipo', 'Nº Comprobante', 'Fecha', 'Subtotal', 'IGV', 'Total', 'Estado'));
$j = '1';
$rs = $venta->venta_consulta($_REQUEST['cliente'], $_REQUEST['tipocomprobante'], $_REQUEST['fecha'], $_REQUEST['fechaf'], '1');
$suma_precio = 0;
$suma_importe = 0;
while ($campo = mysql_fetch_array($rs)) {
    $fecha = $venta->_util->obtienefecha($campo['ven_fecha']);
    $cliente = $campo['cli_razonsocial'];
    $tipo = $campo['tipc_descripcion'];
Exemplo n.º 3
0
$_FONTSIZE = 10;
$pdf = new PDF_MC_Table();
$size = $pdf->_getpagesize('Legal');
$size[1] = 6;
$pdf->DefPageSize = $size;
$pdf->CurPageSize = $size;
$pdf->AddPage('L', array(200, 150));
//$pdf->AddPage('P',array(210,296));
$pdf->SetFont('helvetica', '', $_FONTSIZE);
$pdf->SetRightMargin($_HEIGHT);
$pdf->SetLeftMargin($_HEIGHT);
$pdf->SetAutoPageBreak(false, 0);
$pdf->Ln(0);
$pdf->Image('../images/Logo.png', 7, 10, 15, 15);
$pdf->SetFont('Arial', 'B', 6);
$pdf->Cell(10, 5, "", "TL", 0, 'L');
$pdf->Cell(80, 5, "PEMERINTAH KOTA BANDUNG", "TR", 0, 'C');
$pdf->Cell(10, 5, "", "", 0, 'L');
$pdf->Cell(90, 5, "", "TLR", 0, 'L');
$pdf->Ln();
$pdf->SetFont('Arial', 'B', 10);
$pdf->Cell(10, 5, "", "L", 0, 'L');
$pdf->Cell(80, 5, "DINAS PELAYANAN PAJAK", "R", 0, 'C');
$pdf->Cell(10, 5, "", "", 0, 'L');
$pdf->Cell(90, 5, "PERHATIAN", "LR", 0, 'C');
$pdf->Ln();
$pdf->SetFont('Arial', '', 6);
$pdf->Cell(10, 5, "", "L", 0, 'L');
$pdf->Cell(80, 5, "Jalan Wastukencana No. 2 Telp/Fax (022) 4235052", "R", 0, 'C');
$pdf->Cell(10, 5, "", "", 0, 'L');
$pdf->Cell(90, 5, "", "LR", 0, 'C');
Exemplo n.º 4
0
}
//get query dan variabel
$mulai = $_GET['mulai'];
$akhir = $_GET['akhir'];
$gudang = $_GET['gudang'];
$decode_cr = $_GET['cr_txt'];
$getquery = str_replace("+", " ", $_GET[query]);
$getquerykorporate = str_replace("+", " ", $_GET[query_korporate]);
//instansiasi fpdf
$pdf = new PDF_MC_Table('L', 'cm', 'A4');
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->SetMargins(0.7, 0.7, 0.7, 0.7);
#tampilkan judul laporan
$pdf->SetFont('Arial', 'B', '16');
$pdf->Cell(0, 0, "CIPAGANTI RENTAL CAR & TRAVEL", '0', 1, 'C');
$pdf->Cell(0, 2, "HASIL SEWA KENDARAAN", '0', 1, 'C');
$pdf->SetFont('Arial', 'B', '12');
$pdf->Cell(3, 3, "CABANG : " . $gudang, 0, 0, 'L');
$pdf->Cell(25.2, 3, "PERIODE : " . DateToIndo($mulai) . " - " . DateToIndo($akhir), 0, 0, 'R');
//membuat kop tabel
$y = $pdf->GetY();
$pdf->SetY($y + 2.5);
$pdf->SetFont('Arial', 'B', 11);
$pdf->SetWidths(array(2.3, 2.5, 2.5, 2.5, 3.7, 2.2, 2.2, 2.6, 2.6, 2.6, 2.6));
$pdf->SetHeight(0.1);
$pdf->SetAligns(array('C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'));
$pdf->Row(array("CSO", "Berangkat", "No. Order", "No. Kendaraan", "Merk Kendaraan", "Periode Awal", "Periode Akhir", "Customer", "T.Sewa", "T.Bayar", "Piutang"));
$pdf->SetFont('Arial', 'B', 9);
$pdf->SetWidths(array(28.3));
$pdf->Row(array("SEWA KENDARAAN RETAIL"));
Exemplo n.º 5
0
$pdf->FPDF('L', 'mm', 'A4');
//$pdf->Open();
$pdf->AliasNbPages();
$pdf->SetLeftMargin(15);
$pdf->PageNo();
//$pdf->SetTopMargin(0);
$pdf->AddPage();
$pdf->SetFont('Arial', '', 6);
$numeromanifiesto = $auxiliares->numeromanifiestodiario_nuevo();
if ($_REQUEST['courier_destino'] == '0') {
    $courier = "TODOS";
} else {
    $courier = $empresas->devuelve_courier($_REQUEST['courier_destino']);
}
$cargo->nuevo_manifiestodiario($numeromanifiesto, $_REQUEST['courier_destino'], $_REQUEST['fecha'], $_REQUEST['fechaf']);
$pdf->Cell(275, 10, 'MANIFIESTO Nº ' . $numeromanifiesto . '', 0, 0, 'C');
$pdf->Ln(10);
$pdf->Cell(50, 5, 'DE: PERUMAIL EXPRESS S.A.C.', 0, 0, 'L');
$pdf->Cell(170, 5, 'PARA: ' . $courier . '', 0, 0, 'L');
$pdf->Cell(39, 5, 'FECHA: del ' . $_REQUEST['fecha'] . ' al ' . $_REQUEST['fechaf'] . '', 0, 0, 'L');
$pdf->Ln(5);
$pdf->Cell(275, 5, '', 0, 0, 'C');
$pdf->Ln(5);
$pdf->SetWidths(array(8, 62, 10, 55, 80, 19, 20, 18));
//srand(microtime()*1000000);
$pdf->Row(array('Nº', 'Empresa Remitente', 'Nº Guia', 'Consignado', 'Dirección', 'Destino', 'Tipo de Envio', 'Peso'));
$rs = $cargo->cargocourier_listar($_REQUEST['courier_destino'], '', '', $_REQUEST['fecha'], $_REQUEST['fechaf'], '3', '');
$rs = mysql_query($rs, $cargo->con->cn);
if ($rs) {
    $j = 1;
    while ($campo = mysql_fetch_array($rs)) {
Exemplo n.º 6
0
<?php

require "database.php";
require_once "mc_table.php";
require_once "linegraph.php";
require_once "diagram.php";
require_once "/fpdf/fpdf.php";
//$picture = "D://xampp//htdocs//BroadcastSystem//images//abs_cbn logo.png";
$pdf = new PDF_MC_Table();
$pdf->Open();
$pdf->AddPage('L');
//$pdf->Image($picture,20,5,20,20);
$pdf->SetFont("Arial", "B", "16");
$pdf->Cell(0, 10, "Broadcast System & Maintenance", 0, 1, "C");
$pdf->SetFont("Arial", "", "12");
$pdf->Cell(0, 10, "Technical Operation Division", 0, 1, "C");
$pdf->SetFont("Arial", "B", "14");
$pdf->SetXY(10, 35);
$pdf->SetTextColor(255, 255, 255);
$pdf->SetFillColor(64, 64, 64);
$pdf->Cell(0, 10, "List of All Reports", 0, 1, "C", 1);
$pdf->SetTextColor(0, 0, 0);
$pdf->SetFont("Arial", "B", "12");
$pdf->SetXY(10, 50);
$pdf->Write(5, "Rep#");
$pdf->SetXY(30, 50);
$pdf->Write(5, "Date");
$pdf->SetXY(50, 50);
$pdf->Write(5, "Location");
$pdf->SetXY(75, 50);
$pdf->Write(5, "Machine");
$akhir = $_GET['akhir'];
$gudang = $_GET['gudang'];
$decode_cr = $_GET['cr_txt'];
$getquery = str_replace("+", " ", $_GET[query]);
$getquerykorporate = str_replace("+", " ", $_GET[query_korporate]);
//instansiasi fpdf
$pdf = new PDF_MC_Table('L', 'cm', 'Legal');
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->SetMargins(0.5, 0.7, 0.7);
$sql = "SELECT gudang FROM gl_gudang WHERE id = '{$gudang}' ";
$cekdata = mysql_query($sql) or die(mysql_error());
$row_data = mysql_fetch_array($cekdata);
#tampilkan judul laporan
$pdf->SetFont('Arial', 'B', '16');
$pdf->Cell(0, 0, "CIPAGANTI RENTAL CAR & TRAVEL", 0, 1, 'C');
$pdf->Cell(35, 2, "PENERIMAAN HASIL SEWA KENDARAAN", 0, 1, 'C');
$pdf->SetFont('Arial', 'B', '12');
$pdf->Cell(3, 3, "CABANG : " . $row_data['gudang'], 0, 0, 'L');
$pdf->Cell(31.5, 3, "PERIODE : " . DateToIndo($mulai) . " - " . DateToIndo($akhir), 0, 0, 'R');
//membuat kop tabel
$y = $pdf->GetY();
$pdf->SetY($y + 2.5);
$pdf->SetFont('Arial', 'B', 11);
$pdf->SetWidths(array(2.3, 2.5, 2.5, 2.5, 2.5, 2.2, 2.2, 2.6, 2.3, 2.6, 2.6, 2.6, 2.6, 2.6));
$pdf->SetHeight(0.1);
$pdf->SetAligns(array('C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'));
$pdf->Row(array("User", "Nama Customer", "No Invoice", "Periode Awal", "Periode Akhir", "No. Polisi", "Angsuran", "Uang Muka", "Jaminan", "Denda", "Tunai", "CQ/BG/CD", "Operasional", "Total"));
$pdf->SetFont('Arial', 'B', 9);
$pdf->SetWidths(array(34.6));
$pdf->Row(array("SEWA KENDARAAN RETAIL"));
Exemplo n.º 8
0
$pdf->FPDF('L', 'mm', 'A4');
//$pdf->Open();
$pdf->AliasNbPages();
$pdf->SetLeftMargin(15);
$pdf->PageNo();
//$pdf->SetTopMargin(0);
$pdf->AddPage();
$pdf->SetFont('Arial', '', 7);
$numeroreportemensual = $auxiliares->numeroreportemensual_nuevo();
if ($_REQUEST['empresa_remite'] == '0') {
    $empresa = "TODOS";
} else {
    $empresa = $empresas->devuelve_empresaremite($_REQUEST['empresa_remite']);
}
$cargo->nuevo_reportemensual($numeroreportemensual, $_REQUEST['empresa_remite'], $_REQUEST['fecha'], $_REQUEST['fechaf']);
$pdf->Cell(270, 10, 'REPORTE MENSUAL Nº ' . $numeroreportemensual . '', 0, 0, 'C');
$pdf->Ln(10);
$pdf->Cell(50, 5, 'DE: PERUMAIL EXPRESS S.A.C.', 0, 0, 'L');
//$pdf->Ln(5);
$pdf->Cell(145, 5, 'PARA: ' . $empresa . '', 0, 0, 'L');
//$pdf->Ln(5);
$pdf->Cell(150, 5, 'FECHA: del ' . $_REQUEST['fecha'] . ' al ' . $_REQUEST['fechaf'] . '', 0, 0, 'L');
$pdf->Ln(5);
$pdf->Cell(275, 5, '', 0, 0, 'C');
$pdf->Ln(5);
$pdf->SetWidths(array(10, 15, 24, 38, 12, 20, 15, 18, 20, 18, 18, 18, 18, 18, 18, 18));
//srand(microtime()*1000000);
$pdf->Row(array('Nº', 'Fec. Emis.', 'Zona', 'Destino', 'Nº Guia', 'Tipo de Envio', 'Peso', '1er Kg.', 'Kg. Adicional', 'Volumen', 'Costo Servicio', 'Fragilidad', 'Embalaje', 'Importe'));
$rs = $cargo->cargocourier_listar('', '', $_REQUEST['empresa_remite'], $_REQUEST['fecha'], $_REQUEST['fechaf'], '4', '');
$rs = mysql_query($rs, $cargo->con->cn);
if ($rs) {
Exemplo n.º 9
0
$pdf->FPDF('L', 'mm', 'A4');
//$pdf->Open();
$pdf->AliasNbPages();
$pdf->SetLeftMargin(15);
$pdf->PageNo();
//$pdf->SetTopMargin(0);
$pdf->AddPage();
$pdf->SetFont('Arial', '', 7);
$numeroreporte = $auxiliares->numero_reporte_masivo_nuevo('rep_masivo_tec');
if ($_REQUEST['empresa_remite'] == '0') {
    $empresa = "TODOS";
} else {
    $empresa = $empresas->devuelve_empresaremite($_REQUEST['empresa_remite']);
}
//$cargo->nuevo_reportemensual($numeroreporte,$_REQUEST['empresa_remite'],$_REQUEST['fecha'],$_REQUEST['fechaf']);
$pdf->Cell(270, 10, 'REPORTE TECNICO DE CARGOS MASIVOS Nº ' . $numeroreporte . '', 0, 0, 'C');
$pdf->Ln(10);
$pdf->Cell(50, 5, 'DE: PERUMAIL EXPRESS S.A.C.', 0, 0, 'L');
//$pdf->Ln(5);
$pdf->Cell(145, 5, 'PARA: ' . $empresa . '', 0, 0, 'L');
//$pdf->Ln(5);
$pdf->Cell(150, 5, 'FECHA: del ' . $_REQUEST['fecha'] . ' al ' . $_REQUEST['fecha2'] . '', 0, 0, 'L');
$pdf->Ln(5);
$pdf->Cell(275, 5, '', 0, 0, 'C');
$pdf->Ln(5);
$pdf->SetWidths(array(10, 15, 20, 20, 60, 60, 25, 25));
//srand(microtime()*1000000);
$pdf->Row(array('Nº', 'Nº Guia', 'Fec. Emis.', 'Zona', 'Consignado', 'Direccion', 'Ciudad', 'Observaciones'));
//$rs= $cargo->cargocourier_listar('','',$_REQUEST['empresa_remite'],$_REQUEST['fecha'],$_REQUEST['fechaf'],'4','');
$rs = $cargo->cargomasivo_listar_impresion('4', $_REQUEST['empresa_remite'], $_REQUEST['fecha'], $_REQUEST['fecha2'], $_REQUEST['estado'], '');
// mysql_query($rs,$cargo->con->cn);
//-----------------------------------------------------------------------------
//-----------------------Inicio pdf---------------------------------------------
$pdf = new PDF_MC_Table('L', 'mm', 'Letter');
$pdf->AddFont('GillSans', '', 'GillSans.php');
$pdf->AddFont('GillSans', 'B', 'GillSans_B.php');
$pdf->AddFont('GillSans', 'BI', 'GillSans_BI.php');
$pdf->AddFont('GillSans', 'I', 'GillSans_I.php');
$pdf->AddFont('GillSans', 'L', 'GillSans_L.php');
$pdf->AddFont('GillSans', 'LI', 'GillSans_LI.php');
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->SetLeftMargin(25);
//----------------------------------------------
$pdf->SetFont('GillSans', '', 10);
$pdf->SetFillColor(249, 250, 252);
$pdf->Cell(70, 4, ' Estructura Programática ', 0, 0, 'L', 0);
$pdf->Cell(70, 4, 'Ejercicio: 2015 ', 0, 0, 'L', 0);
$pdf->Ln(5);
$pdf->SetFont('GillSans', 'B', 10);
$pdf->Cell(240, 4, 'Catálogo de Programas', 1, 1, 'C', 1);
$pdf->SetFont('GillSans', '', 10);
$y = $pdf->GetY();
$x = $pdf->GetX();
$pdf->MultiCell(20, 8, 'ID', 1, 'C', 1);
$pdf->SetXY($x + 20, $y);
$pdf->MultiCell(40, 8, 'Clave', 1, 'C', 1);
$pdf->SetXY($x + 60, $y);
$pdf->MultiCell(150, 8, 'Descripción', 1, 'C', 1);
$pdf->SetXY($x + 210, $y);
$pdf->Cell(30, 8, 'Tipo', 1, 0, 'C', 1);
$pdf->Cell(0, 4, '', 0, 1, 'C', 0);
    die("Server MySQL tidak terhubung karena " . mysql_error());
}
//akhir koneksi
//get query dan variabel
$awal = $_GET['awal'];
$akhir = $_GET['akhir'];
$jumlah = $akhir - $awal;
$width = ($jumlah + 1) * 3;
//instansiasi fpdf
$pdf = new PDF_MC_Table('P', 'cm', 'A4');
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->SetMargins(0.7, 0.7, 0.7);
#tampilkan judul laporan
$pdf->SetFont('Arial', 'B', '16');
$pdf->Cell(0, 0, "CIPAGANTI RENTAL CAR & TRAVEL", 0, 1, 'C');
$pdf->Cell(20, 2, "DANA UNIT PER TAHUN", 0, 1, 'C');
$pdf->SetFont('Arial', 'B', '12');
$pdf->SetXY(1.5, 3);
$pdf->Cell(8, 3, "PERIODE : " . $awal . " - " . $akhir, 0, 0, 'L');
//membuat kop tabel
$pdf->SetFont('Arial', 'B', 11);
$pdf->SetXY(1.5, 5);
$pdf->Cell(2, 2, "No", 1, 0, 'C');
$pdf->Cell(9, 2, "Jenis Kendaraan", 1, 0, 'C');
$pdf->Cell($width, 1, "Data Stok Kendaraan Rental", 1, 2, 'C');
for ($i = $awal; $i <= $akhir; $i++) {
    $pdf->Cell(3, 1, "{$i}", 1, 0, 'C');
}
$pdf->SetFont('Arial', '', 9);
$pdf->Ln();
Exemplo n.º 12
0
 $applyData = $_SESSION['applydata'];
 $pdf = new PDF_MC_Table('P');
 $pdf->SetMargins(25, 10, 10);
 $pdf->AddFont('TimesNewRomanPSMT', '', 'times.php');
 $pdf->AddPage();
 $pdf->SetFont('TimesNewRomanPSMT', '', 12);
 $pdf->SetX(110);
 $pdf->MultiCell(88, 5, sav2_convert("Государственное бюджетное учреждение \n Республики Коми \"Центр по предоставлению \n государственных услуг в сфере \n социальной защиты населения "), 0, 'R');
 $pdf->SetX(110);
 $pdf->SetTextColor(0, 0, 255);
 $pdf->MultiCell(88, 6, sav2_convert($applyData->{'org-town'} . "\""), 'B', 'R');
 $pdf->SetTextColor(0, 0, 0);
 $pdf->Ln();
 $pdf->MultiCell($width, 5, sav2_convert("ЗАЯВЛЕНИЕ \n о признании семьи или одиноко проживающего гражданина \n малоимущими и назначении государственной социальной помощи"), 0, 'C');
 $pdf->Ln();
 $pdf->Cell(6, 5, sav2_convert('от'), 0);
 $pdf->SetTextColor(0, 0, 255);
 $pdf->MultiCell($width, 5, sav2_convert($applyData->{'customer-fio'}), 'B', 'C');
 $pdf->SetTextColor(0, 0, 0);
 $pdf->Cell($width, 5, sav2_convert("(фамилия, имя, отчество)"), 0, 1, 'C');
 $pdf->Cell($width, 6, sav2_convert("зарегистрированного(ой) по месту жительства (месту пребывания) по адресу:"), 0, 1, 'L');
 $pdf->SetTextColor(0, 0, 255);
 $pdf->MultiCell($width, 6, sav2_convert($applyData->{'customer-dwelling'}), 'B', 'C');
 $pdf->SetTextColor(0, 0, 0);
 $pdf->Ln();
 $pdf->SetWidths(array(60, 40, 35, 40));
 $pdf->Row(array(sav2_convert("Наименование документа, удостоверяющего личность:"), sav2_convert($applyData->{'customer-id-doc-name'}), sav2_convert("Дата выдачи:"), sav2_convert($applyData->{'customer-id-doc-givendate'})));
 $pdf->Row(array(sav2_convert("Серия и \nномер документа:"), sav2_convert($applyData->{'customer-id-doc-vol'} . " " . $applyData->{'customer-id-doc-num'}), sav2_convert("Дата рождения:"), sav2_convert($applyData->{'customer-birthdate'})));
 $pdf->Row(array(sav2_convert("Кем \nвыдан:"), sav2_convert($applyData->{'customer-id-doc-givenbywhom'}), sav2_convert("Номер телефона:"), sav2_convert($applyData->{'customer-phonenum'})));
 $pdf->Ln();
 $pdf->MultiCell($width, 5, sav2_convert("Сведения   о   лице,   являющемся   представителем   в  соответствии  с законодательством Российской Федерации:"), 0, 'L');
$bulan = $_GET['bulan'];
$tahun = $_GET['tahun'];
global $num, $days, $first, $last;
$num = cal_days_in_month(CAL_GREGORIAN, $bulan, $tahun);
$first = $tahun . '/' . $bulan . '/' . '01';
$last = $tahun . '/' . $bulan . '/' . $num;
list($namacabang) = mysql_fetch_row(mysql_query("select gudang from gl_gudang where id='{$cabang}'"));
//instansiasi fpdf
$pdf = new PDF_MC_Table('L', 'cm', 'A3');
$pdf->AliasNbPages();
$pdf->SetAutoPageBreak(false);
$pdf->AddPage();
$pdf->SetMargins(0.7, 0.7, 0.7);
#tampilkan judul laporan
$pdf->SetFont('Arial', 'B', '16');
$pdf->Cell(0, 0, "CIPAGANTI RENTAL CAR & TRAVEL", 0, 1, 'C');
$pdf->Cell(41, 2, "LAPORAN EFEKTIFITAS UNIT", 0, 1, 'C');
$pdf->Text(18.5, 3.2, DateToIndo($bulan, $tahun));
$pdf->SetFont('Arial', 'B', '12');
$pdf->SetXY(1.5, 3);
function DateToIndo($bulan, $tahun)
{
    // fungsi atau method untuk mengubah tanggal ke format indonesia
    // variabel BulanIndo merupakan variabel array yang menyimpan nama-nama bulan
    $BulanIndo = array("JANUARI", "FEBRUARI", "MARET", "APRIL", "MEI", "JUNI", "JULI", "AGUSTUS", "SEPTEMBER", "OKTOBER", "NOVEMBER", "DESEMBER");
    $result = $BulanIndo[(int) $bulan - 1] . " " . $tahun;
    return $result;
}
$sql = "SELECT gudang FROM gl_gudang WHERE id = '{$cabang}' ";
$cekdata = mysql_query($sql) or die(mysql_error());
$row_data = mysql_fetch_array($cekdata);
$pdf->Ln();

$today=date("Y",time())."-".date("m",time())."-".date("d",time());
$pdf->SetFont('Arial','',8);
$pdf->Cell(180,3,$today,$border,0,'C',true);
$pdf->Ln();
$pdf->Ln();
*/
$high = 6;
$width1 = 180;
$width2 = $width1 / 2;
$width3 = $width1 / 3;
$width4 = $width1 / 4;
$pdf->SetFillColor(255, 255, 255);
$pdf->SetFont('Arial', 'B', 18);
$pdf->Cell(180, $high, "Netherhall House", 0, 0, 'C', true);
$pdf->Ln();
$pdf->SetFont('Arial', '', 10);
//$pdf->SetWidths(array(40,100,40));
//$pdf->SetAligns(array('','C',''));
//$pdf->SetBorders(array(0,0,0));
$pdf->SetX = 70;
$pdf->SetY = 15;
$cabecera = "Nutley Terrace, London NW3 5SA\nTel: 020 7435 8888 (Director); 020 7472 5720 (Residents)\nFax: 020 7472 5721\nE-Mail: director@nh.netherhall.org.uk\nWeb: www.nh.netherhall.org.uk";
$pdf->MultiCell(180, 4, $cabecera, 0, 'C');
//$pdf->Row(array("",$cabecera,""));
$pdf->Ln();
$pdf->SetAligns(array('', '', ''));
$pdf->SetBorders(array(1, 1, 1));
$pdf->Image("imgs/shield.gif", 18, 7, 26);
if ($arrResident[picture] != "" && file_exists("residentsnh/" . $arrResident[picture])) {
Exemplo n.º 15
0
        $machine = $data['machine'];
        $serial_no = $data['serial_no'];
        $program = $data['program'];
        $problem = $data['problem'];
        $diagnosis = $data['diagnosis'];
        $work_done = $data['work_done'];
        $remarks = $data['remarks'];
        $system_engineer = $data['system_engineer'];
    }
}
$pdf = new PDF_MC_Table();
$pdf->Open();
$pdf->AddPage();
//$pdf->Image($picture,20,5,20,20);
$pdf->SetFont("Arial", "B", "16");
$pdf->Cell(0, 10, "Broadcast System & Maintenance", 0, 1, "C");
$pdf->SetFont("Arial", "", "12");
$pdf->Cell(0, 10, "Technical Operation Division", 0, 1, "C");
$pdf->SetFont("Arial", "", "14");
$pdf->SetXY(10, 40);
$pdf->Cell(0, 10, "Date: ", 0, 1);
$pdf->SetFont("Arial", "B", "14");
$pdf->SetXY(25, 40);
$pdf->Cell(0, 10, $report_date, 0, 1);
$pdf->SetFont("Arial", "", "14");
$pdf->SetXY(10, 60);
$pdf->Cell(0, 10, "Location: ", 0, 1);
$pdf->SetFont("Arial", "U", "14");
$pdf->SetXY(40, 60);
$pdf->Cell(0, 10, "    " . $report_location . "    ", 0, 1);
$pdf->SetFont("Arial", "", "14");
        $this->SetY(-15);
        //Arial italic 8
        $this->SetFont('Arial', 'I', 8);
        //Número de página
        $this->Cell(0, 10, 'Page ' . $this->PageNo() . '/{nb}', 0, 0, 'C');
    }
}
$pdf->FPDF('P', 'mm', 'A4');
//$pdf->Open();
$pdf->AliasNbPages();
$pdf->SetLeftMargin(15);
$pdf->PageNo();
//$pdf->SetTopMargin(0);
$pdf->AddPage();
$pdf->SetFont('Arial', '', 7);
$pdf->Cell(190, 10, 'REPORTE DE INGRESO DE PRODUCTOS', 0, 0, 'C');
$pdf->Ln(10);
$pdf->Cell(150, 5, 'INGRESOS REGISTRADOS DESDE EL ' . $_REQUEST['fecha'] . ' AL ' . $_REQUEST['fecha2'] . '', 0, 0, 'L');
$pdf->Ln(5);
$pdf->Cell(275, 5, '', 0, 0, 'C');
$pdf->Ln(5);
$pdf->SetWidths(array(27, 120, 20));
//srand(microtime()*1000000);
$pdf->Row(array('FECHA DE INGRESO', 'DESCRIPCION', 'CANTIDAD'));
$rs = $ingreso->ingresos_listar_fecha($_REQUEST['fecha'], $_REQUEST['fecha2']);
//$rs= mysql_query($rs,$cargo->con->cn);
if ($rs) {
    $j = 1;
    $suma_cantidad = 0;
    while ($campo = mysql_fetch_array($rs)) {
        //cargamos a las variables los campos de la bd
Exemplo n.º 17
0
// Cargamos las fuentes corporativas
$pdf->AddFont('NewsGotT', '', 'NewsGotT.php');
$pdf->AddFont('NewsGotT', 'B', 'NewsGotTb.php');
// En el caso de haber seleccionado una unidad, se muestra el listado de alumnos de dicha unidad,
// en otro caso mostramos el listado de faltas de todas las unidades.
$query = "SELECT DISTINCT unidad FROM FALUMNOS";
if ($curso) {
    $query .= " WHERE unidad='{$curso}'";
}
$unidades = mysqli_query($db_con, $query);
while ($unidad = mysqli_fetch_array($unidades)) {
    $grupo = $unidad[0];
    $pdf->AddPage('P', 'A4');
    // CABECERA DEL DOCUMENTO
    $pdf->SetFont('NewsGotT', 'B', 12);
    $pdf->Cell(170, 5, "ALUMNOS DEL GRUPO {$grupo}", 0, 1, 'C');
    $pdf->Ln(5);
    // Consultamos los alumnos del grupo seleccionado
    $result = mysqli_query($db_con, "SELECT claveal, apellidos, nombre FROM FALUMNOS WHERE unidad='{$grupo}'");
    $i = 1;
    $x_texto1 = 29.5;
    $y_texto1 = 56;
    $x_image = 20;
    $y_image = 21;
    while ($alumno = mysqli_fetch_object($result)) {
        if ($i % 5 == 0) {
            $ln = 1;
        } else {
            $ln = 0;
        }
        $pdf->Cell(37, 43, '', 1, $ln, 'C');
Exemplo n.º 18
0
 function reporteFacturacion()
 {
     $idOrdenVenta = $_REQUEST['idOrdenVenta'];
     $txtFechaInicio = !empty($_REQUEST['txtFechaInicio']) ? date('Y-m-d', strtotime($_REQUEST['txtFechaInicio'])) : null;
     $txtFechaFinal = !empty($_REQUEST['txtFechaFinal']) ? date('Y-m-d', strtotime($_REQUEST['txtFechaFinal'])) : null;
     $idVendedor = $_REQUEST['idVendedor'];
     $idTipoDoc = $_REQUEST['idTipoDoc'];
     $idCliente = $_REQUEST['idCliente'];
     $lstSituacion = $_REQUEST['lstSituacion'];
     $orden = $_REQUEST['lstOrden'];
     $reporte = $this->AutoLoadModel('reporte');
     $datos = $reporte->reporteFacturacion($txtFechaInicio, $txtFechaFinal, $idVendedor, $idOrdenVenta, $idCliente, $idTipodoc, $lstSituacion, $orden);
     $cantidadData = count($datos);
     $pdf = new PDF_MC_Table("L", "mm", "A4");
     $titulos = array('#', 'ORDEN VENTA', 'S-NUM.', 'F. EMI.', 'EMP', 'CLIENTE', 'MONTO (S/)', 'MONTO ($)', '%', 'T', 'TIPO', 'VENDEDOR', 'SITUACION');
     $pdf->SetFont('Helvetica', 'B', 6.5);
     $ancho = array(8, 20, 20, 15, 8, 70, 20, 20, 8, 5, 16, 55, 20);
     $orientacion = array('', '', '', 'C', 'C', '', 'R', 'R', 'C', 'C', '', '', 'C');
     $tipoCambioVentas = $this->configIni($this->configIni('Globals', 'Modo'), 'TipoCambio');
     $pdf->SetWidths($ancho);
     if (!empty($txtFechaFinal) || !empty($txtFechaInicio)) {
         $fecha1 = !empty($txtFechaInicio) ? $txtFechaInicio : utf8_decode('?');
         $fecha2 = !empty($txtFechaFinal) ? $txtFechaFinal : utf8_decode('?');
         $pdf->_fecha = 'Rango Fecha: ' . $fecha1 . ' - ' . $fecha2;
     }
     $pdf->_titulo = "REPORTE DE FACTURACION";
     $pdf->_datoPie = 'Impreso el :' . date('Y-m-d H:m:s');
     $pdf->AddPage();
     $pdf->_titulos = $titulos;
     $relleno = true;
     $pdf->fill($relleno);
     $pdf->SetFillColor(0224, 235, 255);
     $pdf->SetTextColor(0);
     $pdf->SetDrawColor(12, 78, 139);
     $pdf->SetLineWidth(0.3);
     $pdf->_orientacion = $orientacion;
     $pdf->SetAligns($orientacion);
     $pdf->SetTitulos($titulos);
     $pdf->SetFillColor(0224, 235, 255);
     $pdf->SetTextColor(0);
     $pdf->SetDrawColor(12, 78, 139);
     $importeFactura = 0;
     $importeBoleta = 0;
     for ($i = 0; $i < $cantidadData; $i++) {
         $modoFactura = "";
         if ($datos[$i]['modofactura'] == 1) {
             $modoFactura = "Precio";
         } else {
             if ($datos[$i]['modofactura'] == 2) {
                 $modoFactura = "Cantidad";
             }
         }
         if ($datos[$i]['nombredoc'] == 1) {
             $importeFactura += round($datos[$i]['montofacturado'], 2);
             $valorLetra = "F";
         } else {
             $importeBoleta += round($datos[$i]['montofacturado'], 2);
             $valorLetra = "B";
         }
         $vendedor = $datos[$i]['nombres'] . ' ' . $datos[$i]['apellidopaterno'] . ' ' . $datos[$i]['apellidomaterno'];
         $fila = array($i + 1, $datos[$i]['codigov'], str_pad($datos[$i]['serie'], 3, '0', STR_PAD_LEFT) . '-' . $datos[$i]['numdoc'], $datos[$i]['fechadoc'], $datos[$i][codigoalmacen], html_entity_decode($datos[$i]['razonsocial'], ENT_QUOTES, 'UTF-8'), number_format($datos[$i]['montofacturado'], 2), number_format(round($datos[$i]['montofacturado'], 2) / $tipoCambioVentas, 2), $datos[$i]['porcentajefactura'], $valorLetra, $modoFactura, $vendedor, $datos[$i]['situacion']);
         $pdf->Row($fila);
         $relleno = !$relleno;
         $pdf->fill($relleno);
     }
     $pdf->ln();
     $pdf->Cell(25, 5, "MONTO FACTURA S/.", 1, 0, 'C', true);
     $pdf->Cell(25, 5, number_format($importeFactura, 2), 1, 0, 'R', false);
     $pdf->Cell(25, 5, "MONTO BOLETA S/.", 1, 0, 'C', true);
     $pdf->Cell(25, 5, number_format($importeBoleta, 2), 1, 0, 'R', false);
     $pdf->Cell(25, 5, "TOTAL S/.", 1, 0, 'C', true);
     $pdf->Cell(25, 5, number_format($importeBoleta + $importeFactura, 2), 1, 0, 'R', false);
     $pdf->AliasNbPages();
     $pdf->Output();
 }
Exemplo n.º 19
0
 $pdf->AddPage('L', 'A4');
 // CABECERA DEL DOCUMENTO
 // Obtenemos la fecha inicial y final de la semana en curso
 list($anio, $mes, $dia, $semana, $sdia) = explode(':', date('Y:m:d:W:w'));
 $inicio = strtotime("{$anio}-{$mes}-{$dia} 12:00am");
 $inicio += (1 - $sdia) * 86400;
 $fin = $inicio + 6 * 86400;
 $inicio = date('d-m-Y', $inicio);
 $fin = date('d-m-Y', $fin);
 // Consultamos el tutor del grupo
 $result = mysqli_query($db_con, "SELECT TUTOR FROM FTUTORES WHERE unidad='{$unidad}'");
 $tutor = mysqli_fetch_array($result);
 mysqli_free_result($result);
 // Impresi�n de la cabecera
 $pdf->SetFont('NewsGotT', 'B', 10);
 $pdf->Cell(96, 5, "PARTE DE FALTAS DEL GRUPO {$unidad}", 0, 0, 'L');
 $pdf->Cell(81, 5, "SEMANA: _______________________", 0, 0, 'C');
 $pdf->Cell(96, 5, "TUTOR/A: {$tutor['0']}", 0, 1, 'R');
 $pdf->Ln(1);
 $pdf->SetLineWidth(0.6);
 // Grosor de linea
 for ($i = 0; $i < 6; $i++) {
     $pdf->Line(74 + 42 * $i, 16.2, 74 + 42 * $i, 16 + 10);
 }
 $pdf->SetLineWidth(0.2);
 // Grosor por defecto
 // PRIMERA FILA
 $pdf->SetFont('NewsGotT', 'B', 10);
 $pdf->SetWidths(array(63, 42, 42, 42, 42, 42));
 $pdf->SetAligns(array('L', 'C', 'C', 'C', 'C', 'C'));
 $pdf->Row(array('', 'LUNES', 'MARTES', 'MIÉRCOLES', 'JUEVES', 'VIERNES'));
        die("Database tidak dapat dibuka karena " . mysql_error());
    }
} else {
    die("Server MySQL tidak terhubung karena " . mysql_error());
}
//akhir koneksi
//get query dan variabel
$area = $_GET['area'];
//instansiasi fpdf
$pdf = new PDF_MC_Table('P', 'cm', 'A4');
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->SetMargins(0.7, 0.7, 0.7);
#tampilkan judul laporan
$pdf->SetFont('Arial', 'B', '16');
$pdf->Cell(0, 0, "CIPAGANTI RENTAL CAR & TRAVEL", 0, 1, 'C');
$pdf->Cell(20, 2, "STATUS KENDARAAN UNIT TLI", 0, 1, 'C');
$pdf->SetFont('Arial', 'B', '12');
$pdf->SetXY(1.5, 3);
$sql = "SELECT area FROM gl_area WHERE id = '{$area}' ";
$cekdata = mysql_query($sql) or die(mysql_error());
$row_data = mysql_fetch_array($cekdata);
$pdf->Cell(8, 3, "Area : " . $row_data['area'], 0, 0, 'L');
//membuat kop tabel
list($namaarea) = mysql_fetch_row(mysql_query("select area from gl_area where id='{$area}'"));
$pdf->SetFont('Arial', 'B', 11);
$pdf->SetXY(1.5, 5);
$pdf->Cell(2, 0.7, "No", 1, 0, 'C');
$pdf->Cell(6, 0.7, "STOK STATUS", 1, 0, 'C');
$str = "select id, area from gl_area ";
if ($area != '') {
        die("Database tidak dapat dibuka karena " . mysql_error());
    }
} else {
    die("Server MySQL tidak terhubung karena " . mysql_error());
}
//akhir koneksi
//get query dan variabel
$area = $_GET['area'];
//instansiasi fpdf
$pdf = new PDF_MC_Table('L', 'cm', 'Legal');
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->SetMargins(0.25, 1, 0.7);
#tampilkan judul laporan
$pdf->SetFont('Arial', 'B', '16');
$pdf->Cell(0, 0, "CIPAGANTI RENTAL CAR & TRAVEL", 0, 1, 'C');
$pdf->Cell(34.5, 2, "STOK KENDARAAN CABANG", 0, 1, 'C');
$pdf->SetFont('Arial', 'B', '12');
$pdf->SetXY(0.8, 3);
$sql = "SELECT area FROM gl_area WHERE id = '{$area}' ";
$cekdata = mysql_query($sql) or die(mysql_error());
$row_data = mysql_fetch_array($cekdata);
$pdf->Cell(8, 3, "Area : " . $row_data['area'], 0, 0, 'L');
//membuat kop tabel
list($namaarea) = mysql_fetch_row(mysql_query("select area from gl_area where id='{$area}'"));
$pdf->SetFont('Arial', 'B', 11);
$pdf->SetXY(0.25, 5);
$pdf->Cell(1, 2.3, "No", 1, 0, 'C');
$pdf->Cell(6, 2.3, "JENIS KENDARAAN", 1, 0, 'C');
$str = "select id, area from gl_area ";
if ($area != '') {
Exemplo n.º 22
0
$pdf->SetTitle("Netherhall House");
$border = 1;
$high = 6;
$width1 = 180;
$width2 = $width1 / 2;
$width3 = $width1 / 3;
$width4 = $width1 / 4;
/*
$pdf->SetFont('Arial','B',12);
$pdf->Cell(180,$high,"OUTSTANDING SUMMARY",0,0,'C',true);
$pdf->Ln();
$pdf->Ln();
*/
$pdf->SetFillColor(255, 255, 255);
$pdf->SetFont('Arial', 'B', 18);
$pdf->Cell(180, $high, $arrResident[name] . " " . $arrResident[surname], 0, 0, '', true);
$pdf->SetFont('Arial', '', 8);
$pdf->Ln();
$pdf->Ln();
$pdf->SetFillColor(230, 230, 230);
$pdf->Cell(16, $high, "Arrival", $border, 0, '', true);
$pdf->Cell(16, $high, "Departure", $border, 0, '', true);
$pdf->Cell(9, $high, "Days", $border, 0, 'R', true);
$pdf->Cell(10, $high, "Room", $border, 0, '', true);
$pdf->Cell(13, $high, "W. Rate", $border, 0, 'R', true);
$pdf->Cell(15, $high, "Total", $border, 0, 'R', true);
$pdf->Cell(13, $high, "Laundry", $border, 0, 'R', true);
$pdf->Cell(13, $high, "HC", $border, 0, 'R', true);
$pdf->Cell(13, $high, "Printing", $border, 0, 'R', true);
$pdf->Cell(13, $high, "Extra", $border, 0, 'R', true);
$pdf->Cell(15, $high, "Due", $border, 0, 'R', true);
        $this->SetY(-15);
        //Arial italic 8
        $this->SetFont('Arial', 'I', 8);
        //Número de página
        $this->Cell(0, 10, 'Page ' . $this->PageNo() . '/{nb}', 0, 0, 'C');
    }
}
$pdf->FPDF('P', 'mm', 'A4');
//$pdf->Open();
$pdf->AliasNbPages();
$pdf->SetLeftMargin(15);
$pdf->PageNo();
//$pdf->SetTopMargin(0);
$pdf->AddPage();
$pdf->SetFont('Arial', '', 7);
$pdf->Cell(190, 10, 'REPORTE DE STOCK DE PRODUCTOS', 0, 0, 'C');
$pdf->Ln(10);
$pdf->SetWidths(array(30, 30, 100, 20));
//srand(microtime()*1000000);
$pdf->Row(array('LINEA', 'MARCA', 'DESCRIPCION', 'STOCK'));
$rs = $producto->producto_listar($_REQUEST['linea'], '0', $_REQUEST['marca']);
//$rs= mysql_query($rs,$cargo->con->cn);
if ($rs) {
    $j = 1;
    $suma_cantidad = 0;
    while ($campo = mysql_fetch_array($rs)) {
        //cargamos a las variables los campos de la bd
        $linea = $campo['lin_descripcion'];
        $marca = $campo['mar_descripcion'];
        $cantidad = $campo['pro_stock'];
        $producto = $campo['pro_descripcion'];
Exemplo n.º 24
0
 /**
  * Init function
  */
 function __construct($json)
 {
     require 'mc_table.php';
     parent::__construct($json);
     // Get Config
     $conf = isset($_SESSION['pluginsConfig']) && isset($_SESSION['pluginsConfig']['export']) && isset($_SESSION['pluginsConfig']['export']['PDF']) ? $_SESSION['pluginsConfig']['export'] : array('PDF' => array());
     $defaultFont = isset($conf['PDF']['defaultFont']) ? $conf['PDF']['defaultFont'] : 'FreeSans';
     $defaultFontSize = isset($conf['PDF']['defaultFontSize']) ? $conf['PDF']['defaultFontSize'] : 9;
     $headerFont = isset($conf['PDF']['headerFont']) ? $conf['PDF']['headerFont'] : $defaultFont;
     $headerFontSize = isset($conf['PDF']['headerFontSize']) ? $conf['PDF']['headerFontSize'] : $defaultFontSize;
     $headerFontStyle = isset($conf['PDF']['headerFontStyle']) ? $conf['PDF']['headerFontStyle'] : '';
     $layerFont = isset($conf['PDF']['layerFont']) ? $conf['PDF']['layerFont'] : $defaultFont;
     $layerFontSize = isset($conf['PDF']['layerFontSize']) ? $conf['PDF']['layerFontSize'] : $defaultFontSize;
     $layerFontStyle = isset($conf['PDF']['layerFontStyle']) ? $conf['PDF']['layerFontStyle'] : '';
     // Write to table
     $pdf = new PDF_MC_Table();
     // only for tcpdf version >= 3
     // - font not well defined --> errors
     // - header and footer printed = lines on top and bottom
     $pdf->setPrintHeader(false);
     $pdf->setPrintFooter(false);
     $pdf->Open();
     $groups = (array) $this->jsonList[0];
     foreach ($groups as $grp) {
         $ret = $this->prepareData4PDF($grp);
         $colsPerc = $ret[0];
         $data = $ret[1];
         $header = $data['header'];
         $records = $data['records'];
         $pdfW = 180;
         // orientation detection
         $orientation = 'P';
         $colsum = $ret[2];
         $maxSize = max($headerFontSize, $defaultFontSize);
         $widthTmp = $colsum * $maxSize / 4;
         if ($widthTmp > 1.5 * $pdfW) {
             $pdfW = 270;
             $orientation = 'L';
         }
         $pdf->AddPage($orientation);
         $cols = array();
         foreach ($colsPerc as $cp) {
             $cols[] = $cp * $pdfW;
         }
         // add group name:
         $pdf->SetFont($layerFont, $layerFontStyle, $layerFontSize);
         $x = $pdf->GetX();
         $y = $pdf->GetY();
         $pdf->Cell(0, 0, $grp->description);
         $pdf->SetXY($x, $y + 9);
         // Calculate column widths
         $pdf->SetWidths($cols);
         // Add header
         $pdf->SetFont($headerFont, $headerFontStyle, $headerFontSize);
         $pdf->Row($header);
         // Add records
         $pdf->SetFont($defaultFont, '', $defaultFontSize);
         foreach ($records as $row) {
             $pdf->Row($row);
         }
     }
     $pdfFilePath = $this->tempFilePath . '.pdf';
     $this->tempFileLocation .= '.pdf';
     $pdf->Output($pdfFilePath, 'F');
 }
Exemplo n.º 25
0
                }
            }
        }
        $prezzoSenzaProvvigioni2[$k] = $prezzoSenzaProvvigioni / (($iva + 100) / 100);
        $sku[$k] = $item->getSku();
        $nome[$k] = $item->getName();
        $id_ordine[$k] = $check[$i];
        $totalePrezzoIvato = $totalePrezzoIvato + $prezzoIvato[$k];
        $totalePrezzoPercentuale = $totalePrezzoPercentuale + $prezzoPercentuale[$k];
        $totalePrezzoSenzaProvvigioni = $totalePrezzoSenzaProvvigioni + $prezzoSenzaProvvigioni2[$k];
        $k = $k + 1;
    }
}
define('EURO', chr(128));
$pdf = new PDF_MC_Table();
$pdf->AddPage();
$pdf->SetFont('Arial', 'B', 16);
$pdf->Cell(40, 7, 'NOTA VENDITA', 0, 1);
$pdf->Ln(7);
$pdf->SetWidths(array(22, 40, 30, 40, 30, 30));
srand(microtime() * 1000000);
$pdf->SetFont('Arial', 'B', 10);
$pdf->Row(array('ID ORDINE', 'PRODOTTO', 'PREZZO IVATO', 'PREZZO IMPONIBILE', '% 3C', 'DA FATT. A 3C'));
$pdf->SetFont('Arial', '', 10);
for ($i = 0; $i < count($sku); $i++) {
    $prodotto = $sku[$i] . "\n" . $nome[$i];
    $pdf->Row(array($id_ordine[$i], $prodotto, number_format($prezzoIvato[$i], 2, ",", "") . " " . EURO, $prezzoImponibile2[$i] . " " . EURO, $percentuale[$i] . " - " . number_format($prezzoPercentuale[$i], 2, ",", "") . " " . EURO, number_format($prezzoSenzaProvvigioni2[$i], 2, ",", "") . " " . EURO));
}
$pdf->SetFont('Arial', 'B', 10);
$pdf->Row(array("TOTALE", "", number_format($totalePrezzoIvato, 2, ",", "") . " " . EURO, number_format($totalePrezzoImponibile, 2, ",", "") . " " . EURO, number_format($totalePrezzoPercentuale, 2, ",", "") . " " . EURO, number_format($totalePrezzoSenzaProvvigioni, 2, ",", "") . " " . EURO));
$pdf->Output('nota_vendita.pdf', 'D');
Exemplo n.º 26
0
$_FONTSIZE = 10;
$pdf = new PDF_MC_Table();
$size = $pdf->_getpagesize('Legal');
$size[1] = 6;
$pdf->DefPageSize = $size;
$pdf->CurPageSize = $size;
$pdf->AddPage('L', array(94, 60));
//$pdf->AddPage('P',array(210,296));
$pdf->SetFont('helvetica', '', $_FONTSIZE);
$pdf->SetRightMargin($_HEIGHT);
$pdf->SetLeftMargin($_HEIGHT);
$pdf->SetAutoPageBreak(false, 0);
$pdf->Ln(0);
//$pdf->Image('../images/Logo.png',7,10,15,15);
$pdf->SetFont('Arial', 'B', 6);
$pdf->Cell(10, 5, "", "", 0, 'L');
$pdf->Cell(74, 5, "", "", 0, 'C');
$pdf->Cell(10, 5, "", "", 0, 'L');
$pdf->Ln();
$pdf->SetFont('Arial', 'B', 10);
$pdf->Cell(10, 5, "", "", 0, 'L');
$pdf->Cell(74, 5, "", "", 0, 'C');
$pdf->Cell(10, 5, "", "", 0, 'L');
$pdf->Ln();
$pdf->SetFont('Arial', '', 6);
$pdf->Cell(10, 5, "", "", 0, 'L');
$pdf->Cell(74, 5, "", "", 0, 'C');
$pdf->Cell(10, 5, "", "", 0, 'L');
$pdf->Ln(1);
$pdf->SetWidths(array(84, 10));
$pdf->SetAligns(array("L", "L", "C", "L"));
        $this->SetY(-15);
        //Arial italic 8
        $this->SetFont('Arial', 'I', 8);
        //Número de página
        $this->Cell(0, 10, 'Page ' . $this->PageNo() . '/{nb}', 0, 0, 'C');
    }
}
$pdf->FPDF('P', 'mm', 'A4');
//$pdf->Open();
$pdf->AliasNbPages();
$pdf->SetLeftMargin(15);
$pdf->PageNo();
//$pdf->SetTopMargin(0);
$pdf->AddPage();
$pdf->SetFont('Arial', '', 7);
$pdf->Cell(190, 10, 'REPORTE DE VENTA DE PRODUCTOS', 0, 0, 'C');
$pdf->Ln(10);
$pdf->Cell(150, 5, 'VENTAS REGISTRADAS DESDE EL ' . $_REQUEST['fecha'] . ' AL ' . $_REQUEST['fecha2'] . '', 0, 0, 'L');
$pdf->Ln(5);
$pdf->Cell(275, 5, '', 0, 0, 'C');
$pdf->Ln(5);
$pdf->SetWidths(array(12, 15, 25, 80, 20, 16, 16));
//srand(microtime()*1000000);
$pdf->Row(array('Nro', 'FECHA', 'TIPO PRODUCTO', 'DESCRIPCION', 'CANTIDAD', 'PRECIO', 'IMPORTE'));
$rs = $venta->ventas_listar_fecha($_REQUEST['fecha'], $_REQUEST['fecha2']);
if ($rs) {
    $j = 1;
    $suma_cantidad = 0;
    $suma_precio = 0;
    $suma_importe = 0;
    while ($campo = mysql_fetch_array($rs)) {
Exemplo n.º 28
0
$pdf->SetWidths(array(15, 165, 20));
$pdf->RowMultiBorderWithHeight(array("", "", ""), array('B', 'B', 'B'), 6);
$pdf->ln(2);
$pdf->SetFont('helvetica', '', 12);
$pdf->SetAligns(array("L", "L", "L"));
$pdf->SetWidths(array(40, 4, 80));
$pdf->ln(2);
$pdf->RowMultiBorderWithHeight(array("MERK DAGANG", ":", $items['company_brand']), array('', '', ''), 6);
$pdf->RowMultiBorderWithHeight(array("ALAMAT", ":", $items['brand_address_name'] . " " . $items['brand_address_no']), array('', '', ''), 6);
$pdf->SetAligns(array("L", "L", "L", "C"));
$pdf->SetWidths(array(40, 4, 80, 70));
$pdf->RowMultiBorderWithHeight(array("NPWPD", ":", $items['npwd'], "NOMOR PEMBAYARAN"), array('', '', '', 'BLTR'), 6);
$pdf->SetAligns(array("L", "L", "L"));
$pdf->SetWidths(array(40, 4, 80));
//$pdf->RowMultiBorderWithHeight(array("JENIS PAJAK",":",$items['items'][0]['vat_code']),array('','',''),6);
$pdf->Cell(40, 6, 'JENIS PAJAK', "", 0, 'l');
$pdf->Cell(4, 6, ':', "", 0, 'L');
$pdf->Cell(80, 6, $items['vat_code'], "", 0, 'L');
$pdf->SetFont('helvetica', 'B', 26);
$pdf->SetTextColor(255, 0, 0);
$pdf->Cell(70, 15, $no_bayar, "BLTR", 0, 'C');
$pdf->SetFont('helvetica', '', 12);
$pdf->SetTextColor(0, 0, 0);
$pdf->ln(6);
$pdf->RowMultiBorderWithHeight(array("MASA PAJAK", ":", $items['code']), array('', '', ''), 6);
$pdf->SetAligns(array("L", "L", "R"));
$pdf->SetWidths(array(40, 4, 40));
$pdf->RowMultiBorderWithHeight(array("JUMLAH (Rp)", ":", number_format($items['total_vat_amount'], 2, ",", ".")), array('', '', ''), 6);
$pdf->RowMultiBorderWithHeight(array("DENDA (Rp)", ":", number_format($items['total_penalty_amount'], 2, ",", ".")), array('', '', ''), 6);
$pdf->RowMultiBorderWithHeight(array("TOTAL (Rp)", ":", number_format($items['total_bayar'], 2, ",", ".")), array('', '', ''), 6);
$pdf->SetAligns(array("L", "L", "L"));
Exemplo n.º 29
0
<?php

define('FPDF_FONTPATH', 'fpdf/font/');
require 'mc_table.php';
$pdf = new PDF_MC_Table('P', 'cm', "Legal");
$pdf->Open();
$pdf->AddPage();
$pdf->AliasNbPages();
$pdf->SetMargins(1, 1, 1);
$pdf->SetFont('times', 'B', 12);
$pdf->Cell(0, 0.9, 'Laporan Barang', 0, 0, 'C');
$pdf->Ln();
$tgl = date('Y-m-d');
$pdf->SetFont('times', 'B', 8);
$pdf->SetFont('times', 'B', 10);
$pdf->SetWidths(array(1, 8, 1.8, 2.1));
$pdf->SetHeight(0.1);
$pdf->Row(array("NO", "NAMA", "SATUAN", "STOK"));
$pdf->SetFont('times', '', 10);
$pdf->Row(array("1", "Buku Tulis Matematika Kualitas ABCD Kiki 80 gram 1 Lusin ", "Lusin", "100"));
$pdf->Output();
?>

$pdf->FPDF('L', 'mm', 'A4');
//$pdf->Open();
$pdf->AliasNbPages();
$pdf->SetLeftMargin(15);
$pdf->PageNo();
//$pdf->SetTopMargin(0);
$pdf->AddPage();
$pdf->SetFont('Arial', '', 7);
$numeroresumen = $auxiliares->numeroresumen_nuevo();
if ($_REQUEST['empresa_remite'] == '0') {
    $empresa = "TODOS";
} else {
    $empresa = $empresas->devuelve_empresaremite($_REQUEST['empresa_remite']);
}
$cargo->nuevo_resumencentrocosto($numeroresumen, $_REQUEST['empresa_remite'], $_REQUEST['centrocosto']);
$pdf->Cell(270, 10, 'RESUMEN POR CENTRO DE COSTO Nº ' . $numeroresumen . '', 0, 0, 'C');
$pdf->Ln(10);
$pdf->Cell(50, 5, 'DE: PERUMAIL EXPRESS S.A.C.', 0, 0, 'L');
//$pdf->Ln(5);
$pdf->Cell(70, 5, 'PARA: ' . $empresa . '', 0, 0, 'L');
$pdf->Cell(70, 5, 'CENTRO COSTO: ' . $_REQUEST['centrocosto'] . '', 0, 0, 'L');
//$pdf->Ln(5);
$pdf->Cell(170, 5, 'FECHA: del ' . $_REQUEST['fechai'] . ' al ' . $_REQUEST['fechaf'] . '', 0, 0, 'L');
//fechas
$pdf->Ln(5);
$pdf->Cell(275, 5, '', 0, 0, 'C');
$pdf->Ln(5);
$pdf->SetWidths(array(7, 15, 25, 40, 12, 20, 15, 18, 20, 18, 18, 16, 16));
//srand(microtime()*1000000);
$pdf->Row(array('Nº', 'Fec. Emis.', 'Zona', 'Destino', 'Nº Guia', 'Tipo de Envio', 'Peso', '1er Kg.', 'Kg. Adicional', 'Volumen', 'Fragilidad', 'Embalaje', 'Importe'));
//			 $rs= $cargo->cargocourier_listar('','',$_REQUEST['empresa_remite'],$_REQUEST['fecha'],$_REQUEST['fechaf'],'5',$_REQUEST['centrocosto']);