return $xAML->getMessages(OUT_HTML); } $jxc->exportFunction('jsaGetListadoDeAvisos', array('idtipoderiesgo', 'idfecha-1', 'idfecha-2'), "#lstalertas"); $jxc->exportFunction('jsaConfirmRiesgo', array('idriesgo'), "#idmsg"); $jxc->exportFunction('jsaDescartarRiesgo', array('idriesgo', 'iddetalles'), "#idmsg"); $jxc->process(); echo $xHP->getHeader(); $jsb = new jsBasicForm(""); echo $xHP->setBodyinit(); $xFRM = new cHForm("frm_alertas", "./"); $xBtn = new cHButton(); $xTxt = new cHText(); $xDate = new cHDate(); $xSel = new cHSelect(); $jsb->setNameForm($xFRM->getName()); $selcat = $xSel->getCatalogoDeRiesgos(); $selcat->addEvent("onblur", "jsGetListadoAvisos()"); $selcat->addEvent("onchange", "jsGetListadoAvisos()"); $selcat->addEspOption(SYS_TODAS); $selcat->setOptionSelect(SYS_TODAS); $xFRM->addHElem($xDate->get($xFRM->lang("fecha inicial"), false, 1)); $xFRM->addHElem($xDate->get($xFRM->lang("fecha final"), false, 2)); $xFRM->addHElem($selcat->get($xFRM->lang(array("tipo de", "Riesgo")), true)); $xFRM->addSubmit("", "jsGetListadoAvisos()"); $xta = new cHTextArea(); $xFRM9 = new cHForm("frmupdateriesgo"); $xFRM9->addHElem("<div id='tx1'>" . $xta->get("iddetalles", "", "TR.Notas") . "</div>"); //$xFRM9->addObservaciones(); $xFRM9->addSubmit("", "jsGuardarDescarto()", "jsCancelarAccion()"); $xFRM->addHTML("<div class='inv' id='iduriesgo'>" . $xFRM9->get() . "</div>"); //$xFRM->addCreditBasico();