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