Mini Shell
<fieldset class="box">
<legend>Envios de foto (<?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><?PHP echo $this->Paginator->sort('foto','Foto'); ?></td>
<td class="created"><?PHP echo $this->Paginator->sort('created','Enviado em'); ?></td>
<!--<td class="delete"> </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 if($post['foto']){ ?>
<a href="<?PHP echo $this->Html->url('/'.$post['foto'],true); ?>" target="_blank">Ver foto</a>
<?PHP } ?>
</td>
<td><?PHP echo $post['cdate']; ?></td>
<!--<td><?PHP // echo $this->Html->link('Ver',array('action'=>'view',$post['id'])); ?></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