30 lines
981 B
PHP
Executable file
30 lines
981 B
PHP
Executable file
<table cellpadding = "0" cellspacing = "0">
|
|
<tr>
|
|
<th><?php __('Principle'); ?></th>
|
|
<th><?php __('Title'); ?></th>
|
|
<th><?php __('Description'); ?></th>
|
|
<th><?php __('Part Number'); ?></th>
|
|
<th class="actions"><?php __('Actions');?></th>
|
|
</tr>
|
|
<?php
|
|
$i = 0;
|
|
foreach ($products as $product):
|
|
$class = null;
|
|
if ($i++ % 2 == 0) {
|
|
$class = ' class="altrow"';
|
|
}
|
|
?>
|
|
<tr<?php echo $class;?>>
|
|
<td><?php echo $product['Principle']['name'];?></td>
|
|
<td><?php echo $product['Product']['title'];?></td>
|
|
<td><?php echo $product['Product']['description'];?></td>
|
|
<td><?php echo $product['Product']['part_number'];?></td>
|
|
<td class="actions">
|
|
<?php echo $html->link(__('View', true), array('controller'=> 'products', 'action'=>'view', $product['Product']['id'])); ?>
|
|
<?php echo $html->link(__('Edit', true), array('controller'=> 'products', 'action'=>'edit', $product['Product']['id'])); ?>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</table>
|
|
|