$xCred = new cCredito($idsolicitud); $xCred->initCredito(); $acreditante = $xCred->getClaveDePersona(); $xFMT = new cFormato($formato); $xFMT->setCredito($idsolicitud); $xFMT->setProcesarVars(); echo $xFMT->get(); $mSQL = new cSQLListas(); $mql = new MQL(); $sql = $mSQL->getListadoDeAvales($idsolicitud, $acreditante); $rs = $mql->getDataRecord($sql); //setLog($sql); $forma = 5002; //$xAval = new cSocios_relaciones(); foreach ($rs as $rows) { echo "<br class='nuevapagina' />"; $persona = $rows["numero_socio"]; $idrelacion = $rows["num"]; $xSoc = new cSocio($persona); //$xRel = new cPersonasRelaciones($idrelacion); $xRel->init(); if ($xSoc->init() == true) { $xFMT2 = new cFormato($forma); $xFMT2->setCredito($idsolicitud); $xFMT2->setProcesarVars(array("aval_nombre_completo" => $xSoc->getNombreCompleto())); echo $xFMT2->get(); } } ?> </body> </html>
//header("Content-type: text/plain"); //===================================================================================================== //=====> 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("PAGARE", HP_REPORT); $oficial = elusuario($iduser); $idsolicitud = parametro("i", DEFAULT_CREDITO, MQL_INT); $idsolicitud = parametro("credito", $idsolicitud, MQL_INT); $idsolicitud = parametro("solicitud", $idsolicitud, MQL_INT); $formato = parametro("forma", 21, MQL_INT); $xHP->init(); $xForma = new cFormato($formato); $xForma->setCredito($idsolicitud); $xForma->setProcesarVars(); echo $xForma->get(); ?> </body> </html>
if ($permiso === false) { header("location:../404.php?i=999"); } $_SESSION["current_file"] = addslashes($theFile); //===================================================================================================== $xHP = new cHPage("REPORTE DE ", HP_REPORT); $xHP->setTitle($xHP->lang("catalogo de", "riesgo")); $oficial = elusuario($iduser); /** */ $xF = new cFecha(); $clave = isset($_GET["clave"]) ? $_GET["clave"] : SYS_NINGUNO; echo $xHP->getHeader(); echo $xHP->setBodyinit("initComponents();"); $xFMT = new cFormato(151); $xGar = new cCreditosGarantias($clave); $xGar->init(); $xFMT->setPersona($xGar->getClaveDePersona()); $xFMT->setCredito($xGar->getClaveDeCredito()); $xFMT->setGarantiaDeCredito($clave); $xFMT->setProcesarVars(); echo $xFMT->get(); echo $xHP->setBodyEnd(); ?> <script> function initComponents(){ window.print(); } </script> <?php $xHP->end();