55 lines
2.2 KiB
PHP
Executable file
55 lines
2.2 KiB
PHP
Executable file
<div class="freightServices index">
|
|
<h2><?php __('FreightServices');?></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('freight_forwarder_id');?></th>
|
|
<th><?php echo $paginator->sort('name');?></th>
|
|
<th class="actions"><?php __('Actions');?></th>
|
|
</tr>
|
|
<?php
|
|
$i = 0;
|
|
foreach ($freightServices as $freightService):
|
|
$class = null;
|
|
if ($i++ % 2 == 0) {
|
|
$class = ' class="altrow"';
|
|
}
|
|
?>
|
|
<tr<?php echo $class;?>>
|
|
<td>
|
|
<?php echo $freightService['FreightService']['id']; ?>
|
|
</td>
|
|
<td>
|
|
<?php echo $html->link($freightService['FreightForwarder']['name'], array('controller' => 'freight_forwarders', 'action' => 'view', $freightService['FreightForwarder']['id'])); ?>
|
|
</td>
|
|
<td>
|
|
<?php echo $freightService['FreightService']['name']; ?>
|
|
</td>
|
|
<td class="actions">
|
|
<?php echo $html->link(__('View', true), array('action' => 'view', $freightService['FreightService']['id'])); ?>
|
|
<?php echo $html->link(__('Edit', true), array('action' => 'edit', $freightService['FreightService']['id'])); ?>
|
|
<?php echo $html->link(__('Delete', true), array('action' => 'delete', $freightService['FreightService']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $freightService['FreightService']['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 FreightService', true), array('action' => 'add')); ?></li>
|
|
<li><?php echo $html->link(__('List Freight Forwarders', true), array('controller' => 'freight_forwarders', 'action' => 'index')); ?> </li>
|
|
<li><?php echo $html->link(__('New Freight Forwarder', true), array('controller' => 'freight_forwarders', 'action' => 'add')); ?> </li>
|
|
</ul>
|
|
</div>
|