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('productactions');?>
5
		</div>
6
		<div class="col-lg-9">
7
			<h2><?php echo __('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('name'); ?></th>
12
					<th><?php echo $this->Paginator->sort('category_id'); ?></th>
13
					<th><?php echo $this->Paginator->sort('tag_line'); ?></th>
14
					<th><?php echo $this->Paginator->sort('created'); ?></th>
15
					<th><?php echo $this->Paginator->sort('modified'); ?></th>
16
					<th class="actions"><?php echo __('Actions'); ?></th>
17
			</tr>
18
			<?php foreach ($products as $product): ?>
19
			<tr>
20
				<td><?php echo h($product['Product']['id']); ?>&nbsp;</td>
21
				<td><?php echo h($product['Product']['name']); ?>&nbsp;</td>
22
				<td>
23
					<?php echo $this->Html->link($product['Category']['name'], array('controller' => 'categories', 'action' => 'view', $product['Category']['id'])); ?>
24
				</td>
25
				<td><?php echo h($product['Product']['tag_line']); ?>&nbsp;</td>
26
				<td><?php echo h($product['Product']['created']); ?>&nbsp;</td>
27
				<td><?php echo h($product['Product']['modified']); ?>&nbsp;</td>
28
				<td class="actions">
29
					<?php echo $this->Html->link(__('View'), array('action' => 'view', $product['Product']['id'])); ?>
30
					<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $product['Product']['id'])); ?>
31
					<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $product['Product']['id']), null, __('Are you sure you want to delete # %s?', $product['Product']['id'])); ?>
32
				</td>
33
			</tr>
34
		<?php endforeach; ?>
35
			</table>
36
			<p>
37
			<?php
38
			echo $this->Paginator->counter(array(
39
			'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
40
			));
41
			?>	</p>
42
			<div class="paging">
43
			<?php
44
				echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
45
				echo $this->Paginator->numbers(array('separator' => ''));
46
				echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
47
			?>
48
			</div>
49
		</div>
50
	</div>
51
</div>