list.php 757 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19

<input type="button" value="Cadastrar" onClick="location.href='?module=usuario&controller=usuario&action=create'"/>
<table border ='1'>
		<thead>
			<tr>
				<th>Carteirinha</th>
				<th>Nome</th>
				<th>Email</th>
				<th colspan="2">Ação</th>
			</tr>
		</thead>
		<?php
		
		foreach ($this->data['users'] as $user)
		{	
			?>
			<tr>
			<th><?php echo $user->getCarteirinha()?></th>
			<th><?php echo $user->getNome()?></th>
20
			<th><?php echo $user->getTipoUsuario()->getNome()?></th>
21 22 23 24 25 26 27
			<th><a href='?module=usuario&controller=usuario&action=update&id=<?php echo $user->getId()?>'>Editar</a></th>
			<th><a href='?module=usuario&controller=usuario&action=delete&id=<?php echo $user->getId()?>'>Remover</a></th>
			</tr>
			<?php
		}
		?>		
	</table>