cmc-sales/views/documents/generate_first_page.ctp
2012-06-17 16:35:54 +10:00

30 lines
1,003 B
PHP
Executable file

<p>Dear <?=$enquiry['Contact']['first_name']?>,</p>
<p>Thank you for your enquiry. The following quotation is for:</p>
<table>
<tr>
<td width="10%"><u><b>Item</b></u></td>
<td width="80%"><u><b>Description</b></u></td>
<td width="10%"><u><b>Quantity</b></u></td>
</tr>
<? foreach($document['LineItem'] as $li):?>
<tr>
<td valign="top" width="10%"><? if($li['option'] == 1) {
echo 'Option<br>';
}
?><?=$li['item_number']?></td>
<td width="80%"><?=$li['title'];?></td>
<td valign="top" width="10%"><?=$decimal->formatDecimal($li['quantity']);?></td>
</tr>
<? endforeach;?>
</table>
<p></p>
<p>If you have any further queries, please contact us at our office for assistance.</p>
<p>We look forward to your reply.</p>
<p>Regards,</p>
<?=$enquiry['User']['first_name'].' '.$enquiry['User']['last_name'];?><br />
<?=$enquiry['User']['job_title'];?><br />
<br />
<u><b>Attachments:</b></u><br />
CMC Technologies Terms & Conditions of Sale 1/7/06 (attached)<br />