EVOLUTION-MANAGER
Edit File: movimiento_por_cuenta.rpt.php
<?php //===================================================================================================== //=====> INICIO_H include_once("../core/go.login.inc.php"); include_once("../core/core.error.inc.php"); include_once("../core/core.html.inc.php"); include_once("../core/core.init.inc.php"); $theFile = __FILE__; $permiso = getSIPAKALPermissions($theFile); if($permiso === false){ header ("location:../404.php?i=999"); } $_SESSION["current_file"] = addslashes( $theFile ); //<===== FIN_H $iduser = $_SESSION["log_id"]; //===================================================================================================== $xHP = new cHPage("TR.REPORTE DE OPERACIONES DE CAPTACION", HP_REPORT); $xL = new cSQLListas(); $xF = new cFecha(); $query = new MQL(); $subproducto = parametro("subproducto", SYS_TODAS, MQL_INT); $producto = parametro("producto", SYS_TODAS, MQL_INT); $operacion = parametro("operacion", SYS_TODAS, MQL_INT); $out = parametro("out", SYS_DEFAULT); $FechaInicial = parametro("on", false); $FechaInicial = parametro("fecha-0", $FechaInicial); $FechaInicial = ($FechaInicial == false) ? FECHA_INICIO_OPERACIONES_SISTEMA : $xF->getFechaISO($FechaInicial); $FechaFinal = parametro("off", false); $FechaFinal = parametro("fecha-1", $FechaFinal); $FechaFinal = ($FechaFinal == false) ? fechasys() : $xF->getFechaISO($FechaFinal); $senders = getEmails($_REQUEST); $sucursal = parametro("sucursal", SYS_TODAS, MQL_RAW); $sucursal = parametro("s", $sucursal, MQL_RAW); $BySuc = $xL->OFiltro()->PersonasPorSucursal($sucursal); $xHP->init(); $sql = $xL->getListadoDeMvtosDeCaptacion(false, false, $producto, $subproducto, $FechaInicial, $FechaFinal, $operacion, $BySuc); //exit($sql); $titulo = ""; $archivo = "reporte-de-captacion-del-$FechaInicial-al-$FechaFinal"; $xRPT = new cReportes($titulo); $xRPT->setFile($archivo); $xRPT->setOut($out); $xRPT->setSQL($sql); $xRPT->setTitle($xHP->getTitle()); //============ Reporte $xT = new cTabla($sql, 2); $xT->setTipoSalida($out); $body = $xRPT->getEncabezado($xHP->getTitle(), $FechaInicial, $FechaFinal); $xRPT->setBodyMail($body); $xRPT->addContent($body); $xT->setFootSum(array( 4 => "monto" )); //$xT->setEventKey("jsGoPanel"); //$xT->setKeyField("creditos_solicitud"); $xRPT->addContent( $xT->Show( ) ); //============ Agregar HTML //$xRPT->addContent( $xHP->init($jsEvent) ); //$xRPT->addContent( $xHP->end() ); $xRPT->setResponse(); $xRPT->setSenders($senders); echo $xRPT->render(true); ?>