1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
<table>
<thead>
<tr>
<th>Contact</th>
<th>Nom</th>
<th>Prenom</th>
<th>Adresse</th>
<th>Courriel</th>
</tr>
</thead>
<tbody>
<?php foreach ($contacts as $contact): ?>
<tr>
<td><a href="<?php echo url_for('carnetAdr/show?contact_id='.$contact->getContactId()) ?>"><?php echo $contact->getContactId() ?></a></td>
<td><?php echo $contact->getNom() ?></td>
<td><?php echo $contact->getPrenom() ?></td>
<td><?php echo $contact->getAdresse() ?></td>
<td><?php echo $contact->getCourriel() ?></td>une croix rouge
<td><?php echo link_to('supprimer le client ', 'carnetAdr/delete?contact_id='.$form->getObject()->getContactId(),
array('method' => 'supprimer', 'confirm' => 'supprimer ce client?')) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<li><?php echo link_to('Ajouter un client', url_for('carnetAdr/new') ) ?></li> |