38 lines
961 B
PHP
38 lines
961 B
PHP
<?php if (!empty($quotes)):?>
|
|
<table cellpadding = "0" cellspacing = "0" class="quotetable">
|
|
<tr>
|
|
<th><?php __('Revision'); ?></th>
|
|
<th><?php __('Created'); ?></th>
|
|
<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;?>>
|
|
<td><?php echo $quote['revision'];?></td>
|
|
<td><?php echo $time->nice($quote['created']);?></td>
|
|
<td class="actions">
|
|
<?php echo $html->link(__('View', true), array('controller'=> 'quotes', 'action'=>'view', $quote['id'])); ?>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</table>
|
|
<?php endif; ?>
|
|
|
|
<div class="actions">
|
|
<ul>
|
|
<li><?php echo $html->link(__('New Quote', true), array('controller'=> 'quotes', 'action'=>'add/enquiryid:'.$enquiry['Enquiry']['id']));?> </li>
|
|
</ul>
|
|
</div>
|
|
|