function jsaGetListadoDeAvisos($tipo, $fecha_inicial, $fecha_final) { $tipo = $tipo == SYS_TODAS ? false : $tipo; $xF = new cFecha(); $xAl = new cAml_risk_register(); $xlistas = new cSQLListas(); $xBtn = new cHButton(); $xImg = new cHImg(); $fecha_inicial = $xF->getFechaISO($fecha_inicial); $fecha_final = $xF->getFechaISO($fecha_final); $sql = $xlistas->getListadoDeRiesgosConfirmados(false, false, false, $tipo, false, " AND (`aml_risk_register`.`estado_de_envio` =0) AND (`aml_risk_register`.`fecha_de_checking` =0) "); $xT = new cTabla($sql); //setLog($sql); $xT->OButton("TR.Dictaminar", "jsModificarEstatus(_REPLACE_ID_)", $xT->ODicIcons()->REPORTE); $xT->OButton("TR.Modificar", "jsEditarRiesgo(_REPLACE_ID_)", $xT->ODicIcons()->EDITAR); //$xT->addTool(1); $xT->setKeyField($xAl->getKey()); $xT->setKeyTable($xAl->get()); return $xT->Show(); }