Linux server-604606.appsiete.com 3.10.0-1160.139.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Nov 3 13:30:41 UTC 2025 x86_64
Apache
: 162.240.172.200 | : 216.73.216.32
14 Domain
7.3.33
gujo45me
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
gujo45me /
public_html /
mueblinnovac /
pdf /
[ HOME SHELL ]
Name
Size
Permission
Action
PDF417
[ DIR ]
drwxr-xr-x
fpdf
[ DIR ]
drwxr-xr-x
image
[ DIR ]
drwxr-xr-x
letras
[ DIR ]
drwxr-xr-x
phpexcel
[ DIR ]
drwxr-xr-x
phpmailer
[ DIR ]
drwxr-xr-x
phpqrcode
[ DIR ]
drwxr-xr-x
ComprobanteDeliveryCorreo.php
12.86
KB
-rw-r--r--
comprobante.pdf
128.43
KB
-rw-r--r--
comprobante_delivery.pdf
117.91
KB
-rw-r--r--
config.php
479
B
-rw-r--r--
enviaCorreo.php
24.32
KB
-rw-r--r--
enviaCorreoNota.php
22.84
KB
-rw-r--r--
imprimeA4.php
22.52
KB
-rw-r--r--
imprimeDeliveryA4.php
11.45
KB
-rw-r--r--
imprimeDeliveryTicket.php
10.35
KB
-rw-r--r--
imprimeGuia.php
16.88
KB
-rw-r--r--
imprimeGuiaTransportista.php
17.87
KB
-rw-r--r--
imprimeGuiaTransportista2.php
17.33
KB
-rw-r--r--
imprimeHistorialTicket.php
9.76
KB
-rw-r--r--
imprimeNotaA4.php
19.58
KB
-rw-r--r--
imprimeProformaA4.php
11.89
KB
-rw-r--r--
imprimeProformaTicket.php
11.57
KB
-rw-r--r--
imprimeReciboA4.php
11.63
KB
-rw-r--r--
imprimeReciboTicket.php
10.67
KB
-rw-r--r--
imprimeTicket.php
20.13
KB
-rw-r--r--
listaClientes.php
4.9
KB
-rw-r--r--
listaGuia.php
6.01
KB
-rw-r--r--
listaProductos.php
5.48
KB
-rw-r--r--
listaProveedores.php
4.74
KB
-rw-r--r--
reporteBajas.php
5.59
KB
-rw-r--r--
reporteCompras.php
5.96
KB
-rw-r--r--
reporteComprobantes.php
23.34
KB
-rw-r--r--
reporteContingencias.php
23.47
KB
-rw-r--r--
reporteDelivery.php
5.75
KB
-rw-r--r--
reporteDeudores.php
6.58
KB
-rw-r--r--
reporteEgresos.php
5.14
KB
-rw-r--r--
reporteFabricados.php
6.76
KB
-rw-r--r--
reporteGuias.php
8.05
KB
-rw-r--r--
reporteHistorialProducto.php
12.83
KB
-rw-r--r--
reporteKardex.php
10.14
KB
-rw-r--r--
reporteKardex_pedidos.php
10.16
KB
-rw-r--r--
reporteOperario.php
6.81
KB
-rw-r--r--
reportePedidos.php
5.76
KB
-rw-r--r--
reporteProductoPersonal.php
7.22
KB
-rw-r--r--
reporteProductosComprados.php
7.79
KB
-rw-r--r--
reporteProductosPedidos.php
9.4
KB
-rw-r--r--
reporteProductosVencidos.php
8.07
KB
-rw-r--r--
reporteProductosVendidos.php
10.08
KB
-rw-r--r--
reporteProductosVendidosTodo.p...
9.06
KB
-rw-r--r--
reporteSire_ventas_excel.php
20.6
KB
-rw-r--r--
reporteSire_ventas_txt.php
10.32
KB
-rw-r--r--
reporteStock.php
7.43
KB
-rw-r--r--
reporteTipoImpuesto.php
5.93
KB
-rw-r--r--
reporteUsuarios.php
11.66
KB
-rw-r--r--
reporteUsuariosPedido.php
6.32
KB
-rw-r--r--
reporteVentas.php
6.32
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : reporteProductoPersonal.php
<?php include("config.php"); require_once("phpexcel/PHPExcel.php"); if (PHP_SAPI == 'cli') die('Este archivo solo se puede ver desde un navegador web'); // Se crea el objeto PHPExcel $objPHPExcel = new PHPExcel(); $id_local = $_GET['id_local']; $id_usuario = $_GET['id_usuario']; $tipo = $_GET['tipo']; $fecha1 = $_GET['fecha1']; $fecha2 = $_GET['fecha2']; $conexion = new mysqli($db_host,$db_user,$db_pass,$db_name); if (mysqli_connect_errno()) { printf("La conexión con el servidor de base de datos falló: %s\n", mysqli_connect_error()); exit(); } if ($tipo == 'VENTA') { $consulta = 'SELECT p.nombre, p.descripcion, p.precio, p.precio_mayorista, p.codigo_barras, p.fecha_vencimiento, p.situacion_impuesto, p.tipo_producto ,SUM(dv.cantidad) AS cantidad, CONCAT(u.nombres, " ", u.apellidos) AS usuario, CONCAT(l.nombre, " (", l.direccion, ")") AS local FROM detalle_venta dv INNER JOIN productos p ON p.id_producto = dv.id_producto INNER JOIN ventas v ON v.id_venta = dv.id_venta INNER JOIN local l ON l.id_local = v.id_local INNER JOIN usuarios u ON u.id_usuario = v.id_usuario WHERE (v.created_at >= "'.$fecha1.' 00:00:00" AND v.created_at <= "'.$fecha2.' 23:59:59") AND v.id_local="'.$id_local.'" AND v.id_nota IS NULL AND v.id_usuario = "'.$id_usuario.'" AND v.estado="1" GROUP BY dv.id_producto'; } if ($tipo != 'VENTA') { $consulta = 'SELECT p.nombre, p.descripcion, p.precio, p.precio_mayorista, p.codigo_barras, p.fecha_vencimiento, p.situacion_impuesto, p.tipo_producto ,SUM(dv.cantidad) AS cantidad, CONCAT(u.nombres, " ", u.apellidos) AS usuario, CONCAT(l.nombre, " (", l.direccion, ")") AS local FROM detalle_proforma dv INNER JOIN productos p ON p.id_producto = dv.id_producto INNER JOIN proformas v ON v.id_proforma = dv.id_proforma INNER JOIN local l ON l.id_local = v.id_local INNER JOIN usuarios u ON u.id_usuario = v.id_usuario WHERE (v.created_at >= "'.$fecha1.' 00:00:00" AND v.created_at <= "'.$fecha2.' 23:59:59") AND v.id_local="'.$id_local.'" AND v.id_usuario = "'.$id_usuario.'" AND v.tipo = "'.$tipo.'" AND v.estado="1" GROUP BY dv.id_producto'; } $resultado = $conexion->query($consulta); if($resultado->num_rows > 0 ){ // Propiedades del documento $objPHPExcel->getProperties()->setCreator("Seven") ->setLastModifiedBy("Seven") ->setTitle("Reporte de PRODUCTOS") ->setSubject("Reporte de PRODUCTOS") ->setDescription("Reporte de PRODUCTOS") ->setKeywords("office 2010 openxml php") ->setCategory("Archivo con resultado de reporte"); // Combino las celdas desde A1 hasta F1 $objPHPExcel->setActiveSheetIndex(0)->mergeCells('A1:K1'); $objPHPExcel->setActiveSheetIndex(0) ->setCellValue('A1', 'REPORTE DE PRODUCTOS DE '.$tipo.'S POR PERSONAL ENTRE : '.$fecha1.' & '.$fecha2) ->setCellValue('A2', 'ITEM') ->setCellValue('B2', 'NOMBRE DEL PRODUCTO') ->setCellValue('C2', 'MARCA') ->setCellValue('D2', 'CODIGO DE BARRAS') ->setCellValue('E2', 'PRECIO VENTA UNITARIO') ->setCellValue('F2', 'PRECIO VENTA POR MAYOR') ->setCellValue('G2', 'FECHA DE VENCIMIENTO') ->setCellValue('H2', 'SITUACION DE IMPUESTO') ->setCellValue('I2', 'TIPO DE PRODUCTO') ->setCellValue('J2', 'CANTIDAD DESPACHADA') ->setCellValue('K2', 'PERSONAL QUE REGISTRO') ->setCellValue('L2', 'LOCAL DONDE SE REGISTRO'); // Fuente de la primera fila en negrita $boldArray = array('font' => array('bold' => true,),'alignment' => array('horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_CENTER)); $objPHPExcel->getActiveSheet()->getStyle('A1:L2')->applyFromArray($boldArray); //Ancho de las columnas $objPHPExcel->getActiveSheet()->getColumnDimension('A')->setWidth(8); $objPHPExcel->getActiveSheet()->getColumnDimension('B')->setWidth(100); $objPHPExcel->getActiveSheet()->getColumnDimension('C')->setWidth(25); $objPHPExcel->getActiveSheet()->getColumnDimension('D')->setWidth(25); $objPHPExcel->getActiveSheet()->getColumnDimension('E')->setWidth(30); $objPHPExcel->getActiveSheet()->getColumnDimension('F')->setWidth(30); $objPHPExcel->getActiveSheet()->getColumnDimension('G')->setWidth(25); $objPHPExcel->getActiveSheet()->getColumnDimension('H')->setWidth(25); $objPHPExcel->getActiveSheet()->getColumnDimension('I')->setWidth(25); $objPHPExcel->getActiveSheet()->getColumnDimension('J')->setWidth(25); $objPHPExcel->getActiveSheet()->getColumnDimension('K')->setWidth(50); $objPHPExcel->getActiveSheet()->getColumnDimension('L')->setWidth(80); $i = 3; //Numero de fila donde se va a comenzar a rellenar $suma = 0; $j = 1; while ($fila = $resultado->fetch_array()) { $objPHPExcel->setActiveSheetIndex(0) ->setCellValue('A'.$i, $j) ->setCellValue('B'.$i, utf8_encode($fila['nombre'])) ->setCellValue('C'.$i, utf8_encode($fila['descripcion'])) ->setCellValue('D'.$i, $fila['codigo_barras']) ->setCellValue('E'.$i, $fila['precio']) ->setCellValue('F'.$i, $fila['precio_mayorista']) ->setCellValue('G'.$i, $fila['fecha_vencimiento']) ->setCellValue('H'.$i, utf8_encode($fila['situacion_impuesto'])) ->setCellValue('I'.$i, utf8_encode($fila['tipo_producto'])) ->setCellValue('J'.$i, $fila['cantidad']) ->setCellValue('K'.$i, utf8_encode($fila['usuario'])) ->setCellValue('L'.$i, utf8_encode($fila['local'])); $i++; $j++; } $color_style_array = [ 'font' => [ 'color' => ['rgb' => 'FF0000'], 'bold' => true, ], 'alignment' => [ 'horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_CENTER ] ]; $objPHPExcel->getActiveSheet()->getStyle('J3:J'.$i)->applyFromArray($color_style_array); $objPHPExcel->getActiveSheet()->getStyle('E3:E'.$i)->getNumberFormat()->setFormatCode('0.00'); $objPHPExcel->getActiveSheet()->getStyle('F3:F'.$i)->getNumberFormat()->setFormatCode('0.00'); $i = $i-1; $H = "L".$i; $rango = "A2:$H"; $styleArray = array('font' => array( 'name' => 'Arial','size' => 10), 'borders'=>array('allborders'=>array('style'=> PHPExcel_Style_Border::BORDER_THIN,'color'=>array('argb' => 'FFF'))) ); $objPHPExcel->getActiveSheet()->getStyle($rango)->applyFromArray($styleArray); // Cambiar el nombre de hoja de cálculo $objPHPExcel->getActiveSheet()->setTitle('Reporte de Productos'); // Establecer índice de hoja activa a la primera hoja , por lo que Excel abre esto como la primera hoja $objPHPExcel->setActiveSheetIndex(0); // Se manda el archivo al navegador web, con el nombre que se indica, en formato 2007 header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'); header('Content-Disposition: attachment;filename="Reporte_productos_vendidos_personal.xlsx"'); header('Cache-Control: max-age=0'); $objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007'); $objWriter->save('php://output'); exit; } else{ print_r('No hay resultados para mostrar'); }
Close