read.tpl 973 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {extends file='main.tpl'}
  2. {block name="title"}
  3. <title>Listar usuarios</title>
  4. {/block}
  5. {block name="content"}
  6. <a href="users.php?page=create">Crear nuevo</a>
  7. <!-- Table maintanances -->
  8. <table>
  9. <tr>
  10. <th>Name</th>
  11. <th>Rol</th>
  12. <th>¿habilitado?</th>
  13. <th>Se creó en</th>
  14. </tr>
  15. {foreach key=key item=item from=$users}
  16. <tr>
  17. <td>{$item.name}</td>
  18. {if $item.rol=='1'}
  19. <td>Cliente</td>
  20. {/if}
  21. {if $item.rol=='0'}
  22. <td>Admin</td>
  23. {/if}
  24. {if $item.softDelete=='1'}
  25. <td>No</td>
  26. {/if}
  27. {if $item.softDelete=='0'}
  28. <td>Si</td>
  29. {/if}
  30. <td>
  31. {$item.createdAt|date_format:"%d/%m/%y"} {$item.createdAt|date_format:"%I:%M%p"}
  32. </td>
  33. <td>
  34. <a href="users.php?page=update&id={$item.id}&update=0">
  35. </a>
  36. </td>
  37. </tr>
  38. {/foreach}
  39. </table>
  40. {/block}