<tbody>
            <?php 
if (count($lista) > 0) {
    ?>
            <?php 
    foreach ($lista as $row) {
        ?>
            <tr>
                <td width="20%">
                    <?php 
        echo $row["eme_c_nombre_emergencia"];
        ?>
                </td>
                <td width="10%" class="text-center">
                    <?php 
        echo badgeNombreAlarmaEstado($row["est_ia_id"]);
        ?>
 
                </td>
                <td width="10%" class="text-center">
                    <?php 
        echo nombreEmergenciaTipo($row["tip_ia_id"]);
        ?>
 
                </td>
                <td width="10%" class="text-center">
                    <?php 
        echo nivelEmergencia($row['eme_nivel']);
        ?>
                </td>
                <td width="20%"> 
<div class="col-xs-12">
    <div class="row">
        <div class="col-xs-12">

                <table class="table table-condensed table-hover table-bordered" style="margin-bottom: 0;">
                    <tbody>
                    <tr>
                        <td class="text-right text-bold bg-primary bg-primary" width="25%" >Nombre Evento</td>
                        <td class="text-left active active" width="25%" ><?php 
echo $emergencia->eme_c_nombre_emergencia;
?>
</td>

                        <td class="text-right text-bold bg-primary" width="25%" >Estado Evento</td>
                        <td class="text-left active" width="25%" ><?php 
echo badgeNombreAlarmaEstado($emergencia->est_ia_id);
?>
</td>
                    </tr>
                    <tr>
                        <td class="text-right text-bold bg-primary" >Origen de InformaciĆ³n</td>
                        <td class="text-left active" ><?php 
echo $emergencia->eme_c_nombre_informante;
?>
</td>

                        <td class="text-right text-bold bg-primary" >Fecha Evento</td>
                        <td class="text-left active" ><?php 
echo ISODateTospanish($emergencia->eme_d_fecha_emergencia);
?>
</td>