Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
13532 anikendra 1
<div class="container">
2
	<div class="row">
3
		<div class="col-lg-3">
4
			<?php echo $this->Element('storeproductactions');?>
5
		</div>
6
		<div class="col-lg-9">
7
			<h2><?php echo __('Store Products'); ?></h2>
8
			<table cellpadding="0" cellspacing="0" class="table table-striped">
9
			<tr>
10
					<th><?php echo $this->Paginator->sort('id'); ?></th>
11
					<th><?php echo $this->Paginator->sort('store_id'); ?></th>
12
					<th><?php echo $this->Paginator->sort('product_id'); ?></th>
13
					<th><?php echo $this->Paginator->sort('product_url'); ?></th>
14
					<th><?php echo $this->Paginator->sort('img_url'); ?></th>
15
					<th><?php echo $this->Paginator->sort('price'); ?></th>
16
					<th><?php echo $this->Paginator->sort('status'); ?></th>
17
					<th class="actions"><?php echo __('Actions'); ?></th>
18
			</tr>
19
			<?php foreach ($storeProducts as $storeProduct): ?>
20
			<tr>
21
				<td><?php echo h($storeProduct['StoreProduct']['id']); ?>&nbsp;</td>
22
				<td>
23
					<?php echo $this->Html->link($storeProduct['Store']['name'], array('controller' => 'stores', 'action' => 'view', $storeProduct['Store']['id'])); ?>
24
				</td>
25
				<td>
26
					<?php echo $this->Html->link($storeProduct['Product']['name'], array('controller' => 'products', 'action' => 'view', $storeProduct['Product']['id'])); ?>
27
				</td>
28
				<td><?php echo h($storeProduct['StoreProduct']['product_url']); ?>&nbsp;</td>
29
				<td><?php echo h($storeProduct['StoreProduct']['img_url']); ?>&nbsp;</td>
30
				<td><?php echo h($storeProduct['StoreProduct']['price']); ?>&nbsp;</td>
31
				<td><?php echo h($storeProduct['StoreProduct']['status']); ?>&nbsp;</td>
32
				<td class="actions">
33
					<?php echo $this->Html->link(__('View'), array('action' => 'view', $storeProduct['StoreProduct']['id'])); ?>
34
					<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $storeProduct['StoreProduct']['id'])); ?>
35
					<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $storeProduct['StoreProduct']['id']), null, __('Are you sure you want to delete # %s?', $storeProduct['StoreProduct']['id'])); ?>
36
				</td>
37
			</tr>
38
		<?php endforeach; ?>
39
			</table>
40
			<p>
41
			<?php
42
			echo $this->Paginator->counter(array(
43
			'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
44
			));
45
			?>	</p>
46
			<div class="paging">
47
			<?php
48
				echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
49
				echo $this->Paginator->numbers(array('separator' => ''));
50
				echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
51
			?>
52
			</div>
53
		</div>
54
	</div>
55
</div>