Mini Shell
<fieldset class="box">
<legend>Contatos download tabela (<?PHP echo $total; ?> Registros)</legend>
<table class="tables">
<thead>
<tr>
<td><?PHP echo $this->Paginator->sort('nome','Nome'); ?></td>
<td><?PHP echo $this->Paginator->sort('email','E-mail'); ?></td>
<td><?PHP echo $this->Paginator->sort('telefone','Telefone'); ?></td>
<td class="created"><?PHP echo $this->Paginator->sort('created','Enviado em'); ?></td>
<td class="delete"> </td>
</tr>
</thead>
<tbody>
<?PHP
foreach($posts as $post){
$post = array_shift($post);
?>
<tr>
<td><?PHP echo $post['nome']; ?></td>
<td><?PHP echo $post['email']; ?></td>
<td><?PHP echo $post['telefone']; ?></td>
<td><?PHP echo $post['cdate']; ?></td>
<td><?PHP echo $this->Html->link('Excluir',array('action'=>'delete',$post['id']),null,'Tem certeza que deseja excluir?'); ?></td>
</tr>
<?PHP } ?>
</tbody>
</table>
<?PHP echo $this->element("Painel.paginator"); ?>
</fieldset>
Zerion Mini Shell 1.0