Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

<div class="products view">
<h2><?php echo __('Product'); ?></h2>
        <dl>
                <dt><?php echo __('Id'); ?></dt>
                <dd>
                        <?php echo h($product['Product']['id']); ?>
                        &nbsp;
                </dd>
                <dt><?php echo __('Name'); ?></dt>
                <dd>
                        <?php echo h($product['Product']['name']); ?>
                        &nbsp;
                </dd>
                <dt><?php echo __('Category'); ?></dt>
                <dd>
                        <?php echo $this->Html->link($product['Category']['name'], array('controller' => 'categories', 'action' => 'view', $product['Category']['id'])); ?>
                        &nbsp;
                </dd>
                <dt><?php echo __('Tag Line'); ?></dt>
                <dd>
                        <?php echo h($product['Product']['tag_line']); ?>
                        &nbsp;
                </dd>
                <dt><?php echo __('Created'); ?></dt>
                <dd>
                        <?php echo h($product['Product']['created']); ?>
                        &nbsp;
                </dd>
                <dt><?php echo __('Modified'); ?></dt>
                <dd>
                        <?php echo h($product['Product']['modified']); ?>
                        &nbsp;
                </dd>
        </dl>
</div>
<div class="actions">
        <h3><?php echo __('Actions'); ?></h3>
        <ul>
                <li><?php echo $this->Html->link(__('Edit Product'), array('action' => 'edit', $product['Product']['id'])); ?> </li>
                <li><?php echo $this->Form->postLink(__('Delete Product'), array('action' => 'delete', $product['Product']['id']), null, __('Are you sure you want to delete # %s?', $product['Product']['id'])); ?> </li>
                <li><?php echo $this->Html->link(__('List Products'), array('action' => 'index')); ?> </li>
                <li><?php echo $this->Html->link(__('New Product'), array('action' => 'add')); ?> </li>
                <li><?php echo $this->Html->link(__('List Categories'), array('controller' => 'categories', 'action' => 'index')); ?> </li>
                <li><?php echo $this->Html->link(__('New Category'), array('controller' => 'categories', 'action' => 'add')); ?> </li>
                <li><?php echo $this->Html->link(__('List Productviews'), array('controller' => 'productviews', 'action' => 'index')); ?> </li>
                <li><?php echo $this->Html->link(__('New Productview'), array('controller' => 'productviews', 'action' => 'add')); ?> </li>
        </ul>
</div>
<div class="related">
        <h3><?php echo __('Related Productviews'); ?></h3>
        <?php if (!empty($product['Productview'])): ?>
        <table cellpadding = "0" cellspacing = "0">
        <tr>
                <th><?php echo __('Id'); ?></th>
                <th><?php echo __('Product Id'); ?></th>
                <th><?php echo __('User Id'); ?></th>
                <th><?php echo __('Created'); ?></th>
                <th><?php echo __('Modified'); ?></th>
                <th class="actions"><?php echo __('Actions'); ?></th>
        </tr>
        <?php foreach ($product['Productview'] as $productview): ?>
                <tr>
                        <td><?php echo $productview['id']; ?></td>
                        <td><?php echo $productview['product_id']; ?></td>
                        <td><?php echo $productview['user_id']; ?></td>
                        <td><?php echo $productview['created']; ?></td>
                        <td><?php echo $productview['modified']; ?></td>
                        <td class="actions">
                                <?php echo $this->Html->link(__('View'), array('controller' => 'productviews', 'action' => 'view', $productview['id'])); ?>
                                <?php echo $this->Html->link(__('Edit'), array('controller' => 'productviews', 'action' => 'edit', $productview['id'])); ?>
                                <?php echo $this->Form->postLink(__('Delete'), array('controller' => 'productviews', 'action' => 'delete', $productview['id']), null, __('Are you sure you want to delete # %s?', $productview['id'])); ?>
                        </td>
                </tr>
        <?php endforeach; ?>
        </table>
<?php endif; ?>

        <div class="actions">
                <ul>
                        <li><?php echo $this->Html->link(__('New Productview'), array('controller' => 'productviews', 'action' => 'add')); ?> </li>
                </ul>
        </div>
</div>