2009-01-12 21:13:18 -08:00
|
|
|
<?php if (!empty($quotes)):?>
|
|
|
|
|
<table cellpadding = "0" cellspacing = "0" class="quotetable">
|
|
|
|
|
<tr>
|
|
|
|
|
<th><?php __('Revision'); ?></th>
|
2009-11-18 15:23:21 -08:00
|
|
|
<th><?php __('Sale Currency'); ?></th>
|
|
|
|
|
<th><?php __('Date / Time Created'); ?></th>
|
|
|
|
|
|
2009-01-12 21:13:18 -08:00
|
|
|
<th class="actions"><?php __('Actions');?></th>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php
|
|
|
|
|
$i = 0;
|
|
|
|
|
foreach ($quotes as $quote):
|
|
|
|
|
$class = null;
|
|
|
|
|
|
|
|
|
|
if ($i % 2 == 0) {
|
|
|
|
|
$class = ' class="altrow"';
|
|
|
|
|
}
|
|
|
|
|
if($i == 0) {
|
|
|
|
|
$class = ' class="mostrecent"';
|
|
|
|
|
}
|
|
|
|
|
$i++;
|
|
|
|
|
?>
|
|
|
|
|
<tr<?php echo $class;?>>
|
2009-08-13 19:09:47 -07:00
|
|
|
<td><?php echo $quote['Quote']['revision'];?></td>
|
2009-11-18 15:23:21 -08:00
|
|
|
<td><?php echo $quote['Currency']['iso4217'];?></td>
|
2009-08-13 19:09:47 -07:00
|
|
|
<td><?php echo $time->nice($quote['Quote']['created']);?></td>
|
2009-01-12 21:13:18 -08:00
|
|
|
<td class="actions">
|
2009-11-18 15:23:21 -08:00
|
|
|
|
2011-05-24 02:11:07 -07:00
|
|
|
<?php echo $html->link(__('View', true), array('controller'=> 'documents', 'action'=>'view', $quote['Quote']['document_id'])); ?>
|
2011-05-24 03:15:21 -07:00
|
|
|
<?php //echo $html->link(__('Revise', true), array('controller'=>'quotes', 'action'=>'revise', $quote['Quote']['id']));
|
|
|
|
|
?>
|
2010-03-10 15:32:00 -08:00
|
|
|
|
2009-11-18 15:23:21 -08:00
|
|
|
|
2009-01-12 21:13:18 -08:00
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php endforeach; ?>
|
|
|
|
|
</table>
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
|
|
<div class="actions">
|
|
|
|
|
<ul>
|
2011-05-16 20:19:32 -07:00
|
|
|
<li><?php echo $html->link(__('New Quote', true), array('controller'=> 'documents', 'action'=>'newQuote',$enquiry['Enquiry']['id']));?> </li>
|
2009-01-12 21:13:18 -08:00
|
|
|
</ul>
|
|
|
|
|
</div>
|
2009-08-05 22:14:38 -07:00
|
|
|
|