| Server IP : 74.208.250.37 / Your IP : 216.73.216.233 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ubuntu 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64 User : miferval ( 1000) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/aprendizajeodisea/admin/views/user/ |
Upload File : |
<?php
/**
* users.php
* Pagina para lista de usuaruis
*/
?>
<a href="/admin/usuarios/add" class="btn btn-primary">Agregar Nuevo</a>
<table class="table_list widefat">
<thead>
<tr>
<th>Avatar</th>
<th>Usuario</th>
<th>Nombre</th>
<th>Estatus</th>
<th>Rol</th>
</tr>
</thead>
<?php
$i = 1;
foreach ($users_list->rows as $user){
!empty($user['image']) ?
$avatar = $user['image'] :
$avatar = $this->utility->get_gravatar($user['email'],50);
$i % 2 > 0 ? $class = "alternate" : $class = '';
$user['is_active'] == 1 ? $estatus = 'activo' : $estatus = 'inactivo';
?>
<tr class="<?php echo $class;?>">
<td>
<a href="/admin/usuarios/edit/<?php echo $user['user_id'];?>">
<img src="<?php echo $avatar;?>" width="50" />
</a>
</td>
<td>
<a href="/admin/usuarios/edit/<?php echo $user['user_id'];?>">
<?php echo $user['username']; ?>
</a>
</td>
<td><?php echo $user['firstname'].' '.$user['lastname']; ?></td>
<td><?php echo $estatus; ?></td>
<td><?php echo $user['role']; ?></td>
</tr>
<?php
$i++;
}
?>
</table>