2009-01-12 21:13:18 -08:00
|
|
|
<div class="quotes index">
|
|
|
|
|
<h2><?php __('Quotes');?></h2>
|
|
|
|
|
<p>
|
|
|
|
|
<?php
|
|
|
|
|
echo $paginator->counter(array(
|
|
|
|
|
'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
|
|
|
|
|
));
|
|
|
|
|
?></p>
|
|
|
|
|
<table cellpadding="0" cellspacing="0">
|
|
|
|
|
<tr>
|
|
|
|
|
<th><?php echo $paginator->sort('created');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('modified');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('id');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('enquiry_id');?></th>
|
2011-05-15 23:13:21 -07:00
|
|
|
<th><?php echo $paginator->sort('currency_id');?></th>
|
2009-01-12 21:13:18 -08:00
|
|
|
<th><?php echo $paginator->sort('revision');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('delivery_time');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('payment_terms');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('days_valid');?></th>
|
2011-05-15 23:13:21 -07:00
|
|
|
<th><?php echo $paginator->sort('date_issued');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('valid_until');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('delivery_point');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('exchange_rate');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('customs_duty');?></th>
|
|
|
|
|
<th><?php echo $paginator->sort('document_id');?></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"';
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
<tr<?php echo $class;?>>
|
|
|
|
|
<td>
|
|
|
|
|
<?php echo $quote['Quote']['created']; ?>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<?php echo $quote['Quote']['modified']; ?>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<?php echo $quote['Quote']['id']; ?>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
2011-05-15 23:13:21 -07:00
|
|
|
<?php echo $html->link($quote['Enquiry']['title'], array('controller' => 'enquiries', 'action' => 'view', $quote['Enquiry']['id'])); ?>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<?php echo $html->link($quote['Currency']['name'], array('controller' => 'currencies', 'action' => 'view', $quote['Currency']['id'])); ?>
|
2009-01-12 21:13:18 -08:00
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<?php echo $quote['Quote']['revision']; ?>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<?php echo $quote['Quote']['delivery_time']; ?>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<?php echo $quote['Quote']['payment_terms']; ?>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<?php echo $quote['Quote']['days_valid']; ?>
|
|
|
|
|
</td>
|
2011-05-15 23:13:21 -07:00
|
|
|
<td>
|
|
|
|
|
<?php echo $quote['Quote']['date_issued']; ?>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<?php echo $quote['Quote']['valid_until']; ?>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<?php echo $quote['Quote']['delivery_point']; ?>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<?php echo $quote['Quote']['exchange_rate']; ?>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<?php echo $quote['Quote']['customs_duty']; ?>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<?php echo $html->link($quote['Document']['id'], array('controller' => 'documents', 'action' => 'view', $quote['Document']['id'])); ?>
|
|
|
|
|
</td>
|
2009-01-12 21:13:18 -08:00
|
|
|
<td class="actions">
|
2011-05-15 23:13:21 -07:00
|
|
|
<?php echo $html->link(__('View', true), array('action' => 'view', $quote['Quote']['id'])); ?>
|
|
|
|
|
<?php echo $html->link(__('Edit', true), array('action' => 'edit', $quote['Quote']['id'])); ?>
|
|
|
|
|
<?php echo $html->link(__('Delete', true), array('action' => 'delete', $quote['Quote']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $quote['Quote']['id'])); ?>
|
2009-01-12 21:13:18 -08:00
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php endforeach; ?>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="paging">
|
|
|
|
|
<?php echo $paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
|
|
|
|
|
| <?php echo $paginator->numbers();?>
|
2011-05-15 23:13:21 -07:00
|
|
|
<?php echo $paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>
|
2009-01-12 21:13:18 -08:00
|
|
|
</div>
|
|
|
|
|
<div class="actions">
|
|
|
|
|
<ul>
|
2011-05-15 23:13:21 -07:00
|
|
|
<li><?php echo $html->link(__('New Quote', true), array('action' => 'add')); ?></li>
|
|
|
|
|
<li><?php echo $html->link(__('List Enquiries', true), array('controller' => 'enquiries', 'action' => 'index')); ?> </li>
|
|
|
|
|
<li><?php echo $html->link(__('New Enquiry', true), array('controller' => 'enquiries', 'action' => 'add')); ?> </li>
|
|
|
|
|
<li><?php echo $html->link(__('List Currencies', true), array('controller' => 'currencies', 'action' => 'index')); ?> </li>
|
|
|
|
|
<li><?php echo $html->link(__('New Currency', true), array('controller' => 'currencies', 'action' => 'add')); ?> </li>
|
|
|
|
|
<li><?php echo $html->link(__('List Documents', true), array('controller' => 'documents', 'action' => 'index')); ?> </li>
|
|
|
|
|
<li><?php echo $html->link(__('New Document', true), array('controller' => 'documents', 'action' => 'add')); ?> </li>
|
2009-01-12 21:13:18 -08:00
|
|
|
</ul>
|
|
|
|
|
</div>
|