Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

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

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