Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

<div class="orders index">
        <h2><?php echo __('Orders'); ?></h2>
        <table cellpadding="0" cellspacing="0">
        <tr>
                        <th><?php echo $this->Paginator->sort('id'); ?></th>
                        <th><?php echo $this->Paginator->sort('user_id'); ?></th>
                        <th><?php echo $this->Paginator->sort('store_id'); ?></th>
                        <th><?php echo $this->Paginator->sort('store_order_id'); ?></th>
                        <th><?php echo $this->Paginator->sort('order_url'); ?></th>
                        <th><?php echo $this->Paginator->sort('rawhtml'); ?></th>
                        <th><?php echo $this->Paginator->sort('product_name'); ?></th>
                        <th><?php echo $this->Paginator->sort('product_code'); ?></th>
                        <th><?php echo $this->Paginator->sort('unit_price'); ?></th>
                        <th><?php echo $this->Paginator->sort('total_amount'); ?></th>
                        <th><?php echo $this->Paginator->sort('customer_name'); ?></th>
                        <th><?php echo $this->Paginator->sort('customer_email'); ?></th>
                        <th><?php echo $this->Paginator->sort('customer_mobile'); ?></th>
                        <th><?php echo $this->Paginator->sort('customer_address'); ?></th>
                        <th><?php echo $this->Paginator->sort('status'); ?></th>
                        <th><?php echo $this->Paginator->sort('created'); ?></th>
                        <th><?php echo $this->Paginator->sort('modified'); ?></th>
                        <th class="actions"><?php echo __('Actions'); ?></th>
        </tr>
        <?php foreach ($orders as $order): ?>
        <tr>
                <td><?php echo h($order['Order']['id']); ?>&nbsp;</td>
                <td>
                        <?php echo $this->Html->link($order['User']['username'], array('controller' => 'users', 'action' => 'view', $order['User']['id'])); ?>
                </td>
                <td>
                        <?php echo $this->Html->link($order['Store']['name'], array('controller' => 'stores', 'action' => 'view', $order['Store']['id'])); ?>
                </td>
                <td><?php echo h($order['Order']['store_order_id']); ?>&nbsp;</td>
                <td><?php echo h($order['Order']['order_url']); ?>&nbsp;</td>
                <td><?php echo h($order['Order']['rawhtml']); ?>&nbsp;</td>
                <td><?php echo h($order['Order']['product_name']); ?>&nbsp;</td>
                <td><?php echo h($order['Order']['product_code']); ?>&nbsp;</td>
                <td><?php echo h($order['Order']['unit_price']); ?>&nbsp;</td>
                <td><?php echo h($order['Order']['total_amount']); ?>&nbsp;</td>
                <td><?php echo h($order['Order']['customer_name']); ?>&nbsp;</td>
                <td><?php echo h($order['Order']['customer_email']); ?>&nbsp;</td>
                <td><?php echo h($order['Order']['customer_mobile']); ?>&nbsp;</td>
                <td><?php echo h($order['Order']['customer_address']); ?>&nbsp;</td>
                <td><?php echo h($order['Order']['status']); ?>&nbsp;</td>
                <td><?php echo h($order['Order']['created']); ?>&nbsp;</td>
                <td><?php echo h($order['Order']['modified']); ?>&nbsp;</td>
                <td class="actions">
                        <?php echo $this->Html->link(__('View'), array('action' => 'view', $order['Order']['id'])); ?>
                        <?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $order['Order']['id'])); ?>
                        <?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $order['Order']['id']), null, __('Are you sure you want to delete # %s?', $order['Order']['id'])); ?>
                </td>
        </tr>
<?php endforeach; ?>
        </table>
        <p>
        <?php
        echo $this->Paginator->counter(array(
        'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
        ));
        ?>      </p>
        <div class="paging">
        <?php
                echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
                echo $this->Paginator->numbers(array('separator' => ''));
                echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
        ?>
        </div>
</div>
<div class="actions">
        <h3><?php echo __('Actions'); ?></h3>
        <ul>
                <li><?php echo $this->Html->link(__('New Order'), array('action' => 'add')); ?></li>
                <li><?php echo $this->Html->link(__('List Users'), array('controller' => 'users', 'action' => 'index')); ?> </li>
                <li><?php echo $this->Html->link(__('New User'), array('controller' => 'users', 'action' => 'add')); ?> </li>
                <li><?php echo $this->Html->link(__('List Stores'), array('controller' => 'stores', 'action' => 'index')); ?> </li>
                <li><?php echo $this->Html->link(__('New Store'), array('controller' => 'stores', 'action' => 'add')); ?> </li>
        </ul>
</div>