Пример #1
0
    ?>
<div class="container principal">
    <div class="row">
        <h3>Listado de Usuarios</h3>
        <div class="col-md-12">
            <form role="form" method="post" action="controller/usuario/usuario_habilitacion.php">
                <table class="table">
                    <tr>
                        <th>ID</th>
                        <th>Usuario</th>
                        <th>Email</th>
                        <th>Habilitado</th>
                    </tr>
                    <?php 
    $usuarioRepository = new UsuarioRepository();
    $usuarios = $usuarioRepository->getAll();
    foreach ($usuarios as $u) {
        ?>
                    <tr>
                        <td>
                            <?php 
        echo $u->getId();
        ?>
                        </td>
                        <td>
                            <?php 
        echo $u->getUsername();
        ?>
                        </td>
                        <td>
                            <?php