cmc-sales/views/documents/get_attachments.ctp
2012-12-02 13:17:09 +11:00

24 lines
660 B
PHP

<table>
<thead>
<th></th>
<th>Filename</th>
<th>Name</th>
<th>Desc</th>
</thead>
<tbody>
<?php
foreach($attachments as $attachment) {
?>
<tr>
<td><?php echo $form->input('DocumentAttachment.id', array('type'=>'checkbox', 'value'=> $attachment['DocumentAttachment']['id'], 'label' => false)); ?></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>