37 lines
788 B
PHP
Executable file
37 lines
788 B
PHP
Executable file
<div class="products view">
|
|
|
|
<h2><?php echo $principle['Principle']['name']; ?>: Products</h2>
|
|
<table cellpadding="0" cellspacing="0" class="productTable">
|
|
<tr>
|
|
<th>Title</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['Product']['title']; ?>
|
|
</td>
|
|
|
|
<td class="actions">
|
|
<?php echo $html->link(__('View', true), array('action'=>'view', $product['Product']['id'])); ?>
|
|
<?php echo $html->link(__('Edit', true), array('action'=>'edit', $product['Product']['id'])); ?>
|
|
|
|
</td>
|
|
<?php endforeach; ?>
|
|
</table>
|
|
|
|
|
|
</div>
|
|
|
|
<?php debug($products); ?>
|
|
|
|
|