<?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(); ?>
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ require_once '../../include/phprechnung.inc.php'; define('FPDF_FONTPATH', '../../include/font/'); define('EUR', chr(128)); require_once 'mc_table.php'; $pdf = new PDF_MC_Table(); $pdf->Open(); $pdf->AddPage(); $pdf->AliasNbPages(); $pdf->SetY(45); $pdf->SetFont($PDFFont, '', $PDFFontsize1); require_once 'pos_pdf.inc.php'; $pdf->Ln(); $pdf->SetFont($PDFFont, '', $PDFFontsize2); $pdf->SetWidths(array(50, 30)); $pdf->SetAligns(array('L', 'R')); // Total amount // if (isset($CompanyCurrency) && $CompanyCurrency == 'EUR') { $Currency = EUR; } else { $Currency = $CompanyCurrency; } if (isset($Type) && $Type == 'Booking_Details' or $Type == 'Customer_Booking_Details') { $pdf->SetFont($PDFFont, 'BU'); $pdf->Row(array($a['invoice_amount'] . ':', Format_Number($TotalAmount) . ' ' . $Currency)); } else { if (isset($Type) && $Type == 'Cashbook') {
$_HEIGHT = 4; $_BORDER = 0; $_FONT = 'Times'; $_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');
} } } $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');
//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)) { //cargamos a las variables los campos de la bd
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')); // SEGUNDA FILA $pdf->SetWidths(array(8, 55, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7)); $pdf->SetAligns(array('C', 'L', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'));
//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']; $pdf->Row(array($linea, $marca, $producto, $cantidad));
$pdf->Write(5, "Location"); $pdf->SetXY(75, 50); $pdf->Write(5, "Machine"); $pdf->SetXY(105, 50); $pdf->Write(5, "Serial #"); $pdf->SetXY(135, 50); $pdf->Write(5, "Program"); $pdf->SetXY(165, 50); $pdf->Write(5, "Problem"); $pdf->SetXY(190, 50); $pdf->Write(5, "Diagnosis"); $pdf->SetXY(220, 50); $pdf->Write(5, "Remarks"); $pdf->SetXY(250, 50); $pdf->Write(5, "System Engr."); $pdf->Ln(7); $query = "select * from reports order by report_id asc"; $result = odbc_exec($conn, $query); $counter = 1; $total = 0; while ($data = odbc_fetch_array($result)) { $report_id = $data['report_id']; $report_date = $data['report_date']; $report_location = $data['report_location']; $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'];
$_HEIGHT = 4; $_BORDER = 0; $_FONT = 'Times'; $_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 = 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); $pdf->Ln(4); //ciclo
$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])) { $pdf->Image("residentsnh/" . $arrResident[picture], 180, 10, 20);
$pdf->Write(5, "Location"); $pdf->SetXY(75, 50); $pdf->Write(5, "Machine"); $pdf->SetXY(105, 50); $pdf->Write(5, "Serial #"); $pdf->SetXY(135, 50); $pdf->Write(5, "Program"); $pdf->SetXY(165, 50); $pdf->Write(5, "Problem"); $pdf->SetXY(190, 50); $pdf->Write(5, "Diagnosis"); $pdf->SetXY(220, 50); $pdf->Write(5, "Remarks"); $pdf->SetXY(250, 50); $pdf->Write(5, "System Engr."); $pdf->Ln(7); for ($index = 0; $index < 7; $index++) { $total_no += $value[$index]; $array_list += array($days[$index] => $value[$index]); //GET VALUE FOR LINEGRAPH $query = "select * from reports where report_date = \n\t\t\t\tDATEADD(wk, DATEDIFF(wk,0,'" . $date_display . "'), " . $counter . ")\n\t\t\t\torder by day(report_date) asc"; $result = odbc_exec($conn, $query); while ($data = odbc_fetch_array($result)) { $recordCount++; $report_id = $data['report_id']; $report_date = $data['report_date']; $report_location = $data['report_location']; $machine = $data['machine']; $serial_no = $data['serial_no']; $program = $data['program']; $problem = $data['problem'];