} catch (Exception $e) {
    echo "Ha ocurrido un error";
}
if ($estad != null) {
    foreach ($estad as $key => $bl) {
        $estadoI = $bl['estado_idEst'];
        ?>
        <tr>
        </tr>
        <?php 
    }
} else {
    echo "No hay datos";
}
try {
    $esta = $perfil->seleccionar_estadoR($usuario);
} catch (Exception $e) {
    echo "Ha ocurrido un error";
}
if ($esta != null) {
    foreach ($esta as $key => $bl) {
        $estadoR = $bl['estado_idEst'];
        ?>
        <tr>
        </tr>
        <?php 
    }
} else {
    echo "No hay datos";
}
try {
} catch (Exception $e) {
    echo "Ha ocurrido un error";
}
if ($estad != null) {
    foreach ($estad as $key => $bl) {
        $estadoI = $bl['estado_idEst'];
        ?>
        <tr>
        </tr>
        <?php 
    }
} else {
    echo "No hay datos";
}
try {
    $esta = $perfil->seleccionar_estadoR($NisPerfil);
} catch (Exception $e) {
    echo "Ha ocurrido un error";
}
if ($esta != null) {
    foreach ($esta as $key => $bl) {
        $estadoR = $bl['estado_idEst'];
        ?>
        <tr>
        </tr>
        <?php 
    }
} else {
    echo "No hay datos";
}
?>