51 lines
1.7 KiB
Plaintext
51 lines
1.7 KiB
Plaintext
|
|
<div class="customerCategories index">
|
||
|
|
<h2><?php __('CustomerCategories');?></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('name');?></th>
|
||
|
|
<th class="actions"><?php __('Actions');?></th>
|
||
|
|
</tr>
|
||
|
|
<?php
|
||
|
|
$i = 0;
|
||
|
|
foreach ($customerCategories as $customerCategory):
|
||
|
|
$class = null;
|
||
|
|
if ($i++ % 2 == 0) {
|
||
|
|
$class = ' class="altrow"';
|
||
|
|
}
|
||
|
|
?>
|
||
|
|
<tr<?php echo $class;?>>
|
||
|
|
<td>
|
||
|
|
<?php echo $customerCategory['CustomerCategory']['id']; ?>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<?php echo $customerCategory['CustomerCategory']['name']; ?>
|
||
|
|
</td>
|
||
|
|
<td class="actions">
|
||
|
|
<?php echo $html->link(__('View', true), array('action'=>'view', $customerCategory['CustomerCategory']['id'])); ?>
|
||
|
|
<?php echo $html->link(__('Edit', true), array('action'=>'edit', $customerCategory['CustomerCategory']['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 CustomerCategory', true), array('action'=>'add')); ?></li>
|
||
|
|
<li><?php echo $html->link(__('List Customers', true), array('controller'=> 'customers', 'action'=>'index')); ?> </li>
|
||
|
|
<li><?php echo $html->link(__('New Customer', true), array('controller'=> 'customers', 'action'=>'add')); ?> </li>
|
||
|
|
</ul>
|
||
|
|
</div>
|