  <table>
  <thead>
  <th>Add</td>
  <th>Filename</th>
  <th>Name</th>
  <th>Desc</th>
  </thead>
  <tbody>
<?php 
  foreach($attachments as $attachment) {
?>
  <tr>
  <td>
  <input name="data[DocumentAttachment][attachment_id][]" type="checkbox" value="<?php echo $attachment['Attachment']['id']; ?>">
  </td>
  <td>  
  <?php echo $html->link($attachment['Attachment']['filename'], '/attachments/view/'.$attachment['Attachment']['id']); ?>
  </td>  
  <td><?php echo $attachment['Attachment']['name']; ?></td>
  <td><?php echo $attachment['Attachment']['description']; ?></td>
</tr>
<?php } ?>
</tbody> 
</table>
