<?php if(count($ugels)==0){ ?>
<tr class="danger">
    <td colspan="5">NO SE ENCUENTRAN REGISTROS</td>
</tr>
<?php } ?>
<?php $c=1; foreach ($ugels as $reg): ?>
<tr>
    <td><?php echo $c++; ?></td>
    <td><?php echo $reg->ugel_nombre; ?></td>
    <td><?php echo $reg->ugel_corto; ?></td>
    <td style="color:<?php echo $reg->esta_color; ?>">
        <b><?php echo $reg->esta_nombre; ?></b>
    </td>
    <td>
        <a href="#" class="blue">
            <span class="glyphicon glyphicon-pencil"></span>
            Editar
        </a>
        <a href="#" class="red">
            <span class="glyphicon glyphicon-trash"></span>
            Eliminar
        </a>
        <a href="#" class="green" onclick="get_administradores(<?php echo $reg->ugel_ide; ?>,'<?php echo $reg->ugel_corto; ?>')">
            <span class="glyphicon glyphicon-user"></span>
            Administradores
        </a>
    </td>
</tr>
<?php endforeach ?>