Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

<div class="stores view">
<h2><?php echo __('Store'); ?></h2>
        <dl>
                <dt><?php echo __('Id'); ?></dt>
                <dd>
                        <?php echo h($store['Store']['id']); ?>
                        &nbsp;
                </dd>
                <dt><?php echo __('Name'); ?></dt>
                <dd>
                        <?php echo h($store['Store']['name']); ?>
                        &nbsp;
                </dd>
                <dt><?php echo __('Status'); ?></dt>
                <dd>
                        <?php echo h($store['Store']['status']); ?>
                        &nbsp;
                </dd>
                <dt><?php echo __('Affiliate Id'); ?></dt>
                <dd>
                        <?php echo h($store['Store']['affiliate_id']); ?>
                        &nbsp;
                </dd>
                <dt><?php echo __('Created'); ?></dt>
                <dd>
                        <?php echo h($store['Store']['created']); ?>
                        &nbsp;
                </dd>
                <dt><?php echo __('Modified'); ?></dt>
                <dd>
                        <?php echo h($store['Store']['modified']); ?>
                        &nbsp;
                </dd>
        </dl>
</div>
<div class="actions">
        <h3><?php echo __('Actions'); ?></h3>
        <ul>
                <li><?php echo $this->Html->link(__('Edit Store'), array('action' => 'edit', $store['Store']['id'])); ?> </li>
                <li><?php echo $this->Form->postLink(__('Delete Store'), array('action' => 'delete', $store['Store']['id']), null, __('Are you sure you want to delete # %s?', $store['Store']['id'])); ?> </li>
                <li><?php echo $this->Html->link(__('List Stores'), array('action' => 'index')); ?> </li>
                <li><?php echo $this->Html->link(__('New Store'), array('action' => 'add')); ?> </li>
                <li><?php echo $this->Html->link(__('List Orders'), array('controller' => 'orders', 'action' => 'index')); ?> </li>
                <li><?php echo $this->Html->link(__('New Order'), array('controller' => 'orders', 'action' => 'add')); ?> </li>
                <li><?php echo $this->Html->link(__('List Store Products'), array('controller' => 'store_products', 'action' => 'index')); ?> </li>
                <li><?php echo $this->Html->link(__('New Store Product'), array('controller' => 'store_products', 'action' => 'add')); ?> </li>
        </ul>
</div>
<div class="related">
        <h3><?php echo __('Related Orders'); ?></h3>
        <?php if (!empty($store['Order'])): ?>
        <table cellpadding = "0" cellspacing = "0">
        <tr>
                <th><?php echo __('Id'); ?></th>
                <th><?php echo __('User Id'); ?></th>
                <th><?php echo __('Store Id'); ?></th>
                <th><?php echo __('Store Order Id'); ?></th>
                <th><?php echo __('Order Url'); ?></th>
                <th><?php echo __('Rawhtml'); ?></th>
                <th><?php echo __('Product Name'); ?></th>
                <th><?php echo __('Product Code'); ?></th>
                <th><?php echo __('Unit Price'); ?></th>
                <th><?php echo __('Total Amount'); ?></th>
                <th><?php echo __('Customer Name'); ?></th>
                <th><?php echo __('Customer Email'); ?></th>
                <th><?php echo __('Customer Mobile'); ?></th>
                <th><?php echo __('Customer Address'); ?></th>
                <th><?php echo __('Status'); ?></th>
                <th><?php echo __('Created'); ?></th>
                <th><?php echo __('Modified'); ?></th>
                <th class="actions"><?php echo __('Actions'); ?></th>
        </tr>
        <?php foreach ($store['Order'] as $order): ?>
                <tr>
                        <td><?php echo $order['id']; ?></td>
                        <td><?php echo $order['user_id']; ?></td>
                        <td><?php echo $order['store_id']; ?></td>
                        <td><?php echo $order['store_order_id']; ?></td>
                        <td><?php echo $order['order_url']; ?></td>
                        <td><?php echo $order['rawhtml']; ?></td>
                        <td><?php echo $order['product_name']; ?></td>
                        <td><?php echo $order['product_code']; ?></td>
                        <td><?php echo $order['unit_price']; ?></td>
                        <td><?php echo $order['total_amount']; ?></td>
                        <td><?php echo $order['customer_name']; ?></td>
                        <td><?php echo $order['customer_email']; ?></td>
                        <td><?php echo $order['customer_mobile']; ?></td>
                        <td><?php echo $order['customer_address']; ?></td>
                        <td><?php echo $order['status']; ?></td>
                        <td><?php echo $order['created']; ?></td>
                        <td><?php echo $order['modified']; ?></td>
                        <td class="actions">
                                <?php echo $this->Html->link(__('View'), array('controller' => 'orders', 'action' => 'view', $order['id'])); ?>
                                <?php echo $this->Html->link(__('Edit'), array('controller' => 'orders', 'action' => 'edit', $order['id'])); ?>
                                <?php echo $this->Form->postLink(__('Delete'), array('controller' => 'orders', 'action' => 'delete', $order['id']), null, __('Are you sure you want to delete # %s?', $order['id'])); ?>
                        </td>
                </tr>
        <?php endforeach; ?>
        </table>
<?php endif; ?>

        <div class="actions">
                <ul>
                        <li><?php echo $this->Html->link(__('New Order'), array('controller' => 'orders', 'action' => 'add')); ?> </li>
                </ul>
        </div>
</div>
<div class="related">
        <h3><?php echo __('Related Store Products'); ?></h3>
        <?php if (!empty($store['StoreProduct'])): ?>
        <table cellpadding = "0" cellspacing = "0">
        <tr>
                <th><?php echo __('Id'); ?></th>
                <th><?php echo __('Store Id'); ?></th>
                <th><?php echo __('Product Id'); ?></th>
                <th><?php echo __('Product Url'); ?></th>
                <th><?php echo __('Img Url'); ?></th>
                <th><?php echo __('Short Descrption'); ?></th>
                <th><?php echo __('Price'); ?></th>
                <th><?php echo __('Status'); ?></th>
                <th><?php echo __('Last Crawled'); ?></th>
                <th><?php echo __('Created'); ?></th>
                <th><?php echo __('Modified'); ?></th>
                <th class="actions"><?php echo __('Actions'); ?></th>
        </tr>
        <?php foreach ($store['StoreProduct'] as $storeProduct): ?>
                <tr>
                        <td><?php echo $storeProduct['id']; ?></td>
                        <td><?php echo $storeProduct['store_id']; ?></td>
                        <td><?php echo $storeProduct['product_id']; ?></td>
                        <td><?php echo $storeProduct['product_url']; ?></td>
                        <td><?php echo $storeProduct['img_url']; ?></td>
                        <td><?php echo $storeProduct['short_descrption']; ?></td>
                        <td><?php echo $storeProduct['price']; ?></td>
                        <td><?php echo $storeProduct['status']; ?></td>
                        <td><?php echo $storeProduct['last_crawled']; ?></td>
                        <td><?php echo $storeProduct['created']; ?></td>
                        <td><?php echo $storeProduct['modified']; ?></td>
                        <td class="actions">
                                <?php echo $this->Html->link(__('View'), array('controller' => 'store_products', 'action' => 'view', $storeProduct['id'])); ?>
                                <?php echo $this->Html->link(__('Edit'), array('controller' => 'store_products', 'action' => 'edit', $storeProduct['id'])); ?>
                                <?php echo $this->Form->postLink(__('Delete'), array('controller' => 'store_products', 'action' => 'delete', $storeProduct['id']), null, __('Are you sure you want to delete # %s?', $storeProduct['id'])); ?>
                        </td>
                </tr>
        <?php endforeach; ?>
        </table>
<?php endif; ?>

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