<div class="productOptions index">
<h2><?php __('ProductOptions');?></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('id');?></th>
	<th><?php echo $paginator->sort('product_id');?></th>
	<th><?php echo $paginator->sort('product_options_category_id');?></th>
	<th><?php echo $paginator->sort('title');?></th>
	<th><?php echo $paginator->sort('description');?></th>
	<th><?php echo $paginator->sort('model_number');?></th>
	<th><?php echo $paginator->sort('default');?></th>
	<th><?php echo $paginator->sort('cost_price');?></th>
	<th><?php echo $paginator->sort('exchange_rate');?></th>
	<th><?php echo $paginator->sort('our_discount');?></th>
	<th><?php echo $paginator->sort('packing_each');?></th>
	<th><?php echo $paginator->sort('shipping_weight_each');?></th>
	<th><?php echo $paginator->sort('shipping_cost_each');?></th>
	<th><?php echo $paginator->sort('duty');?></th>
	<th><?php echo $paginator->sort('customs');?></th>
	<th><?php echo $paginator->sort('finance');?></th>
	<th><?php echo $paginator->sort('misc_cost');?></th>
	<th><?php echo $paginator->sort('sell_price');?></th>
	<th><?php echo $paginator->sort('notes');?></th>
	<th class="actions"><?php __('Actions');?></th>
</tr>
<?php
$i = 0;
foreach ($productOptions as $productOption):
	$class = null;
	if ($i++ % 2 == 0) {
		$class = ' class="altrow"';
	}
?>
	<tr<?php echo $class;?>>
		<td>
			<?php echo $productOption['ProductOption']['id']; ?>
		</td>
		<td>
			<?php echo $html->link($productOption['Product']['title'], array('controller' => 'products', 'action' => 'view', $productOption['Product']['id'])); ?>
		</td>
		<td>
			<?php echo $html->link($productOption['ProductOptionsCategory']['name'], array('controller' => 'product_options_categories', 'action' => 'view', $productOption['ProductOptionsCategory']['id'])); ?>
		</td>
		<td>
			<?php echo $productOption['ProductOption']['title']; ?>
		</td>
		<td>
			<?php echo $productOption['ProductOption']['description']; ?>
		</td>
		<td>
			<?php echo $productOption['ProductOption']['model_number']; ?>
		</td>
		<td>
			<?php echo $productOption['ProductOption']['default']; ?>
		</td>
		<td>
			<?php echo $productOption['ProductOption']['cost_price']; ?>
		</td>
		<td>
			<?php echo $productOption['ProductOption']['exchange_rate']; ?>
		</td>
		<td>
			<?php echo $productOption['ProductOption']['our_discount']; ?>
		</td>
		<td>
			<?php echo $productOption['ProductOption']['packing_each']; ?>
		</td>
		<td>
			<?php echo $productOption['ProductOption']['shipping_weight_each']; ?>
		</td>
		<td>
			<?php echo $productOption['ProductOption']['shipping_cost_each']; ?>
		</td>
		<td>
			<?php echo $productOption['ProductOption']['duty']; ?>
		</td>
		<td>
			<?php echo $productOption['ProductOption']['customs']; ?>
		</td>
		<td>
			<?php echo $productOption['ProductOption']['finance']; ?>
		</td>
		<td>
			<?php echo $productOption['ProductOption']['misc_cost']; ?>
		</td>
		<td>
			<?php echo $productOption['ProductOption']['sell_price']; ?>
		</td>
		<td>
			<?php echo $productOption['ProductOption']['notes']; ?>
		</td>
		<td class="actions">
			<?php echo $html->link(__('View', true), array('action' => 'view', $productOption['ProductOption']['id'])); ?>
			<?php echo $html->link(__('Edit', true), array('action' => 'edit', $productOption['ProductOption']['id'])); ?>
			<?php echo $html->link(__('Delete', true), array('action' => 'delete', $productOption['ProductOption']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $productOption['ProductOption']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
</table>
</div>
<div class="paging">
	<?php echo $paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
 | 	<?php echo $paginator->numbers();?>
	<?php echo $paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('New ProductOption', true), array('action' => 'add')); ?></li>
		<li><?php echo $html->link(__('List Products', true), array('controller' => 'products', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Product', true), array('controller' => 'products', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('List Product Options Categories', true), array('controller' => 'product_options_categories', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Product Options Category', true), array('controller' => 'product_options_categories', 'action' => 'add')); ?> </li>
	</ul>
</div>
