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();