Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
13532 anikendra 1
<div class="orders index">
2
	<h2><?php echo __('Orders'); ?></h2>
3
	<table cellpadding="0" cellspacing="0">
4
	<tr>
5
			<th><?php echo $this->Paginator->sort('id'); ?></th>
6
			<th><?php echo $this->Paginator->sort('user_id'); ?></th>
7
			<th><?php echo $this->Paginator->sort('store_id'); ?></th>
8
			<th><?php echo $this->Paginator->sort('store_order_id'); ?></th>
9
			<th><?php echo $this->Paginator->sort('order_url'); ?></th>
10
			<th><?php echo $this->Paginator->sort('rawhtml'); ?></th>
11
			<th><?php echo $this->Paginator->sort('product_name'); ?></th>
12
			<th><?php echo $this->Paginator->sort('product_code'); ?></th>
13
			<th><?php echo $this->Paginator->sort('unit_price'); ?></th>
14
			<th><?php echo $this->Paginator->sort('total_amount'); ?></th>
15
			<th><?php echo $this->Paginator->sort('customer_name'); ?></th>
16
			<th><?php echo $this->Paginator->sort('customer_email'); ?></th>
17
			<th><?php echo $this->Paginator->sort('customer_mobile'); ?></th>
18
			<th><?php echo $this->Paginator->sort('customer_address'); ?></th>
19
			<th><?php echo $this->Paginator->sort('status'); ?></th>
20
			<th><?php echo $this->Paginator->sort('created'); ?></th>
21
			<th><?php echo $this->Paginator->sort('modified'); ?></th>
22
			<th class="actions"><?php echo __('Actions'); ?></th>
23
	</tr>
24
	<?php foreach ($orders as $order): ?>
25
	<tr>
26
		<td><?php echo h($order['Order']['id']); ?>&nbsp;</td>
27
		<td>
28
			<?php echo $this->Html->link($order['User']['username'], array('controller' => 'users', 'action' => 'view', $order['User']['id'])); ?>
29
		</td>
30
		<td>
31
			<?php echo $this->Html->link($order['Store']['name'], array('controller' => 'stores', 'action' => 'view', $order['Store']['id'])); ?>
32
		</td>
33
		<td><?php echo h($order['Order']['store_order_id']); ?>&nbsp;</td>
34
		<td><?php echo h($order['Order']['order_url']); ?>&nbsp;</td>
35
		<td><?php echo h($order['Order']['rawhtml']); ?>&nbsp;</td>
36
		<td><?php echo h($order['Order']['product_name']); ?>&nbsp;</td>
37
		<td><?php echo h($order['Order']['product_code']); ?>&nbsp;</td>
38
		<td><?php echo h($order['Order']['unit_price']); ?>&nbsp;</td>
39
		<td><?php echo h($order['Order']['total_amount']); ?>&nbsp;</td>
40
		<td><?php echo h($order['Order']['customer_name']); ?>&nbsp;</td>
41
		<td><?php echo h($order['Order']['customer_email']); ?>&nbsp;</td>
42
		<td><?php echo h($order['Order']['customer_mobile']); ?>&nbsp;</td>
43
		<td><?php echo h($order['Order']['customer_address']); ?>&nbsp;</td>
44
		<td><?php echo h($order['Order']['status']); ?>&nbsp;</td>
45
		<td><?php echo h($order['Order']['created']); ?>&nbsp;</td>
46
		<td><?php echo h($order['Order']['modified']); ?>&nbsp;</td>
47
		<td class="actions">
48
			<?php echo $this->Html->link(__('View'), array('action' => 'view', $order['Order']['id'])); ?>
49
			<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $order['Order']['id'])); ?>
50
			<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $order['Order']['id']), null, __('Are you sure you want to delete # %s?', $order['Order']['id'])); ?>
51
		</td>
52
	</tr>
53
<?php endforeach; ?>
54
	</table>
55
	<p>
56
	<?php
57
	echo $this->Paginator->counter(array(
58
	'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
59
	));
60
	?>	</p>
61
	<div class="paging">
62
	<?php
63
		echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
64
		echo $this->Paginator->numbers(array('separator' => ''));
65
		echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
66
	?>
67
	</div>
68
</div>
69
<div class="actions">
70
	<h3><?php echo __('Actions'); ?></h3>
71
	<ul>
72
		<li><?php echo $this->Html->link(__('New Order'), array('action' => 'add')); ?></li>
73
		<li><?php echo $this->Html->link(__('List Users'), array('controller' => 'users', 'action' => 'index')); ?> </li>
74
		<li><?php echo $this->Html->link(__('New User'), array('controller' => 'users', 'action' => 'add')); ?> </li>
75
		<li><?php echo $this->Html->link(__('List Stores'), array('controller' => 'stores', 'action' => 'index')); ?> </li>
76
		<li><?php echo $this->Html->link(__('New Store'), array('controller' => 'stores', 'action' => 'add')); ?> </li>
77
	</ul>
78
</div>