$io_fun_srh->uf_load_seguridad("SRH","sigesp_srh_p_requisitos_minimos.php",$ls_permisos,$la_seguridad,$la_permisos); $ls_logusr=$_SESSION["la_logusr"]; $ls_salida = ""; if (isset($_GET['valor'])) { $evento=$_GET['valor']; if($evento=="createXML") { $ls_codper="%%"; $ls_fecha1=$_REQUEST['txtfechades']; $ls_fecha2=$_REQUEST['txtfechahas']; header('Content-type:text/xml'); print $io_requisitos_minimos->uf_srh_buscar_requisitos_minimos($ls_codper,$ls_fecha1,$ls_fecha2); } elseif($evento=="buscar") { $ls_codper="%".utf8_encode($_REQUEST['txtcodper'])."%"; $ls_fecha1=$_REQUEST['txtfechades']; $ls_fecha2=$_REQUEST['txtfechahas']; header('Content-type:text/xml'); print $io_requisitos_minimos->uf_srh_buscar_requisitos_minimos($ls_codper,$ls_fecha1,$ls_fecha2); } }