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